diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2016-01-02 19:28:35 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2016-01-02 19:28:35 +0000 |
commit | b6345059e4f17857275423b89f3b2995e550f27d (patch) | |
tree | 366d50f3f0e111331de2044b261f6a2ab5f102ad /sys/sparc64 | |
parent | 0ad580bfa1d4a5ff5302db9b432020f72f4fd5f4 (diff) | |
download | FreeBSD-src-b6345059e4f17857275423b89f3b2995e550f27d.zip FreeBSD-src-b6345059e4f17857275423b89f3b2995e550f27d.tar.gz |
Make using the #address-cells property on the interrupt parent in device
tree parsing opt-out rather than opt-in. All FDT-based systems as well as
PowerPC systems with real Open Firmware use the CHRP-derived binding that
includes it, which makes SPARC the odd man out here. Making it opt-out
avoids astonishment on new platform bring up.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/ofw_machdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/include/ofw_machdep.h b/sys/sparc64/include/ofw_machdep.h index bc69b3b..fcacc10 100644 --- a/sys/sparc64/include/ofw_machdep.h +++ b/sys/sparc64/include/ofw_machdep.h @@ -34,6 +34,9 @@ typedef uint64_t cell_t; +/* sparc64 doesn't use the interrupt parent #address-cells in interrupt maps */ +#define OFW_IMAP_NO_IPARENT_ADDR_CELLS + int OF_decode_addr(phandle_t, int, int *, bus_addr_t *); void OF_getetheraddr(device_t, u_char *); u_int OF_getscsinitid(device_t); |