PCI Support
Detailed Description
Identification of devices and support for configuration space access.
Function Documentation
Finalize PCI device.
- Parameters:
-
- Returns:
- 0 on success; negative error code otherwise
Initialize PCI device.
- Parameters:
-
- Returns:
- 0 on success; negative error code otherwise
Find PCI device on given class id.
- Parameters:
-
| dev_class | device class id |
| start | previous PCI device found, or 0 for new search |
- Return values:
-
- Returns:
- 0 on success; negative error code otherwise
Find PCI device on given vendor and device ids.
- Parameters:
-
| vendor | vendor id or ~0 for any |
| device | device id or ~0 for any |
| start | previous PCI device found, or 0 for new search |
- Return values:
-
- Returns:
- 0 on success; negative error code otherwise
L4_CV int l4io_pci_find_slot |
( |
unsigned int |
bus, |
|
|
unsigned int |
slot, |
|
|
l4io_pci_dev_t * |
pci_dev | |
|
) |
| | |
Find PCI device on given bus and slot.
- Parameters:
-
| bus | PCI bus number |
| slot | PCI slot number |
- Return values:
-
- Returns:
- 0 on success; negative error code otherwise
Enable busmastering for PCI device.
- Parameters:
-
L4_CV int l4io_pci_set_pm |
( |
l4io_pdev_t |
pdev, |
|
|
int |
state | |
|
) |
| | |
Set PM state for PCI device.
- Parameters:
-
| pdev | PCI device handle |
| state | new PM state |
- Returns:
- old PM state