diff --git a/sys/arch/i386/bios/vesabios.h b/sys/arch/i386/bios/vesabios.h index 6185750fb845..e982f4eb233e 100644 --- a/sys/arch/i386/bios/vesabios.h +++ b/sys/arch/i386/bios/vesabios.h @@ -1,13 +1,9 @@ -/* $NetBSD: vesabios.h,v 1.3 2005/02/03 20:24:25 perry Exp $ */ +/* $NetBSD: vesabios.h,v 1.4 2005/06/01 16:49:14 drochner Exp $ */ int vbeprobe(void); -struct vesabios_attach_args { - char *vaa_busname; -}; - struct vesabiosdev_attach_args { - char *vbaa_type; + const char *vbaa_type; int *vbaa_modes; int vbaa_nmodes; }; diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index 82b252365a49..a58567ee9480 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $NetBSD: apm.c,v 1.86 2005/05/31 21:47:22 drochner Exp $ */ +/* $NetBSD: apm.c,v 1.87 2005/06/01 16:49:14 drochner Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.86 2005/05/31 21:47:22 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.87 2005/06/01 16:49:14 drochner Exp $"); #include "apm.h" #if NAPM > 1 @@ -1105,15 +1105,6 @@ apmmatch(parent, match, aux) return (apm_enabled); } -int -apmbus_print(void *aux, const char *pnp) -{ - - if (pnp) - aprint_normal("apm at %s", pnp); - return (UNCONF); -} - #define DPRINTF_BIOSRETURN(regs, bits) \ DPRINTF(APMDEBUG_ATTACH, \ ("bioscall return: %x %x %x %x %s %x %x", \ diff --git a/sys/arch/i386/i386/mainbus.c b/sys/arch/i386/i386/mainbus.c index f8caea101fcb..a75723d704cc 100644 --- a/sys/arch/i386/i386/mainbus.c +++ b/sys/arch/i386/i386/mainbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: mainbus.c,v 1.56 2005/05/31 22:39:08 drochner Exp $ */ +/* $NetBSD: mainbus.c,v 1.57 2005/06/01 16:49:14 drochner Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.56 2005/05/31 22:39:08 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.57 2005/06/01 16:49:14 drochner Exp $"); #include #include @@ -109,9 +109,6 @@ union mainbus_attach_args { #if NACPI > 0 struct acpibus_attach_args mba_acpi; #endif -#if NVESABIOS > 0 - struct vesabios_attach_args mba_vba; -#endif }; /* @@ -227,10 +224,8 @@ mainbus_attach(parent, self, aux) } #if NVESABIOS > 0 - if (vbeprobe()) { - mba.mba_vba.vaa_busname = "vesabios"; - config_found_ia(self, "vesabiosbus", &mba.mba_vba, mainbus_print); - } + if (vbeprobe()) + config_found_ia(self, "vesabiosbus", 0, 0); #endif #if NISADMA > 0 && (NACPI > 0 || NPNPBIOS > 0) @@ -243,7 +238,6 @@ mainbus_attach(parent, self, aux) #if NACPI > 0 if (acpi_present) { - mba.mba_acpi.aa_busname = "acpi"; mba.mba_acpi.aa_iot = X86_BUS_SPACE_IO; mba.mba_acpi.aa_memt = X86_BUS_SPACE_MEM; mba.mba_acpi.aa_pc = NULL; @@ -252,7 +246,7 @@ mainbus_attach(parent, self, aux) PCI_FLAGS_MRL_OKAY | PCI_FLAGS_MRM_OKAY | PCI_FLAGS_MWI_OKAY; mba.mba_acpi.aa_ic = &x86_isa_chipset; - config_found_ia(self, "acpibus", &mba.mba_acpi, mainbus_print); + config_found_ia(self, "acpibus", &mba.mba_acpi, 0); #if 0 /* XXXJRT not yet */ if (acpi_active) { /* @@ -271,7 +265,7 @@ mainbus_attach(parent, self, aux) #endif if (pnpbios_probe()) { mba.mba_paa.paa_ic = &x86_isa_chipset; - config_found_ia(self, "pnpbiosbus", &mba.mba_paa, pnpbiosbusprint); + config_found_ia(self, "pnpbiosbus", &mba.mba_paa, 0); } #endif @@ -337,7 +331,7 @@ mainbus_attach(parent, self, aux) if (acpi_active == 0) #endif if (apm_busprobe()) - config_found_ia(self, "apmbus", 0, apmbus_print); + config_found_ia(self, "apmbus", 0, 0); #endif } diff --git a/sys/arch/i386/include/apmvar.h b/sys/arch/i386/include/apmvar.h index 947cead0c9ff..b3e6c83b60dc 100644 --- a/sys/arch/i386/include/apmvar.h +++ b/sys/arch/i386/include/apmvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: apmvar.h,v 1.21 2005/05/31 21:47:22 drochner Exp $ */ +/* $NetBSD: apmvar.h,v 1.22 2005/06/01 16:49:14 drochner Exp $ */ /*- * Copyright (c) 1995 The NetBSD Foundation, Inc. * All rights reserved. @@ -75,7 +75,6 @@ void apm_cpu_idle(void); void apminit(void); int apm_set_powstate(u_int devid, u_int powstate); int apm_busprobe(void); -int apmbus_print(void *, const char *); #endif /* _KERNEL */ #endif /* _LOCORE */ #endif /* __i386_apm_h__ */ diff --git a/sys/arch/i386/pnpbios/pnpbios.c b/sys/arch/i386/pnpbios/pnpbios.c index 27fb2c230465..05397aae137c 100644 --- a/sys/arch/i386/pnpbios/pnpbios.c +++ b/sys/arch/i386/pnpbios/pnpbios.c @@ -1,4 +1,4 @@ -/* $NetBSD: pnpbios.c,v 1.48 2005/05/31 22:39:08 drochner Exp $ */ +/* $NetBSD: pnpbios.c,v 1.49 2005/06/01 16:49:14 drochner Exp $ */ /* * Copyright (c) 2000 Jason R. Thorpe. All rights reserved. @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pnpbios.c,v 1.48 2005/05/31 22:39:08 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pnpbios.c,v 1.49 2005/06/01 16:49:14 drochner Exp $"); #include #include @@ -131,7 +131,6 @@ static int pnpbios_match(struct device *, struct cfdata *, void *); static void pnpbios_attach(struct device *, struct device *, void *); -int pnpbiosbusprint(void *, const char *); static void pnpbios_printres(struct pnpresources *); static int pnpbios_print(void *aux, const char *); static void pnpbios_id_to_string(u_int32_t, char *); @@ -258,15 +257,6 @@ pnpbios_match(struct device *parent, struct cfdata *match, void *aux) return (pnpbios_enabled); } -int -pnpbiosbusprint(void *aux, const char *pnp) -{ - - if (pnp) - aprint_normal("pnpbios at %s",pnp); - return (UNCONF); -} - static caddr_t pnpbios_mapit(u_long addr, u_long len, int prot) { diff --git a/sys/arch/i386/pnpbios/pnpbiosvar.h b/sys/arch/i386/pnpbios/pnpbiosvar.h index 9afaaaca3533..93c4ded843f7 100644 --- a/sys/arch/i386/pnpbios/pnpbiosvar.h +++ b/sys/arch/i386/pnpbios/pnpbiosvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: pnpbiosvar.h,v 1.7 2005/05/31 22:39:08 drochner Exp $ */ +/* $NetBSD: pnpbiosvar.h,v 1.8 2005/06/01 16:49:14 drochner Exp $ */ /* * Copyright (c) 1999 * Matthias Drochner. All rights reserved. @@ -84,7 +84,6 @@ struct pnpbiosdev_attach_args { char *primid; }; -int pnpbiosbusprint(void *aux, const char *pnp); int pnpbios_io_map(pnpbios_tag_t, struct pnpresources *, int, bus_space_tag_t *, bus_space_handle_t *); void pnpbios_io_unmap(pnpbios_tag_t, struct pnpresources *, int,