summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/pci.h')
-rw-r--r--src/emu/machine/pci.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/emu/machine/pci.h b/src/emu/machine/pci.h
new file mode 100644
index 00000000000..57a00a8cbd6
--- /dev/null
+++ b/src/emu/machine/pci.h
@@ -0,0 +1,30 @@
+/***************************************************************************
+
+ machine/pci.h
+
+ PCI bus
+
+***************************************************************************/
+
+#ifndef PCI_H
+#define PCI_H
+
+struct pci_device_info
+{
+ UINT32 (*read_callback)(int function, int reg, UINT32 mem_mask);
+ void (*write_callback)(int function, int reg, UINT32 data, UINT32 mem_mask);
+};
+
+
+void pci_init(void);
+void pci_add_device(int bus, int device, const struct pci_device_info *devinfo);
+
+READ32_HANDLER(pci_32le_r);
+WRITE32_HANDLER(pci_32le_w);
+
+READ64_HANDLER(pci_64be_r);
+WRITE64_HANDLER(pci_64be_w);
+
+#endif /* PCI_H */
+
+