diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-16 21:18:32 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-16 21:18:32 +0000 |
commit | 55bed41956fd54a23882af6ea9c5e9e3c20480a1 (patch) | |
tree | 72600dd1e2454e0de6339db57bc4d99e1dfa5356 /sys/dev/ic/aic79xx_openbsd.c | |
parent | 86a6905da6200248b7428132fc88b96cac17e020 (diff) |
Access adapter softc via link->bus->sb_adapter_softc.
In sparc64 autoconf access 'luns' via sb_luns and 'adapter_buswidth'
via sb_adapter_buswidth.
Removes last post-config uses of the copies of bus related
information in scsi_link.
Diffstat (limited to 'sys/dev/ic/aic79xx_openbsd.c')
-rw-r--r-- | sys/dev/ic/aic79xx_openbsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c index aeae89394e7..e7a87416bad 100644 --- a/sys/dev/ic/aic79xx_openbsd.c +++ b/sys/dev/ic/aic79xx_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic79xx_openbsd.c,v 1.54 2020/07/13 13:43:31 krw Exp $ */ +/* $OpenBSD: aic79xx_openbsd.c,v 1.55 2020/07/16 21:18:30 krw Exp $ */ /* * Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom @@ -257,7 +257,7 @@ ahd_action(struct scsi_xfer *xs) u_int16_t quirks; SC_DEBUG(xs->sc_link, SDEV_DB3, ("ahd_action\n")); - ahd = xs->sc_link->adapter_softc; + ahd = xs->sc_link->bus->sb_adapter_softc; target_id = xs->sc_link->target; our_id = SCSI_SCSI_ID(ahd, xs->sc_link); @@ -322,7 +322,7 @@ ahd_execute_scb(void *arg, bus_dma_segment_t *dm_segs, int nsegments) xs = scb->xs; xs->error = CAM_REQ_INPROG; xs->status = 0; - ahd = xs->sc_link->adapter_softc; + ahd = xs->sc_link->bus->sb_adapter_softc; if (nsegments != 0) { void *sg; |