diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-01-15 05:50:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-01-15 05:50:45 +0000 |
commit | db62dea4a0e7fe4ea1cd296e357d0154db4a280f (patch) | |
tree | 844ce5eb80eca4c1b915a028d777c50f6a93afb6 /sys/dev/ic | |
parent | 38a0537c79c088049ded09e18103dfbdd179f900 (diff) |
sc_link.adapter_buswidth, set to 16 if wide scsi. if 0 it gets converted
to 8 internally so that drivers do not need to init it for regular scsi :-)
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/aic7xxx.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ic/aic7xxx.c b/sys/dev/ic/aic7xxx.c index bbc7d26d7a2..ec8a51fe60a 100644 --- a/sys/dev/ic/aic7xxx.c +++ b/sys/dev/ic/aic7xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic7xxx.c,v 1.14 1996/11/28 23:27:43 niklas Exp $ */ +/* $OpenBSD: aic7xxx.c,v 1.15 1997/01/15 05:50:38 deraadt Exp $ */ /* $NetBSD: aic7xxx.c,v 1.17 1996/10/21 22:34:04 thorpej Exp $ */ /* @@ -651,6 +651,10 @@ ahc_attach(ahc) ahc->sc_link.fordriver = 0; #elif defined(__NetBSD__) || defined(__OpenBSD__) ahc->sc_link.adapter_target = ahc->our_id; +#ifdef __OpenBSD__ + if(ahc->type & AHC_WIDE) + ahc->sc_link.adapter_buswidth = 16; +#endif #ifndef __OpenBSD__ ahc->sc_link.channel = 0; #endif @@ -674,6 +678,10 @@ ahc_attach(ahc) ahc->sc_link_b.fordriver = (void *)SELBUSB; #elif defined(__NetBSD__) || defined(__OpenBSD__) ahc->sc_link_b.adapter_target = ahc->our_id_b; +#ifdef __OpenBSD__ + if(ahc->type & AHC_WIDE) + ahc->sc_link.adapter_buswidth = 16; +#endif #ifndef __OpenBSD__ ahc->sc_link_b.channel = 1; #endif |