diff options
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/device.h | 1 | ||||
-rw-r--r-- | src/include/device/pci.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h index 54ac36389e..2691e4e21c 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -59,6 +59,7 @@ struct device { unsigned int enabled : 1; /* set if we should enable the device */ unsigned int initialized : 1; /* set if we have initialized the device */ unsigned int have_resources : 1; /* Set if we have read the devices resources */ + unsigned int on_mainboard : 1; uint8_t command; diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 13414a7df6..228d4f6e7e 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -50,6 +50,7 @@ void pci_bus_enable_resources(device_t dev); unsigned int pci_scan_bridge(device_t bus, unsigned int max); unsigned int pci_scan_bus(struct bus *bus, unsigned min_devfn, unsigned max_devfn, unsigned int max); struct resource *pci_get_resource(struct device *dev, unsigned long index); +void pci_dev_set_subsystem(device_t dev, unsigned vendor, unsigned device); #define PCI_IO_BRIDGE_ALIGN 4096 #define PCI_MEM_BRIDGE_ALIGN (1024*1024) |