Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-cfargs]: src/sys/sys config_found_ia() -> config_found() w/ CFAR...
details: https://anonhg.NetBSD.org/src/rev/7caaa2f22c41
branches: thorpej-cfargs
changeset: 960486:7caaa2f22c41
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Apr 02 22:17:37 2021 +0000
description:
config_found_ia() -> config_found() w/ CFARG_IATTR.
diffstat:
sys/arch/alpha/jensenio/jensenio.c | 12 +++-
sys/arch/alpha/pci/irongate.c | 12 +++-
sys/arch/alpha/pci/sio.c | 13 +++-
sys/arch/alpha/pci/ttwoga.c | 13 +++-
sys/arch/amd64/amd64/amd64_mainbus.c | 21 +++++--
sys/arch/amiga/pci/empb.c | 10 ++-
sys/arch/arc/isa/isabus.c | 8 +-
sys/arch/arm/acpi/acpi_machdep.c | 16 ++++-
sys/arch/arm/at91/at91pio.c | 10 ++-
sys/arch/arm/ep93xx/epgpio.c | 8 +-
sys/arch/arm/footbridge/footbridge.c | 12 +++-
sys/arch/arm/gemini/gemini_obio.c | 8 +-
sys/arch/arm/gemini/obio_lpchc.c | 8 +-
sys/arch/arm/nvidia/tegra_drm_fb.c | 8 +-
sys/arch/arm/rockchip/rk_drm.c | 8 +-
sys/arch/arm/sunxi/sunxi_drm.c | 8 +-
sys/arch/arm/ti/ti_lcdc.c | 8 +-
sys/arch/arm/xscale/i80312.c | 12 +++-
sys/arch/arm/xscale/i80321.c | 13 +++-
sys/arch/arm/xscale/ixp425.c | 8 +-
sys/arch/bebox/bebox/mainbus.c | 16 ++++-
sys/arch/evbarm/ifpga/ifpga.c | 8 +-
sys/arch/evbarm/tsarm/tspld.c | 8 +-
sys/arch/evbmips/adm5120/mainbus.c | 8 +-
sys/arch/evbppc/virtex/autoconf.c | 6 +-
sys/arch/evbppc/virtex/design_gsrd1.c | 8 +-
sys/arch/evbppc/virtex/design_gsrd2.c | 8 +-
sys/arch/hp300/dev/dnkbd.c | 12 ++-
sys/arch/hpcarm/dev/j720tp.c | 14 +++--
sys/arch/hpcmips/hpcmips/mainbus.c | 8 +-
sys/arch/hpcsh/dev/j6x0tp.c | 14 +++--
sys/arch/hpcsh/hpcsh/mainbus.c | 14 +++-
sys/arch/hppa/dev/dino.c | 8 +-
sys/arch/hppa/dev/mongoose.c | 12 +++-
sys/arch/i386/i386/i386_mainbus.c | 39 +++++++++-----
sys/arch/i386/pci/elan520.c | 23 +++++---
sys/arch/i386/pci/pceb.c | 12 +++-
sys/arch/i386/pci/viapcib.c | 8 +-
sys/arch/ia64/ia64/mainbus.c | 12 +++-
sys/arch/ibmnws/ibmnws/mainbus.c | 14 +++-
sys/arch/luna68k/dev/lunaws.c | 13 +++-
sys/arch/macppc/dev/cuda.c | 13 +++-
sys/arch/macppc/dev/ofb.c | 8 +-
sys/arch/macppc/dev/pmu.c | 22 +++++---
sys/arch/mips/adm5120/dev/admgpio.c | 8 +-
sys/arch/mips/adm5120/dev/admpci.c | 8 +-
sys/arch/mips/alchemy/dev/auspi.c | 6 +-
sys/arch/mips/cavium/dev/octeon_mpi.c | 8 +-
sys/arch/mips/rmi/rmixl_pcie.c | 6 +-
sys/arch/mips/rmi/rmixl_pcix.c | 6 +-
sys/arch/mvmeppc/mvmeppc/mainbus.c | 12 +++-
sys/arch/powerpc/booke/dev/pq3gpio.c | 8 +-
sys/arch/powerpc/pci/pchb.c | 8 +-
sys/arch/prep/pci/pceb.c | 12 +++-
sys/arch/prep/prep/mainbus.c | 16 ++++-
sys/arch/rs6000/rs6000/mainbus.c | 12 +++-
sys/arch/sandpoint/sandpoint/mainbus.c | 24 ++++++--
sys/arch/sgimips/dev/imc.c | 12 +++-
sys/arch/usermode/dev/vncfb.c | 14 +++--
sys/arch/vax/uba/qv.c | 13 +++-
sys/arch/x86/pci/ichlpcib.c | 20 +++++--
sys/arch/x86/pci/pchb.c | 12 +++-
sys/arch/x86/pci/tcpcib.c | 10 ++-
sys/arch/x86/x86/cpu.c | 28 +++++++---
sys/arch/x86/x86/mainbus.c | 8 +-
sys/arch/x86/x86/mp.c | 9 +-
sys/arch/xen/x86/cpu.c | 10 ++-
sys/arch/xen/x86/xen_mainbus.c | 13 +++-
sys/arch/xen/xen/hypervisor.c | 34 +++++++++---
sys/arch/xen/xenbus/xenbus_probe.c | 8 +-
sys/dev/acpi/acpi.c | 46 +++++++++++------
sys/dev/adb/adb_kbd.c | 13 +++-
sys/dev/ata/ata.c | 15 +++--
sys/dev/cardbus/cardslot.c | 9 +-
sys/dev/fdt/fdt_i2c.c | 8 +-
sys/dev/fdt/fdt_spi.c | 8 +-
sys/dev/flash/flash.c | 8 +-
sys/dev/flash/flash_mtdparts.c | 8 +-
sys/dev/hyperv/genfb_vmbus.c | 8 +-
sys/dev/i2c/gttwsi_core.c | 8 +-
sys/dev/i2c/motoi2c.c | 8 +-
sys/dev/ic/ahcisata_core.c | 9 +-
sys/dev/ic/cpc700.c | 8 +-
sys/dev/ic/gcscpcib.c | 8 +-
sys/dev/ic/mvsata.c | 9 +-
sys/dev/ic/siisata.c | 9 +-
sys/dev/ic/vga.c | 8 +-
sys/dev/isa/fd.c | 12 +++-
sys/dev/isa/sb.c | 12 +++-
sys/dev/nand/nand.c | 8 +-
sys/dev/nor/nor.c | 8 +-
sys/dev/pci/coram.c | 14 +++--
sys/dev/pci/cxdtv.c | 13 +++-
sys/dev/pci/genfb_pci.c | 8 +-
sys/dev/pci/igma.c | 12 +++-
sys/dev/pci/jmide.c | 10 ++-
sys/dev/pci/machfb.c | 8 +-
sys/dev/pci/pccbb.c | 9 +-
sys/dev/pci/radeonfb.c | 8 +-
sys/dev/pci/unichromefb.c | 8 +-
sys/dev/pci/vga_pci.c | 12 +++-
sys/dev/pci/voyager.c | 20 +++++--
sys/dev/ppbus/ppbus_gpio.c | 8 +-
sys/dev/scsipi/atapi_wdc.c | 9 +-
sys/dev/std/ieee1212.c | 8 +-
sys/dev/tc/tcu.c | 12 +++-
sys/dev/usb/auvitek_dtv.c | 9 +-
sys/dev/usb/auvitek_i2c.c | 9 +-
sys/dev/usb/emdtv_dtv.c | 9 +-
sys/dev/usb/emdtv_ir.c | 8 +-
sys/dev/usb/umass_scsipi.c | 14 +++--
sys/dev/usb/usb_subr.c | 8 +-
sys/dev/video.c | 8 +-
sys/dev/wsfb/genfb.c | 9 +-
sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c | 9 +-
sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c | 8 +-
sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c | 9 +-
sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c | 9 +-
sys/kern/subr_autoconf.c | 15 +-----
sys/netbt/hci_unit.c | 9 +-
sys/rump/dev/lib/libpci/pci_at_mainbus.c | 8 +-
sys/sys/device.h | 3 +-
122 files changed, 860 insertions(+), 522 deletions(-)
diffs (truncated from 4424 to 300 lines):
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/alpha/jensenio/jensenio.c
--- a/sys/arch/alpha/jensenio/jensenio.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/alpha/jensenio/jensenio.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jensenio.c,v 1.19.78.1 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: jensenio.c,v 1.19.78.2 2021/04/02 22:17:37 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: jensenio.c,v 1.19.78.1 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: jensenio.c,v 1.19.78.2 2021/04/02 22:17:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -202,7 +202,9 @@
ja.ja_eisa.eba_memt = &jcp->jc_eisa_memt;
ja.ja_eisa.eba_dmat = &jcp->jc_dmat_eisa;
ja.ja_eisa.eba_ec = &jcp->jc_ec;
- (void) config_found_ia(self, "eisabus", &ja.ja_eisa, eisabusprint);
+ config_found(self, &ja.ja_eisa, eisabusprint,
+ CFARG_IATTR, "eisabus",
+ CFARG_EOL);
/*
* Attach the ISA bus.
@@ -214,7 +216,9 @@
ja.ja_isa.iba_memt = &jcp->jc_eisa_memt;
ja.ja_isa.iba_dmat = &jcp->jc_dmat_isa;
ja.ja_isa.iba_ic = &jcp->jc_ic;
- (void) config_found_ia(self, "isabus", &ja.ja_isa, isabusprint);
+ config_found(self, &ja.ja_isa, isabusprint,
+ CFARG_IATTR, "isabus",
+ CFARG_EOL);
}
static int
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/alpha/pci/irongate.c
--- a/sys/arch/alpha/pci/irongate.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/alpha/pci/irongate.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irongate.c,v 1.16 2011/06/14 15:34:22 matt Exp $ */
+/* $NetBSD: irongate.c,v 1.16.68.1 2021/04/02 22:17:37 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irongate.c,v 1.16 2011/06/14 15:34:22 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irongate.c,v 1.16.68.1 2021/04/02 22:17:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -196,10 +196,14 @@
irongate_conf_read0(icp, tag, PCI_CLASS_REG);
apa.apa_pci_args.pa_flags = pba.pba_flags;
- (void) config_found_ia(self, "agpbus", &apa, agpbusprint);
+ config_found(self, &apa, agpbusprint,
+ CFARG_IATTR, "agpbus",
+ CFARG_EOL);
}
- (void) config_found_ia(self, "pcibus", &pba, pcibusprint);
+ config_found(self, &pba, pcibusprint,
+ CFARG_IATTR, "pcibus",
+ CFARG_EOL);
}
int
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/alpha/pci/sio.c
--- a/sys/arch/alpha/pci/sio.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/alpha/pci/sio.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sio.c,v 1.54 2020/11/18 02:04:29 thorpej Exp $ */
+/* $NetBSD: sio.c,v 1.54.2.1 2021/04/02 22:17:37 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: sio.c,v 1.54 2020/11/18 02:04:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sio.c,v 1.54.2.1 2021/04/02 22:17:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -238,8 +238,9 @@
sa.sa_eba.eba_dmat =
alphabus_dma_get_tag(sc->sc_parent_dmat, ALPHA_BUS_EISA);
sa.sa_eba.eba_ec = &ec;
- config_found_ia(sc->sc_dev, "eisabus", &sa.sa_eba,
- eisabusprint);
+ config_found(sc->sc_dev, &sa.sa_eba, eisabusprint,
+ CFARG_IATTR, "eisabus",
+ CFARG_EOL);
}
#endif /* NPCEB */
@@ -283,7 +284,9 @@
sa.sa_iba.iba_dmat =
alphabus_dma_get_tag(sc->sc_parent_dmat, ALPHA_BUS_ISA);
sa.sa_iba.iba_ic = sc->sc_ic;
- config_found_ia(sc->sc_dev, "isabus", &sa.sa_iba, isabusprint);
+ config_found(sc->sc_dev, &sa.sa_iba, isabusprint,
+ CFARG_IATTR, "isabus",
+ CFARG_EOL);
}
void
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/alpha/pci/ttwoga.c
--- a/sys/arch/alpha/pci/ttwoga.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/alpha/pci/ttwoga.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttwoga.c,v 1.15.62.1 2021/03/23 07:14:42 thorpej Exp $ */
+/* $NetBSD: ttwoga.c,v 1.15.62.2 2021/04/02 22:17:37 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: ttwoga.c,v 1.15.62.1 2021/03/23 07:14:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttwoga.c,v 1.15.62.2 2021/04/02 22:17:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -263,11 +263,14 @@
* Hose 0 has the STDIO module.
*/
if (pba->pba_bus == 0) {
- (void) config_found_ia(self, "sableiobus", &npba,
- ttwosableioprint);
+ config_found(self, &npba, ttwosableioprint,
+ CFARG_IATTR, "sableiobus",
+ CFARG_EOL);
}
- (void) config_found_ia(self, "pcibus", &npba, pcibusprint);
+ config_found(self, &npba, pcibusprint,
+ CFARG_IATTR, "pcibus",
+ CFARG_EOL);
}
int
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/amd64/amd64/amd64_mainbus.c
--- a/sys/arch/amd64/amd64/amd64_mainbus.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/amd64/amd64/amd64_mainbus.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amd64_mainbus.c,v 1.5 2019/02/14 07:12:40 cherry Exp $ */
+/* $NetBSD: amd64_mainbus.c,v 1.5.16.1 2021/04/02 22:17:37 thorpej Exp $ */
/* NetBSD: mainbus.c,v 1.39 2018/12/02 08:19:44 cherry Exp */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amd64_mainbus.c,v 1.5 2019/02/14 07:12:40 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amd64_mainbus.c,v 1.5.16.1 2021/04/02 22:17:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -179,7 +179,9 @@
mba.mba_acpi.aa_ic = &x86_isa_chipset;
mba.mba_acpi.aa_dmat = &pci_bus_dma_tag;
mba.mba_acpi.aa_dmat64 = &pci_bus_dma64_tag;
- config_found_ia(self, "acpibus", &mba.mba_acpi, 0);
+ config_found(self, &mba.mba_acpi, NULL,
+ CFARG_IATTR, "acpibus",
+ CFARG_EOL);
}
#endif
@@ -188,7 +190,9 @@
mba.mba_ipmi.iaa_iot = x86_bus_space_io;
mba.mba_ipmi.iaa_memt = x86_bus_space_mem;
if (ipmi_probe(&mba.mba_ipmi))
- config_found_ia(self, "ipmibus", &mba.mba_ipmi, 0);
+ config_found(self, &mba.mba_ipmi, NULL,
+ CFARG_IATTR, "ipmibus",
+ CFARG_EOL);
#endif
#if NPCI > 0
@@ -215,8 +219,9 @@
npcibus = mp_pci_scan(self, &mba.mba_pba, pcibusprint);
#endif
if (npcibus == 0)
- config_found_ia(self, "pcibus", &mba.mba_pba,
- pcibusprint);
+ config_found(self, &mba.mba_pba, pcibusprint,
+ CFARG_IATTR, "pcibus",
+ CFARG_EOL);
#if NACPICA > 0
if (mp_verbose)
@@ -230,7 +235,9 @@
mba.mba_iba = mba_iba;
mba.mba_iba.iba_iot = x86_bus_space_io;
mba.mba_iba.iba_memt = x86_bus_space_mem;
- config_found_ia(self, "isabus", &mba.mba_iba, isabusprint);
+ config_found(self, &mba.mba_iba, isabusprint,
+ CFARG_IATTR, "isabus",
+ CFARG_EOL);
}
#endif
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/amiga/pci/empb.c
--- a/sys/arch/amiga/pci/empb.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/amiga/pci/empb.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: empb.c,v 1.13 2020/07/07 03:38:45 thorpej Exp $ */
+/* $NetBSD: empb.c,v 1.13.4.1 2021/04/02 22:17:37 thorpej Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -268,7 +268,9 @@
empb_intr_enable(sc);
- config_found_ia(self, "pcibus", &pba, pcibusprint);
+ config_found(self, &pba, pcibusprint,
+ CFARG_IATTR, "pcibus",
+ CFARG_EOL);
}
static void
@@ -277,7 +279,9 @@
struct empm_attach_args aa;
aa.setup_area_t = sc->setup_area_t;
- config_found_ia(sc->sc_dev, "empmdev", &aa, empb_empm_print);
+ config_found(sc->sc_dev, &aa, empb_empm_print,
+ CFARG_IATTR, "empmdev",
+ CFARG_EOL);
}
static int
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/arc/isa/isabus.c
--- a/sys/arch/arc/isa/isabus.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/arc/isa/isabus.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isabus.c,v 1.51 2020/11/18 02:14:13 thorpej Exp $ */
+/* $NetBSD: isabus.c,v 1.51.2.1 2021/04/02 22:17:37 thorpej 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 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.51 2020/11/18 02:14:13 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.51.2.1 2021/04/02 22:17:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -207,7 +207,9 @@
iba.iba_memt = &arc_bus_mem;
iba.iba_dmat = &sc->sc_dmat;
iba.iba_ic = &sc->arc_isa_cs;
- config_found_ia(sc->sc_dev, "isabus", &iba, isabrprint);
+ config_found(sc->sc_dev, &iba, isabrprint,
+ CFARG_IATTR, "isabus",
+ CFARG_EOL);
}
static int
diff -r 7229244d9574 -r 7caaa2f22c41 sys/arch/arm/acpi/acpi_machdep.c
--- a/sys/arch/arm/acpi/acpi_machdep.c Wed Mar 31 01:44:59 2021 +0000
+++ b/sys/arch/arm/acpi/acpi_machdep.c Fri Apr 02 22:17:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_machdep.c,v 1.21 2020/12/13 20:24:26 jmcneill Exp $ */
+/* $NetBSD: acpi_machdep.c,v 1.21.2.1 2021/04/02 22:17:37 thorpej Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include "pci.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.21 2020/12/13 20:24:26 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_machdep.c,v 1.21.2.1 2021/04/02 22:17:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -305,7 +305,9 @@
struct acpi_softc * const sc = aux;
if (hdrp->Type == ACPI_MADT_TYPE_GENERIC_INTERRUPT)
- config_found_ia(sc->sc_dev, "acpimadtbus", hdrp, NULL);
+ config_found(sc->sc_dev, hdrp, NULL,
+ CFARG_IATTR, "acpimadtbus",
Home |
Main Index |
Thread Index |
Old Index