Define, and hook into the isa_chipset_tag_t, isabr_detach_hook().
This commit is contained in:
parent
5619bf1cbb
commit
d4b4af5dc0
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: isabus.c,v 1.44 2008/07/05 08:46:25 tsutsui Exp $ */
|
||||
/* $NetBSD: isabus.c,v 1.45 2009/08/19 15:16:09 dyoung Exp $ */
|
||||
/* $OpenBSD: isabus.c,v 1.15 1998/03/16 09:38:46 pefo Exp $ */
|
||||
/* NetBSD: isa.c,v 1.33 1995/06/28 04:30:51 cgd Exp */
|
||||
|
||||
@ -120,7 +120,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.44 2008/07/05 08:46:25 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.45 2009/08/19 15:16:09 dyoung Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
@ -166,6 +166,7 @@ extern struct arc_bus_space arc_bus_io, arc_bus_mem;
|
||||
|
||||
static void isabr_attach_hook(device_t , device_t,
|
||||
struct isabus_attach_args *);
|
||||
static void isabr_detach_hook(isa_chipset_tag_t, device_t);
|
||||
static const struct evcnt *isabr_intr_evcnt(isa_chipset_tag_t, int);
|
||||
static void *isabr_intr_establish(isa_chipset_tag_t, int, int, int,
|
||||
int (*)(void *), void *);
|
||||
@ -193,6 +194,7 @@ isabrattach(struct isabr_softc *sc)
|
||||
isabr_initicu();
|
||||
|
||||
sc->arc_isa_cs.ic_attach_hook = isabr_attach_hook;
|
||||
sc->arc_isa_cs.ic_detach_hook = isabr_detach_hook;
|
||||
sc->arc_isa_cs.ic_intr_evcnt = isabr_intr_evcnt;
|
||||
sc->arc_isa_cs.ic_intr_establish = isabr_intr_establish;
|
||||
sc->arc_isa_cs.ic_intr_disestablish = isabr_intr_disestablish;
|
||||
@ -314,6 +316,13 @@ isabr_attach_hook(struct device *parent, struct device *self,
|
||||
/* Nothing to do. */
|
||||
}
|
||||
|
||||
static void
|
||||
isabr_detach_hook(isa_chipset_tag_t ic, device_t self)
|
||||
{
|
||||
|
||||
/* Nothing to do. */
|
||||
}
|
||||
|
||||
static const struct evcnt *
|
||||
isabr_intr_evcnt(isa_chipset_tag_t ic, int irq)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user