summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc/hwpmc_powerpc.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-09-14 21:21:03 +0000
committerian <ian@FreeBSD.org>2014-09-14 21:21:03 +0000
commit4c51a2212236e79a65ec9962d39ec638154a5c54 (patch)
tree56e25a0775e05d86a742c90594fae48fc23c61ae /sys/dev/hwpmc/hwpmc_powerpc.c
parentd29687c2d2d53404f1e8de51ed369c2cb57dfcee (diff)
downloadFreeBSD-src-4c51a2212236e79a65ec9962d39ec638154a5c54.zip
FreeBSD-src-4c51a2212236e79a65ec9962d39ec638154a5c54.tar.gz
Add a common routine for parsing FDT data describing an ARM GIC interrupt.
In the fdt data we've written for ourselves, the interrupt properties for GIC interrupts have just been a bare interrupt number. In standard data that conforms to the published bindings, GIC interrupt properties contain 3-tuples that describe the interrupt as shared vs private, the interrupt number within the shared/private address space, and configuration info such as level vs edge triggered. The new gic_decode_fdt() function parses both types of data, based on the #interrupt-cells property. Previously, each platform implemented a decode routine and put a pointer to it into fdt_pic_table. Now they can just list this function in their table instead if they use arm/gic.c.
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_powerpc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud