|
ArvernOS
|
#include <stdint.h>Data Structures | |
| union | pci_device_t |
Functions | |
| pci_device_t | pci_get_device (uint16_t vendor_id, uint16_t device_id) |
| uint32_t | pci_read (pci_device_t device, uint32_t field, uint8_t size) |
| void | pci_write (pci_device_t device, uint32_t field, uint32_t value) |
This module manages the Peripheral Component Interconnect (PCI) bus.
| pci_device_t pci_get_device | ( | uint16_t | vendor_id, |
| uint16_t | device_id ) |
Given a vendor_id and device_id, this function returns the corresponding PCI device if it exists.
| vendor_id | ID of the manufacturer of the device |
| device_id | ID of the particular device |
| uint32_t pci_read | ( | pci_device_t | device, |
| uint32_t | field, | ||
| uint8_t | size ) |
Reads a field from the configuration space.
| device | the PCI device |
| field | the field to read |
| size | the size of the value for the field to read |
| void pci_write | ( | pci_device_t | device, |
| uint32_t | field, | ||
| uint32_t | value ) |
Writes a value to a field in the configuration space.
| device | the PCI device |
| field | the field to update |
| value | the new value for the field |