summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/device/device.h1
-rw-r--r--src/include/device/pci.h1
-rw-r--r--src/include/pc80/isa-dma.h6
3 files changed, 8 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 54ac363..2691e4e 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 13414a7..228d4f6 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)
diff --git a/src/include/pc80/isa-dma.h b/src/include/pc80/isa-dma.h
new file mode 100644
index 0000000..205a1b4
--- /dev/null
+++ b/src/include/pc80/isa-dma.h
@@ -0,0 +1,6 @@
+#ifndef PC80_ISA_DMA_H
+#define PC80_ISA_DMA_H
+
+void isa_dma_init(void);
+
+#endif /* PC80_ISA_DMA_H */
OpenPOWER on IntegriCloud