diff options
author | kato <kato@FreeBSD.org> | 1999-03-25 08:29:32 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1999-03-25 08:29:32 +0000 |
commit | e6546aa8258cf224b6e2e77259f9817646f12d02 (patch) | |
tree | b0fd181b7003a5a21eafbac9f2672501c0ed026e /sys/pc98 | |
parent | 0e4fc6bc80ec90618073e145101ef71c43926249 (diff) | |
download | FreeBSD-src-e6546aa8258cf224b6e2e77259f9817646f12d02.zip FreeBSD-src-e6546aa8258cf224b6e2e77259f9817646f12d02.tar.gz |
Sync with sys/i386/isa/wd.c revision 1.190.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/wd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c index 630b1d7..f2ac510 100644 --- a/sys/pc98/pc98/wd.c +++ b/sys/pc98/pc98/wd.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.74 1999/02/10 00:03:59 ken Exp $ + * $Id: wd.c,v 1.75 1999/02/25 11:08:53 kato Exp $ */ /* TODO: @@ -379,6 +379,7 @@ wdprobe(struct isa_device *dvp) if (inb(du->dk_port + wd_cyl_lo) == 0xff) { /* XXX too weak */ #ifdef ATAPI /* There is no master, try the ATAPI slave. */ + du->dk_unit = 1; outb(du->dk_port + wd_sdh, WDSD_IBM | 0x10); outb(du->dk_port + wd_cyl_lo, 0xa5); if (inb(du->dk_port + wd_cyl_lo) == 0xff) @@ -2565,8 +2566,9 @@ wdreset(struct disk *du) outb(du->dk_altport, WDCTL_IDS | WDCTL_RST); DELAY(10 * 1000); outb(du->dk_altport, WDCTL_IDS); + outb(du->dk_port + wd_sdh, WDSD_IBM | (du->dk_unit << 4)); #ifdef ATAPI - if (wdwait(du, WDCS_READY | WDCS_SEEKCMPLT, TIMEOUT) != 0) + if (wdwait(du, 0, TIMEOUT) != 0) err = 1; /* no IDE drive found */ du->dk_error = inb(du->dk_port + wd_error); if (du->dk_error != 0x01) |