summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-05-30 02:15:15 +0000
committerscottl <scottl@FreeBSD.org>2003-05-30 02:15:15 +0000
commit5c9b1bb6e8f055f2cd347b8a9fbd0f3936fef1ba (patch)
tree43ae70facbee1f548865aa42f0f0dd1fa4994963
parent1f90066cae0c3c54dfca75ab0c6b9c05fb1cac55 (diff)
downloadFreeBSD-src-5c9b1bb6e8f055f2cd347b8a9fbd0f3936fef1ba.zip
FreeBSD-src-5c9b1bb6e8f055f2cd347b8a9fbd0f3936fef1ba.tar.gz
aic79xx.c:
Use the special LUNLEN_SINGLE_LEVEL constant for post Rev A4 hardware for single byte luns. Without this change, Rev B hardware would place the single byte of lun data in byte 0 of the lun structure when it should be in byte 1. Since there are few if any devices on the market that support multiple luns in target mode, the corrupted lun field (which was only corrupted for non-zero luns) wasn't hurting us. Approved by: re (rwatson)
-rw-r--r--sys/dev/aic7xxx/aic79xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c
index b7243c8..e8b07be 100644
--- a/sys/dev/aic7xxx/aic79xx.c
+++ b/sys/dev/aic7xxx/aic79xx.c
@@ -37,7 +37,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#193 $
+ * $Id: aic79xx.c,v 1.16 2003/05/26 21:43:29 gibbs Exp $
*
* $FreeBSD$
*/
@@ -6174,7 +6174,7 @@ ahd_chip_init(struct ahd_softc *ahd)
ahd_outb(ahd, LUNLEN,
sizeof(ahd->next_queued_hscb->pkt_long_lun) - 1);
} else {
- ahd_outb(ahd, LUNLEN, sizeof(ahd->next_queued_hscb->lun) - 1);
+ ahd_outb(ahd, LUNLEN, LUNLEN_SINGLE_LEVEL_LUN);
}
ahd_outb(ahd, CDBLIMIT, SCB_CDB_LEN_PTR - 1);
ahd_outb(ahd, MAXCMD, 0xFF);
OpenPOWER on IntegriCloud