Define, and hook into the isa_chipset_tag_t, pcib_isa_detach_hook().

This commit is contained in:
dyoung 2009-08-19 15:17:00 +00:00
parent d4b4af5dc0
commit 22b3444c1e

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcib.c,v 1.20 2009/03/14 15:35:59 dsl Exp $ */
/* $NetBSD: pcib.c,v 1.21 2009/08/19 15:17:00 dyoung Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.20 2009/03/14 15:35:59 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.21 2009/08/19 15:17:00 dyoung Exp $");
#include "opt_algor_p5064.h"
#include "opt_algor_p6032.h"
@ -119,6 +119,7 @@ CFATTACH_DECL(pcib, sizeof(struct pcib_softc),
void pcib_isa_attach_hook(struct device *, struct device *,
struct isabus_attach_args *);
void pcib_isa_detach_hook(isa_chipset_tag_t, device_t);
int pcib_intr(void *);
@ -316,6 +317,7 @@ pcib_bridge_callback(struct device *self)
iba.iba_ic = &sc->sc_ic;
iba.iba_ic->ic_attach_hook = pcib_isa_attach_hook;
iba.iba_ic->ic_detach_hook = pcib_isa_detach_hook;
(void) config_found_ia(&sc->sc_dev, "isabus", &iba, isabusprint);
}
@ -328,6 +330,13 @@ pcib_isa_attach_hook(struct device *parent, struct device *self,
/* Nothing to do. */
}
void
pcib_isa_detach_hook(isa_chipset_tag_t ic, device_t self)
{
/* Nothing to do. */
}
void
pcib_set_icus(struct pcib_softc *sc)
{