diff options
author | marcel <marcel@FreeBSD.org> | 2011-01-29 20:25:20 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2011-01-29 20:25:20 +0000 |
commit | 97b823bf5155b2981e4e9fe4c49f8f6e3cca5c14 (patch) | |
tree | d03a36ea0a29d440548e1e2e9cf2e2a7aec992aa /sys/powerpc/include | |
parent | 181e76925b50ce041a6d66c7cd4ae9ab59f899fe (diff) | |
download | FreeBSD-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/powerpc/include')
-rw-r--r-- | sys/powerpc/include/fdt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/powerpc/include/fdt.h b/sys/powerpc/include/fdt.h index 76ef94f..116f562 100644 --- a/sys/powerpc/include/fdt.h +++ b/sys/powerpc/include/fdt.h @@ -38,6 +38,9 @@ /* Max interrupt number */ #define FDT_INTR_MAX INTR_VECTORS +/* Map phandle/intpin pair to global IRQ number */ +#define FDT_MAP_IRQ(node, pin) powerpc_get_irq(node, pin) + /* * Bus space tag. XXX endianess info needs to be derived from the blob. */ |