mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
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
This commit is contained in:
parent
2cc6cfc63f
commit
b0a07322f5
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue