diff options
| author | Justin T. Gibbs <gibbs@FreeBSD.org> | 2000-09-20 04:46:15 +0000 |
|---|---|---|
| committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 2000-09-20 04:46:15 +0000 |
| commit | dfd86f14c05ffd25a25707a4d6696296553b1738 (patch) | |
| tree | 501eaa65652977245f845f97f780d1899ffb5907 | |
| parent | b1daa1b9db90baacab8a5d04ba07d2405e25f6a8 (diff) | |
Notes
| -rw-r--r-- | sys/dev/aic7xxx/aic7xxx_freebsd.c | 5 | ||||
| -rw-r--r-- | sys/dev/aic7xxx/aic7xxx_osm.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx_freebsd.c b/sys/dev/aic7xxx/aic7xxx_freebsd.c index c9c8f5a2fefd..98e14747a488 100644 --- a/sys/dev/aic7xxx/aic7xxx_freebsd.c +++ b/sys/dev/aic7xxx/aic7xxx_freebsd.c @@ -146,7 +146,8 @@ ahc_attach(struct ahc_softc *ahc) /* * Construct our first channel SIM entry */ - sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, ahc->unit, + sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, + device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim == NULL) { cam_simq_free(devq); @@ -178,7 +179,7 @@ ahc_attach(struct ahc_softc *ahc) if (ahc->features & AHC_TWIN) { sim2 = cam_sim_alloc(ahc_action, ahc_poll, "ahc", - ahc, ahc->unit, 1, + ahc, device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim2 == NULL) { diff --git a/sys/dev/aic7xxx/aic7xxx_osm.c b/sys/dev/aic7xxx/aic7xxx_osm.c index c9c8f5a2fefd..98e14747a488 100644 --- a/sys/dev/aic7xxx/aic7xxx_osm.c +++ b/sys/dev/aic7xxx/aic7xxx_osm.c @@ -146,7 +146,8 @@ ahc_attach(struct ahc_softc *ahc) /* * Construct our first channel SIM entry */ - sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, ahc->unit, + sim = cam_sim_alloc(ahc_action, ahc_poll, "ahc", ahc, + device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim == NULL) { cam_simq_free(devq); @@ -178,7 +179,7 @@ ahc_attach(struct ahc_softc *ahc) if (ahc->features & AHC_TWIN) { sim2 = cam_sim_alloc(ahc_action, ahc_poll, "ahc", - ahc, ahc->unit, 1, + ahc, device_get_unit(ahc->dev_softc), 1, AHC_SCB_MAX, devq); if (sim2 == NULL) { |
