Warning: This API has not yet been implemented. Do not use.
These declarations are essentially just wrappers for the PCI SWIs. In time, we might add more complex functionality.
The PCI Manager allocates IDs for each PCI device in the computer. You can find the maximum ID with PCI_ReturnNumber, and use values up to and including that for functions taking handles.
Return PCI IDs for a given device.
If ID is non-NULL, then bits 0-15 are set to vendor ID and bits 16-31 to device ID.
If subID is non-NULL, then bits 0-15 are set to subsystem vendor ID and bits 16-31 to subsystem ID.
Read buflen bytes from the PCI header into the given buffer. buflen must be 4-256 and a multiple of 4.
Return number of allocated function handles. You can search from 1 to the result of this inclusive for PCI devices.
Similar to PCI_ReadID, but allows enumeration. Use 0 for the first value, then the value returned for succesive calls.
Read and write PCI I/O space. The address passed can be found with PCI_HardwareAddress. The size parameter is either 1, 2 or 4, indicating 8, 16 or 32-bit access.
Read and write PCI Memory space. A buffer and length is passed for the access. The only available flag is for reads - bit 3 when set indicates it is prefetchable.
Read and write PCI configuration space. The size parameter is either 1, 2 or 4, indicating 8, 16 or 32-bit access.