summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc/fdc_isa.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-09-17 18:50:38 +0000
committerimp <imp@FreeBSD.org>2004-09-17 18:50:38 +0000
commit3f2f99f7d2a1ab5fe9473bf348ac8110afa27006 (patch)
tree465e6c9c745833f92e06577dc4b9627dbd400dd1 /sys/dev/fdc/fdc_isa.c
parent566c62aad22c4961d5511b9cf1954d16e2621bf7 (diff)
downloadFreeBSD-src-3f2f99f7d2a1ab5fe9473bf348ac8110afa27006.zip
FreeBSD-src-3f2f99f7d2a1ab5fe9473bf348ac8110afa27006.tar.gz
The long dead hand of the past has pushed forward useless bits in this
driver. Trim its fingernails by removing some useless bits before fixing the 'thread not terminated on detach' problem. o dmacnt is no longer used now that we allocate at attach time. Remove it from struct fdc_data. o ISPNP was only ever set, but never tested. It used to be used for the allocation routines to change how it allocated resources. Since that's no longer necessary, retire the flag. o ISPCMICA was only ever tested, but never set. GC it. This removes a special case in determining the drive type. The drive type is now set in fdc_pcmcia.c, so the hack isn't needed anymore. Sadly, this isn't tested with a Y-E Data pcmcia floppy drive because there are a number of other issues that preclude it from working. o Fix ifdef for reading from the rtc. I'm of the opinion that this ifdef should be moved into fdc_isa.c, but not today as ideally there'd be other fixes to the probing of children. So now we just read it on i386 ! pc98 (there's no #define for MACHINE_ARCH, just MACHINE, hence this slightly inelegant kludge) and amd64. The PC98 exclusion likely isn't meaningful since pc98 uses a different driver, but will be when merging of the pc98 floppy code into this driver is complete (this is the other reason I think this block of code belongs outside fdc.c). All of these changes are safe to MT5.
Diffstat (limited to 'sys/dev/fdc/fdc_isa.c')
-rw-r--r--sys/dev/fdc/fdc_isa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/fdc/fdc_isa.c b/sys/dev/fdc/fdc_isa.c
index 1d04a81..b912771 100644
--- a/sys/dev/fdc/fdc_isa.c
+++ b/sys/dev/fdc/fdc_isa.c
@@ -197,10 +197,6 @@ fdc_isa_attach(device_t dev)
int error;
fdc = device_get_softc(dev);
- error = ISA_PNP_PROBE(device_get_parent(dev), dev, fdc_ids);
- if (error == 0)
- fdc->flags |= FDC_ISPNP;
-
error = fdc_isa_alloc_resources(dev, fdc);
if (error == 0)
error = fdc_attach(dev);
OpenPOWER on IntegriCloud