aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKATO Takenori <kato@FreeBSD.org>1997-01-17 16:58:38 +0000
committerKATO Takenori <kato@FreeBSD.org>1997-01-17 16:58:38 +0000
commitb2f4ff0875c2760eb9a52fcbb760da3d2c67781f (patch)
tree31aa8488e447985dcd3d80e7a27b4f9cab2aa466 /sys
parent135c95a58297753db2ae56a95840175411efd5b6 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/atapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/isa/atapi.c b/sys/i386/isa/atapi.c
index 2445dcb98a8f..8d0b43aa95bd 100644
--- a/sys/i386/isa/atapi.c
+++ b/sys/i386/isa/atapi.c
@@ -365,7 +365,11 @@ static struct atapi_params *atapi_probe (int port, int unit)
print(("unit = %d,select %d\n",unit,unit%2));
#endif
/* Wait for controller not busy. */
+#ifdef PC98
+ outb (port + AR_DRIVE, unit / 2 ? ARD_DRIVE1 : ARD_DRIVE0);
+#else
outb (port + AR_DRIVE, unit ? ARD_DRIVE1 : ARD_DRIVE0);
+#endif
if (atapi_wait (port, 0) < 0) {
print (("atapiX.%d at 0x%x: controller busy, status=%b\n",
unit, port, inb (port + AR_STATUS), ARS_BITS));