summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1997-01-29 05:28:21 +0000
committergibbs <gibbs@FreeBSD.org>1997-01-29 05:28:21 +0000
commitd0c49608ac9d59e316c08d450be987ac064fb001 (patch)
tree3058295380344e341bae2d52e5b241f003f0875a /sys
parentd9c03f77e06a3518e526f26e6341c50ea579f2aa (diff)
downloadFreeBSD-src-d0c49608ac9d59e316c08d450be987ac064fb001.zip
FreeBSD-src-d0c49608ac9d59e316c08d450be987ac064fb001.tar.gz
Add 1997 to my copyright.
Change the autotermination code slightly to be more careful on narrow adapters.
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/aic7870.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/pci/aic7870.c b/sys/pci/aic7870.c
index 49eaad6..b9fd90e 100644
--- a/sys/pci/aic7870.c
+++ b/sys/pci/aic7870.c
@@ -2,7 +2,7 @@
* Product specific probe and attach routines for:
* 3940, 2940, aic7880, aic7870, aic7860 and aic7850 SCSI controllers
*
- * Copyright (c) 1995, 1996 Justin T. Gibbs.
+ * Copyright (c) 1995, 1996, 1997 Justin T. Gibbs.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -793,7 +793,8 @@ load_seeprom(ahc, sxfrctl1)
*/
brdctl = read_brdctl(ahc);
internal50_present = !(brdctl & BRDDAT6);
- internal68_present = !(brdctl & BRDDAT7);
+ internal68_present = !(brdctl & BRDDAT7)
+ && (max_targ > 8);
if (bootverbose) {
printf("internal50 cable %s present\n"
"internal68 cable %s present\n"
@@ -818,7 +819,7 @@ load_seeprom(ahc, sxfrctl1)
external68_present = !(brdctl & BRDDAT6);
eprom_present = brdctl & BRDDAT7;
if (bootverbose) {
- printf("external68 %s present\n"
+ printf("external cable %s present\n"
"eprom %s present\n"
"brdctl == 0x%x\n",
external68_present ? "is":"not",
@@ -833,8 +834,9 @@ load_seeprom(ahc, sxfrctl1)
*/
high_on = FALSE;
low_on = FALSE;
- if ((external68_present == 0)
- || (internal68_present == 0))
+ if ((max_targ > 8)
+ && ((external68_present == 0)
+ || (internal68_present == 0)))
high_on = TRUE;
if (((internal50_present ? 1 : 0)
OpenPOWER on IntegriCloud