summaryrefslogtreecommitdiffstats
path: root/sys/arm/include/intr.h
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-10-26 03:52:45 +0000
committerian <ian@FreeBSD.org>2014-10-26 03:52:45 +0000
commit839e78bb760f69a2429364064c3b8ebd4715c08f (patch)
treed2b9d0b3fe940305fc8d2c8a024e08664c3e607f /sys/arm/include/intr.h
parent1ede59bf75201fe38de6e2eb3f949289e699f83b (diff)
downloadFreeBSD-src-839e78bb760f69a2429364064c3b8ebd4715c08f.zip
FreeBSD-src-839e78bb760f69a2429364064c3b8ebd4715c08f.tar.gz
MFC r271595, r271601, r271607, r271630:
Add compat strings for all the flavors of GIC this driver should support. Also allow the driver to attach to ofwbus as well as simplebus, some FDT data puts the root interrupt controller on the root bus. Add a common routine for parsing FDT data describing an ARM GIC interrupt. Use gic_decode_fdt() rather than a local routine to parse fdt interrupt properties. Move fdt_pic_table and fdt_fixup_table into imx6_machdep.c, which means imx6 doesn't need imx_common.c anymore. The private peripheral interrupts start at offset 16, not 0. Also, use names rather than inline mystery constants for these offsets.
Diffstat (limited to 'sys/arm/include/intr.h')
-rw-r--r--sys/arm/include/intr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/include/intr.h b/sys/arm/include/intr.h
index e2d0feb..96ce2e0 100644
--- a/sys/arm/include/intr.h
+++ b/sys/arm/include/intr.h
@@ -82,5 +82,7 @@ extern int (*arm_config_irq)(int irq, enum intr_trigger trig,
void arm_irq_memory_barrier(uintptr_t);
void gic_init_secondary(void);
+int gic_decode_fdt(uint32_t iparentnode, uint32_t *intrcells, int *interrupt,
+ int *trig, int *pol);
#endif /* _MACHINE_INTR_H */
OpenPOWER on IntegriCloud