blob: 6a8bc1ce129f8b1b48ab6c516165fd6a51399cfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdint.h>
struct PCI_DEVICE {
uint16_t vendor;
uint16_t device;
uint8_t bus;
uint8_t slot;
};
uint32_t pci_config_read32(const struct PCI_DEVICE *device, uint8_t func,
uint8_t offset);
int pci_populate_device_struct(uint16_t vendor, uint16_t device,
struct PCI_DEVICE *pci_device);
|