summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-01-29 20:25:20 +0000
committermarcel <marcel@FreeBSD.org>2011-01-29 20:25:20 +0000
commit97b823bf5155b2981e4e9fe4c49f8f6e3cca5c14 (patch)
treed03a36ea0a29d440548e1e2e9cf2e2a7aec992aa /sys/arm
parent181e76925b50ce041a6d66c7cd4ae9ab59f899fe (diff)
downloadFreeBSD-src-97b823bf5155b2981e4e9fe4c49f8f6e3cca5c14.zip
FreeBSD-src-97b823bf5155b2981e4e9fe4c49f8f6e3cca5c14.tar.gz
Introduce macro FDT_MAP_IRQ to map from an interrupt controller and
interrupt pin pair to a global IRQ number. When multiple PICs exist on a board, the interrupt pin alone is not unique.
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/include/fdt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm/include/fdt.h b/sys/arm/include/fdt.h
index 3672dfb..c7290ac 100644
--- a/sys/arm/include/fdt.h
+++ b/sys/arm/include/fdt.h
@@ -44,6 +44,9 @@
/* Max interrupt number */
#define FDT_INTR_MAX NIRQ
+/* Map phandle/intpin pair to global IRQ number */
+#define FDT_MAP_IRQ(node, pin) (pin)
+
/*
* Bus space tag. XXX endianess info needs to be derived from the blob.
*/
OpenPOWER on IntegriCloud