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