summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-10-28 02:38:36 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-10-28 02:38:36 +0000
commitfc70a4f648245ad32ff12e28c3517822676e7325 (patch)
tree209b9bed2dd9eb223e969f3bfc38239a64418cdb /sys
parentbc9e7efe61ad03ce628750eea5b31b85dbc7698a (diff)
downloadFreeBSD-src-fc70a4f648245ad32ff12e28c3517822676e7325.zip
FreeBSD-src-fc70a4f648245ad32ff12e28c3517822676e7325.tar.gz
Fix for 1542C support, it turns out that the 0x8 extended bios flag is only
set when extended translation is turned on, thus we need to do the mailbox unlock command no matter what value is in the extended bios flag byte as the other extensions (ie, > 2 drive support) cause the same problems. The code has been changed to ALWAYS unlock the mailbox interface on ALL 1542C class boards.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/aha1542.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/i386/isa/aha1542.c b/sys/i386/isa/aha1542.c
index 1a1ae56..5aedbc3 100644
--- a/sys/i386/isa/aha1542.c
+++ b/sys/i386/isa/aha1542.c
@@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
- * $Id: aha1542.c,v 1.11 1993/10/15 09:43:51 rgrimes Exp $
+ * $Id: aha1542.c,v 1.12 1993/10/16 12:27:20 rgrimes Exp $
*/
/*
@@ -954,19 +954,19 @@ int unit;
unit);
}
/*
- * If we are on a 1542C or 1542CF find out if the extended bios
- * is enabled, if it is disable it, or else it will screw us up later
+ * If we are a 1542C or 1542CF disable the extended bios so that the
+ * mailbox interface is unlocked.
+ * No need to check the extended bios flags as some of the
+ * extensions that cause us problems are not flagged in that byte.
*/
if ((inquire.boardid == 0x43) || (inquire.boardid == 0x44)) {
aha_cmd(unit, 0, sizeof(extbios), 0, &extbios, AHA_EXT_BIOS);
#ifdef AHADEBUG
printf("aha%d: extended bios flags %x\n", unit, extbios.flags);
#endif /* AHADEBUG */
- if (extbios.flags & 0x8) {
- printf("aha%d: disabling bios enhanced features\n");
- aha_cmd(unit, 2, 0, 0, 0, AHA_MBX_ENABLE,
- 0, extbios.mailboxlock);
- }
+ printf("aha%d: 1542C/CF detected, unlocking mailbox\n");
+ aha_cmd(unit, 2, 0, 0, 0, AHA_MBX_ENABLE,
+ 0, extbios.mailboxlock);
}
/***********************************************\
* Setup dma channel from jumpers and save int *
OpenPOWER on IntegriCloud