summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-16 13:41:12 +0000
committerphk <phk@FreeBSD.org>2002-10-16 13:41:12 +0000
commit6dec6a19baa7759402451fa076be28cc26359333 (patch)
treea1477cf3ef975a2282c80434b2665dcd12e55104
parent538d4730c4df43cba9ebede36582cc0f65572b8b (diff)
downloadFreeBSD-src-6dec6a19baa7759402451fa076be28cc26359333.zip
FreeBSD-src-6dec6a19baa7759402451fa076be28cc26359333.tar.gz
Unbreak the PC98/wd(4) driver which I accidentally broke with a previous
commit. I can fully understand why the PC98 crew desire ata(4) support. Tested by: nyan
-rw-r--r--sys/pc98/pc98/wd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pc98/pc98/wd.c b/sys/pc98/pc98/wd.c
index a74ad8b..d898259 100644
--- a/sys/pc98/pc98/wd.c
+++ b/sys/pc98/pc98/wd.c
@@ -601,7 +601,7 @@ wdattach(struct isa_device *dvp)
*/
dev = disk_create(lunit, &du->disk, 0, &wd_cdevsw,
&wddisk_cdevsw);
- dev->si_drv1 = &wddrives[lunit];
+ dev->si_drv1 = du;
} else {
free(du, M_TEMP);
@@ -659,7 +659,7 @@ wdstrategy(register struct bio *bp)
bp->bio_flags |= BIO_ERROR;
goto done;
}
- lunit = du->dk_unit;
+ lunit = du->dk_lunit;
#ifdef PC98
outb(0x432,(du->dk_unit)%2);
@@ -773,7 +773,7 @@ wdstart(int ctrlr)
/* obtain controller and drive information */
du = bp->bio_dev->si_drv1;
- lunit = du->dk_unit;
+ lunit = du->dk_lunit;
#ifdef PC98
outb(0x432,(du->dk_unit)%2);
OpenPOWER on IntegriCloud