From 63ec9d57c9f07d0e4e2983fb86f44d371941ffdd Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Wed, 19 Feb 2003 08:23:38 +0000 Subject: 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. --- sys/sparc64/fhc/fhc_nexus.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/sparc64/fhc/fhc_nexus.c') 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)); } -- cgit v1.2.3