summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/fdt_mips.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-14 18:54:34 +0000
committerian <ian@FreeBSD.org>2014-05-14 18:54:34 +0000
commit21fbbde45943109155a62d78963119afc7f3f290 (patch)
treedeee42515173cf5d1de657da766da3d27cce6bb8 /sys/dev/fdt/fdt_mips.c
parent9e6ff9cd8c9d75c84e35d396dd9595b3ec4b947f (diff)
downloadFreeBSD-src-21fbbde45943109155a62d78963119afc7f3f290.zip
FreeBSD-src-21fbbde45943109155a62d78963119afc7f3f290.tar.gz
MFC r260281, r260282, r260283, r260285
Implement OFW_BUS_MAP_INTR() in terms of the FDT PIC table Reimplement fdt_intr_to_rl() in terms of OFW_BUS_MAP_INTR() and OFW_BUS_CONFIG_INTR(). Use bus_space_map() rather than pmap_mapdev() in nexus_activate_resource(), when running on FDT systems. Unmap memory in nexus_deactivate_resource(). Remove fdt_pic_table code from MIPS, PowerPC, and x86, as it is no longer used by anything.
Diffstat (limited to 'sys/dev/fdt/fdt_mips.c')
-rw-r--r--sys/dev/fdt/fdt_mips.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/sys/dev/fdt/fdt_mips.c b/sys/dev/fdt/fdt_mips.c
index 1904574..4e04602 100644
--- a/sys/dev/fdt/fdt_mips.c
+++ b/sys/dev/fdt/fdt_mips.c
@@ -49,45 +49,3 @@ struct fdt_fixup_entry fdt_fixup_table[] = {
{ NULL, NULL }
};
-/*
- * For PIC-free boards, provide a PIC decoder to be used with mips4k CP0
- * interrupt control directly.
- */
-static int
-fdt_pic_decode_mips4k_cp0(phandle_t node, pcell_t *intr, int *interrupt,
- int *trig, int *pol)
-{
-
- if (!fdt_is_compatible(node, "mips,mips4k"))
- return (ENXIO);
-
- *interrupt = fdt32_to_cpu(intr[0]);
- *trig = INTR_TRIGGER_CONFORM;
- *pol = INTR_POLARITY_CONFORM;
-
- return (0);
-}
-
-/*
- * CHERI PIC decoder.
- */
-static int
-fdt_pic_decode_beri(phandle_t node, pcell_t *intr, int *interrupt,
- int *trig, int *pol)
-{
-
- if (!fdt_is_compatible(node, "sri-cambridge,beri-pic"))
- return (ENXIO);
-
- *interrupt = fdt32_to_cpu(intr[0]);
- *trig = INTR_TRIGGER_CONFORM;
- *pol = INTR_POLARITY_CONFORM;
-
- return (0);
-}
-
-fdt_pic_decode_t fdt_pic_table[] = {
- &fdt_pic_decode_mips4k_cp0,
- &fdt_pic_decode_beri,
- NULL
-};
OpenPOWER on IntegriCloud