aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc_nexus.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-02-19 08:23:38 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-02-19 08:23:38 +0000
commit63ec9d57c9f07d0e4e2983fb86f44d371941ffdd (patch)
tree98cab5c0408be07e217717c1e27231a830e49d80 /sys/sparc64/fhc/fhc_nexus.c
parent9de91598226fb6d6166466d8fc189fff0537e534 (diff)
downloadsrc-63ec9d57c9f07d0e4e2983fb86f44d371941ffdd.tar.gz
src-63ec9d57c9f07d0e4e2983fb86f44d371941ffdd.zip
Implement interrupt resource allocation and setup. Set the interrupt
group number properly based on the board id. Perform dummy reads of registers after writing to flush the hardware write buffers. This gets the soon to be committed zs attachment working.
Notes
Notes: svn path=/head/; revision=111123
Diffstat (limited to 'sys/sparc64/fhc/fhc_nexus.c')
-rw-r--r--sys/sparc64/fhc/fhc_nexus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sparc64/fhc/fhc_nexus.c b/sys/sparc64/fhc/fhc_nexus.c
index e989b5c6419d..d62e189dba58 100644
--- a/sys/sparc64/fhc/fhc_nexus.c
+++ b/sys/sparc64/fhc/fhc_nexus.c
@@ -121,5 +121,8 @@ fhc_nexus_attach(device_t dev)
sc->sc_bt[i] = rman_get_bustag(sc->sc_memres[i]);
sc->sc_bh[i] = rman_get_bushandle(sc->sc_memres[i]);
}
+
+ OF_getprop(node, "board#", &sc->sc_board, sizeof(sc->sc_board));
+
return (fhc_attach(dev));
}