mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 10:14:55 +00:00
Submitted by: Chip Salzenberg <chip@perlsupport.com>.
MFC after: 5 days - Mask GPCNTL against 0x1c (was 0xfc) for the reading of the NVRAM. This ensures LEDC bit will not be set on 896 and later chips. Submitted by Chip Salzenberg <chip@perlsupport.com>. - Add probe for Tekram 390 U2B/U2W SCSI (53C895) LED handling. Submitted by Chip Salzenberg <chip@valinux.com>
This commit is contained in:
parent
be1bf707c9
commit
0df908ab74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79042
|
@ -2930,7 +2930,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;
|
||||
|
||||
|
@ -10124,7 +10127,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);
|
||||
|
|
Loading…
Reference in a new issue