diff options
| author | Scott Long <scottl@FreeBSD.org> | 2007-06-17 05:55:54 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2007-06-17 05:55:54 +0000 |
| commit | b50569b71dfb110a58aa3e83f629115291802a74 (patch) | |
| tree | 1f069a0af9a8c28e09089c8dc789bcd435a94cce /sys/dev/aic | |
| parent | 6eb9bbf3299f31b6cbda15bb91fc20ed7c808e35 (diff) | |
Notes
Diffstat (limited to 'sys/dev/aic')
| -rw-r--r-- | sys/dev/aic/aic.c | 2 | ||||
| -rw-r--r-- | sys/dev/aic/aic_cbus.c | 1 | ||||
| -rw-r--r-- | sys/dev/aic/aic_isa.c | 1 | ||||
| -rw-r--r-- | sys/dev/aic/aic_pccard.c | 1 | ||||
| -rw-r--r-- | sys/dev/aic/aicvar.h | 1 |
5 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/aic/aic.c b/sys/dev/aic/aic.c index b647cd43c650..f2d3203fab15 100644 --- a/sys/dev/aic/aic.c +++ b/sys/dev/aic/aic.c @@ -1549,7 +1549,7 @@ aic_attach(struct aic_softc *aic) return (ENOMEM); } - if (xpt_bus_register(aic->sim, 0) != CAM_SUCCESS) { + if (xpt_bus_register(aic->sim, aic->dev, 0) != CAM_SUCCESS) { cam_sim_free(aic->sim, /*free_devq*/TRUE); return (ENXIO); } diff --git a/sys/dev/aic/aic_cbus.c b/sys/dev/aic/aic_cbus.c index aa43782b904f..c6419899d342 100644 --- a/sys/dev/aic/aic_cbus.c +++ b/sys/dev/aic/aic_cbus.c @@ -125,6 +125,7 @@ aic_isa_alloc_resources(device_t dev) } } + sc->sc_aic.dev = dev; sc->sc_aic.unit = device_get_unit(dev); sc->sc_aic.tag = rman_get_bustag(sc->sc_port); sc->sc_aic.bsh = rman_get_bushandle(sc->sc_port); diff --git a/sys/dev/aic/aic_isa.c b/sys/dev/aic/aic_isa.c index f5f96e8edf05..b80b3873363b 100644 --- a/sys/dev/aic/aic_isa.c +++ b/sys/dev/aic/aic_isa.c @@ -101,6 +101,7 @@ aic_isa_alloc_resources(device_t dev) } } + sc->sc_aic.dev = dev; sc->sc_aic.unit = device_get_unit(dev); sc->sc_aic.tag = rman_get_bustag(sc->sc_port); sc->sc_aic.bsh = rman_get_bushandle(sc->sc_port); diff --git a/sys/dev/aic/aic_pccard.c b/sys/dev/aic/aic_pccard.c index e4273c6537a7..400038814082 100644 --- a/sys/dev/aic/aic_pccard.c +++ b/sys/dev/aic/aic_pccard.c @@ -86,6 +86,7 @@ aic_pccard_alloc_resources(device_t dev) return (ENOMEM); } + sc->sc_aic.dev = dev; sc->sc_aic.unit = device_get_unit(dev); sc->sc_aic.tag = rman_get_bustag(sc->sc_port); sc->sc_aic.bsh = rman_get_bushandle(sc->sc_port); diff --git a/sys/dev/aic/aicvar.h b/sys/dev/aic/aicvar.h index d834fb64dda4..3bce66cb8508 100644 --- a/sys/dev/aic/aicvar.h +++ b/sys/dev/aic/aicvar.h @@ -69,6 +69,7 @@ struct aic_scb { enum { AIC6260, AIC6360, AIC6370, GM82C700 }; struct aic_softc { + device_t dev; int unit; bus_space_tag_t tag; bus_space_handle_t bsh; |
