diff options
author | tmm <tmm@FreeBSD.org> | 2003-09-12 20:04:29 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2003-09-12 20:04:29 +0000 |
commit | 24c1671549dd4531bba107848a5bcc0044520d93 (patch) | |
tree | 920f2d8b1c099d4cbda2e39c3363eec479adbca2 /sys | |
parent | dd54f329d2cc2932ffa2fcc060799cfd1e556713 (diff) | |
download | FreeBSD-src-24c1671549dd4531bba107848a5bcc0044520d93.zip FreeBSD-src-24c1671549dd4531bba107848a5bcc0044520d93.tar.gz |
Handle ISA devices in OF_decode_addr(), with the same code that is
used in the EBus case.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/ofw_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/ofw_machdep.c b/sys/sparc64/sparc64/ofw_machdep.c index 404eeaf..5d739ec 100644 --- a/sys/sparc64/sparc64/ofw_machdep.c +++ b/sys/sparc64/sparc64/ofw_machdep.c @@ -81,7 +81,7 @@ OF_decode_addr(phandle_t node, int *space, bus_addr_t *addr) if (OF_getprop(bus, "name", name, sizeof(name)) == -1) return (ENXIO); name[sizeof(name) - 1] = '\0'; - if (strcmp(name, "ebus") == 0) { + if (strcmp(name, "ebus") == 0 || strcmp(name, "isa") == 0) { if (OF_getprop(node, "reg", ®.isa, sizeof(reg.isa)) == -1) return (ENXIO); rsz = OF_getprop(bus, "ranges", range.isa, sizeof(range.isa)); |