Remove the `delay port' stuff since nothing uses it anymore (can't reliably
use it on modern chipsets).
This commit is contained in:
parent
51b0ae9977
commit
8c1b46c2f5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isa.c,v 1.98 1998/01/12 09:43:41 thorpej Exp $ */
|
||||
/* $NetBSD: isa.c,v 1.99 1998/04/15 01:44:23 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994 Charles Hannum. All rights reserved.
|
||||
|
@ -119,14 +119,6 @@ isaattach(parent, self, aux)
|
|||
if (bus_space_map(sc->sc_iot, IO_DMAPG, 0xf, 0, &sc->sc_dmapgh))
|
||||
panic("isaattach: can't map DMA page registers");
|
||||
|
||||
/*
|
||||
* Map port 0x84, which causes a 1.25us delay when read.
|
||||
* We do this now, since several drivers need it.
|
||||
*/
|
||||
if (bus_space_subregion(sc->sc_iot, sc->sc_dmapgh, 0x04, 1,
|
||||
&sc->sc_delaybah))
|
||||
panic("isaattach: can't map `delay port'"); /* XXX */
|
||||
|
||||
TAILQ_INIT(&sc->sc_subdevs);
|
||||
#ifdef __BROKEN_INDIRECT_CONFIG
|
||||
config_scan(isascan, self);
|
||||
|
@ -186,7 +178,6 @@ isascan(parent, match)
|
|||
ia.ia_irq = cf->cf_irq == 2 ? 9 : cf->cf_irq;
|
||||
ia.ia_drq = cf->cf_drq;
|
||||
ia.ia_drq2 = cf->cf_drq2;
|
||||
ia.ia_delaybah = sc->sc_delaybah;
|
||||
|
||||
if ((*cf->cf_attach->ca_match)(parent, match, &ia) > 0)
|
||||
config_attach(parent, match, &ia, isaprint);
|
||||
|
@ -216,7 +207,6 @@ isasearch(parent, cf, aux)
|
|||
ia.ia_irq = cf->cf_irq == 2 ? 9 : cf->cf_irq;
|
||||
ia.ia_drq = cf->cf_drq;
|
||||
ia.ia_drq2 = cf->cf_drq2;
|
||||
ia.ia_delaybah = sc->sc_delaybah;
|
||||
|
||||
tryagain = 0;
|
||||
if ((*cf->cf_attach->ca_match)(parent, cf, &ia) > 0) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: isavar.h,v 1.31 1998/02/17 18:27:10 cgd Exp $ */
|
||||
/* $NetBSD: isavar.h,v 1.32 1998/04/15 01:44:23 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -136,8 +136,6 @@ struct isa_attach_args {
|
|||
int ia_maddr; /* physical i/o mem addr */
|
||||
u_int ia_msize; /* size of i/o memory */
|
||||
void *ia_aux; /* driver specific */
|
||||
|
||||
bus_space_handle_t ia_delaybah; /* i/o handle for `delay port' */
|
||||
};
|
||||
|
||||
#include "locators.h"
|
||||
|
@ -188,14 +186,6 @@ struct isa_softc {
|
|||
|
||||
int sc_dmareads; /* state for isa_dmadone() */
|
||||
int sc_dmafinished; /* DMA completion state */
|
||||
|
||||
/*
|
||||
* This i/o handle is used to map port 0x84, which is
|
||||
* read to provide a 1.25us delay. This access handle
|
||||
* is mapped in isaattach(), and exported to drivers
|
||||
* via isa_attach_args.
|
||||
*/
|
||||
bus_space_handle_t sc_delaybah;
|
||||
};
|
||||
|
||||
#define ISA_DRQ_ISFREE(isadev, drq) \
|
||||
|
|
Loading…
Reference in New Issue