This is a discussion on PCI Driver Help - VxWorks ; Hi, I am new to PCI drivers but have been tasked to de-jungo an existing PCI driver on a pentium bsp. Basically this means remove the jungo (WinDriver) layer from an existing driver. I have identified the following functions to ...
I am new to PCI drivers but have been tasked to de-jungo an existing
PCI driver on a pentium bsp. Basically this means remove the jungo
(WinDriver) layer from an existing driver.
I have identified the following functions to remove and have started to
I am currently detecting the card, reading the base addresses and
reading and writing from PCI configuration space. Some of the code is
if (pciFindDevice (pciScanCards->searchId.dwVendorId,
pciScanCards->searchId.dwDeviceId, 0, &pciBusNo, &pciDevNo, &pciFuncNo)
//Read base addresses, detect if IO or Mem then get size and reset
baseaddress after size query.
//Now need to do WD_CardRegister code
Firstly, Does anyone have experience of removing the Jungo layer from a
driver and a good method for doing this.
Secondly, What do need to do to peform the code for the
WD_CardRegister function. I assume this is setting up the local memory
and interupts. What do I need to do to set up the PCI card here for the
pentium bsp. I have seen sysMmuMapAdd being used to set up the Mem base
addresses however I get `VM_STATE_MASK_VALID' undeclared when I try to
use this code.
Thirdly, How do I register the interupt handler. I am currently using:-
0;//5 is actually returned from reading the base addresses
Basically, I nedd to know what I need to o to set up a PCI cards, Mem,
IO and interupts.
Any help or pointers to sources of documentation would be greatfully