summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerard Roudier <groudier@FreeBSD.org>2001-07-08 20:04:04 +0000
committerGerard Roudier <groudier@FreeBSD.org>2001-07-08 20:04:04 +0000
commitbaabe56244d4b11ed0e592488aebb60edfede66c (patch)
tree615658ee88cc88734ebf8033087aa71a6977c567
parent8b079f95212d3c3161bce4794ff8e5fbdb6846ec (diff)
Notes
-rw-r--r--sys/dev/sym/sym_hipd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index 7c807c38e2d0..7fcd89b0d646 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -2932,7 +2932,10 @@ static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram)
* specific GPIO wiring and for the 895A, 896
* and 1010 that drive the LED directly.
*/
- if ((SYM_SETUP_SCSI_LED || nvram->type == SYM_SYMBIOS_NVRAM) &&
+ if ((SYM_SETUP_SCSI_LED ||
+ (nvram->type == SYM_SYMBIOS_NVRAM ||
+ (nvram->type == SYM_TEKRAM_NVRAM &&
+ np->device_id == PCI_ID_SYM53C895))) &&
!(np->features & FE_LEDC) && !(np->sv_gpcntl & 0x01))
np->features |= FE_LED0;
@@ -10125,7 +10128,7 @@ static int sym_read_S24C16_nvram (hcb_p np, int offset, u_char *data, int len)
/* save current state of GPCNTL and GPREG */
old_gpreg = INB (nc_gpreg);
old_gpcntl = INB (nc_gpcntl);
- gpcntl = old_gpcntl & 0xfc;
+ gpcntl = old_gpcntl & 0x1c;
/* set up GPREG & GPCNTL to set GPIO0 and GPIO1 in to known state */
OUTB (nc_gpreg, old_gpreg);