Device driver for PCI device
kasper at mip.sdu.dk
Thu Jun 23 15:11:16 CEST 2005
Sorry if this is a bit of topic but I hope you can help me anyway.
I'm developing a device driver for a PCI based CANbus adapter which I use
for a LXRT project on robot control. According to the manufacture (IXXAT -
who has been VERY helpful all along) the card I have uses a so called
PLX9050 chip for address decoding which is unfortunately flawed. To make a
long story short the workaround is to manually remap the 'infected' PCI
memory region to another address.
I try to do the remapping using a call like (using the necessary caution
when choosing the new address):
pci_write_config_dword(dev, PCI_BASE_ADDRESS_0, new_base)
Somehow I can't seem to make this work. Is there a better way of remapping
a PCI memory region?
More information about the Rtai