Problem for a PCI Configuration Space VxWorks Problem for a PCI Configuration Space
1) VXWORKS is not written from the PCI configuration space under VxWorks whether the register physical base address of the PCI device is still the mapping virtual address? 2) There is also a problem that the C language is embedded in the contract, the address of the assembly operation is the physical address or the virtual address?
In VxWorks's PCI automatic configuration seems to have such a process: 1) Write all 1 in the base site register, read out the capacity size thereof, 2) Assign a virtual ground block, get the first address of the block, 3) Fill the first address in the base register, don't know if this process is correct?
Is this not to automatically configure an address after the mapping we need? If you read the base address register before you have not configured, what is the IO register and buffer physical address required by the PCI device?
Answer: 1) Read the address A after reading the map from the base address register A
2) Write all 1, read content in the base site register, to get the IO or MEM space size required
3) Write A back to the base register.
Note that A is produced by POST