aboutsummaryrefslogtreecommitdiff
path: root/hw/ppce500_pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ppce500_pci.h')
-rw-r--r--hw/ppce500_pci.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/ppce500_pci.h b/hw/ppce500_pci.h
new file mode 100644
index 0000000000..61f773ef30
--- /dev/null
+++ b/hw/ppce500_pci.h
@@ -0,0 +1,9 @@
+#ifndef PPCE500_PCI_H
+#define PPCE500_PCI_H
+
+static inline int ppce500_pci_map_irq_slot(int devno, int irq_num)
+{
+ return (devno + irq_num) % 4;
+}
+
+#endif