Disable fdctl_wr_foo. This feature is not supported by PC98.

This commit is contained in:
KATO Takenori 2000-03-23 08:50:56 +00:00
parent 25d654e785
commit aad7652706
2 changed files with 8 additions and 2 deletions

View File

@ -952,8 +952,9 @@ fdc_pccard_probe(device_t dev)
fdc = device_get_softc(dev);
bzero(fdc, sizeof *fdc);
fdc->fdc_dev = dev;
#ifndef PC98
fdc->fdctl_wr = fdctl_wr_pcmcia;
#endif
fdc->flags |= FDC_ISPCMCIA | FDC_NODMA;
/* Attempt to allocate our resources for the duration of the probe */
@ -961,10 +962,12 @@ fdc_pccard_probe(device_t dev)
if (error)
goto out;
#ifndef PC98
/* First - lets reset the floppy controller */
fdout_wr(fdc, 0);
DELAY(100);
fdout_wr(fdc, FDO_FRST);
#endif
/* see if it can handle a command */
if (fd_cmd(fdc, 3, NE7CMD_SPECIFY, NE7_SPEC_1(3, 240),

View File

@ -952,8 +952,9 @@ fdc_pccard_probe(device_t dev)
fdc = device_get_softc(dev);
bzero(fdc, sizeof *fdc);
fdc->fdc_dev = dev;
#ifndef PC98
fdc->fdctl_wr = fdctl_wr_pcmcia;
#endif
fdc->flags |= FDC_ISPCMCIA | FDC_NODMA;
/* Attempt to allocate our resources for the duration of the probe */
@ -961,10 +962,12 @@ fdc_pccard_probe(device_t dev)
if (error)
goto out;
#ifndef PC98
/* First - lets reset the floppy controller */
fdout_wr(fdc, 0);
DELAY(100);
fdout_wr(fdc, FDO_FRST);
#endif
/* see if it can handle a command */
if (fd_cmd(fdc, 3, NE7CMD_SPECIFY, NE7_SPEC_1(3, 240),