CVS commit: src/sys/sys

2021-08-15 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Aug 15 22:08:01 UTC 2021

Modified Files:
src/sys/sys: device.h

Log Message:
Define a constant for the size of device_t::dv_xname, rather than just
using 16.


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/sys/device.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/device.h
diff -u src/sys/sys/device.h:1.173 src/sys/sys/device.h:1.174
--- src/sys/sys/device.h:1.173	Sat Aug  7 18:16:42 2021
+++ src/sys/sys/device.h	Sun Aug 15 22:08:01 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.173 2021/08/07 18:16:42 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.174 2021/08/15 22:08:01 thorpej Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -252,6 +252,9 @@ struct devhandle_impl {
 	const char *, devhandle_t *);
 };
 
+/* Max size of a device external name (including terminating NUL) */
+#define	DEVICE_XNAME_SIZE	16
+
 struct device {
 	devhandle_t	dv_handle;	/* this device's handle;
 	   new device_t's get INVALID */
@@ -262,7 +265,8 @@ struct device {
 	cfdriver_t	dv_cfdriver;	/* our cfdriver */
 	cfattach_t	dv_cfattach;	/* our cfattach */
 	int		dv_unit;	/* device unit number */
-	char		dv_xname[16];	/* external name (name + unit) */
+	/* external name (name + unit) */
+	char		dv_xname[DEVICE_XNAME_SIZE];
 	device_t	dv_parent;	/* pointer to parent device
 	   (NULL if pseudo- or root node) */
 	int		dv_depth;	/* number of parents until root */



CVS commit: [thorpej-i2c-spi-conf2] src/sys/dev/i2c

2021-08-09 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 12:36:14 UTC 2021

Modified Files:
src/sys/dev/i2c [thorpej-i2c-spi-conf2]: ihidev.c

Log Message:
Use the same idiom to cast the ACPI_HANDLE to uint64_t as other drivers
when passing it to acpi_intr_establish().

XXX This is gross, but fixing it is outside the scope of this branch.


To generate a diff of this commit:
cvs rdiff -u -r1.20.2.1 -r1.20.2.2 src/sys/dev/i2c/ihidev.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/ihidev.c
diff -u src/sys/dev/i2c/ihidev.c:1.20.2.1 src/sys/dev/i2c/ihidev.c:1.20.2.2
--- src/sys/dev/i2c/ihidev.c:1.20.2.1	Mon Aug  9 00:30:09 2021
+++ src/sys/dev/i2c/ihidev.c	Mon Aug  9 12:36:14 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: ihidev.c,v 1.20.2.1 2021/08/09 00:30:09 thorpej Exp $ */
+/* $NetBSD: ihidev.c,v 1.20.2.2 2021/08/09 12:36:14 thorpej Exp $ */
 /* $OpenBSD ihidev.c,v 1.13 2017/04/08 02:57:23 deraadt Exp $ */
 
 /*-
@@ -54,7 +54,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.20.2.1 2021/08/09 00:30:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ihidev.c,v 1.20.2.2 2021/08/09 12:36:14 thorpej Exp $");
 
 #include 
 #include 
@@ -672,8 +672,8 @@ ihiddev_intr_init(struct ihidev_softc *s
 
 	acpi_resource_cleanup();
 
-	sc->sc_ih = acpi_intr_establish(sc->sc_dev, (uint64_t)hdl, IPL_TTY,
-	false, ihidev_intr, sc, device_xname(sc->sc_dev));
+	sc->sc_ih = acpi_intr_establish(sc->sc_dev, (uint64_t)(uintptr_t)hdl,
+	IPL_TTY, false, ihidev_intr, sc, device_xname(sc->sc_dev));
 	if (sc->sc_ih == NULL) {
 		aprint_error_dev(sc->sc_dev, "can't establish interrupt\n");
 		return false;



CVS commit: src/sys/arch/macppc/dev

2021-08-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 04:07:29 UTC 2021

Added Files:
src/sys/arch/macppc/dev: smuiic.c smuiicvar.h

Log Message:
Fix CVS eff-up.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.10 src/sys/arch/macppc/dev/smuiic.c
cvs rdiff -u -r0 -r1.3 src/sys/arch/macppc/dev/smuiicvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/sys/arch/macppc/dev/smuiic.c
diff -u /dev/null src/sys/arch/macppc/dev/smuiic.c:1.10
--- /dev/null	Mon Aug  9 04:07:29 2021
+++ src/sys/arch/macppc/dev/smuiic.c	Mon Aug  9 04:07:29 2021
@@ -0,0 +1,135 @@
+/*	$NetBSD: smuiic.c,v 1.10 2021/08/09 04:07:29 thorpej Exp $ */
+
+/*-
+ * Copyright (c) 2013 Phileas Fogg
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+#include 
+#include 
+
+#include 
+#include 
+
+struct smuiic_softc {
+	device_t sc_dev;
+	int sc_node;
+	struct i2c_controller *sc_i2c;
+};
+
+static int smuiic_match(device_t, struct cfdata *, void *);
+static void smuiic_attach(device_t, device_t, void *);
+
+CFATTACH_DECL_NEW(smuiic, sizeof(struct smuiic_softc),
+smuiic_match, smuiic_attach, NULL, NULL);
+
+static int
+smuiic_match(device_t parent, struct cfdata *cf, void *aux)
+{
+	struct smu_iicbus_confargs *ca = aux;
+
+	if (strcmp(ca->ca_name, "i2c-bus") == 0)
+		return 5;
+	if (strcmp(ca->ca_name, "i2c") == 0)
+		return 5;
+	
+	return 0;
+}
+
+static void
+smuiic_attach(device_t parent, device_t self, void *aux)
+{
+	struct smu_iicbus_confargs *ca = aux;
+	struct smuiic_softc *sc = device_private(self);
+	struct i2cbus_attach_args iba;
+	prop_dictionary_t dict = device_properties(self);
+	int devs, devc;
+	uint32_t addr;
+	char compat[256];
+	prop_array_t cfg;
+	prop_dictionary_t dev;
+	prop_data_t data;
+	char name[32], descr[32], num[8];
+
+	sc->sc_dev = self;
+	sc->sc_node = ca->ca_node;
+	sc->sc_i2c = ca->ca_tag;
+	printf("\n");
+
+	cfg = prop_array_create();
+	prop_dictionary_set(dict, "i2c-child-devices", cfg);
+	prop_object_release(cfg);
+
+	/* look for i2c devices */
+	devs = OF_child(sc->sc_node);
+	while (devs != 0) {
+		if (OF_getprop(devs, "name", name, 256) <= 0)
+			goto skip;
+		if (OF_getprop(devs, "compatible",
+		compat, 256) <= 0)
+			goto skip;
+		if (OF_getprop(devs, "reg", , 4) <= 0)
+			goto skip;
+		addr = (addr & 0xff) >> 1;
+		dev = prop_dictionary_create();
+		prop_dictionary_set_string(dev, "name", name);
+		data = prop_data_create_copy(compat, strlen(compat)+1);
+		prop_dictionary_set(dev, "compatible", data);
+		prop_object_release(data);
+		prop_dictionary_set_uint32(dev, "addr", addr);
+		prop_dictionary_set_uint64(dev, "cookie", devs);
+		devc = OF_child(devs);
+		while (devc != 0) {
+			int reg;
+			if (OF_getprop(devc, "reg", , 4) < 4) goto nope;
+			if (OF_getprop(devc, "location", descr, 32) <= 0)
+goto nope;
+			printf("found '%s' at %02x\n", descr, reg);
+			snprintf(num, 7, "s%02x", reg);
+			prop_dictionary_set_string(dev, num, descr);
+		nope:
+			devc = OF_peer(devc);
+		}
+		prop_array_add(cfg, dev);
+		prop_object_release(dev);
+	skip:
+		devs = OF_peer(devs);
+	}
+
+	memset(, 0, sizeof(iba));
+	iba.iba_tag = sc->sc_i2c;
+
+	config_found(sc->sc_dev, , iicbus_print, CFARGS_NONE);
+}

Index: src/sys/arch/macppc/dev/smuiicvar.h
diff -u /dev/null src/sys/arch/macppc/dev/smuiicvar.h:1.3
--- /dev/null	Mon Aug  9 04:07:29 2021
+++ src/sys/arch/macppc/dev/smuiicvar.h	Mon Aug  9 04:07:29 2021
@@ -0,0 +1,38 @@
+/*-
+ * Copyright (c) 2013 Phileas Fogg
+ * All rights reserved.
+ *
+ * 

CVS commit: src/sys/dev/acpi

2021-08-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 04:06:21 UTC 2021

Added Files:
src/sys/dev/acpi: acpi_i2c.h

Log Message:
Fix CVS eff-up.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.4 src/sys/dev/acpi/acpi_i2c.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/sys/dev/acpi/acpi_i2c.h
diff -u /dev/null src/sys/dev/acpi/acpi_i2c.h:1.4
--- /dev/null	Mon Aug  9 04:06:21 2021
+++ src/sys/dev/acpi/acpi_i2c.h	Mon Aug  9 04:06:21 2021
@@ -0,0 +1,38 @@
+/* $NetBSD: acpi_i2c.h,v 1.4 2021/08/09 04:06:21 thorpej Exp $ */
+
+/*-
+ * Copyright (c) 2017 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Manuel Bouyer.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+#ifndef _SYS_DEV_ACPI_ACPI_I2C_H
+#define _SYS_DEV_ACPI_ACPI_I2C_H
+#include 
+
+prop_array_t acpi_enter_i2c_devs(device_t, struct acpi_devnode *);
+#endif /*  _SYS_DEV_ACPI_ACPI_I2C_H */



CVS commit: [thorpej-i2c-spi-conf2] src/sys/dev/ic

2021-08-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 01:29:52 UTC 2021

Modified Files:
src/sys/dev/ic [thorpej-i2c-spi-conf2]: pcf8584.c pcf8584var.h

Log Message:
Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.19.2.1 src/sys/dev/ic/pcf8584.c
cvs rdiff -u -r1.6 -r1.6.22.1 src/sys/dev/ic/pcf8584var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/pcf8584.c
diff -u src/sys/dev/ic/pcf8584.c:1.19 src/sys/dev/ic/pcf8584.c:1.19.2.1
--- src/sys/dev/ic/pcf8584.c:1.19	Sat Aug  7 16:19:12 2021
+++ src/sys/dev/ic/pcf8584.c	Mon Aug  9 01:29:52 2021
@@ -1,7 +1,36 @@
-/*	$NetBSD: pcf8584.c,v 1.19 2021/08/07 16:19:12 thorpej Exp $	*/
+/*	$NetBSD: pcf8584.c,v 1.19.2.1 2021/08/09 01:29:52 thorpej Exp $	*/
 /*	$OpenBSD: pcf8584.c,v 1.9 2007/10/20 18:46:21 kettenis Exp $ */
 
 /*
+ * Copyright (c) 2021 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to The NetBSD Foundation
+ * by Jason R. Thorpe.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
  * Copyright (c) 2006 David Gwynne 
  *
  * Permission to use, copy, modify, and distribute this software for any
@@ -20,7 +49,7 @@
 #include 
 #include 
 #include 
-#include 
+#include 
 #include 
 #include 
 #include 
@@ -30,6 +59,8 @@
 #include 
 #include 
 
+#include "locators.h"
+
 /* Internal registers */
 #define PCF8584_S0		0x00
 #define PCF8584_S1		0x01
@@ -37,8 +68,6 @@
 #define PCF8584_S3		0x03
 
 void		pcfiic_init(struct pcfiic_softc *);
-int		pcfiic_i2c_acquire_bus(void *, int);
-void		pcfiic_i2c_release_bus(void *, int);
 int		pcfiic_i2c_exec(void *, i2c_op_t, i2c_addr_t, const void *,
 		size_t, void *, size_t, int);
 
@@ -49,7 +78,6 @@ int		pcfiic_recv(struct pcfiic_softc *, 
 
 u_int8_t	pcfiic_read(struct pcfiic_softc *, bus_size_t);
 void		pcfiic_write(struct pcfiic_softc *, bus_size_t, u_int8_t);
-void		pcfiic_choose_bus(struct pcfiic_softc *, u_int8_t);
 int		pcfiic_wait_BBN(struct pcfiic_softc *);
 int		pcfiic_wait_pin(struct pcfiic_softc *, volatile u_int8_t *);
 
@@ -71,10 +99,12 @@ pcfiic_init(struct pcfiic_softc *sc)
 }
 
 void
-pcfiic_attach(struct pcfiic_softc *sc, i2c_addr_t addr, u_int8_t clock,
+pcfiic_attach(struct pcfiic_softc *sc, i2c_addr_t addr, uint8_t clock,
 int swapregs)
 {
-	struct i2cbus_attach_args		iba;
+	struct i2cbus_attach_args iba;
+	struct pcfiic_channel *ch;
+	int i;
 
 	if (swapregs) {
 		sc->sc_regmap[PCF8584_S1] = PCF8584_S0;
@@ -90,16 +120,39 @@ pcfiic_attach(struct pcfiic_softc *sc, i
 
 	printf("\n");
 
-	if (sc->sc_master)
-		pcfiic_choose_bus(sc, 0);
+	if (sc->sc_channels == NULL) {
+		KASSERT(sc->sc_nchannels == 0);
+		ch = kmem_alloc(sizeof(*sc->sc_channels), KM_SLEEP);
+		ch->ch_channel = 0;
+		ch->ch_devhandle = device_handle(sc->sc_dev);
 
-	iic_tag_init(>sc_i2c);
-	sc->sc_i2c.ic_cookie = sc;
-	sc->sc_i2c.ic_exec = pcfiic_i2c_exec;
-
-	bzero(, sizeof(iba));
-	iba.iba_tag = >sc_i2c;
-	config_found(sc->sc_dev, , iicbus_print, CFARGS_NONE);
+		sc->sc_channels = ch;
+		sc->sc_nchannels = 1;
+	} else {
+		KASSERT(sc->sc_nchannels != 0);
+	}
+
+	for (i = 0; i < sc->sc_nchannels; i++) {
+		int locs[I2CBUSCF_NLOCS];
+
+		ch = >sc_channels[i];
+		ch->ch_sc = sc;
+		iic_tag_init(>ch_i2c);
+		ch->ch_i2c.ic_cookie = ch;
+		ch->ch_i2c.ic_exec = pcfiic_i2c_exec;
+		ch->ch_i2c.ic_acquire_bus = sc->sc_acquire_bus;
+		ch->ch_i2c.ic_release_bus 

CVS commit: [thorpej-i2c-spi-conf2] src/sys/arch/macppc/dev

2021-08-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 01:16:01 UTC 2021

Modified Files:
src/sys/arch/macppc/dev [thorpej-i2c-spi-conf2]: fcu.c

Log Message:
Adapt to thorpej-i2c-spi-conf2: ia->ia_cookie is gone.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/macppc/dev/fcu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/macppc/dev/fcu.c
diff -u src/sys/arch/macppc/dev/fcu.c:1.4 src/sys/arch/macppc/dev/fcu.c:1.4.8.1
--- src/sys/arch/macppc/dev/fcu.c:1.4	Fri Jul 30 22:07:14 2021
+++ src/sys/arch/macppc/dev/fcu.c	Mon Aug  9 01:16:01 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: fcu.c,v 1.4 2021/07/30 22:07:14 macallan Exp $ */
+/* $NetBSD: fcu.c,v 1.4.8.1 2021/08/09 01:16:01 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2018 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.4 2021/07/30 22:07:14 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fcu.c,v 1.4.8.1 2021/08/09 01:16:01 thorpej Exp $");
 
 #include 
 #include 
@@ -198,8 +198,10 @@ fcu_attach(device_t parent, device_t sel
 	/* round up sensors */
 	int ch;
 
+	int const phandle = devhandle_to_of(device_handle(self));
+
 	sc->sc_nsensors = 0;
-	ch = OF_child(ia->ia_cookie);
+	ch = OF_child(phandle);
 	while (ch != 0) {
 		char type[32], descr[32];
 		uint32_t reg;



CVS commit: [thorpej-i2c-spi-conf2] src/sys/dev/i2c

2021-08-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 01:09:41 UTC 2021

Modified Files:
src/sys/dev/i2c [thorpej-i2c-spi-conf2]: i2c.c

Log Message:
In iic_close(), mark the "sc" variable as __diagused.


To generate a diff of this commit:
cvs rdiff -u -r1.80.2.1 -r1.80.2.2 src/sys/dev/i2c/i2c.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/i2c.c
diff -u src/sys/dev/i2c/i2c.c:1.80.2.1 src/sys/dev/i2c/i2c.c:1.80.2.2
--- src/sys/dev/i2c/i2c.c:1.80.2.1	Mon Aug  9 00:30:09 2021
+++ src/sys/dev/i2c/i2c.c	Mon Aug  9 01:09:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: i2c.c,v 1.80.2.1 2021/08/09 00:30:09 thorpej Exp $	*/
+/*	$NetBSD: i2c.c,v 1.80.2.2 2021/08/09 01:09:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
 #endif
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.80.2.1 2021/08/09 00:30:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.80.2.2 2021/08/09 01:09:41 thorpej Exp $");
 
 #include 
 #include 
@@ -954,7 +954,8 @@ iic_open(dev_t dev, int flag, int fmt, l
 static int
 iic_close(dev_t dev, int flag, int fmt, lwp_t *l)
 {
-	struct iic_softc *sc = device_lookup_private(_cd, minor(dev));;
+	struct iic_softc *sc __diagused =
+	device_lookup_private(_cd, minor(dev));;
 
 	KASSERT(iic_refcnt != 0);
 	KASSERT(sc != NULL);



CVS commit: [thorpej-i2c-spi-conf2] src/sys/dev/i2c

2021-08-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 00:57:56 UTC 2021

Modified Files:
src/sys/dev/i2c [thorpej-i2c-spi-conf2]: i2cmux.c

Log Message:
Fix typo.


To generate a diff of this commit:
cvs rdiff -u -r1.6.2.1 -r1.6.2.2 src/sys/dev/i2c/i2cmux.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/i2cmux.c
diff -u src/sys/dev/i2c/i2cmux.c:1.6.2.1 src/sys/dev/i2c/i2cmux.c:1.6.2.2
--- src/sys/dev/i2c/i2cmux.c:1.6.2.1	Mon Aug  9 00:30:09 2021
+++ src/sys/dev/i2c/i2cmux.c	Mon Aug  9 00:57:56 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: i2cmux.c,v 1.6.2.1 2021/08/09 00:30:09 thorpej Exp $	*/
+/*	$NetBSD: i2cmux.c,v 1.6.2.2 2021/08/09 00:57:56 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: i2cmux.c,v 1.6.2.1 2021/08/09 00:30:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2cmux.c,v 1.6.2.2 2021/08/09 00:57:56 thorpej Exp $");
 
 #include 
 #include 
@@ -151,7 +151,7 @@ iicmux_attach_bus(struct iicmux_softc * 
 	locs[I2CBUSCF_BUS] = bus->busidx;
 
 	config_found(sc->sc_dev, , iicbus_print_multi,
-	CFARGS(.subatch = config_stdsubmatch,
+	CFARGS(.submatch = config_stdsubmatch,
 		   .locators = locs,
 		   .devhandle = devhandle));
 }



CVS commit: src/doc

2021-08-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Aug  9 00:32:51 UTC 2021

Modified Files:
src/doc: BRANCHES

Log Message:
thorpej-i2c-spi-conf -> thorpej-i2c-spi-conf2.


To generate a diff of this commit:
cvs rdiff -u -r1.362 -r1.363 src/doc/BRANCHES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.362 src/doc/BRANCHES:1.363
--- src/doc/BRANCHES:1.362	Sat Aug  7 16:21:02 2021
+++ src/doc/BRANCHES	Mon Aug  9 00:32:51 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.362 2021/08/07 16:21:02 thorpej Exp $
+#	$NetBSD: BRANCHES,v 1.363 2021/08/09 00:32:51 thorpej Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -777,12 +777,22 @@ Notes:		Re-based version of thorpej-fute
 
 Branch:		thorpej-i2c-spi-conf
 Description:	Improve device tree-based I2C and SPI enumeration.
-Status:		Active
+Status:		Abandoned
 Start Date:	Sun April 25, 2021
-End Date:
+End Date:	Sun Aug 8, 2021
 Base Tag:	thorpej-i2c-spi-conf-base
 Maintainer:	Jason Thorpe 
 Scope:		src/sys
+Notes:		Changes ported forward to thorpej-i2c-spi-conf2.
+
+Branch:		thorpej-i2c-spi-conf2
+Description:	Improve device tree-based I2C and SPI enumeration.
+Status:		Active
+Start Date:	Sun Aug 8, 2021
+End Date:
+Base Tag:	thorpej-i2c-spi-conf2-base
+Maintainer:	Jason Thorpe 
+Scope:		src/sys
 Notes:
 
 Branch:  	wrstuden-fixsa



CVS commit: [thorpej-i2c-spi-conf] src/sys/dev/ofw

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Aug  8 01:06:57 UTC 2021

Modified Files:
src/sys/dev/ofw [thorpej-i2c-spi-conf]: ofw_i2c_subr.c

Log Message:
If OFW_I2C_ALLOW_MISSING_COMPATIBLE_PROPERTY, ensure that clist_size
is not negative for the call to kmem_tmpbuf_alloc().


To generate a diff of this commit:
cvs rdiff -u -r1.1.6.8 -r1.1.6.9 src/sys/dev/ofw/ofw_i2c_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ofw/ofw_i2c_subr.c
diff -u src/sys/dev/ofw/ofw_i2c_subr.c:1.1.6.8 src/sys/dev/ofw/ofw_i2c_subr.c:1.1.6.9
--- src/sys/dev/ofw/ofw_i2c_subr.c:1.1.6.8	Tue May 18 01:24:39 2021
+++ src/sys/dev/ofw/ofw_i2c_subr.c	Sun Aug  8 01:06:57 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ofw_i2c_subr.c,v 1.1.6.8 2021/05/18 01:24:39 thorpej Exp $	*/
+/*	$NetBSD: ofw_i2c_subr.c,v 1.1.6.9 2021/08/08 01:06:57 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ofw_i2c_subr.c,v 1.1.6.8 2021/05/18 01:24:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_i2c_subr.c,v 1.1.6.9 2021/08/08 01:06:57 thorpej Exp $");
 
 #include 
 #include 
@@ -149,11 +149,13 @@ of_i2c_enumerate_devices(device_t dev, d
 		}
 
 		clist_size = OF_getproplen(node, "compatible");
-#ifndef OFW_I2C_ALLOW_MISSING_COMPATIBLE_PROPERTY
 		if (clist_size <= 0) {
+#ifndef OFW_I2C_ALLOW_MISSING_COMPATIBLE_PROPERTY
 			continue;
-		}
+#else
+			clist_size = 0;
 #endif
+		}
 		clist = kmem_tmpbuf_alloc(clist_size,
 		compat_buf, sizeof(compat_buf), KM_SLEEP);
 		if (OF_getprop(node, "compatible", clist, clist_size) <



CVS commit: src/sys/arch

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Aug  8 00:53:39 UTC 2021

Modified Files:
src/sys/arch/macppc/include: types.h
src/sys/arch/sparc64/include: types.h

Log Message:
Define preprocessor symbols (__HAVE_OPENFIRMWARE_VARIANT_AAPL and
__HAVE_OPENFIRMWARE_VARIANT_SUNW) that lets generic OpenFirmware
code deal with differences / quirks among implementation variants.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/macppc/include/types.h
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/sparc64/include/types.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/macppc/include/types.h
diff -u src/sys/arch/macppc/include/types.h:1.14 src/sys/arch/macppc/include/types.h:1.15
--- src/sys/arch/macppc/include/types.h:1.14	Sun Jul 17 23:23:53 2011
+++ src/sys/arch/macppc/include/types.h	Sun Aug  8 00:53:39 2021
@@ -1,5 +1,6 @@
-/*	$NetBSD: types.h,v 1.14 2011/07/17 23:23:53 dyoung Exp $	*/
+/*	$NetBSD: types.h,v 1.15 2021/08/08 00:53:39 thorpej Exp $	*/
 
 #include 
 
 #define	__HAVE_NEW_STYLE_BUS_H
+#define	__HAVE_OPENFIRMWARE_VARIANT_AAPL

Index: src/sys/arch/sparc64/include/types.h
diff -u src/sys/arch/sparc64/include/types.h:1.28 src/sys/arch/sparc64/include/types.h:1.29
--- src/sys/arch/sparc64/include/types.h:1.28	Sat Apr  6 03:06:27 2019
+++ src/sys/arch/sparc64/include/types.h	Sun Aug  8 00:53:39 2021
@@ -1,4 +1,4 @@
-/*   $NetBSD: types.h,v 1.28 2019/04/06 03:06:27 thorpej Exp $*/
+/*   $NetBSD: types.h,v 1.29 2021/08/08 00:53:39 thorpej Exp $*/
 
 #ifndef _SPARC64_TYPES_H_
 #define	_SPARC64_TYPES_H_
@@ -11,5 +11,6 @@
 
 #define	__HAVE_COMPAT_NETBSD32
 #define	__HAVE_UCAS_FULL
+#define	__HAVE_OPENFIRMWARE_VARIANT_SUNW
 
 #endif



CVS commit: src/sys/sys

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 19:44:39 UTC 2021

Modified Files:
src/sys/sys: param.h

Log Message:
NetBSD 9.99.88 -- CFARG_* -> CFARGS()


To generate a diff of this commit:
cvs rdiff -u -r1.700 -r1.701 src/sys/sys/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/param.h
diff -u src/sys/sys/param.h:1.700 src/sys/sys/param.h:1.701
--- src/sys/sys/param.h:1.700	Thu Jul 22 04:46:29 2021
+++ src/sys/sys/param.h	Sat Aug  7 19:44:39 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: param.h,v 1.700 2021/07/22 04:46:29 skrll Exp $	*/
+/*	$NetBSD: param.h,v 1.701 2021/08/07 19:44:39 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -67,7 +67,7 @@
  *	2.99.9		(299000900)
  */
 
-#define	__NetBSD_Version__	999008700	/* NetBSD 9.99.87 */
+#define	__NetBSD_Version__	999008800	/* NetBSD 9.99.88 */
 
 #define __NetBSD_Prereq__(M,m,p) (M) * 1) + \
 (m) * 100) + (p) * 100) <= __NetBSD_Version__)



CVS commit: src/sys

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 18:16:42 UTC 2021

Modified Files:
src/sys/kern: subr_device.c
src/sys/sys: device.h

Log Message:
Export devhandle_lookup_device_call().


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/kern/subr_device.c
cvs rdiff -u -r1.172 -r1.173 src/sys/sys/device.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_device.c
diff -u src/sys/kern/subr_device.c:1.7 src/sys/kern/subr_device.c:1.8
--- src/sys/kern/subr_device.c:1.7	Sat Feb  6 05:33:20 2021
+++ src/sys/kern/subr_device.c	Sat Aug  7 18:16:42 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_device.c,v 1.7 2021/02/06 05:33:20 thorpej Exp $	*/
+/*	$NetBSD: subr_device.c,v 1.8 2021/08/07 18:16:42 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2006, 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: subr_device.c,v 1.7 2021/02/06 05:33:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_device.c,v 1.8 2021/08/07 18:16:42 thorpej Exp $");
 
 #include 
 #include 
@@ -72,7 +72,7 @@ devhandle_type(devhandle_t handle)
 	return handle.impl->type;
 }
 
-static device_call_t
+device_call_t
 devhandle_lookup_device_call(devhandle_t handle, const char *name,
 devhandle_t *call_handlep)
 {

Index: src/sys/sys/device.h
diff -u src/sys/sys/device.h:1.172 src/sys/sys/device.h:1.173
--- src/sys/sys/device.h:1.172	Sat Aug  7 16:19:18 2021
+++ src/sys/sys/device.h	Sat Aug  7 18:16:42 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.172 2021/08/07 16:19:18 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.173 2021/08/07 18:16:42 thorpej Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -671,6 +671,8 @@ bool		devhandle_is_valid(devhandle_t);
 void		devhandle_invalidate(devhandle_t *);
 devhandle_type_t devhandle_type(devhandle_t);
 
+device_call_t	devhandle_lookup_device_call(devhandle_t, const char *,
+		devhandle_t *);
 void		devhandle_impl_inherit(struct devhandle_impl *,
 		const struct devhandle_impl *);
 



CVS commit: src/doc

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 16:21:03 UTC 2021

Modified Files:
src/doc: BRANCHES

Log Message:
thorpej-cfargs2 merged.


To generate a diff of this commit:
cvs rdiff -u -r1.361 -r1.362 src/doc/BRANCHES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.361 src/doc/BRANCHES:1.362
--- src/doc/BRANCHES:1.361	Sat Aug  7 14:19:12 2021
+++ src/doc/BRANCHES	Sat Aug  7 16:21:02 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.361 2021/08/07 14:19:12 thorpej Exp $
+#	$NetBSD: BRANCHES,v 1.362 2021/08/07 16:21:02 thorpej Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -737,9 +737,9 @@ Notes:
 Branch:		thorpej-cfargs2
 Description:	Address complaints regarding the use of variadic arguments in
 		thorpej-cfargs.
-Status:		Active
+Status:		Merged
 Start Date:	Sun Aug 1 2021
-End Date:
+End Date:	Sat Aug 7 2021
 Base Tag:	thorpej-cfargs2-base
 Maintainer:	Jason Thorpe 
 Scope:		src/sys



CVS commit: src/share/man/man9

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 16:20:02 UTC 2021

Modified Files:
src/share/man/man9: autoconf.9

Log Message:
Update for thorpej-cfargs2.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/share/man/man9/autoconf.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/autoconf.9
diff -u src/share/man/man9/autoconf.9:1.31 src/share/man/man9/autoconf.9:1.32
--- src/share/man/man9/autoconf.9:1.31	Wed Apr 28 00:49:22 2021
+++ src/share/man/man9/autoconf.9	Sat Aug  7 16:20:02 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: autoconf.9,v 1.31 2021/04/28 00:49:22 thorpej Exp $
+.\" $NetBSD: autoconf.9,v 1.32 2021/08/07 16:20:02 thorpej Exp $
 .\"
 .\" Copyright (c) 2001, 2002, 2021 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -52,17 +52,17 @@
 .In sys/device.h
 .In sys/errno.h
 .Ft cfdata_t
-.Fn config_search "device_t parent" "void *aux" "cfarg_t tag" "..."
+.Fn config_search "device_t parent" "void *aux" "const struct cfargs *"
 .Ft device_t
 .Fn config_found "device_t parent" "void *aux" "cfprint_t print" \
-"cfarg_t tag" "..."
+"const struct cfargs *"
 .Ft int
 .Fn config_match "device_t parent" "cfdata_t cf" "void *aux"
 .Ft int
 .Fn config_probe "device_t parent" "cfdata_t cf" "void *aux"
 .Ft device_t
 .Fn config_attach "device_t parent" "cfdata_t cf" "void *aux" \
-"cfprint_t print" "cfarg_t tag" "..."
+"cfprint_t print" "const struct cfargs *"
 .Ft device_t
 .Fn config_attach_pseudo "cfdata_t cf"
 .Ft int
@@ -119,53 +119,64 @@ The unit number identifies an instance o
 Device data structures are allocated dynamically during
 autoconfiguration, giving a unique address for each instance.
 .Pp
-Several of the autoconfiguration functions take a variadic list of
-tag-value arguments to pass information from driver autoconfiguration
+Several of the autoconfiguration functions take a strongly-typed variadic
+list of arguments to pass information from driver autoconfiguration
 functions to the kernel's autoconfiguration system.
+This list is constructed using the
+.Fn CFARGS
+macro, like this example:
+.Bd -literal -offset indent
+config_search(self, NULL,
+CFARGS(.search = mainbus_search,
+   .iattr = "mainbus"));
+.Ed
+.Pp
 Each tag is followed by a tag-specific value.
-The end of the argument list must be terminated with the tag
-.Dv CFARG_EOL .
-Passing an invalid tag or an inappropriate value for a tag results
-in undefined behavior and may cause a kernel panic.
-.Bl -tag -width "CFARG_DEVHANDLE"
-.It Dv CFARG_SUBMATCH
+.Bl -tag -width ".devhandle"
+.It Dv .submatch
 A pointer to a
 .Sq submatch
 function used in direct configuration.
-.It Dv CFARG_SEARCH
+.It Dv .search
 A pointer to a
 .Sq search
 function used in indirect configuration.
-.It Dv CFARG_IATTR
+.It Dv .iattr
 A pointer to a constant C string
 .Pq const char *
 specifying an interface attribute.
 If a parent device carries only a single interface attribute, then this
-tag-value pair may be omitted.
+argument may be omitted.
 If an interface attribute is specified that the parent device does not
 carry, or no interface attribute is specifies and the parent device carries
 more than one, behavior is undefined.
 On kernels built with the
 .Dv DIAGNOSTIC
 option, this may result in an assertion panic.
-.It Dv CFARG_LOCATORS
+.It Dv .locators
 A pointer an a constant array of type
 .Sq int
 .Pq const int *
 containing interface attribute-specific locators.
-.It Dv CFARG_DEVHANDLE
+.It Dv .devhandle
 A devhandle_t
 .Pq passed by value
 corresponding to the device being attached.
 .El
+.Pp
+If no arguments are to be passed, the special value
+.Dv CFARGS_NONE
+may be used in place of the
+.Fn CFARGS
+macro.
 .Sh FUNCTIONS
 .Bl -tag -width compact
-.It Fn config_search "parent" "aux" "tag" "..."
+.It Fn config_search "parent" "aux" "cfargs"
 Performs indirect configuration of physical devices.
-Tag-value arguments consumed:
-.Dv CFARG_SEARCH ,
-.Dv CFARG_IATTR ,
-.Dv CFARG_LOCATORS .
+Cfargs consumed:
+.Em .search ,
+.Em .iattr ,
+.Em .locators .
 .Fn config_search
 iterates over all potential children, calling the given
 search function
@@ -205,13 +216,13 @@ itself.
 Note that this function is designed so that it can be used to apply an
 arbitrary function to all potential children.
 In this case callers may choose to ignore the return value.
-.It Fn config_found "parent" "aux" "print" "tag" "..."
+.It Fn config_found "parent" "aux" "print" "cfargs"
 Performs direct configuration on a physical device.
-Tag-value arguments consumed:
-.Dv CFARG_SUBMATCH ,
-.Dv CFARG_IATTR ,
-.Dv CFARG_LOCATORS ,
-.Dv CFARG_DEVHANDLE .
+Cfargs consumed:
+.Em .submatch ,
+.Em .iattr ,
+.Em .locators ,
+.Em .devhandle .
 .Fn config_found
 is called by the parent and in turn calls the specified submatch function
 as determined by the configuration table.
@@ -301,11 +312,11 @@ 

CVS commit: src/sys

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 16:19:18 UTC 2021

Modified Files:
src/sys/arch/acorn32/eb7500atx: rsbus.c
src/sys/arch/acorn32/mainbus: fd.c pioc.c
src/sys/arch/acorn32/podulebus: amps.c asc.c cosc.c csc.c podulebus.c
ptsc.c
src/sys/arch/algor/dev: bonito_mainbus.c mainbus.c vtpbc_mainbus.c
src/sys/arch/algor/pci: pcib.c
src/sys/arch/alpha/alpha: mainbus.c
src/sys/arch/alpha/jensenio: jensenio.c
src/sys/arch/alpha/mcbus: mcbus.c
src/sys/arch/alpha/pci: apecs.c cia.c dwlpx.c irongate.c lca.c mcpcia.c
sio.c tsc.c tsciic.c ttwoga.c
src/sys/arch/alpha/sableio: sableio.c
src/sys/arch/alpha/tc: tcasic.c
src/sys/arch/alpha/tlsb: gbus.c kftxx.c tlsb.c
src/sys/arch/amd64/amd64: amd64_mainbus.c
src/sys/arch/amiga/amiga: autoconf.c device.h
src/sys/arch/amiga/clockport: a1k2cp.c clockport.c gencp.c
src/sys/arch/amiga/dev: acafh.c afsc.c ahsc.c amidisplaycc.c atzsc.c
bppcsc.c cbiiisc.c drsc.c drsupio.c empsc.c fd.c gayle_pcmcia.c
grf.c grf_cc.c grf_cl.c grf_cv.c grf_cv3d.c grf_et.c grf_rh.c
grf_rt.c grf_ul.c gtsc.c gvpbus.c gvpio.c hyper.c ioblix_zbus.c
ivsc.c kbd.c mfc.c mgnsc.c mlhsc.c mntva.c ms.c otgsc.c p5bus.c
wesc.c wstsc.c xsh.c xsurf.c z3rambd.c zbus.c zssc.c
src/sys/arch/amiga/pci: cv3dpb.c em4k.c empb.c mppb.c p5pb.c
src/sys/arch/amigappc/amigappc: autoconf.c mainbus.c
src/sys/arch/arc/arc: mainbus.c
src/sys/arch/arc/dti: btl.c
src/sys/arch/arc/isa: isabus.c
src/sys/arch/arc/jazz: fd.c jazzio.c
src/sys/arch/arc/pci: necpb.c
src/sys/arch/arm/acpi: acpi_machdep.c acpipchb.c gic_acpi.c gtmr_acpi.c
src/sys/arch/arm/amlogic: meson_pinctrl.c meson_sdhc.c meson_sdio.c
mesongx_mmc.c
src/sys/arch/arm/at91: at91bus.c at91cf.c at91ohci.c at91pio.c
at91spi.c at91twi.c
src/sys/arch/arm/broadcom: bcm2835_bsc_acpi.c bcm2835_dwctwo.c
bcm2835_gpio.c bcm2835_mbox.c bcm2835_sdhost.c bcm2835_spi.c
bcm2838_pcie.c bcm53xx_cca.c bcm53xx_ccb.c bcm53xx_pax.c
bcm53xx_usb.c
src/sys/arch/arm/clps711x: clpslcd.c clpssoc.c
src/sys/arch/arm/cortex: armperiph.c
src/sys/arch/arm/ep93xx: epgpio.c epohci.c eppcic.c epsoc.c
src/sys/arch/arm/fdt: a9ptmr_fdt.c a9tmr_fdt.c a9wdt_fdt.c acpi_fdt.c
arm_fdt.c cpu_fdt.c gic_fdt.c gtmr_fdt.c l2cc_fdt.c pcihost_fdt.c
src/sys/arch/arm/footbridge: footbridge.c
src/sys/arch/arm/gemini: gemini_gmac.c gemini_gpio.c gemini_ipi.c
gemini_ipm.c gemini_lpc.c gemini_obio.c obio_ehci.c obio_lpchc.c
src/sys/arch/arm/imx: imx23_ahb.c imx23_apbh.c imx23_apbx.c
imx23_pinctrl.c imx23_ssp.c imx23_usb.c imx31_ahb.c imx31_aips.c
imx31_gpio.c imx51_axi.c imx51_ipuv3.c imx51_usb.c imx_pcic.c
imxgpio.c imxspi.c imxusb.c
src/sys/arch/arm/iomd: iomd.c iomdiic.c qms.c vidc20.c vidcvideo.c
src/sys/arch/arm/ixp12x0: ixp12x0.c ixpsip.c
src/sys/arch/arm/mainbus: mainbus.c
src/sys/arch/arm/marvell: mvsoc.c mvsocgpp.c
src/sys/arch/arm/mpcore: mpcore_axi.c mpcore_pmr.c
src/sys/arch/arm/nvidia: tegra210_xusbpad.c tegra_cec.c tegra_drm_fb.c
tegra_ehci.c tegra_gpio.c tegra_pcie.c tegra_xusb.c
src/sys/arch/arm/nxp: imx6_usb.c imxpcie.c
src/sys/arch/arm/omap: am335x_gpio.c obio_ohci.c omap2_gpio.c
omap2_gpmc.c omap2_l3i.c omap2_obio.c omap3_ehci.c omap3_i2c.c
omap_emifs.c omap_ocp.c omap_tipb.c omapfb.c omapl1x_ohci.c
omapl1x_tipb.c ti_iic.c tifb.c tiotg.c
src/sys/arch/arm/rockchip: rk3328_iomux.c rk3399_iomux.c rk_drm.c
rk_gpio.c rk_usb.c
src/sys/arch/arm/s3c2xx0: ohci_s3c24x0.c s3c2410.c s3c2410_extint.c
s3c2410_spi.c s3c2440.c s3c2440_extint.c s3c2440_i2s.c
s3c2440_sdi.c s3c2440_spi.c s3c2440_touch.c s3c2800.c s3c2800_pci.c
src/sys/arch/arm/sa11x0: sa.c sa11x0.c sa11x1_pcic.c
src/sys/arch/arm/samsung: exynos_ehci.c exynos_gpio.c exynos_ohci.c
mct.c
src/sys/arch/arm/sociox: sni_gpio.c sni_i2c.c
src/sys/arch/arm/sunxi: sun6i_spi.c sunxi_debe.c sunxi_drm.c
sunxi_gpio.c sunxi_mmc.c sunxi_ts.c
src/sys/arch/arm/ti: omap2_nand.c omap3_dss.c ti_ehci.c ti_gpio.c
ti_lcdc.c
src/sys/arch/arm/xilinx: zynq_usb.c
src/sys/arch/arm/xscale: becc.c i80312.c i80321.c iopi2c.c ixp425.c
ixp425_ixme.c ixp425_npe.c ixp425_sip.c pxa2x0.c pxa2x0_gpio.c
pxa2x0_mci.c pxa2x0_ohci.c pxa2x0_pcic.c
src/sys/arch/arm/zynq: zynq_axi.c zynq_usb.c
src/sys/arch/atari/atari: autoconf.c device.h
src/sys/arch/atari/dev: fd.c grf.c hdfd.c ite_cc.c ite_et.c kbd.c
   

CVS commit: [thorpej-cfargs2] src/sys/sys

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 14:21:28 UTC 2021

Modified Files:
src/sys/sys [thorpej-cfargs2]: device.h

Log Message:
Hide "struct cfargs" from user space.


To generate a diff of this commit:
cvs rdiff -u -r1.171.2.1 -r1.171.2.2 src/sys/sys/device.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/device.h
diff -u src/sys/sys/device.h:1.171.2.1 src/sys/sys/device.h:1.171.2.2
--- src/sys/sys/device.h:1.171.2.1	Tue Aug  3 15:00:15 2021
+++ src/sys/sys/device.h	Sat Aug  7 14:21:28 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.171.2.1 2021/08/03 15:00:15 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.171.2.2 2021/08/07 14:21:28 thorpej Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -530,6 +530,7 @@ struct pdevinit {
 /* This allows us to wildcard a device unit. */
 #define	DVUNIT_ANY	-1
 
+#if defined(_KERNEL) || defined(_KMEMUSER) || defined(_STANDALONE)
 /*
  * Arguments passed to config_search() and config_found().
  */
@@ -564,6 +565,7 @@ struct cfargs {
 		.cfargs_version = CFARGS_VERSION,			\
 		__VA_ARGS__		\
 	})
+#endif /* _KERNEL || _KMEMUSER || _STANDALONE */
 
 #ifdef _KERNEL
 



CVS commit: src/doc

2021-08-07 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 14:19:12 UTC 2021

Modified Files:
src/doc: BRANCHES

Log Message:
Document thorpej-futex2.


To generate a diff of this commit:
cvs rdiff -u -r1.360 -r1.361 src/doc/BRANCHES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.360 src/doc/BRANCHES:1.361
--- src/doc/BRANCHES:1.360	Sun Aug  1 21:00:41 2021
+++ src/doc/BRANCHES	Sat Aug  7 14:19:12 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.360 2021/08/01 21:00:41 thorpej Exp $
+#	$NetBSD: BRANCHES,v 1.361 2021/08/07 14:19:12 thorpej Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -762,6 +762,19 @@ Notes:		Normal futex operataions pass th
 		Also includes implementations of eventfd and timerfd, as
 		well as some additional improvements to COMPAT_LINUX{,32}.
 
+Branch:		thorpej-futex2
+Description:	Overhaul of futex operations to fix thread priority issues
+Status:		Active
+Start Date:	Thu Aug 5 2021
+End Date:
+Base Tag:	thorpej-futex2-base
+Maintainer:	Jason Thorpe 
+Scope:		src/sys src/tests/lib/libc/sys
+Notes:		Re-based version of thorpej-futex that includes ONLY
+		the original futex priority issue fixes.  The other
+		changes in thorpej-futex are still maintained on that
+		branch.
+
 Branch:		thorpej-i2c-spi-conf
 Description:	Improve device tree-based I2C and SPI enumeration.
 Status:		Active



CVS commit: [thorpej-futex2] src/tests/lib/libc/sys

2021-08-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 01:46:54 UTC 2021

Modified Files:
src/tests/lib/libc/sys [thorpej-futex2]: t_futex_ops.c

Log Message:
futex_wake_highest_pri is not expected to fail on the thorpej-futex2
branch.


To generate a diff of this commit:
cvs rdiff -u -r1.5.8.1 -r1.5.8.2 src/tests/lib/libc/sys/t_futex_ops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_futex_ops.c
diff -u src/tests/lib/libc/sys/t_futex_ops.c:1.5.8.1 src/tests/lib/libc/sys/t_futex_ops.c:1.5.8.2
--- src/tests/lib/libc/sys/t_futex_ops.c:1.5.8.1	Sat Aug  7 01:44:51 2021
+++ src/tests/lib/libc/sys/t_futex_ops.c	Sat Aug  7 01:46:54 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_futex_ops.c,v 1.5.8.1 2021/08/07 01:44:51 thorpej Exp $ */
+/* $NetBSD: t_futex_ops.c,v 1.5.8.2 2021/08/07 01:46:54 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2019, 2020 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 #include 
 __COPYRIGHT("@(#) Copyright (c) 2019, 2020\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_futex_ops.c,v 1.5.8.1 2021/08/07 01:44:51 thorpej Exp $");
+__RCSID("$NetBSD: t_futex_ops.c,v 1.5.8.2 2021/08/07 01:46:54 thorpej Exp $");
 
 #include 
 #include 
@@ -1483,7 +1483,6 @@ ATF_TC_HEAD(futex_wake_highest_pri, tc)
 }
 ATF_TC_BODY(futex_wake_highest_pri, tc)
 {
-	atf_tc_expect_fail("PR kern/55230");
 	do_test_wake_highest_pri();
 }
 ATF_TC_CLEANUP(futex_wake_highest_pri, tc)



CVS commit: [thorpej-futex2] src/tests/lib/libc/sys

2021-08-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 01:44:51 UTC 2021

Modified Files:
src/tests/lib/libc/sys [thorpej-futex2]: t_futex_ops.c

Log Message:
Fix the unit test for FUTEX_REQUEUE and FUTEX_CMP_REQUEUE to account
for the different return value semantics.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.8.1 src/tests/lib/libc/sys/t_futex_ops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_futex_ops.c
diff -u src/tests/lib/libc/sys/t_futex_ops.c:1.5 src/tests/lib/libc/sys/t_futex_ops.c:1.5.8.1
--- src/tests/lib/libc/sys/t_futex_ops.c:1.5	Wed May  6 05:14:27 2020
+++ src/tests/lib/libc/sys/t_futex_ops.c	Sat Aug  7 01:44:51 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_futex_ops.c,v 1.5 2020/05/06 05:14:27 thorpej Exp $ */
+/* $NetBSD: t_futex_ops.c,v 1.5.8.1 2021/08/07 01:44:51 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2019, 2020 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 #include 
 __COPYRIGHT("@(#) Copyright (c) 2019, 2020\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_futex_ops.c,v 1.5 2020/05/06 05:14:27 thorpej Exp $");
+__RCSID("$NetBSD: t_futex_ops.c,v 1.5.8.1 2021/08/07 01:44:51 thorpej Exp $");
 
 #include 
 #include 
@@ -824,9 +824,21 @@ do_futex_requeue_test(int flags, int op)
 	 * FUTEX 1: 0 LWPs
 	 */
 
-	/* Move all waiters from 0 to 1. */
-	ATF_REQUIRE(__futex(_word, op | flags,
-			0, NULL, _word1, INT_MAX, good_val3) == 0);
+	/*
+	 * Move all waiters from 0 to 1.
+	 *
+	 * N.B. different return value semantics for FUTEX_REQUEUE
+	 * vs. FUTEX_CMP_REQUEUE.
+	 */
+	if (op == FUTEX_CMP_REQUEUE) {
+		ATF_REQUIRE(__futex(_word, op | flags,
+0, NULL, _word1, INT_MAX,
+good_val3) == 4);
+	} else {
+		ATF_REQUIRE(__futex(_word, op | flags,
+0, NULL, _word1, INT_MAX,
+good_val3) == 0);
+	}
 
 	/*
 	 * FUTEX 0: 0 LWPs



CVS commit: [thorpej-futex2] src/sys/kern

2021-08-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Aug  7 01:22:34 UTC 2021

Modified Files:
src/sys/kern [thorpej-futex2]: sys_futex.c

Log Message:
The return values for FUTEX_REQUEUE and FUTEX_CMP_REQUEUE are different,
but we weren't doing to the right thing.

FUTEX_REQUEUE returns the number of waiters awakened.

FUTEX_CMP_REQUEUE returns the number of waiters awakenend plus the
number of waiters requeued (and it is an exercise for the caller to
calculate the number requeued, if it cares).


To generate a diff of this commit:
cvs rdiff -u -r1.12.4.4 -r1.12.4.5 src/sys/kern/sys_futex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_futex.c
diff -u src/sys/kern/sys_futex.c:1.12.4.4 src/sys/kern/sys_futex.c:1.12.4.5
--- src/sys/kern/sys_futex.c:1.12.4.4	Fri Aug  6 23:53:53 2021
+++ src/sys/kern/sys_futex.c	Sat Aug  7 01:22:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_futex.c,v 1.12.4.4 2021/08/06 23:53:53 thorpej Exp $	*/
+/*	$NetBSD: sys_futex.c,v 1.12.4.5 2021/08/07 01:22:33 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.4 2021/08/06 23:53:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.5 2021/08/07 01:22:33 thorpej Exp $");
 
 /*
  * Futexes
@@ -1158,7 +1158,7 @@ futex_wait(struct futex *f, int q, const
 static unsigned
 futex_wake(struct futex *f, int q, unsigned int const nwake,
 struct futex *f2, int q2, unsigned int const nrequeue,
-int bitset)
+int bitset, unsigned int *nrequeuedp)
 {
 	struct lwp *l, *l_next;
 	unsigned nwoken = 0;
@@ -1234,7 +1234,10 @@ futex_wake(struct futex *f, int q, unsig
 	futex_sq_unlock2(f, f2);
 
 	/* Return the number of waiters woken and requeued.  */
-	return nwoken + nrequeued;
+	if (nrequeuedp != NULL) {
+		*nrequeuedp = nrequeued;
+	}
+	return nwoken;
 }
 
 /*
@@ -1473,7 +1476,7 @@ futex_func_wake(bool shared, int *uaddr,
 	 */
 	futex_op_lock(f);
 	nwoken = futex_wake(f, FUTEX_WRITERQ, val,
-			NULL, FUTEX_WRITERQ, 0, val3);
+			NULL, FUTEX_WRITERQ, 0, val3, NULL);
 	futex_op_unlock(f);
 
 	/* Release the futex.  */
@@ -1498,6 +1501,7 @@ futex_func_requeue(bool shared, int op, 
 {
 	struct futex *f = NULL, *f2 = NULL;
 	unsigned nwoken = 0;	/* default to zero woken on early return */
+	unsigned nrequeued = 0;
 	int error;
 
 	/* Reject negative number of wakeups or requeues. */
@@ -1534,13 +1538,19 @@ futex_func_requeue(bool shared, int op, 
 		error = 0;
 		nwoken = futex_wake(f, FUTEX_WRITERQ, val,
 f2, FUTEX_WRITERQ, val2,
-FUTEX_BITSET_MATCH_ANY);
+FUTEX_BITSET_MATCH_ANY,
+);
 	}
 	futex_op_unlock2(f, f2);
 
 out:
-	/* Return the number of waiters woken.  */
-	*retval = nwoken;
+	/*
+	 * For FUTUEX_REQUEUE, return the numner of waiters woken.
+	 *
+	 * For FUTEX_CMP_REQUEUE, return the number of waiters woken
+	 * **and** requeued.
+	 */
+	*retval = nwoken + (op == FUTEX_CMP_REQUEUE) ? nrequeued : 0;
 
 	/* Release the futexes if we got them.  */
 	if (f2)
@@ -1728,11 +1738,11 @@ futex_func_wake_op(bool shared, int *uad
 	} while (actual != oldval);
 	nwoken = (f ? futex_wake(f, FUTEX_WRITERQ, val,
  NULL, FUTEX_WRITERQ, 0,
- FUTEX_BITSET_MATCH_ANY) : 0);
+ FUTEX_BITSET_MATCH_ANY, NULL) : 0);
 	if (f2 && futex_compute_cmp(oldval, val3))
 		nwoken += futex_wake(f2, FUTEX_WRITERQ, val2,
  NULL, FUTEX_WRITERQ, 0,
- FUTEX_BITSET_MATCH_ANY);
+ FUTEX_BITSET_MATCH_ANY, NULL);
 
 	/* Success! */
 	error = 0;
@@ -2067,7 +2077,7 @@ release_futex(uintptr_t const uptr, lwpi
 	if (oldval & FUTEX_WAITERS) {
 		(void)futex_wake(f, FUTEX_WRITERQ, 1,
  NULL, FUTEX_WRITERQ, 0,
- FUTEX_BITSET_MATCH_ANY);
+ FUTEX_BITSET_MATCH_ANY, NULL);
 	}
 
 	/* Unlock the queue and release the futex.  */



CVS commit: [thorpej-futex2] src/sys/kern

2021-08-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Fri Aug  6 23:53:53 UTC 2021

Modified Files:
src/sys/kern [thorpej-futex2]: sys_futex.c

Log Message:
Isolate knowledge of the union-ness of futex_key to where it's declared.


To generate a diff of this commit:
cvs rdiff -u -r1.12.4.3 -r1.12.4.4 src/sys/kern/sys_futex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_futex.c
diff -u src/sys/kern/sys_futex.c:1.12.4.3 src/sys/kern/sys_futex.c:1.12.4.4
--- src/sys/kern/sys_futex.c:1.12.4.3	Fri Aug  6 18:23:57 2021
+++ src/sys/kern/sys_futex.c	Fri Aug  6 23:53:53 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_futex.c,v 1.12.4.3 2021/08/06 18:23:57 thorpej Exp $	*/
+/*	$NetBSD: sys_futex.c,v 1.12.4.4 2021/08/06 23:53:53 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.3 2021/08/06 18:23:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.4 2021/08/06 23:53:53 thorpej Exp $");
 
 /*
  * Futexes
@@ -190,13 +190,16 @@ SDT_PROBE_DEFINE1(futex, wait, sleepq_bl
  *	A futex is addressed either by a vmspace+va (private) or by
  *	a uvm_voaddr (shared).
  */
-union futex_key {
+typedef union futex_key {
 	struct {
 		struct vmspace			*vmspace;
 		vaddr_tva;
 	}			fk_private;
 	struct uvm_voaddr	fk_shared;
-};
+} futex_key_t;
+
+CTASSERT(offsetof(futex_key_t, fk_private.va) ==
+	 offsetof(futex_key_t, fk_shared.offset));
 
 /*
  * struct futex
@@ -217,7 +220,7 @@ union futex_key {
  *	XXX field of the key.  Worth it?
  */
 struct futex {
-	union futex_key		fx_key;
+	futex_key_t		fx_key;
 	struct rb_node		fx_node;
 	unsigned long		fx_refcnt;
 	bool			fx_shared;
@@ -284,8 +287,8 @@ static int
 compare_futex_key(void *cookie, const void *n, const void *k)
 {
 	const struct futex *fa = n;
-	const union futex_key *fka = >fx_key;
-	const union futex_key *fkb = k;
+	const futex_key_t *fka = >fx_key;
+	const futex_key_t *fkb = k;
 
 	if ((uintptr_t)fka->fk_private.vmspace <
 	(uintptr_t)fkb->fk_private.vmspace)
@@ -319,8 +322,8 @@ static int
 compare_futex_shared_key(void *cookie, const void *n, const void *k)
 {
 	const struct futex *fa = n;
-	const union futex_key *fka = >fx_key;
-	const union futex_key *fkb = k;
+	const futex_key_t *fka = >fx_key;
+	const futex_key_t *fkb = k;
 
 	return uvm_voaddr_compare(>fk_shared, >fk_shared);
 }
@@ -539,7 +542,7 @@ futex_dtor(void *arg __unused, void *obj
  *	Initialize a futex key for lookup, etc.
  */
 static int
-futex_key_init(union futex_key *fk, struct vmspace *vm, vaddr_t va, bool shared)
+futex_key_init(futex_key_t *fk, struct vmspace *vm, vaddr_t va, bool shared)
 {
 	int error = 0;
 
@@ -560,7 +563,7 @@ futex_key_init(union futex_key *fk, stru
  *	Release a futex key.
  */
 static void
-futex_key_fini(union futex_key *fk, bool shared)
+futex_key_fini(futex_key_t *fk, bool shared)
 {
 	if (__predict_false(shared))
 		uvm_voaddr_release(>fk_shared);
@@ -578,7 +581,7 @@ futex_key_fini(union futex_key *fk, bool
  *	Never sleeps for memory, but may sleep to acquire a lock.
  */
 static struct futex *
-futex_create(union futex_key *fk, bool shared, uint8_t class)
+futex_create(futex_key_t *fk, bool shared, uint8_t class)
 {
 	struct futex *f;
 
@@ -725,7 +728,7 @@ futex_rele_count_not_last(struct futex *
  *	futex_lookup_create().
  */
 static int
-futex_lookup_by_key(union futex_key *fk, bool shared, uint8_t class,
+futex_lookup_by_key(futex_key_t *fk, bool shared, uint8_t class,
 struct futex **fp)
 {
 	struct futex *f;
@@ -804,7 +807,7 @@ out:	mutex_exit(_tab.lock);
 static int
 futex_lookup(int *uaddr, bool shared, uint8_t class, struct futex **fp)
 {
-	union futex_key fk;
+	futex_key_t fk;
 	struct vmspace *vm = curproc->p_vmspace;
 	vaddr_t va = (vaddr_t)uaddr;
 	int error;
@@ -852,7 +855,7 @@ futex_lookup(int *uaddr, bool shared, ui
 static int
 futex_lookup_create(int *uaddr, bool shared, uint8_t class, struct futex **fp)
 {
-	union futex_key fk;
+	futex_key_t fk;
 	struct vmspace *vm = curproc->p_vmspace;
 	struct futex *f = NULL;
 	vaddr_t va = (vaddr_t)uaddr;



CVS commit: [thorpej-futex2] src/sys/kern

2021-08-06 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Fri Aug  6 18:23:58 UTC 2021

Modified Files:
src/sys/kern [thorpej-futex2]: sys_futex.c

Log Message:
Correct a comment.


To generate a diff of this commit:
cvs rdiff -u -r1.12.4.2 -r1.12.4.3 src/sys/kern/sys_futex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_futex.c
diff -u src/sys/kern/sys_futex.c:1.12.4.2 src/sys/kern/sys_futex.c:1.12.4.3
--- src/sys/kern/sys_futex.c:1.12.4.2	Thu Aug  5 23:23:50 2021
+++ src/sys/kern/sys_futex.c	Fri Aug  6 18:23:57 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_futex.c,v 1.12.4.2 2021/08/05 23:23:50 thorpej Exp $	*/
+/*	$NetBSD: sys_futex.c,v 1.12.4.3 2021/08/06 18:23:57 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.2 2021/08/05 23:23:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.3 2021/08/06 18:23:57 thorpej Exp $");
 
 /*
  * Futexes
@@ -1250,7 +1250,7 @@ futex_op_lock(struct futex *f)
 /*
  * futex_op_unlock(f)
  *
- *	Release the queue lock of f.
+ *	Release the op lock of f.
  */
 static void
 futex_op_unlock(struct futex *f)



CVS commit: [thorpej-futex2] src/sys/kern

2021-08-05 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Aug  5 23:23:50 UTC 2021

Modified Files:
src/sys/kern [thorpej-futex2]: sys_futex.c

Log Message:
At the end of futex_wait(), when sleepq_block() returns 0, we would like
to assert that l->l_futex == NULL, because all of the code paths that awaken
a blocked thread in sys_futex.c itself clear l->l_futex.  Unfortunately,
there are certain received-a-signal situations (e.g. SIGKILL) where
sleepq_block() will not return an error after being awakened by the signal,
rendering this assertion too strong.

So, rather than going down the rabbit hole of reasoning out and altering
long-standing behavior of the signals code, just don't assert there and
treat a zero-return from sleepq_block() as an aborted futex wait if
l->l_futex != NULL.

(Thanks chs@ for helping chase this one down.)


To generate a diff of this commit:
cvs rdiff -u -r1.12.4.1 -r1.12.4.2 src/sys/kern/sys_futex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_futex.c
diff -u src/sys/kern/sys_futex.c:1.12.4.1 src/sys/kern/sys_futex.c:1.12.4.2
--- src/sys/kern/sys_futex.c:1.12.4.1	Thu Aug  5 23:14:21 2021
+++ src/sys/kern/sys_futex.c	Thu Aug  5 23:23:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_futex.c,v 1.12.4.1 2021/08/05 23:14:21 thorpej Exp $	*/
+/*	$NetBSD: sys_futex.c,v 1.12.4.2 2021/08/05 23:23:50 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.1 2021/08/05 23:14:21 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.2 2021/08/05 23:23:50 thorpej Exp $");
 
 /*
  * Futexes
@@ -1122,8 +1122,23 @@ futex_wait(struct futex *f, int q, const
 		else if (error != ETIMEDOUT)
 			error = EINTR;
 	} else {
-		KASSERT(l->l_futex == NULL);
-		SDT_PROBE0(futex, wait, finish, normally);
+		f = l->l_futex;
+		if (__predict_false(f != NULL)) {
+			/*
+			 * There are certain situations that can cause
+			 * sleepq_block() to return 0 even if we were
+			 * signalled (by e.g. SIGKILL).  In this case,
+			 * we will need to release our futex hold and
+			 * return EINTR (we're probably about to die
+			 * anyway).
+			 */
+			SDT_PROBE0(futex, wait, finish, aborted);
+			l->l_futex = NULL;
+			futex_rele(f);
+			error = EINTR;
+		} else {
+			SDT_PROBE0(futex, wait, finish, normally);
+		}
 	}
 
 	return error;



CVS commit: [thorpej-futex2] src/sys

2021-08-05 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Aug  5 23:14:21 UTC 2021

Modified Files:
src/sys/kern [thorpej-futex2]: sys_futex.c
src/sys/sys [thorpej-futex2]: lwp.h

Log Message:
Bring over just the futex sleepq infrastructure changes from thorpej-futex
to a new branch based on current HEAD.  This contains only the fixes for
the priority problems, and is intended to finish debugging those changes
(without the new extensions).


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.4.1 src/sys/kern/sys_futex.c
cvs rdiff -u -r1.212 -r1.212.14.1 src/sys/sys/lwp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_futex.c
diff -u src/sys/kern/sys_futex.c:1.12 src/sys/kern/sys_futex.c:1.12.4.1
--- src/sys/kern/sys_futex.c:1.12	Wed Jul 21 06:35:45 2021
+++ src/sys/kern/sys_futex.c	Thu Aug  5 23:14:21 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_futex.c,v 1.12 2021/07/21 06:35:45 skrll Exp $	*/
+/*	$NetBSD: sys_futex.c,v 1.12.4.1 2021/08/05 23:14:21 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12 2021/07/21 06:35:45 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.12.4.1 2021/08/05 23:14:21 thorpej Exp $");
 
 /*
  * Futexes
@@ -121,7 +121,9 @@ __KERNEL_RCSID(0, "$NetBSD: sys_futex.c,
 #include 
 #include 
 #include 
+#include 
 #include 
+#include 
 
 #include 
 #include 
@@ -130,13 +132,56 @@ __KERNEL_RCSID(0, "$NetBSD: sys_futex.c,
 #include 
 
 /*
+ * DTrace probes.
+ */
+SDT_PROVIDER_DEFINE(futex);
+
+/* entry: uaddr, val, bitset, timeout, clkflags, fflags */
+/* exit: error */
+SDT_PROBE_DEFINE6(futex, func, wait, entry, "int *", "int", "int",
+		  "struct timespec *", "int", "int");
+SDT_PROBE_DEFINE1(futex, func, wait, exit, "int");
+
+/* entry: uaddr, nwake, bitset, fflags */
+/* exit: error, nwoken */
+SDT_PROBE_DEFINE4(futex, func, wake, entry, "int *", "int", "int", "int");
+SDT_PROBE_DEFINE2(futex, func, wake, exit, "int", "int");
+
+/* entry: uaddr, nwake, uaddr2, nrequeue, fflags */
+/* exit: error, nwoken */
+SDT_PROBE_DEFINE5(futex, func, requeue, entry, "int *", "int", "int *", "int",
+		  "int");
+SDT_PROBE_DEFINE2(futex, func, requeue, exit, "int", "int");
+
+/* entry: uaddr, nwake, uaddr2, nrequeue, val3, fflags */
+/* exit: error, nwoken */
+SDT_PROBE_DEFINE6(futex, func, cmp_requeue, entry, "int *", "int", "int *",
+		  "int", "int", "int");
+SDT_PROBE_DEFINE2(futex, func, cmp_requeue, exit, "int", "int");
+
+/* entry: uaddr, nwake, uaddr2, nwake2, wakeop, fflags */
+/* exit: error, nwoken */
+SDT_PROBE_DEFINE6(futex, func, wake_op, entry, "int *", "int", "int *", "int",
+		  "int", "int");
+SDT_PROBE_DEFINE2(futex, func, wake_op, exit, "int", "int");
+
+SDT_PROBE_DEFINE0(futex, wait, finish, normally);
+SDT_PROBE_DEFINE0(futex, wait, finish, wakerace);
+SDT_PROBE_DEFINE0(futex, wait, finish, aborted);
+
+/* entry: timo */
+/* exit: error */
+SDT_PROBE_DEFINE1(futex, wait, sleepq_block, entry, "int");
+SDT_PROBE_DEFINE1(futex, wait, sleepq_block, exit, "int");
+
+/*
  * Lock order:
  *
  *	futex_tab.lock
- *	futex::fx_qlock			ordered by kva of struct futex
- *	 -> futex_wait::fw_lock		only one at a time
- *	futex_wait::fw_lock		only one at a time
- *	 -> futex::fx_abortlock		only one at a time
+ *	futex::fx_op_lock		ordered by kva of struct futex
+ *	 -> futex::fx_sq_lock		ordered by kva of sleepq lock
+ *
+ * N.B. multiple futexes can share a single sleepq lock.
  */
 
 /*
@@ -166,37 +211,52 @@ union futex_key {
  *	that can be present on the system at any given time, and the
  *	assumption is that limit will be good enough on a 32-bit platform.
  *	See futex_wake() for why overflow needs to be avoided.
+ *
+ *	XXX Since futex addresses must be 4-byte aligned, we could
+ *	XXX squirrel away fx_shared and fx_on_tree bits in the "va"
+ *	XXX field of the key.  Worth it?
  */
 struct futex {
 	union futex_key		fx_key;
+	struct rb_node		fx_node;
 	unsigned long		fx_refcnt;
 	bool			fx_shared;
 	bool			fx_on_tree;
-	struct rb_node		fx_node;
+	uint8_t			fx_class;
 
-	kmutex_t			fx_qlock;
-	TAILQ_HEAD(, futex_wait)	fx_queue;
-
-	kmutex_t			fx_abortlock;
-	LIST_HEAD(, futex_wait)		fx_abortlist;
-	kcondvar_t			fx_abortcv;
+	kmutex_t		fx_op_lock;	/* adaptive */
+	kmutex_t *		fx_sq_lock;	/* _locks[...] */
+	sleepq_t		fx_sqs[2];	/* 0=reader, 1=writer */
+	unsigned int		fx_nwaiters[2];
 };
 
 /*
- * struct futex_wait
- *
- *	State for a thread to wait on a futex.  Threads wait on fw_cv
- *	for fw_bitset to be set to zero.  The thread may transition to
- *	a different futex queue at any time under the futex's lock.
- */
-struct futex_wait {
-	kmutex_t		fw_lock;
-	kcondvar_t		fw_cv;
-	struct futex		*fw_futex;
-	TAILQ_ENTRY(futex_wait)	fw_entry;	/* queue lock */
-	LIST_ENTRY(futex_wait)	fw_abort;	/* queue abortlock */
-	int			

CVS commit: [thorpej-cfargs2] src/sys/dev/raidframe

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Aug  5 03:37:41 UTC 2021

Modified Files:
src/sys/dev/raidframe [thorpej-cfargs2]: raidframeio.h raidframevar.h
rf_dagfuncs.c rf_netbsdkintf.c rf_pqdegdags.c rf_raid.h

Log Message:
Sync w/ HEAD.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.28.1 src/sys/dev/raidframe/raidframeio.h
cvs rdiff -u -r1.21 -r1.21.18.1 src/sys/dev/raidframe/raidframevar.h
cvs rdiff -u -r1.33 -r1.33.2.1 src/sys/dev/raidframe/rf_dagfuncs.c
cvs rdiff -u -r1.397 -r1.397.2.1 src/sys/dev/raidframe/rf_netbsdkintf.c
cvs rdiff -u -r1.14 -r1.14.2.1 src/sys/dev/raidframe/rf_pqdegdags.c
cvs rdiff -u -r1.49 -r1.49.2.1 src/sys/dev/raidframe/rf_raid.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/raidframe/raidframeio.h
diff -u src/sys/dev/raidframe/raidframeio.h:1.9 src/sys/dev/raidframe/raidframeio.h:1.9.28.1
--- src/sys/dev/raidframe/raidframeio.h:1.9	Sat Jan 20 01:32:45 2018
+++ src/sys/dev/raidframe/raidframeio.h	Thu Aug  5 03:37:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: raidframeio.h,v 1.9 2018/01/20 01:32:45 mrg Exp $ */
+/*	$NetBSD: raidframeio.h,v 1.9.28.1 2021/08/05 03:37:41 thorpej Exp $ */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -133,5 +133,6 @@
 #define RAIDFRAME_SET_LAST_UNIT _IOW('r', 41, int)
 #define RAIDFRAME_GET_INFO  _IOWR('r', 42, RF_DeviceConfig_t *)	/* get configuration */
 #define RAIDFRAME_CONFIGURE _IOW ('r',  43, void *)	/* configure the driver */
-
+#define RAIDFRAME_RESCAN  _IO ('r', 44)
 #endif/* !_RF_RAIDFRAMEIO_H_ */
+

Index: src/sys/dev/raidframe/raidframevar.h
diff -u src/sys/dev/raidframe/raidframevar.h:1.21 src/sys/dev/raidframe/raidframevar.h:1.21.18.1
--- src/sys/dev/raidframe/raidframevar.h:1.21	Thu Oct 10 03:43:59 2019
+++ src/sys/dev/raidframe/raidframevar.h	Thu Aug  5 03:37:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: raidframevar.h,v 1.21 2019/10/10 03:43:59 christos Exp $ */
+/*	$NetBSD: raidframevar.h,v 1.21.18.1 2021/08/05 03:37:41 thorpej Exp $ */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -355,6 +355,7 @@ typedef RF_uint32 RF_ReconReqFlags_t;
 /* flags that can be put in the rf_recon_req structure */
 #define RF_FDFLAGS_NONE   0x0	/* just fail the disk */
 #define RF_FDFLAGS_RECON  0x1	/* fail and initiate recon */
+#define RF_FDFLAGS_RECON_FORCE  0x2	/* fail and initiate recon, ignoring errors */
 
 struct rf_recon_req {		/* used to tell the kernel to fail a disk */
 	RF_RowCol_t col;

Index: src/sys/dev/raidframe/rf_dagfuncs.c
diff -u src/sys/dev/raidframe/rf_dagfuncs.c:1.33 src/sys/dev/raidframe/rf_dagfuncs.c:1.33.2.1
--- src/sys/dev/raidframe/rf_dagfuncs.c:1.33	Tue Jul 27 03:01:48 2021
+++ src/sys/dev/raidframe/rf_dagfuncs.c	Thu Aug  5 03:37:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_dagfuncs.c,v 1.33 2021/07/27 03:01:48 oster Exp $	*/
+/*	$NetBSD: rf_dagfuncs.c,v 1.33.2.1 2021/08/05 03:37:41 thorpej Exp $	*/
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -48,7 +48,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rf_dagfuncs.c,v 1.33 2021/07/27 03:01:48 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagfuncs.c,v 1.33.2.1 2021/08/05 03:37:41 thorpej Exp $");
 
 #include 
 #include 
@@ -121,7 +121,7 @@ rf_TerminateUndoFunc(RF_DagNode_t *node)
  *
  * parameters:
  *
- * 0 - physical disk addres of data
+ * 0 - physical disk address of data
  * 1 - buffer for holding read data
  * 2 - parity stripe ID
  * 3 - flags

Index: src/sys/dev/raidframe/rf_netbsdkintf.c
diff -u src/sys/dev/raidframe/rf_netbsdkintf.c:1.397 src/sys/dev/raidframe/rf_netbsdkintf.c:1.397.2.1
--- src/sys/dev/raidframe/rf_netbsdkintf.c:1.397	Mon Jul 26 22:50:36 2021
+++ src/sys/dev/raidframe/rf_netbsdkintf.c	Thu Aug  5 03:37:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_netbsdkintf.c,v 1.397 2021/07/26 22:50:36 oster Exp $	*/
+/*	$NetBSD: rf_netbsdkintf.c,v 1.397.2.1 2021/08/05 03:37:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  ***/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.397 2021/07/26 22:50:36 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.397.2.1 2021/08/05 03:37:41 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_raid_autoconfig.h"
@@ -305,6 +305,7 @@ static void rf_RewriteParityThread(RF_Ra
 static void rf_CopybackThread(RF_Raid_t *raidPtr);
 static void rf_ReconstructInPlaceThread(struct rf_recon_req_internal *);
 static int rf_autoconfig(device_t);
+static int rf_rescan(void);
 static void rf_buildroothack(RF_ConfigSet_t *);
 
 static RF_AutoConfig_t *rf_find_raid_components(void);
@@ -480,6 +481,56 @@ rf_containsboot(RF_Raid_t *r, device_t b
 	return 0;
 }
 
+static int
+rf_rescan(void)
+{
+	

CVS commit: [thorpej-cfargs2] src/sys/rump

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Aug  5 00:41:14 UTC 2021

Modified Files:
src/sys/rump/dev/lib/libpci [thorpej-cfargs2]: pci_at_mainbus.c
src/sys/rump/dev/lib/libugenhc [thorpej-cfargs2]: ugenhc.c
src/sys/rump/librump/rumpkern [thorpej-cfargs2]: rump_autoconf.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/rump/dev/lib/libpci/pci_at_mainbus.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/rump/dev/lib/libugenhc/ugenhc.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/rump/librump/rumpkern/rump_autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/dev/lib/libpci/pci_at_mainbus.c
diff -u src/sys/rump/dev/lib/libpci/pci_at_mainbus.c:1.9 src/sys/rump/dev/lib/libpci/pci_at_mainbus.c:1.9.8.1
--- src/sys/rump/dev/lib/libpci/pci_at_mainbus.c:1.9	Sat Apr 24 23:37:01 2021
+++ src/sys/rump/dev/lib/libpci/pci_at_mainbus.c	Thu Aug  5 00:41:14 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_at_mainbus.c,v 1.9 2021/04/24 23:37:01 thorpej Exp $	*/
+/*	$NetBSD: pci_at_mainbus.c,v 1.9.8.1 2021/08/05 00:41:14 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pci_at_mainbus.c,v 1.9 2021/04/24 23:37:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_at_mainbus.c,v 1.9.8.1 2021/08/05 00:41:14 thorpej Exp $");
 
 #include 
 #include 
@@ -99,6 +99,5 @@ RUMP_COMPONENT(RUMP_COMPONENT_DEV_AFTERM
 	if (!mainbus)
 		panic("no mainbus.  use maintaxi instead?");
 	config_found(mainbus, , pcibusprint,
-	CFARG_IATTR, "pcibus",
-	CFARG_EOL);
+	CFARGS(.iattr = "pcibus"));
 }

Index: src/sys/rump/dev/lib/libugenhc/ugenhc.c
diff -u src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.28 src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.28.8.1
--- src/sys/rump/dev/lib/libugenhc/ugenhc.c:1.28	Sat Apr 24 23:37:01 2021
+++ src/sys/rump/dev/lib/libugenhc/ugenhc.c	Thu Aug  5 00:41:14 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ugenhc.c,v 1.28 2021/04/24 23:37:01 thorpej Exp $	*/
+/*	$NetBSD: ugenhc.c,v 1.28.8.1 2021/08/05 00:41:14 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -61,7 +61,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.28 2021/04/24 23:37:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.28.8.1 2021/08/05 00:41:14 thorpej Exp $");
 
 #include 
 #include 
@@ -959,5 +959,5 @@ ugenhc_attach(device_t parent, device_t 
 
 	mutex_init(>sc_lock, MUTEX_DEFAULT, IPL_NONE);
 
-	config_found(self, >sc_bus, usbctlprint, CFARG_EOL);
+	config_found(self, >sc_bus, usbctlprint, CFARGS_NONE);
 }

Index: src/sys/rump/librump/rumpkern/rump_autoconf.c
diff -u src/sys/rump/librump/rumpkern/rump_autoconf.c:1.2 src/sys/rump/librump/rumpkern/rump_autoconf.c:1.2.8.1
--- src/sys/rump/librump/rumpkern/rump_autoconf.c:1.2	Sat Apr 24 23:37:01 2021
+++ src/sys/rump/librump/rumpkern/rump_autoconf.c	Thu Aug  5 00:41:14 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump_autoconf.c,v 1.2 2021/04/24 23:37:01 thorpej Exp $	*/
+/*	$NetBSD: rump_autoconf.c,v 1.2.8.1 2021/08/05 00:41:14 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: rump_autoconf.c,v 1.2 2021/04/24 23:37:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_autoconf.c,v 1.2.8.1 2021/08/05 00:41:14 thorpej Exp $");
 
 #include 
 #include 
@@ -107,9 +107,7 @@ mainbus_attach(device_t parent, device_t
 
 	aprint_normal("\n");
 	config_search(self, NULL,
-	CFARG_SEARCH, mainbus_search,
-	CFARG_IATTR, "mainbus",
-	CFARG_EOL);
+	CFARGS(.search = mainbus_search));
 }
 
 static int
@@ -119,7 +117,7 @@ mainbus_search(device_t parent, cfdata_t
 
 	maa.maa_unit = cf->cf_unit;
 	if (config_probe(parent, cf, ))
-		config_attach(parent, cf, , NULL, CFARG_EOL);
+		config_attach(parent, cf, , NULL, CFARGS_NONE);
 
 	return 0;
 }



CVS commit: [thorpej-cfargs2] src/sys/netbt

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Aug  5 00:40:42 UTC 2021

Modified Files:
src/sys/netbt [thorpej-cfargs2]: hci_unit.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/netbt/hci_unit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netbt/hci_unit.c
diff -u src/sys/netbt/hci_unit.c:1.15 src/sys/netbt/hci_unit.c:1.15.8.1
--- src/sys/netbt/hci_unit.c:1.15	Sat Apr 24 23:37:01 2021
+++ src/sys/netbt/hci_unit.c	Thu Aug  5 00:40:42 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: hci_unit.c,v 1.15 2021/04/24 23:37:01 thorpej Exp $	*/
+/*	$NetBSD: hci_unit.c,v 1.15.8.1 2021/08/05 00:40:42 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2005 Iain Hibbert.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: hci_unit.c,v 1.15 2021/04/24 23:37:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hci_unit.c,v 1.15.8.1 2021/08/05 00:40:42 thorpej Exp $");
 
 #include 
 #include 
@@ -194,8 +194,7 @@ hci_enable(struct hci_unit *unit)
 	 * Attach Bluetooth Device Hub
 	 */
 	unit->hci_bthub = config_found(unit->hci_dev, >hci_bdaddr, NULL,
-	CFARG_IATTR, "btbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "btbus"));
 
 	return 0;
 



CVS commit: [thorpej-cfargs2] src/sys/external/bsd

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Aug  5 00:39:17 UTC 2021

Modified Files:
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu [thorpej-cfargs2]:
amdgpu_fb.c
src/sys/external/bsd/drm2/dist/drm/i915 [thorpej-cfargs2]:
intel_fbdev.c
src/sys/external/bsd/drm2/dist/drm/nouveau [thorpej-cfargs2]:
nouveau_fbcon.c
src/sys/external/bsd/drm2/dist/drm/radeon [thorpej-cfargs2]:
radeon_fb.c
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm [thorpej-cfargs2]:
vchiq_netbsd_acpi.c vchiq_netbsd_fdt.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.8.1 \
src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c
cvs rdiff -u -r1.14 -r1.14.8.1 \
src/sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c
cvs rdiff -u -r1.10 -r1.10.8.1 \
src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c
cvs rdiff -u -r1.9 -r1.9.8.1 \
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c
cvs rdiff -u -r1.4 -r1.4.8.1 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_acpi.c
cvs rdiff -u -r1.6 -r1.6.8.1 \
src/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_netbsd_fdt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c
diff -u src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c:1.6 src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c:1.6.8.1
--- src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c:1.6	Sat Apr 24 23:37:00 2021
+++ src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_fb.c	Thu Aug  5 00:39:16 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: amdgpu_fb.c,v 1.6 2021/04/24 23:37:00 thorpej Exp $	*/
+/*	$NetBSD: amdgpu_fb.c,v 1.6.8.1 2021/08/05 00:39:16 thorpej Exp $	*/
 
 /*
  * Copyright © 2007 David Airlie
@@ -26,7 +26,7 @@
  * David Airlie
  */
 #include 
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_fb.c,v 1.6 2021/04/24 23:37:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_fb.c,v 1.6.8.1 2021/08/05 00:39:16 thorpej Exp $");
 
 #include 
 #include 
@@ -235,8 +235,7 @@ static int amdgpufb_create(struct drm_fb
 	afa.afa_fb_linebytes = mode_cmd.pitches[0];
 
 	helper->fbdev = config_found(adev->ddev->dev, , NULL,
-	CFARG_IATTR, "amdgpufbbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "amdgpufbbus"));
 	if (helper->fbdev == NULL) {
 		DRM_ERROR("failed to attach amdgpufb\n");
 		goto out_unref;

Index: src/sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c:1.14 src/sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c:1.14.8.1
--- src/sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c:1.14	Sat Apr 24 23:37:00 2021
+++ src/sys/external/bsd/drm2/dist/drm/i915/intel_fbdev.c	Thu Aug  5 00:39:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: intel_fbdev.c,v 1.14 2021/04/24 23:37:00 thorpej Exp $	*/
+/*	$NetBSD: intel_fbdev.c,v 1.14.8.1 2021/08/05 00:39:17 thorpej Exp $	*/
 
 /*
  * Copyright © 2007 David Airlie
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: intel_fbdev.c,v 1.14 2021/04/24 23:37:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_fbdev.c,v 1.14.8.1 2021/08/05 00:39:17 thorpej Exp $");
 
 #include 
 #include 
@@ -254,8 +254,7 @@ static int intelfb_create(struct drm_fb_
 	 * dev->struct_mutex.
 	 */
 	helper->fbdev = config_found(dev->dev, , NULL,
-	CFARG_IATTR, "intelfbbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "intelfbbus"));
 	if (helper->fbdev == NULL) {
 		DRM_ERROR("unable to attach intelfb\n");
 		ret = -ENXIO;

Index: src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c
diff -u src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c:1.10 src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c:1.10.8.1
--- src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c:1.10	Sat Apr 24 23:37:00 2021
+++ src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fbcon.c	Thu Aug  5 00:39:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: nouveau_fbcon.c,v 1.10 2021/04/24 23:37:00 thorpej Exp $	*/
+/*	$NetBSD: nouveau_fbcon.c,v 1.10.8.1 2021/08/05 00:39:17 thorpej Exp $	*/
 
 /*
  * Copyright © 2007 David Airlie
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: nouveau_fbcon.c,v 1.10 2021/04/24 23:37:00 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_fbcon.c,v 1.10.8.1 2021/08/05 00:39:17 thorpej Exp $");
 
 #include 
 #include 
@@ -443,8 +443,7 @@ nouveau_fbcon_create(struct drm_fb_helpe
 	nfa.nfa_fb_linebytes = mode_cmd.pitches[0];
 
 	helper->fbdev = config_found(dev->dev, , nouveau_fbcon_print,
-	CFARG_IATTR, "nouveaufbbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "nouveaufbbus"));
 	if (helper->fbdev == NULL) {
 		goto out_unlock;
 	}

Index: src/sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c
diff -u src/sys/external/bsd/drm2/dist/drm/radeon/radeon_fb.c:1.9 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 23:25:00 UTC 2021

Modified Files:
src/sys/dev [thorpej-cfargs2]: midi.c radio.c spkr.c video.c
src/sys/dev/flash [thorpej-cfargs2]: flash.c flash_mtdparts.c
src/sys/dev/gpib [thorpej-cfargs2]: cs80bus.c gpib.c
src/sys/dev/hdaudio [thorpej-cfargs2]: hdaudio.c
src/sys/dev/hid [thorpej-cfargs2]: hidms.c
src/sys/dev/isapnp [thorpej-cfargs2]: isapnp.c wss_isapnp.c
src/sys/dev/iscsi [thorpej-cfargs2]: iscsi_main.c
src/sys/dev/mii [thorpej-cfargs2]: mii.c
src/sys/dev/mscp [thorpej-cfargs2]: mscp.c
src/sys/dev/mvme [thorpej-cfargs2]: mvmebus.c pcctwo.c
src/sys/dev/nand [thorpej-cfargs2]: nand.c
src/sys/dev/nor [thorpej-cfargs2]: nor.c
src/sys/dev/ofisa [thorpej-cfargs2]: ofisa.c
src/sys/dev/ofw [thorpej-cfargs2]: ofbus.c
src/sys/dev/onewire [thorpej-cfargs2]: onewire.c
src/sys/dev/pckbport [thorpej-cfargs2]: pckbd.c pckbport.c pms.c
src/sys/dev/sdmmc [thorpej-cfargs2]: sdhc.c sdmmc.c
src/sys/dev/spi [thorpej-cfargs2]: mcp23s17.c oj6sh.c spi.c spiflash.c
src/sys/dev/std [thorpej-cfargs2]: ieee1212.c
src/sys/dev/wsfb [thorpej-cfargs2]: genfb.c
src/sys/dev/xmi [thorpej-cfargs2]: xmi.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.93.6.1 src/sys/dev/midi.c
cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/dev/radio.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/spkr.c
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/dev/video.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/dev/flash/flash.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/dev/flash/flash_mtdparts.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/dev/gpib/cs80bus.c
cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/dev/gpib/gpib.c
cvs rdiff -u -r1.15 -r1.15.2.1 src/sys/dev/hdaudio/hdaudio.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/dev/hid/hidms.c
cvs rdiff -u -r1.61 -r1.61.8.1 src/sys/dev/isapnp/isapnp.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/dev/isapnp/wss_isapnp.c
cvs rdiff -u -r1.36 -r1.36.2.1 src/sys/dev/iscsi/iscsi_main.c
cvs rdiff -u -r1.56 -r1.56.8.1 src/sys/dev/mii/mii.c
cvs rdiff -u -r1.37 -r1.37.8.1 src/sys/dev/mscp/mscp.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/dev/mvme/mvmebus.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/dev/mvme/pcctwo.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/dev/nand/nand.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/dev/nor/nor.c
cvs rdiff -u -r1.33 -r1.33.6.1 src/sys/dev/ofisa/ofisa.c
cvs rdiff -u -r1.29 -r1.29.6.1 src/sys/dev/ofw/ofbus.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/dev/onewire/onewire.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/dev/pckbport/pckbd.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/dev/pckbport/pckbport.c
cvs rdiff -u -r1.38 -r1.38.8.1 src/sys/dev/pckbport/pms.c
cvs rdiff -u -r1.110 -r1.110.4.1 src/sys/dev/sdmmc/sdhc.c
cvs rdiff -u -r1.42 -r1.42.2.1 src/sys/dev/sdmmc/sdmmc.c
cvs rdiff -u -r1.3 -r1.3.2.1 src/sys/dev/spi/mcp23s17.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/dev/spi/oj6sh.c
cvs rdiff -u -r1.18 -r1.18.4.1 src/sys/dev/spi/spi.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/dev/spi/spiflash.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/dev/std/ieee1212.c
cvs rdiff -u -r1.82 -r1.82.8.1 src/sys/dev/wsfb/genfb.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/dev/xmi/xmi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/midi.c
diff -u src/sys/dev/midi.c:1.93 src/sys/dev/midi.c:1.93.6.1
--- src/sys/dev/midi.c:1.93	Mon Apr 26 21:54:56 2021
+++ src/sys/dev/midi.c	Wed Aug  4 23:24:57 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: midi.c,v 1.93 2021/04/26 21:54:56 thorpej Exp $	*/
+/*	$NetBSD: midi.c,v 1.93.6.1 2021/08/04 23:24:57 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.93 2021/04/26 21:54:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: midi.c,v 1.93.6.1 2021/08/04 23:24:57 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "midi.h"
@@ -1896,8 +1896,7 @@ midi_attach_mi(const struct midi_hw_if *
 	arg.hwif = mhwp;
 	arg.hdl = hdlp;
 	return (config_found(dev, , audioprint,
-			 CFARG_IATTR, "midibus",
-			 CFARG_EOL));
+			 CFARGS(.iattr = "midibus")));
 }
 
 #endif /* NMIDI > 0 || NMIDIBUS > 0 */

Index: src/sys/dev/radio.c
diff -u src/sys/dev/radio.c:1.30 src/sys/dev/radio.c:1.30.8.1
--- src/sys/dev/radio.c:1.30	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/radio.c	Wed Aug  4 23:24:57 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: radio.c,v 1.30 2021/04/24 23:36:52 thorpej Exp $ */
+/* $NetBSD: radio.c,v 1.30.8.1 2021/08/04 23:24:57 thorpej Exp $ */
 /* $OpenBSD: radio.c,v 1.2 2001/12/05 10:27:06 mickey Exp $ */
 /* $RuOBSD: radio.c,v 1.7 2001/12/04 06:03:05 tm Exp $ */
 
@@ -30,7 +30,7 @@
 /* This is the /dev/radio driver from OpenBSD */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: radio.c,v 1.30 2021/04/24 23:36:52 thorpej Exp 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 23:14:04 UTC 2021

Modified Files:
src/sys/dev/pcmcia [thorpej-cfargs2]: fdc_pcmcia.c mhzc.c pcmcia.c
pcmcom.c xirc.c
src/sys/dev/podulebus [thorpej-cfargs2]: acemidi.c
src/sys/dev/ppbus [thorpej-cfargs2]: ppbus_conf.c ppbus_gpio.c
src/sys/dev/qbus [thorpej-cfargs2]: rf.c rl.c uba.c uda.c
src/sys/dev/scsipi [thorpej-cfargs2]: atapi_wdc.c atapiconf.c
scsiconf.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/dev/pcmcia/fdc_pcmcia.c
cvs rdiff -u -r1.53 -r1.53.8.1 src/sys/dev/pcmcia/mhzc.c
cvs rdiff -u -r1.95 -r1.95.8.1 src/sys/dev/pcmcia/pcmcia.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/dev/pcmcia/pcmcom.c
cvs rdiff -u -r1.37 -r1.37.8.1 src/sys/dev/pcmcia/xirc.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/dev/podulebus/acemidi.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/dev/ppbus/ppbus_conf.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/dev/ppbus/ppbus_gpio.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/dev/qbus/rf.c
cvs rdiff -u -r1.52 -r1.52.8.1 src/sys/dev/qbus/rl.c
cvs rdiff -u -r1.82 -r1.82.8.1 src/sys/dev/qbus/uba.c
cvs rdiff -u -r1.62 -r1.62.8.1 src/sys/dev/qbus/uda.c
cvs rdiff -u -r1.139 -r1.139.8.1 src/sys/dev/scsipi/atapi_wdc.c
cvs rdiff -u -r1.92 -r1.92.8.1 src/sys/dev/scsipi/atapiconf.c
cvs rdiff -u -r1.291 -r1.291.8.1 src/sys/dev/scsipi/scsiconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pcmcia/fdc_pcmcia.c
diff -u src/sys/dev/pcmcia/fdc_pcmcia.c:1.21 src/sys/dev/pcmcia/fdc_pcmcia.c:1.21.8.1
--- src/sys/dev/pcmcia/fdc_pcmcia.c:1.21	Sat Apr 24 23:36:58 2021
+++ src/sys/dev/pcmcia/fdc_pcmcia.c	Wed Aug  4 23:14:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fdc_pcmcia.c,v 1.21 2021/04/24 23:36:58 thorpej Exp $	*/
+/*	$NetBSD: fdc_pcmcia.c,v 1.21.8.1 2021/08/04 23:14:04 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fdc_pcmcia.c,v 1.21 2021/04/24 23:36:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdc_pcmcia.c,v 1.21.8.1 2021/08/04 23:14:04 thorpej Exp $");
 
 #include 
 #include 
@@ -183,7 +183,7 @@ fdc_pcmcia_attach(device_t parent, devic
 			fa.fa_deftype = _types[0];
 		else
 			fa.fa_deftype = NULL;		/* unknown */
-		(void)config_found(self, (void *), fdprint, CFARG_EOL);
+		(void)config_found(self, (void *), fdprint, CFARGS_NONE);
 	}
 
 	return;

Index: src/sys/dev/pcmcia/mhzc.c
diff -u src/sys/dev/pcmcia/mhzc.c:1.53 src/sys/dev/pcmcia/mhzc.c:1.53.8.1
--- src/sys/dev/pcmcia/mhzc.c:1.53	Sat Apr 24 23:36:58 2021
+++ src/sys/dev/pcmcia/mhzc.c	Wed Aug  4 23:14:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mhzc.c,v 1.53 2021/04/24 23:36:58 thorpej Exp $	*/
+/*	$NetBSD: mhzc.c,v 1.53.8.1 2021/08/04 23:14:04 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2004 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mhzc.c,v 1.53 2021/04/24 23:36:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mhzc.c,v 1.53.8.1 2021/08/04 23:14:04 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -245,10 +245,10 @@ mhzc_attach(device_t parent, device_t se
 
 	/*XXXUNCONST*/
 	sc->sc_modem = config_found(self, __UNCONST("com"), mhzc_print,
-	CFARG_EOL);
+	CFARGS_NONE);
 	/*XXXUNCONST*/
 	sc->sc_ethernet = config_found(self, __UNCONST("sm"), mhzc_print,
-	CFARG_EOL);
+	CFARGS_NONE);
 
 	mhzc_disable(sc, MHZC_MODEM_ENABLED|MHZC_ETHERNET_ENABLED);
 	return;

Index: src/sys/dev/pcmcia/pcmcia.c
diff -u src/sys/dev/pcmcia/pcmcia.c:1.95 src/sys/dev/pcmcia/pcmcia.c:1.95.8.1
--- src/sys/dev/pcmcia/pcmcia.c:1.95	Sat Apr 24 23:36:58 2021
+++ src/sys/dev/pcmcia/pcmcia.c	Wed Aug  4 23:14:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcmcia.c,v 1.95 2021/04/24 23:36:58 thorpej Exp $	*/
+/*	$NetBSD: pcmcia.c,v 1.95.8.1 2021/08/04 23:14:04 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2004 Charles M. Hannum.  All rights reserved.
@@ -48,7 +48,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pcmcia.c,v 1.95 2021/04/24 23:36:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcmcia.c,v 1.95.8.1 2021/08/04 23:14:04 thorpej Exp $");
 
 #include "opt_pcmciaverbose.h"
 
@@ -246,9 +246,8 @@ pcmcia_rescan(device_t self, const char 
 		paa.pf = pf;
 
 		pf->child = config_found(self, , pcmcia_print,
-		CFARG_SUBMATCH, config_stdsubmatch,
-		CFARG_LOCATORS, locs,
-		CFARG_EOL);
+		CFARGS(.submatch = config_stdsubmatch,
+			   .locators = locs));
 	}
 
 	return (0);

Index: src/sys/dev/pcmcia/pcmcom.c
diff -u src/sys/dev/pcmcia/pcmcom.c:1.42 src/sys/dev/pcmcia/pcmcom.c:1.42.8.1
--- src/sys/dev/pcmcia/pcmcom.c:1.42	Sat Apr 24 23:36:58 2021
+++ src/sys/dev/pcmcia/pcmcom.c	Wed Aug  4 23:14:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcmcom.c,v 1.42 2021/04/24 23:36:58 thorpej Exp $	*/
+/*	$NetBSD: pcmcom.c,v 1.42.8.1 2021/08/04 23:14:04 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 23:09:02 UTC 2021

Modified Files:
src/sys/dev/sun [thorpej-cfargs2]: bwtwo.c cgsix.c cgthree.c kbd.c
sunms.c
src/sys/dev/vme [thorpej-cfargs2]: vme.c xd.c xy.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.37.8.1 src/sys/dev/sun/bwtwo.c
cvs rdiff -u -r1.69 -r1.69.8.1 src/sys/dev/sun/cgsix.c
cvs rdiff -u -r1.34 -r1.34.8.1 src/sys/dev/sun/cgthree.c \
src/sys/dev/sun/sunms.c
cvs rdiff -u -r1.72 -r1.72.8.1 src/sys/dev/sun/kbd.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/dev/vme/vme.c
cvs rdiff -u -r1.97 -r1.97.8.1 src/sys/dev/vme/xd.c
cvs rdiff -u -r1.101 -r1.101.8.1 src/sys/dev/vme/xy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/sun/bwtwo.c
diff -u src/sys/dev/sun/bwtwo.c:1.37 src/sys/dev/sun/bwtwo.c:1.37.8.1
--- src/sys/dev/sun/bwtwo.c:1.37	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/sun/bwtwo.c	Wed Aug  4 23:09:02 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: bwtwo.c,v 1.37 2021/04/24 23:36:59 thorpej Exp $ */
+/*	$NetBSD: bwtwo.c,v 1.37.8.1 2021/08/04 23:09:02 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.37 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwtwo.c,v 1.37.8.1 2021/08/04 23:09:02 thorpej Exp $");
 
 #include 
 #include 
@@ -324,7 +324,7 @@ bwtwoattach(struct bwtwo_softc *sc, cons
 		aa.console = isconsole;
 	aa.accessops = _accessops;
 	aa.accesscookie = >vd;
-	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARGS_NONE);
 #endif
 
 }

Index: src/sys/dev/sun/cgsix.c
diff -u src/sys/dev/sun/cgsix.c:1.69 src/sys/dev/sun/cgsix.c:1.69.8.1
--- src/sys/dev/sun/cgsix.c:1.69	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/sun/cgsix.c	Wed Aug  4 23:09:02 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cgsix.c,v 1.69 2021/04/24 23:36:59 thorpej Exp $ */
+/*	$NetBSD: cgsix.c,v 1.69.8.1 2021/08/04 23:09:02 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.69 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.69.8.1 2021/08/04 23:09:02 thorpej Exp $");
 
 #include 
 #include 
@@ -629,7 +629,7 @@ cg6attach(struct cgsix_softc *sc, const 
 	aa.console = isconsole;
 	aa.accessops = _accessops;
 	aa.accesscookie = >vd;
-	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 

Index: src/sys/dev/sun/cgthree.c
diff -u src/sys/dev/sun/cgthree.c:1.34 src/sys/dev/sun/cgthree.c:1.34.8.1
--- src/sys/dev/sun/cgthree.c:1.34	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/sun/cgthree.c	Wed Aug  4 23:09:02 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cgthree.c,v 1.34 2021/04/24 23:36:59 thorpej Exp $ */
+/*	$NetBSD: cgthree.c,v 1.34.8.1 2021/08/04 23:09:02 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.34 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.34.8.1 2021/08/04 23:09:02 thorpej Exp $");
 
 #include 
 #include 
@@ -244,7 +244,7 @@ cgthreeattach(struct cgthree_softc *sc, 
 	aa.console = isconsole;
 	aa.accessops = _accessops;
 	aa.accesscookie = >vd;
-	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 
Index: src/sys/dev/sun/sunms.c
diff -u src/sys/dev/sun/sunms.c:1.34 src/sys/dev/sun/sunms.c:1.34.8.1
--- src/sys/dev/sun/sunms.c:1.34	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/sun/sunms.c	Wed Aug  4 23:09:02 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: sunms.c,v 1.34 2021/04/24 23:36:59 thorpej Exp $	*/
+/*	$NetBSD: sunms.c,v 1.34.8.1 2021/08/04 23:09:02 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -52,7 +52,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunms.c,v 1.34 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunms.c,v 1.34.8.1 2021/08/04 23:09:02 thorpej Exp $");
 
 #include 
 #include 
@@ -174,7 +174,7 @@ sunms_attach(device_t parent, device_t s
 	a.accessops = _accessops;
 	a.accesscookie = ms;
 
-	ms->ms_wsmousedev = config_found(self, , wsmousedevprint, CFARG_EOL);
+	ms->ms_wsmousedev = config_found(self, , wsmousedevprint, CFARGS_NONE);
 #endif
 }
 

Index: src/sys/dev/sun/kbd.c
diff -u src/sys/dev/sun/kbd.c:1.72 src/sys/dev/sun/kbd.c:1.72.8.1
--- src/sys/dev/sun/kbd.c:1.72	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/sun/kbd.c	Wed Aug  4 23:09:02 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: kbd.c,v 1.72 2021/04/24 23:36:59 thorpej Exp $	*/
+/*	$NetBSD: kbd.c,v 1.72.8.1 2021/08/04 23:09:02 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
  */
 
 #include 

CVS commit: [thorpej-cfargs2] src/sys/dev/usb

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 23:07:57 UTC 2021

Modified Files:
src/sys/dev/usb [thorpej-cfargs2]: auvitek_audio.c auvitek_dtv.c
auvitek_i2c.c emdtv_dtv.c emdtv_ir.c irmce.c motg.c u3g.c uark.c
uatp.c ubsa.c uchcom.c udl.c udsir.c uep.c uftdi.c ugensa.c
uhidev.c uhmodem.c uipaq.c uirda.c ukbd.c umass_scsipi.c umcs.c
umct.c umodem_common.c uplcom.c usb_subr.c uslsa.c usscanner.c
ustir.c uts.c uvisor.c uvscom.c vhci.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/dev/usb/auvitek_audio.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/dev/usb/auvitek_dtv.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/dev/usb/auvitek_i2c.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/dev/usb/emdtv_dtv.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/dev/usb/emdtv_ir.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/dev/usb/irmce.c
cvs rdiff -u -r1.36 -r1.36.8.1 src/sys/dev/usb/motg.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/dev/usb/u3g.c src/sys/dev/usb/umct.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/dev/usb/uark.c
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/dev/usb/uatp.c src/sys/dev/usb/udl.c
cvs rdiff -u -r1.42 -r1.42.2.1 src/sys/dev/usb/ubsa.c
cvs rdiff -u -r1.39 -r1.39.2.1 src/sys/dev/usb/uchcom.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/dev/usb/udsir.c src/sys/dev/usb/uts.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/dev/usb/uep.c
cvs rdiff -u -r1.75 -r1.75.8.1 src/sys/dev/usb/uftdi.c
cvs rdiff -u -r1.44 -r1.44.8.1 src/sys/dev/usb/ugensa.c
cvs rdiff -u -r1.80 -r1.80.8.1 src/sys/dev/usb/uhidev.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/dev/usb/uhmodem.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/dev/usb/uipaq.c
cvs rdiff -u -r1.49 -r1.49.8.1 src/sys/dev/usb/uirda.c \
src/sys/dev/usb/usscanner.c
cvs rdiff -u -r1.151 -r1.151.2.1 src/sys/dev/usb/ukbd.c
cvs rdiff -u -r1.68 -r1.68.4.1 src/sys/dev/usb/umass_scsipi.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/dev/usb/umcs.c
cvs rdiff -u -r1.34 -r1.34.8.1 src/sys/dev/usb/umodem_common.c
cvs rdiff -u -r1.90 -r1.90.8.1 src/sys/dev/usb/uplcom.c
cvs rdiff -u -r1.265 -r1.265.2.1 src/sys/dev/usb/usb_subr.c
cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/dev/usb/uslsa.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/dev/usb/ustir.c
cvs rdiff -u -r1.56 -r1.56.8.1 src/sys/dev/usb/uvisor.c
cvs rdiff -u -r1.38 -r1.38.8.1 src/sys/dev/usb/uvscom.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/dev/usb/vhci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/auvitek_audio.c
diff -u src/sys/dev/usb/auvitek_audio.c:1.4 src/sys/dev/usb/auvitek_audio.c:1.4.8.1
--- src/sys/dev/usb/auvitek_audio.c:1.4	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/usb/auvitek_audio.c	Wed Aug  4 23:07:57 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek_audio.c,v 1.4 2021/04/24 23:36:59 thorpej Exp $ */
+/* $NetBSD: auvitek_audio.c,v 1.4.8.1 2021/08/04 23:07:57 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2010 Jared D. McNeill 
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: auvitek_audio.c,v 1.4 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvitek_audio.c,v 1.4.8.1 2021/08/04 23:07:57 thorpej Exp $");
 
 #include 
 #include 
@@ -97,10 +97,9 @@ auvitek_audio_attach(struct auvitek_soft
 		ilocs[USBIFIFCF_INTERFACE] = uiaa.uiaa_ifaceno;
 		sc->sc_audiodev =
 		config_found(sc->sc_dev, , auvitek_ifprint,
- CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "usbifif",
- CFARG_LOCATORS, ilocs,
- CFARG_EOL);
+ CFARGS(.submatch = config_stdsubmatch,
+	.iattr = "usbifif",
+	.locators = ilocs));
 		if (sc->sc_audiodev)
 			break;
 	}

Index: src/sys/dev/usb/auvitek_dtv.c
diff -u src/sys/dev/usb/auvitek_dtv.c:1.8 src/sys/dev/usb/auvitek_dtv.c:1.8.8.1
--- src/sys/dev/usb/auvitek_dtv.c:1.8	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/usb/auvitek_dtv.c	Wed Aug  4 23:07:57 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek_dtv.c,v 1.8 2021/04/24 23:36:59 thorpej Exp $ */
+/* $NetBSD: auvitek_dtv.c,v 1.8.8.1 2021/08/04 23:07:57 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill 
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: auvitek_dtv.c,v 1.8 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auvitek_dtv.c,v 1.8.8.1 2021/08/04 23:07:57 thorpej Exp $");
 
 #include 
 #include 
@@ -117,8 +117,7 @@ auvitek_dtv_rescan(struct auvitek_softc 
 
 	if (ifattr_match(ifattr, "dtvbus") && sc->sc_dtvdev == NULL)
 		sc->sc_dtvdev = config_found(sc->sc_dev, , dtv_print,
-		CFARG_IATTR, "dtvbus",
-		CFARG_EOL);
+		CFARGS(.iattr = "dtvbus"));
 }
 
 void

Index: src/sys/dev/usb/auvitek_i2c.c
diff -u src/sys/dev/usb/auvitek_i2c.c:1.6 src/sys/dev/usb/auvitek_i2c.c:1.6.8.1
--- src/sys/dev/usb/auvitek_i2c.c:1.6	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/usb/auvitek_i2c.c	Wed Aug  4 23:07:57 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: auvitek_i2c.c,v 1.6 2021/04/24 23:36:59 thorpej Exp $ 

CVS commit: [thorpej-cfargs2] src/sys/dev/sbus

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 21:35:17 UTC 2021

Modified Files:
src/sys/dev/sbus [thorpej-cfargs2]: agten.c cgtwelve.c dma_sbus.c
lebuffer.c magma.c mgx.c p9100.c qec.c sio16.c spif.c stp4020.c
tcx.c xbox.c zx.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/dev/sbus/agten.c \
src/sys/dev/sbus/spif.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/dev/sbus/cgtwelve.c
cvs rdiff -u -r1.37 -r1.37.4.1 src/sys/dev/sbus/dma_sbus.c
cvs rdiff -u -r1.38 -r1.38.4.1 src/sys/dev/sbus/lebuffer.c
cvs rdiff -u -r1.63 -r1.63.8.1 src/sys/dev/sbus/magma.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/dev/sbus/mgx.c
cvs rdiff -u -r1.64 -r1.64.8.1 src/sys/dev/sbus/p9100.c
cvs rdiff -u -r1.52 -r1.52.4.1 src/sys/dev/sbus/qec.c
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/dev/sbus/sio16.c
cvs rdiff -u -r1.70 -r1.70.8.1 src/sys/dev/sbus/stp4020.c
cvs rdiff -u -r1.59 -r1.59.8.1 src/sys/dev/sbus/tcx.c
cvs rdiff -u -r1.23 -r1.23.4.1 src/sys/dev/sbus/xbox.c
cvs rdiff -u -r1.46 -r1.46.8.1 src/sys/dev/sbus/zx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/sbus/agten.c
diff -u src/sys/dev/sbus/agten.c:1.33 src/sys/dev/sbus/agten.c:1.33.8.1
--- src/sys/dev/sbus/agten.c:1.33	Sat Apr 24 23:36:58 2021
+++ src/sys/dev/sbus/agten.c	Wed Aug  4 21:35:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: agten.c,v 1.33 2021/04/24 23:36:58 thorpej Exp $ */
+/*	$NetBSD: agten.c,v 1.33.8.1 2021/08/04 21:35:17 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.33 2021/04/24 23:36:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.33.8.1 2021/08/04 21:35:17 thorpej Exp $");
 
 /*
  * a driver for the Fujitsu AG-10e SBus framebuffer
@@ -370,7 +370,7 @@ agten_attach(device_t parent, device_t d
 	aa.accessops = _accessops;
 	aa.accesscookie = >vd;
 
-	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(sc->sc_dev, , wsemuldisplaydevprint, CFARGS_NONE);
 
 	fb->fb_driver = 
 	fb->fb_device = sc->sc_dev;
Index: src/sys/dev/sbus/spif.c
diff -u src/sys/dev/sbus/spif.c:1.33 src/sys/dev/sbus/spif.c:1.33.8.1
--- src/sys/dev/sbus/spif.c:1.33	Sat Apr 24 23:36:58 2021
+++ src/sys/dev/sbus/spif.c	Wed Aug  4 21:35:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: spif.c,v 1.33 2021/04/24 23:36:58 thorpej Exp $	*/
+/*	$NetBSD: spif.c,v 1.33.8.1 2021/08/04 21:35:17 thorpej Exp $	*/
 /*	$OpenBSD: spif.c,v 1.12 2003/10/03 16:44:51 miod Exp $	*/
 
 /*
@@ -41,7 +41,7 @@
 
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: spif.c,v 1.33 2021/04/24 23:36:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spif.c,v 1.33.8.1 2021/08/04 21:35:17 thorpej Exp $");
 
 #include "spif.h"
 #if NSPIF > 0
@@ -278,8 +278,8 @@ spif_attach(device_t parent, device_t se
 	printf(": rev %x chiprev %x osc %sMHz\n",
 	sc->sc_rev, sc->sc_rev2, clockfreq(sc->sc_osc));
 
-	(void)config_found(self, stty_match, NULL, CFARG_EOL);
-	(void)config_found(self, sbpp_match, NULL, CFARG_EOL);
+	(void)config_found(self, stty_match, NULL, CFARGS_NONE);
+	(void)config_found(self, sbpp_match, NULL, CFARGS_NONE);
 
 	return;
 

Index: src/sys/dev/sbus/cgtwelve.c
diff -u src/sys/dev/sbus/cgtwelve.c:1.7 src/sys/dev/sbus/cgtwelve.c:1.7.8.1
--- src/sys/dev/sbus/cgtwelve.c:1.7	Sat Apr 24 23:36:58 2021
+++ src/sys/dev/sbus/cgtwelve.c	Wed Aug  4 21:35:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cgtwelve.c,v 1.7 2021/04/24 23:36:58 thorpej Exp $ */
+/*	$NetBSD: cgtwelve.c,v 1.7.8.1 2021/08/04 21:35:17 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2010 Michael Lorenz
@@ -29,7 +29,7 @@
 /* a console driver for the Sun CG12 / Matrox SG3 graphics board */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cgtwelve.c,v 1.7 2021/04/24 23:36:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgtwelve.c,v 1.7.8.1 2021/08/04 21:35:17 thorpej Exp $");
 
 #include 
 #include 
@@ -256,7 +256,7 @@ cgtwelve_attach(device_t parent, device_
 	aa.accessops = _accessops;
 	aa.accesscookie = >vd;
 
-	config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 #ifdef CG12_DEBUG
 	{
 		int i;

Index: src/sys/dev/sbus/dma_sbus.c
diff -u src/sys/dev/sbus/dma_sbus.c:1.37 src/sys/dev/sbus/dma_sbus.c:1.37.4.1
--- src/sys/dev/sbus/dma_sbus.c:1.37	Mon May 10 23:53:44 2021
+++ src/sys/dev/sbus/dma_sbus.c	Wed Aug  4 21:35:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dma_sbus.c,v 1.37 2021/05/10 23:53:44 thorpej Exp $ */
+/*	$NetBSD: dma_sbus.c,v 1.37.4.1 2021/08/04 21:35:17 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: dma_sbus.c,v 1.37 2021/05/10 23:53:44 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dma_sbus.c,v 1.37.4.1 2021/08/04 21:35:17 thorpej Exp $");
 
 #include 
 #include 
@@ -211,8 +211,7 @@ dmaattach_sbus(device_t 

CVS commit: [thorpej-cfargs2] src/sys/dev/pci

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 21:27:00 UTC 2021

Modified Files:
src/sys/dev/pci [thorpej-cfargs2]: alipm.c amdpm_smbus.c amr.c arcmsr.c
btvmei.c btvmeii.c cmpci.c coram.c cxdtv.c ehci_pci.c eso.c fms.c
genfb_pci.c gffb.c ibmcd.c ichsmb.c if_msk.c if_sk.c igma.c ips.c
ismt.c jmide.c joy_eap.c lynxfb.c machfb.c mfii.c mly.c mpii.c
nfsmb.c oboe.c ohci_pci.c pccbb.c pci.c piixpm.c pm2fb.c pm3fb.c
ppb.c puc.c r128fb.c radeonfb.c sisfb.c sv.c tdvfb.c tga.c trm.c
twa.c twe.c uhci_pci.c unichromefb.c vga_pci.c vioscsi.c
virtio_pci.c voodoofb.c voyager.c wcfb.c xhci_pci.c xmm7360.c yds.c
src/sys/dev/pci/cxgb [thorpej-cfargs2]: cxgb_main.c
src/sys/dev/pci/igma [thorpej-cfargs2]: igmafb.c
src/sys/dev/pci/voyager [thorpej-cfargs2]: voyagerfb.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/dev/pci/alipm.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/dev/pci/amdpm_smbus.c \
src/sys/dev/pci/jmide.c
cvs rdiff -u -r1.66 -r1.66.8.1 src/sys/dev/pci/amr.c
cvs rdiff -u -r1.42 -r1.42.2.1 src/sys/dev/pci/arcmsr.c
cvs rdiff -u -r1.34 -r1.34.8.1 src/sys/dev/pci/btvmei.c
cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/dev/pci/btvmeii.c
cvs rdiff -u -r1.58 -r1.58.8.1 src/sys/dev/pci/cmpci.c \
src/sys/dev/pci/ohci_pci.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/dev/pci/coram.c \
src/sys/dev/pci/cxdtv.c src/sys/dev/pci/wcfb.c
cvs rdiff -u -r1.71 -r1.71.8.1 src/sys/dev/pci/ehci_pci.c
cvs rdiff -u -r1.74 -r1.74.6.1 src/sys/dev/pci/eso.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/dev/pci/fms.c src/sys/dev/pci/oboe.c
cvs rdiff -u -r1.39 -r1.39.8.1 src/sys/dev/pci/genfb_pci.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/dev/pci/gffb.c \
src/sys/dev/pci/voyager.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/dev/pci/ibmcd.c
cvs rdiff -u -r1.71 -r1.71.2.1 src/sys/dev/pci/ichsmb.c
cvs rdiff -u -r1.116 -r1.116.6.1 src/sys/dev/pci/if_msk.c
cvs rdiff -u -r1.108 -r1.108.6.1 src/sys/dev/pci/if_sk.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/dev/pci/igma.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/dev/pci/ips.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/dev/pci/ismt.c src/sys/dev/pci/mfii.c
cvs rdiff -u -r1.16 -r1.16.6.1 src/sys/dev/pci/joy_eap.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/dev/pci/lynxfb.c src/sys/dev/pci/pm3fb.c \
src/sys/dev/pci/sisfb.c
cvs rdiff -u -r1.105 -r1.105.2.1 src/sys/dev/pci/machfb.c
cvs rdiff -u -r1.54 -r1.54.8.1 src/sys/dev/pci/mly.c \
src/sys/dev/pci/voodoofb.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/dev/pci/mpii.c
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/dev/pci/nfsmb.c \
src/sys/dev/pci/vioscsi.c
cvs rdiff -u -r1.216 -r1.216.8.1 src/sys/dev/pci/pccbb.c
cvs rdiff -u -r1.160 -r1.160.4.1 src/sys/dev/pci/pci.c
cvs rdiff -u -r1.64 -r1.64.8.1 src/sys/dev/pci/piixpm.c
cvs rdiff -u -r1.32 -r1.32.8.1 src/sys/dev/pci/pm2fb.c
cvs rdiff -u -r1.72 -r1.72.4.1 src/sys/dev/pci/ppb.c
cvs rdiff -u -r1.41 -r1.41.8.1 src/sys/dev/pci/puc.c
cvs rdiff -u -r1.43 -r1.43.8.1 src/sys/dev/pci/r128fb.c
cvs rdiff -u -r1.115 -r1.115.2.1 src/sys/dev/pci/radeonfb.c
cvs rdiff -u -r1.60 -r1.60.8.1 src/sys/dev/pci/sv.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/dev/pci/tdvfb.c
cvs rdiff -u -r1.87 -r1.87.8.1 src/sys/dev/pci/tga.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/dev/pci/trm.c
cvs rdiff -u -r1.59 -r1.59.8.1 src/sys/dev/pci/twa.c
cvs rdiff -u -r1.109 -r1.109.8.1 src/sys/dev/pci/twe.c
cvs rdiff -u -r1.65 -r1.65.8.1 src/sys/dev/pci/uhci_pci.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/pci/unichromefb.c
cvs rdiff -u -r1.57 -r1.57.8.1 src/sys/dev/pci/vga_pci.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/dev/pci/virtio_pci.c \
src/sys/dev/pci/xhci_pci.c
cvs rdiff -u -r1.8 -r1.8.2.1 src/sys/dev/pci/xmm7360.c
cvs rdiff -u -r1.67 -r1.67.8.1 src/sys/dev/pci/yds.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/dev/pci/cxgb/cxgb_main.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/dev/pci/igma/igmafb.c
cvs rdiff -u -r1.32 -r1.32.4.1 src/sys/dev/pci/voyager/voyagerfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/alipm.c
diff -u src/sys/dev/pci/alipm.c:1.12 src/sys/dev/pci/alipm.c:1.12.8.1
--- src/sys/dev/pci/alipm.c:1.12	Sat Apr 24 23:36:57 2021
+++ src/sys/dev/pci/alipm.c	Wed Aug  4 21:27:00 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: alipm.c,v 1.12 2021/04/24 23:36:57 thorpej Exp $ */
+/*	$NetBSD: alipm.c,v 1.12.8.1 2021/08/04 21:27:00 thorpej Exp $ */
 /*	$OpenBSD: alipm.c,v 1.13 2007/05/03 12:19:01 dlg Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: alipm.c,v 1.12 2021/04/24 23:36:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alipm.c,v 1.12.8.1 2021/08/04 21:27:00 thorpej Exp $");
 
 #include 
 #include 
@@ -210,7 +210,7 @@ alipm_attach(device_t parent, device_t s
 
 	memset(, 0, sizeof iba);
 	iba.iba_tag = >sc_smb_tag;
-	config_found(sc->sc_dev, , iicbus_print, 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 21:00:41 UTC 2021

Modified Files:
src/sys/dev/marvell [thorpej-cfargs2]: ehci_mv.c gt.c gtpci.c if_gfe.c
if_mvgbe.c mvpex.c mvsdio.c mvspi.c obio.c
src/sys/dev/mca [thorpej-cfargs2]: edc_mca.c mca.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/dev/marvell/ehci_mv.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/dev/marvell/gt.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/dev/marvell/gtpci.c
cvs rdiff -u -r1.58 -r1.58.8.1 src/sys/dev/marvell/if_gfe.c
cvs rdiff -u -r1.60 -r1.60.8.1 src/sys/dev/marvell/if_mvgbe.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/dev/marvell/mvpex.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/dev/marvell/mvsdio.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/dev/marvell/mvspi.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/dev/marvell/obio.c
cvs rdiff -u -r1.53 -r1.53.8.1 src/sys/dev/mca/edc_mca.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/dev/mca/mca.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/marvell/ehci_mv.c
diff -u src/sys/dev/marvell/ehci_mv.c:1.9 src/sys/dev/marvell/ehci_mv.c:1.9.8.1
--- src/sys/dev/marvell/ehci_mv.c:1.9	Sat Apr 24 23:36:56 2021
+++ src/sys/dev/marvell/ehci_mv.c	Wed Aug  4 21:00:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ehci_mv.c,v 1.9 2021/04/24 23:36:56 thorpej Exp $	*/
+/*	$NetBSD: ehci_mv.c,v 1.9.8.1 2021/08/04 21:00:41 thorpej Exp $	*/
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ehci_mv.c,v 1.9 2021/04/24 23:36:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_mv.c,v 1.9.8.1 2021/08/04 21:00:41 thorpej Exp $");
 
 #include 
 #include 
@@ -247,7 +247,7 @@ mvusb_attach(device_t parent, device_t s
 
 	/* Attach usb device. */
 	sc->sc.sc_child = config_found(self, >sc.sc_bus, usbctlprint,
-	CFARG_EOL);
+	CFARGS_NONE);
 }
 
 static void

Index: src/sys/dev/marvell/gt.c
diff -u src/sys/dev/marvell/gt.c:1.29 src/sys/dev/marvell/gt.c:1.29.8.1
--- src/sys/dev/marvell/gt.c:1.29	Sat Apr 24 23:36:56 2021
+++ src/sys/dev/marvell/gt.c	Wed Aug  4 21:00:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gt.c,v 1.29 2021/04/24 23:36:56 thorpej Exp $	*/
+/*	$NetBSD: gt.c,v 1.29.8.1 2021/08/04 21:00:41 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.29 2021/04/24 23:36:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.29.8.1 2021/08/04 21:00:41 thorpej Exp $");
 
 #include "opt_marvell.h"
 #include "gtmpsc.h"
@@ -236,8 +236,7 @@ gt_attach_peripherals(struct gt_softc *s
 		mva.mva_irq = gt_devs[i].irq;
 
 		config_found(sc->sc_dev, , gt_cfprint,
-		CFARG_SUBMATCH, gt_cfsearch,
-		CFARG_EOL);
+		CFARGS(.submatch = gt_cfsearch));
 	}
 }
 

Index: src/sys/dev/marvell/gtpci.c
diff -u src/sys/dev/marvell/gtpci.c:1.35 src/sys/dev/marvell/gtpci.c:1.35.8.1
--- src/sys/dev/marvell/gtpci.c:1.35	Sat Apr 24 23:36:56 2021
+++ src/sys/dev/marvell/gtpci.c	Wed Aug  4 21:00:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gtpci.c,v 1.35 2021/04/24 23:36:56 thorpej Exp $	*/
+/*	$NetBSD: gtpci.c,v 1.35.8.1 2021/08/04 21:00:41 thorpej Exp $	*/
 /*
  * Copyright (c) 2008, 2009 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gtpci.c,v 1.35 2021/04/24 23:36:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gtpci.c,v 1.35.8.1 2021/08/04 21:00:41 thorpej Exp $");
 
 #include "opt_pci.h"
 #include "pci.h"
@@ -492,7 +492,7 @@ gtpci_pci_config(struct gtpci_softc *sc,
 	pba.pba_flags |= PCI_FLAGS_MWI_OKAY;
 	pba.pba_bus = GTPCI_P2PC_BUSNUMBER(p2pc);
 	pba.pba_bridgetag = NULL;
-	config_found(sc->sc_dev, , NULL, CFARG_EOL);
+	config_found(sc->sc_dev, , NULL, CFARGS_NONE);
 }
 
 

Index: src/sys/dev/marvell/if_gfe.c
diff -u src/sys/dev/marvell/if_gfe.c:1.58 src/sys/dev/marvell/if_gfe.c:1.58.8.1
--- src/sys/dev/marvell/if_gfe.c:1.58	Sat Apr 24 23:36:56 2021
+++ src/sys/dev/marvell/if_gfe.c	Wed Aug  4 21:00:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_gfe.c,v 1.58 2021/04/24 23:36:56 thorpej Exp $	*/
+/*	$NetBSD: if_gfe.c,v 1.58.8.1 2021/08/04 21:00:41 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_gfe.c,v 1.58 2021/04/24 23:36:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gfe.c,v 1.58.8.1 2021/08/04 21:00:41 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -250,8 +250,7 @@ gfec_attach(device_t parent, device_t se
 		gfea.mva_dmat = mva->mva_dmat;
 		gfea.mva_irq = gfe_irqs[i];
 		config_found(sc->sc_dev, , gfec_print,
-		CFARG_SUBMATCH, gfec_search,
-		CFARG_EOL);
+		CFARGS(.submatch = gfec_search));
 	}
 }
 

Index: src/sys/dev/marvell/if_mvgbe.c
diff -u src/sys/dev/marvell/if_mvgbe.c:1.60 

CVS commit: [thorpej-cfargs2] src/sys/dev/tc

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 20:31:00 UTC 2021

Modified Files:
src/sys/dev/tc [thorpej-cfargs2]: cfb.c ioasic_subr.c mfb.c sfb.c
sfbplus.c stic.c tc.c tcds.c tcu.c tfb.c xcfb.c zs_ioasic.c zskbd.c
zsms.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.64.8.1 src/sys/dev/tc/cfb.c src/sys/dev/tc/tfb.c
cvs rdiff -u -r1.15 -r1.15.6.1 src/sys/dev/tc/ioasic_subr.c
cvs rdiff -u -r1.62 -r1.62.8.1 src/sys/dev/tc/mfb.c
cvs rdiff -u -r1.87 -r1.87.8.1 src/sys/dev/tc/sfb.c
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/dev/tc/sfbplus.c
cvs rdiff -u -r1.55 -r1.55.8.1 src/sys/dev/tc/stic.c
cvs rdiff -u -r1.58 -r1.58.6.1 src/sys/dev/tc/tc.c
cvs rdiff -u -r1.27 -r1.27.8.1 src/sys/dev/tc/tcds.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/dev/tc/tcu.c
cvs rdiff -u -r1.58 -r1.58.8.1 src/sys/dev/tc/xcfb.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/dev/tc/zs_ioasic.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/tc/zskbd.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/dev/tc/zsms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/tc/cfb.c
diff -u src/sys/dev/tc/cfb.c:1.64 src/sys/dev/tc/cfb.c:1.64.8.1
--- src/sys/dev/tc/cfb.c:1.64	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/tc/cfb.c	Wed Aug  4 20:31:00 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: cfb.c,v 1.64 2021/04/24 23:36:59 thorpej Exp $ */
+/* $NetBSD: cfb.c,v 1.64.8.1 2021/08/04 20:31:00 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cfb.c,v 1.64 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cfb.c,v 1.64.8.1 2021/08/04 20:31:00 thorpej Exp $");
 
 #include 
 #include 
@@ -282,7 +282,7 @@ cfbattach(device_t parent, device_t self
 	waa.accessops = _accessops;
 	waa.accesscookie = sc;
 
-	config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 static void
Index: src/sys/dev/tc/tfb.c
diff -u src/sys/dev/tc/tfb.c:1.64 src/sys/dev/tc/tfb.c:1.64.8.1
--- src/sys/dev/tc/tfb.c:1.64	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/tc/tfb.c	Wed Aug  4 20:31:00 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: tfb.c,v 1.64 2021/04/24 23:36:59 thorpej Exp $ */
+/* $NetBSD: tfb.c,v 1.64.8.1 2021/08/04 20:31:00 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: tfb.c,v 1.64 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tfb.c,v 1.64.8.1 2021/08/04 20:31:00 thorpej Exp $");
 
 #include 
 #include 
@@ -316,7 +316,7 @@ tfbattach(device_t parent, device_t self
 	waa.accessops = _accessops;
 	waa.accesscookie = sc;
 
-	config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 static void

Index: src/sys/dev/tc/ioasic_subr.c
diff -u src/sys/dev/tc/ioasic_subr.c:1.15 src/sys/dev/tc/ioasic_subr.c:1.15.6.1
--- src/sys/dev/tc/ioasic_subr.c:1.15	Fri May  7 16:55:58 2021
+++ src/sys/dev/tc/ioasic_subr.c	Wed Aug  4 20:31:00 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ioasic_subr.c,v 1.15 2021/05/07 16:55:58 thorpej Exp $	*/
+/*	$NetBSD: ioasic_subr.c,v 1.15.6.1 2021/08/04 20:31:00 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
 
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ioasic_subr.c,v 1.15 2021/05/07 16:55:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ioasic_subr.c,v 1.15.6.1 2021/08/04 20:31:00 thorpej Exp $");
 
 #include 
 #include 
@@ -73,8 +73,7 @@ ioasic_attach_devs(struct ioasic_softc *
 /* Tell the autoconfig machinery we've found the hardware. */
 		locs[IOASICCF_OFFSET] = ioasic_devs[i].iad_offset;
 		config_found(sc->sc_dev, , ioasicprint,
-		CFARG_SUBMATCH, config_stdsubmatch,
-		CFARG_LOCATORS, locs,
-		CFARG_EOL);
+		CFARGS(.submatch = config_stdsubmatch,
+			   .locators = locs));
 }
 }

Index: src/sys/dev/tc/mfb.c
diff -u src/sys/dev/tc/mfb.c:1.62 src/sys/dev/tc/mfb.c:1.62.8.1
--- src/sys/dev/tc/mfb.c:1.62	Sat Apr 24 23:36:59 2021
+++ src/sys/dev/tc/mfb.c	Wed Aug  4 20:31:00 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mfb.c,v 1.62 2021/04/24 23:36:59 thorpej Exp $ */
+/* $NetBSD: mfb.c,v 1.62.8.1 2021/08/04 20:31:00 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.62 2021/04/24 23:36:59 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.62.8.1 2021/08/04 20:31:00 thorpej Exp $");
 
 #include 
 #include 
@@ -262,7 +262,7 @@ mfbattach(device_t parent, device_t self
 	waa.accessops = _accessops;
 	waa.accesscookie = sc;
 
-	config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 static void

Index: src/sys/dev/tc/sfb.c
diff 

CVS commit: [thorpej-cfargs2] src/sys/dev/isa

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 20:27:36 UTC 2021

Modified Files:
src/sys/dev/isa [thorpej-cfargs2]: addcom_isa.c ast.c boca.c cec.c
ega.c ess.c fd.c if_le_isa.c ioat66.c isa.c moxa_isa.c nct.c
nsclpcsio_isa.c pcdisplay.c pcppi.c ptcd.c rtfps.c sb.c seagate.c
soekrisgpio.c tcom.c tsdio.c wbsio.c wds.c wss.c ym.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/dev/isa/addcom_isa.c \
src/sys/dev/isa/moxa_isa.c
cvs rdiff -u -r1.67 -r1.67.8.1 src/sys/dev/isa/ast.c
cvs rdiff -u -r1.56 -r1.56.8.1 src/sys/dev/isa/boca.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/dev/isa/cec.c
cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/dev/isa/ega.c
cvs rdiff -u -r1.88 -r1.88.6.1 src/sys/dev/isa/ess.c
cvs rdiff -u -r1.115 -r1.115.8.1 src/sys/dev/isa/fd.c
cvs rdiff -u -r1.50 -r1.50.8.1 src/sys/dev/isa/if_le_isa.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/dev/isa/ioat66.c
cvs rdiff -u -r1.139 -r1.139.8.1 src/sys/dev/isa/isa.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/dev/isa/nct.c src/sys/dev/isa/ptcd.c \
src/sys/dev/isa/soekrisgpio.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/dev/isa/nsclpcsio_isa.c
cvs rdiff -u -r1.46 -r1.46.8.1 src/sys/dev/isa/pcdisplay.c \
src/sys/dev/isa/pcppi.c
cvs rdiff -u -r1.61 -r1.61.8.1 src/sys/dev/isa/rtfps.c
cvs rdiff -u -r1.92 -r1.92.8.1 src/sys/dev/isa/sb.c
cvs rdiff -u -r1.75 -r1.75.8.1 src/sys/dev/isa/seagate.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/dev/isa/tcom.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/dev/isa/tsdio.c
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/dev/isa/wbsio.c
cvs rdiff -u -r1.78 -r1.78.8.1 src/sys/dev/isa/wds.c
cvs rdiff -u -r1.76 -r1.76.6.1 src/sys/dev/isa/wss.c
cvs rdiff -u -r1.49 -r1.49.6.1 src/sys/dev/isa/ym.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/isa/addcom_isa.c
diff -u src/sys/dev/isa/addcom_isa.c:1.22 src/sys/dev/isa/addcom_isa.c:1.22.8.1
--- src/sys/dev/isa/addcom_isa.c:1.22	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/isa/addcom_isa.c	Wed Aug  4 20:27:35 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: addcom_isa.c,v 1.22 2021/04/24 23:36:55 thorpej Exp $	*/
+/*	$NetBSD: addcom_isa.c,v 1.22.8.1 2021/08/04 20:27:35 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2000 Michael Graff.  All rights reserved.
@@ -55,7 +55,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: addcom_isa.c,v 1.22 2021/04/24 23:36:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: addcom_isa.c,v 1.22.8.1 2021/08/04 20:27:35 thorpej Exp $");
 
 #include 
 #include 
@@ -225,7 +225,7 @@ addcomattach(device_t parent, device_t s
 		ca.ca_noien = 0;
 
 		sc->sc_slaves[i] = config_found(self, , commultiprint,
-		CFARG_EOL);
+		CFARGS_NONE);
 		if (sc->sc_slaves[i] != NULL)
 			sc->sc_alive |= 1 << i;
 	}
Index: src/sys/dev/isa/moxa_isa.c
diff -u src/sys/dev/isa/moxa_isa.c:1.22 src/sys/dev/isa/moxa_isa.c:1.22.8.1
--- src/sys/dev/isa/moxa_isa.c:1.22	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/isa/moxa_isa.c	Wed Aug  4 20:27:35 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: moxa_isa.c,v 1.22 2021/04/24 23:36:55 thorpej Exp $	*/
+/*	$NetBSD: moxa_isa.c,v 1.22.8.1 2021/08/04 20:27:35 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: moxa_isa.c,v 1.22 2021/04/24 23:36:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: moxa_isa.c,v 1.22.8.1 2021/08/04 20:27:35 thorpej Exp $");
 
 #include 
 #include 
@@ -172,7 +172,7 @@ moxa_isaattach(device_t parent, device_t
 		ca.ca_noien = 1;
 
 		sc->sc_slaves[i] = config_found(self, , commultiprint,
-		CFARG_EOL);
+		CFARGS_NONE);
 		if (sc->sc_slaves[i] != NULL)
 			sc->sc_alive |= 1 << i;
 	}

Index: src/sys/dev/isa/ast.c
diff -u src/sys/dev/isa/ast.c:1.67 src/sys/dev/isa/ast.c:1.67.8.1
--- src/sys/dev/isa/ast.c:1.67	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/isa/ast.c	Wed Aug  4 20:27:35 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ast.c,v 1.67 2021/04/24 23:36:55 thorpej Exp $	*/
+/*	$NetBSD: ast.c,v 1.67.8.1 2021/08/04 20:27:35 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.67 2021/04/24 23:36:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ast.c,v 1.67.8.1 2021/08/04 20:27:35 thorpej Exp $");
 
 #include 
 #include 
@@ -178,7 +178,7 @@ astattach(device_t parent, device_t self
 		ca.ca_iobase = sc->sc_iobase + i * COM_NPORTS;
 		ca.ca_noien = 1;
 
-		slave = config_found(self, , commultiprint, CFARG_EOL);
+		slave = config_found(self, , commultiprint, CFARGS_NONE);
 		if (slave != NULL) {
 			sc->sc_alive |= 1 << i;
 			sc->sc_slaves[i] = device_private(slave);

Index: src/sys/dev/isa/boca.c
diff -u src/sys/dev/isa/boca.c:1.56 src/sys/dev/isa/boca.c:1.56.8.1
--- src/sys/dev/isa/boca.c:1.56	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/isa/boca.c	Wed 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 20:24:28 UTC 2021

Modified Files:
src/sys/dev/hil [thorpej-cfargs2]: hil.c hilkbd.c hilms.c
src/sys/dev/ieee1394 [thorpej-cfargs2]: firewire.c fwohci.c sbp.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/dev/hil/hil.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/dev/hil/hilkbd.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/dev/hil/hilms.c
cvs rdiff -u -r1.51 -r1.51.8.1 src/sys/dev/ieee1394/firewire.c
cvs rdiff -u -r1.145 -r1.145.8.1 src/sys/dev/ieee1394/fwohci.c
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/dev/ieee1394/sbp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hil/hil.c
diff -u src/sys/dev/hil/hil.c:1.4 src/sys/dev/hil/hil.c:1.4.8.1
--- src/sys/dev/hil/hil.c:1.4	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/hil/hil.c	Wed Aug  4 20:24:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: hil.c,v 1.4 2021/04/24 23:36:54 thorpej Exp $	*/
+/*	$NetBSD: hil.c,v 1.4.8.1 2021/08/04 20:24:27 thorpej Exp $	*/
 /*	$OpenBSD: hil.c,v 1.24 2010/11/20 16:45:46 miod Exp $	*/
 /*
  * Copyright (c) 2003, 2004, Miodrag Vallat.
@@ -540,8 +540,7 @@ hilconfig(struct hil_softc *sc, u_int kn
 
 			sc->sc_devices[id] =
 			config_found(sc->sc_dev, , hildevprint,
-	 CFARG_SUBMATCH, hilsubmatch,
-	 CFARG_EOL);
+	 CFARGS(.submatch = hilsubmatch));
 
 #if NHILKBD > 0
 			/*

Index: src/sys/dev/hil/hilkbd.c
diff -u src/sys/dev/hil/hilkbd.c:1.5 src/sys/dev/hil/hilkbd.c:1.5.8.1
--- src/sys/dev/hil/hilkbd.c:1.5	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/hil/hilkbd.c	Wed Aug  4 20:24:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: hilkbd.c,v 1.5 2021/04/24 23:36:54 thorpej Exp $	*/
+/*	$NetBSD: hilkbd.c,v 1.5.8.1 2021/08/04 20:24:27 thorpej Exp $	*/
 /*	$OpenBSD: hilkbd.c,v 1.14 2009/01/21 21:53:59 grange Exp $	*/
 /*
  * Copyright (c) 2003, Miodrag Vallat.
@@ -203,7 +203,7 @@ hilkbdattach(device_t parent, device_t s
 		sc->sc_console = sc->sc_enabled = 0;
 	}
 
-	sc->sc_wskbddev = config_found(self, , wskbddevprint, CFARG_EOL);
+	sc->sc_wskbddev = config_found(self, , wskbddevprint, CFARGS_NONE);
 
 	/*
 	 * If this is an old keyboard with a numeric pad but no ``num lock''

Index: src/sys/dev/hil/hilms.c
diff -u src/sys/dev/hil/hilms.c:1.3 src/sys/dev/hil/hilms.c:1.3.8.1
--- src/sys/dev/hil/hilms.c:1.3	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/hil/hilms.c	Wed Aug  4 20:24:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: hilms.c,v 1.3 2021/04/24 23:36:54 thorpej Exp $	*/
+/*	$NetBSD: hilms.c,v 1.3.8.1 2021/08/04 20:24:27 thorpej Exp $	*/
 /*	$OpenBSD: hilms.c,v 1.5 2007/04/10 22:37:17 miod Exp $	*/
 /*
  * Copyright (c) 2003, Miodrag Vallat.
@@ -161,7 +161,7 @@ hilmsattach(device_t parent, device_t se
 	a.accessops = _accessops;
 	a.accesscookie = sc;
 
-	sc->sc_wsmousedev = config_found(self, , wsmousedevprint, CFARG_EOL);
+	sc->sc_wsmousedev = config_found(self, , wsmousedevprint, CFARGS_NONE);
 }
 
 int

Index: src/sys/dev/ieee1394/firewire.c
diff -u src/sys/dev/ieee1394/firewire.c:1.51 src/sys/dev/ieee1394/firewire.c:1.51.8.1
--- src/sys/dev/ieee1394/firewire.c:1.51	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/ieee1394/firewire.c	Wed Aug  4 20:24:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: firewire.c,v 1.51 2021/04/24 23:36:55 thorpej Exp $	*/
+/*	$NetBSD: firewire.c,v 1.51.8.1 2021/08/04 20:24:27 thorpej Exp $	*/
 /*-
  * Copyright (c) 2003 Hidetoshi Shimokawa
  * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: firewire.c,v 1.51 2021/04/24 23:36:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: firewire.c,v 1.51.8.1 2021/08/04 20:24:27 thorpej Exp $");
 
 #include 
 #include 
@@ -246,7 +246,7 @@ firewireattach(device_t parent, device_t
 	faa.name = "fwip";
 	faa.fc = fc;
 	faa.fwdev = NULL;
-	devlist->dev = config_found(sc->dev, , firewire_print, CFARG_EOL);
+	devlist->dev = config_found(sc->dev, , firewire_print, CFARGS_NONE);
 	if (devlist->dev == NULL)
 		free(devlist, M_DEVBUF);
 	else
@@ -2042,9 +2042,8 @@ fw_attach_dev(struct firewire_comm *fc)
 			fwa.name = fw_get_devclass(fwdev);
 			fwa.fwdev = fwdev;
 			fwdev->dev = config_found(sc->dev, , firewire_print,
-			CFARG_SUBMATCH, config_stdsubmatch,
-			CFARG_LOCATORS, locs,
-			CFARG_EOL);
+			CFARGS(.submatch = config_stdsubmatch,
+   .locators = locs));
 			if (fwdev->dev == NULL) {
 free(devlist, M_DEVBUF);
 break;

Index: src/sys/dev/ieee1394/fwohci.c
diff -u src/sys/dev/ieee1394/fwohci.c:1.145 src/sys/dev/ieee1394/fwohci.c:1.145.8.1
--- src/sys/dev/ieee1394/fwohci.c:1.145	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/ieee1394/fwohci.c	Wed Aug  4 20:24:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fwohci.c,v 1.145 2021/04/24 23:36:55 thorpej Exp $	*/
+/*	$NetBSD: fwohci.c,v 1.145.8.1 2021/08/04 20:24:27 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2003 Hidetoshi Shimokawa
@@ -37,7 +37,7 

CVS commit: [thorpej-cfargs2] src/sys/dev/ic

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 20:14:42 UTC 2021

Modified Files:
src/sys/dev/ic [thorpej-cfargs2]: aac.c adv.c adw.c aha.c
ahcisata_core.c aic6360.c aic79xx_osm.c aic7xxx_osm.c apple_smc.c
atppc.c bha.c cac.c ciss.c cpc700.c ct65550.c depca.c dpt.c
dwc_mmc.c esiop.c gcscpcib.c i82365.c icp.c icpsp.c igsfb.c iha.c
isp_netbsd.c mb89352.c mfi.c mlx.c mpt_netbsd.c mvsata.c
ncr5380sbc.c ncr53c9x.c ninjascsi32.c nvme.c oosiop.c osiop.c
pca9564.c pcf8584.c pl061.c pl181.c rtsx.c siisata.c siop.c
sl811hs.c spic.c ssdfb.c sti.c sunscpal.c tcic2.c uha.c vga.c
vga_raster.c w83l518d_sdmmc.c wd33c93.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/dev/ic/aac.c src/sys/dev/ic/uha.c
cvs rdiff -u -r1.51 -r1.51.8.1 src/sys/dev/ic/adv.c src/sys/dev/ic/ciss.c
cvs rdiff -u -r1.58 -r1.58.2.1 src/sys/dev/ic/adw.c
cvs rdiff -u -r1.64 -r1.64.8.1 src/sys/dev/ic/aha.c src/sys/dev/ic/mfi.c
cvs rdiff -u -r1.99 -r1.99.2.1 src/sys/dev/ic/ahcisata_core.c
cvs rdiff -u -r1.103 -r1.103.8.1 src/sys/dev/ic/aic6360.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/dev/ic/aic79xx_osm.c \
src/sys/dev/ic/icp.c
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/dev/ic/aic7xxx_osm.c \
src/sys/dev/ic/tcic2.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/dev/ic/apple_smc.c
cvs rdiff -u -r1.38 -r1.38.8.1 src/sys/dev/ic/atppc.c \
src/sys/dev/ic/mpt_netbsd.c
cvs rdiff -u -r1.78 -r1.78.8.1 src/sys/dev/ic/bha.c
cvs rdiff -u -r1.62 -r1.62.8.1 src/sys/dev/ic/cac.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/dev/ic/cpc700.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/dev/ic/ct65550.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/dev/ic/depca.c \
src/sys/dev/ic/pcf8584.c
cvs rdiff -u -r1.76 -r1.76.8.1 src/sys/dev/ic/dpt.c
cvs rdiff -u -r1.27 -r1.27.8.1 src/sys/dev/ic/dwc_mmc.c \
src/sys/dev/ic/icpsp.c src/sys/dev/ic/ninjascsi32.c
cvs rdiff -u -r1.58 -r1.58.8.1 src/sys/dev/ic/esiop.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/dev/ic/gcscpcib.c \
src/sys/dev/ic/pca9564.c
cvs rdiff -u -r1.117 -r1.117.8.1 src/sys/dev/ic/i82365.c
cvs rdiff -u -r1.59 -r1.59.8.1 src/sys/dev/ic/igsfb.c \
src/sys/dev/ic/mb89352.c src/sys/dev/ic/mvsata.c
cvs rdiff -u -r1.44 -r1.44.8.1 src/sys/dev/ic/iha.c
cvs rdiff -u -r1.97 -r1.97.8.1 src/sys/dev/ic/isp_netbsd.c
cvs rdiff -u -r1.69 -r1.69.8.1 src/sys/dev/ic/mlx.c
cvs rdiff -u -r1.68 -r1.68.8.1 src/sys/dev/ic/ncr5380sbc.c
cvs rdiff -u -r1.154 -r1.154.8.1 src/sys/dev/ic/ncr53c9x.c
cvs rdiff -u -r1.57 -r1.57.4.1 src/sys/dev/ic/nvme.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/dev/ic/oosiop.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/dev/ic/osiop.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/dev/ic/pl061.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/dev/ic/pl181.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/dev/ic/rtsx.c \
src/sys/dev/ic/w83l518d_sdmmc.c
cvs rdiff -u -r1.47 -r1.47.8.1 src/sys/dev/ic/siisata.c
cvs rdiff -u -r1.101 -r1.101.8.1 src/sys/dev/ic/siop.c
cvs rdiff -u -r1.105 -r1.105.8.1 src/sys/dev/ic/sl811hs.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/ic/spic.c
cvs rdiff -u -r1.14 -r1.14.2.1 src/sys/dev/ic/ssdfb.c
cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/dev/ic/sti.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/dev/ic/sunscpal.c
cvs rdiff -u -r1.119 -r1.119.8.1 src/sys/dev/ic/vga.c
cvs rdiff -u -r1.49 -r1.49.8.1 src/sys/dev/ic/vga_raster.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/dev/ic/wd33c93.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/aac.c
diff -u src/sys/dev/ic/aac.c:1.48 src/sys/dev/ic/aac.c:1.48.8.1
--- src/sys/dev/ic/aac.c:1.48	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/ic/aac.c	Wed Aug  4 20:14:42 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: aac.c,v 1.48 2021/04/24 23:36:55 thorpej Exp $	*/
+/*	$NetBSD: aac.c,v 1.48.8.1 2021/08/04 20:14:42 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: aac.c,v 1.48 2021/04/24 23:36:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aac.c,v 1.48.8.1 2021/08/04 20:14:42 thorpej Exp $");
 
 #include 
 #include 
@@ -211,9 +211,8 @@ aac_devscan(struct aac_softc *sc)
 		locs[AACCF_UNIT] = i;
 
 		config_found(sc->sc_dv, , aac_print,
-		CFARG_SUBMATCH, config_stdsubmatch,
-		CFARG_LOCATORS, locs,
-		CFARG_EOL);
+		CFARGS(.submatch = config_stdsubmatch,
+			   .locators = locs));
 	}
 	return 0;
 }
Index: src/sys/dev/ic/uha.c
diff -u src/sys/dev/ic/uha.c:1.48 src/sys/dev/ic/uha.c:1.48.8.1
--- src/sys/dev/ic/uha.c:1.48	Sat Apr 24 23:36:55 2021
+++ src/sys/dev/ic/uha.c	Wed Aug  4 20:14:42 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: uha.c,v 1.48 2021/04/24 23:36:55 thorpej Exp $	*/
+/*	$NetBSD: uha.c,v 1.48.8.1 2021/08/04 20:14:42 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 18:53:26 UTC 2021

Modified Files:
src/sys/dev/i2c [thorpej-cfargs2]: as3722.c axp20x.c axppmic.c
gttwsi_core.c i2c.c i2cmux.c ihidev.c motoi2c.c rkpmic.c tcakp.c
tps65217pmic.c w83795g.c
src/sys/dev/i2o [thorpej-cfargs2]: iop.c iopsp.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/dev/i2c/as3722.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/i2c/axp20x.c
cvs rdiff -u -r1.35 -r1.35.4.1 src/sys/dev/i2c/axppmic.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/dev/i2c/gttwsi_core.c
cvs rdiff -u -r1.79 -r1.79.2.1 src/sys/dev/i2c/i2c.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/dev/i2c/i2cmux.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/dev/i2c/ihidev.c \
src/sys/dev/i2c/tps65217pmic.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/dev/i2c/motoi2c.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/dev/i2c/rkpmic.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/dev/i2c/tcakp.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/dev/i2c/w83795g.c
cvs rdiff -u -r1.91 -r1.91.8.1 src/sys/dev/i2o/iop.c
cvs rdiff -u -r1.39 -r1.39.8.1 src/sys/dev/i2o/iopsp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/as3722.c
diff -u src/sys/dev/i2c/as3722.c:1.23 src/sys/dev/i2c/as3722.c:1.23.8.1
--- src/sys/dev/i2c/as3722.c:1.23	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/i2c/as3722.c	Wed Aug  4 18:53:26 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: as3722.c,v 1.23 2021/04/24 23:36:54 thorpej Exp $ */
+/* $NetBSD: as3722.c,v 1.23.8.1 2021/08/04 18:53:26 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill 
@@ -29,7 +29,7 @@
 #include "opt_fdt.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: as3722.c,v 1.23 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: as3722.c,v 1.23.8.1 2021/08/04 18:53:26 thorpej Exp $");
 
 #include 
 #include 
@@ -514,7 +514,7 @@ as3722_regulator_attach(struct as3722_so
 			continue;
 		raa.reg_def = regdef;
 		raa.reg_phandle = child;
-		config_found(sc->sc_dev, , NULL, CFARG_EOL);
+		config_found(sc->sc_dev, , NULL, CFARGS_NONE);
 	}
 }
 

Index: src/sys/dev/i2c/axp20x.c
diff -u src/sys/dev/i2c/axp20x.c:1.20 src/sys/dev/i2c/axp20x.c:1.20.8.1
--- src/sys/dev/i2c/axp20x.c:1.20	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/i2c/axp20x.c	Wed Aug  4 18:53:26 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: axp20x.c,v 1.20 2021/04/24 23:36:54 thorpej Exp $ */
+/* $NetBSD: axp20x.c,v 1.20.8.1 2021/08/04 18:53:26 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.20 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axp20x.c,v 1.20.8.1 2021/08/04 18:53:26 thorpej Exp $");
 
 #include 
 #include 
@@ -813,6 +813,6 @@ axp20x_fdt_attach(struct axp20x_softc *s
 
 	for (child = OF_child(regulators_phandle); child; child = OF_peer(child)) {
 		struct axp20xreg_attach_args reg = { .reg_phandle = child };
-		config_found(sc->sc_dev, , NULL, CFARG_EOL);
+		config_found(sc->sc_dev, , NULL, CFARGS_NONE);
 	}
 }

Index: src/sys/dev/i2c/axppmic.c
diff -u src/sys/dev/i2c/axppmic.c:1.35 src/sys/dev/i2c/axppmic.c:1.35.4.1
--- src/sys/dev/i2c/axppmic.c:1.35	Mon May 24 05:58:42 2021
+++ src/sys/dev/i2c/axppmic.c	Wed Aug  4 18:53:26 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: axppmic.c,v 1.35 2021/05/24 05:58:42 skrll Exp $ */
+/* $NetBSD: axppmic.c,v 1.35.4.1 2021/08/04 18:53:26 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2014-2018 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.35 2021/05/24 05:58:42 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: axppmic.c,v 1.35.4.1 2021/08/04 18:53:26 thorpej Exp $");
 
 #include 
 #include 
@@ -1052,7 +1052,7 @@ axppmic_attach(device_t parent, device_t
 continue;
 			aaa.reg_ctrl = ctrl;
 			aaa.reg_phandle = child;
-			config_found(sc->sc_dev, , NULL, CFARG_EOL);
+			config_found(sc->sc_dev, , NULL, CFARGS_NONE);
 		}
 	}
 

Index: src/sys/dev/i2c/gttwsi_core.c
diff -u src/sys/dev/i2c/gttwsi_core.c:1.17 src/sys/dev/i2c/gttwsi_core.c:1.17.8.1
--- src/sys/dev/i2c/gttwsi_core.c:1.17	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/i2c/gttwsi_core.c	Wed Aug  4 18:53:26 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gttwsi_core.c,v 1.17 2021/04/24 23:36:54 thorpej Exp $	*/
+/*	$NetBSD: gttwsi_core.c,v 1.17.8.1 2021/08/04 18:53:26 thorpej Exp $	*/
 /*
  * Copyright (c) 2008 Eiji Kawauchi.
  * All rights reserved.
@@ -66,7 +66,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.17 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gttwsi_core.c,v 1.17.8.1 2021/08/04 18:53:26 thorpej Exp $");
 #include "locators.h"
 
 #include 
@@ -164,8 +164,7 @@ gttwsi_config_children(device_t self)
 	iba.iba_tag = >sc_i2c;
 
 	config_found(sc->sc_dev, , iicbus_print,
-	CFARG_IATTR, "i2cbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "i2cbus"));
 }
 
 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 18:38:19 UTC 2021

Modified Files:
src/sys/dev/hpc [thorpej-cfargs2]: bivideo.c btnmgr.c hpcapm.c hpcfb.c
hpcioman.c hpckbd.c hpf1275a_tty.c
src/sys/dev/hyperv [thorpej-cfargs2]: genfb_vmbus.c hvkbd.c hvs.c
vmbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/dev/hpc/bivideo.c
cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/dev/hpc/btnmgr.c \
src/sys/dev/hpc/hpf1275a_tty.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/dev/hpc/hpcapm.c
cvs rdiff -u -r1.62 -r1.62.2.1 src/sys/dev/hpc/hpcfb.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/hpc/hpcioman.c
cvs rdiff -u -r1.36 -r1.36.8.1 src/sys/dev/hpc/hpckbd.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/dev/hyperv/genfb_vmbus.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/dev/hyperv/hvkbd.c
cvs rdiff -u -r1.6 -r1.6.2.1 src/sys/dev/hyperv/hvs.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/dev/hyperv/vmbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hpc/bivideo.c
diff -u src/sys/dev/hpc/bivideo.c:1.35 src/sys/dev/hpc/bivideo.c:1.35.8.1
--- src/sys/dev/hpc/bivideo.c:1.35	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/hpc/bivideo.c	Wed Aug  4 18:38:19 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: bivideo.c,v 1.35 2021/04/24 23:36:54 thorpej Exp $	*/
+/*	$NetBSD: bivideo.c,v 1.35.8.1 2021/08/04 18:38:19 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1999-2001
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.35 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.35.8.1 2021/08/04 18:38:19 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_hpcfb.h"
@@ -195,7 +195,7 @@ bivideoattach(device_t parent, device_t 
 	ha.ha_ndspconf = 1;
 	ha.ha_dspconflist = >sc_dspconf;
 
-	config_found(self, , hpcfbprint, CFARG_EOL);
+	config_found(self, , hpcfbprint, CFARGS_NONE);
 }
 
 int

Index: src/sys/dev/hpc/btnmgr.c
diff -u src/sys/dev/hpc/btnmgr.c:1.30 src/sys/dev/hpc/btnmgr.c:1.30.8.1
--- src/sys/dev/hpc/btnmgr.c:1.30	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/hpc/btnmgr.c	Wed Aug  4 18:38:19 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: btnmgr.c,v 1.30 2021/04/24 23:36:54 thorpej Exp $	*/
+/*	$NetBSD: btnmgr.c,v 1.30.8.1 2021/08/04 18:38:19 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1999
@@ -35,7 +35,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.30 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.30.8.1 2021/08/04 18:38:19 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_btnmgr.h"
@@ -219,7 +219,7 @@ btnmgrattach(device_t parent,
 	wa.accessops = _wskbd_accessops;
 	wa.accesscookie = sc;
 
-	sc->sc_wskbddev = config_found(self, , wskbddevprint, CFARG_EOL);
+	sc->sc_wskbddev = config_found(self, , wskbddevprint, CFARGS_NONE);
 
 	if (!pmf_device_register(self, NULL, NULL))
 		aprint_error_dev(self, "unable to establish power handler\n");
Index: src/sys/dev/hpc/hpf1275a_tty.c
diff -u src/sys/dev/hpc/hpf1275a_tty.c:1.30 src/sys/dev/hpc/hpf1275a_tty.c:1.30.8.1
--- src/sys/dev/hpc/hpf1275a_tty.c:1.30	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/hpc/hpf1275a_tty.c	Wed Aug  4 18:38:19 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: hpf1275a_tty.c,v 1.30 2021/04/24 23:36:54 thorpej Exp $ */
+/*	$NetBSD: hpf1275a_tty.c,v 1.30.8.1 2021/08/04 18:38:19 thorpej Exp $ */
 
 /*
  * Copyright (c) 2004 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.30 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.30.8.1 2021/08/04 18:38:19 thorpej Exp $");
 
 #include "opt_wsdisplay_compat.h"
 
@@ -271,7 +271,7 @@ hpf1275a_attach(device_t parent, device_
 #ifdef WSDISPLAY_COMPAT_RAWKBD
 	sc->sc_rawkbd = 0;
 #endif
-	sc->sc_wskbd = config_found(self, , wskbddevprint, CFARG_EOL);
+	sc->sc_wskbd = config_found(self, , wskbddevprint, CFARGS_NONE);
 }
 
 

Index: src/sys/dev/hpc/hpcapm.c
diff -u src/sys/dev/hpc/hpcapm.c:1.23 src/sys/dev/hpc/hpcapm.c:1.23.8.1
--- src/sys/dev/hpc/hpcapm.c:1.23	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/hpc/hpcapm.c	Wed Aug  4 18:38:19 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: hpcapm.c,v 1.23 2021/04/24 23:36:54 thorpej Exp $	*/
+/*	$NetBSD: hpcapm.c,v 1.23.8.1 2021/08/04 18:38:19 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2000 Takemura Shin
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.23 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcapm.c,v 1.23.8.1 2021/08/04 18:38:19 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_hpcapm.h"
@@ -149,7 +149,7 @@ hpcapm_attach(device_t parent, device_t 
 	aaa.accesscookie = sc;
 	aaa.apm_detail = 0x0102;
 
-	sc->sc_apmdev = config_found(self, , apmprint, CFARG_EOL);
+	sc->sc_apmdev = config_found(self, , apmprint, CFARGS_NONE);
 
 	if (!pmf_device_register(self, NULL, NULL))
 		aprint_error_dev(self, "unable to 

CVS commit: [thorpej-cfargs2] src/sys/dev/gpio

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 18:33:11 UTC 2021

Modified Files:
src/sys/dev/gpio [thorpej-cfargs2]: gpio.c gpioiic.c gpioow.c gpiosim.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.65.8.1 src/sys/dev/gpio/gpio.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/dev/gpio/gpioiic.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/dev/gpio/gpioow.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/dev/gpio/gpiosim.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/gpio/gpio.c
diff -u src/sys/dev/gpio/gpio.c:1.65 src/sys/dev/gpio/gpio.c:1.65.8.1
--- src/sys/dev/gpio/gpio.c:1.65	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/gpio/gpio.c	Wed Aug  4 18:33:11 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: gpio.c,v 1.65 2021/04/24 23:36:54 thorpej Exp $ */
+/* $NetBSD: gpio.c,v 1.65.8.1 2021/08/04 18:33:11 thorpej Exp $ */
 /*	$OpenBSD: gpio.c,v 1.6 2006/01/14 12:33:49 grange Exp $	*/
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.65 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.65.8.1 2021/08/04 18:33:11 thorpej Exp $");
 
 /*
  * General Purpose Input/Output framework.
@@ -191,8 +191,7 @@ gpio_rescan(device_t self, const char *i
 {
 
 	config_search(self, NULL,
-	CFARG_SEARCH, gpio_search,
-	CFARG_EOL);
+	CFARGS(.search = gpio_search));
 
 	return 0;
 }
@@ -278,7 +277,7 @@ gpio_search(device_t parent, cfdata_t cf
 	strcpy(ga.ga_dvname, cf->cf_name);
 
 	if (config_probe(parent, cf, ))
-		config_attach(parent, cf, , gpio_print, CFARG_EOL);
+		config_attach(parent, cf, , gpio_print, CFARGS_NONE);
 	kmem_free(ga.ga_dvname, namlen);
 	return 0;
 }
@@ -854,13 +853,11 @@ gpio_ioctl(struct gpio_softc *sc, u_long
 		locs[GPIOCF_FLAG] = ga.ga_flags;
 
 		cf = config_search(sc->sc_dev, ,
-		CFARG_LOCATORS, locs,
-		CFARG_EOL);
+		CFARGS(.locators = locs));
 		if (cf != NULL) {
 			dv = config_attach(sc->sc_dev, cf, ,
 			gpiobus_print,
-			CFARG_LOCATORS, locs,
-			CFARG_EOL);
+			CFARGS(.locators = locs));
 #ifdef COMPAT_50
 			if (dv != NULL) {
 gdev = kmem_alloc(sizeof(struct gpio_dev),

Index: src/sys/dev/gpio/gpioiic.c
diff -u src/sys/dev/gpio/gpioiic.c:1.10 src/sys/dev/gpio/gpioiic.c:1.10.8.1
--- src/sys/dev/gpio/gpioiic.c:1.10	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/gpio/gpioiic.c	Wed Aug  4 18:33:11 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: gpioiic.c,v 1.10 2021/04/24 23:36:54 thorpej Exp $ */
+/* $NetBSD: gpioiic.c,v 1.10.8.1 2021/08/04 18:33:11 thorpej Exp $ */
 /*	$OpenBSD: gpioiic.c,v 1.8 2008/11/24 12:12:12 mbalmer Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gpioiic.c,v 1.10 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpioiic.c,v 1.10.8.1 2021/08/04 18:33:11 thorpej Exp $");
 
 /*
  * I2C bus bit-banging through GPIO pins.
@@ -192,7 +192,7 @@ gpioiic_attach(device_t parent, device_t
 
 	memset(, 0, sizeof(iba));
 	iba.iba_tag = >sc_i2c_tag;
-	sc->sc_i2c_dev = config_found(self, , iicbus_print, CFARG_EOL);
+	sc->sc_i2c_dev = config_found(self, , iicbus_print, CFARGS_NONE);
 
 	if (!pmf_device_register(self, NULL, NULL))
 		aprint_error("%s: could not establish power handler\n",

Index: src/sys/dev/gpio/gpioow.c
diff -u src/sys/dev/gpio/gpioow.c:1.18 src/sys/dev/gpio/gpioow.c:1.18.8.1
--- src/sys/dev/gpio/gpioow.c:1.18	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/gpio/gpioow.c	Wed Aug  4 18:33:11 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: gpioow.c,v 1.18 2021/04/24 23:36:54 thorpej Exp $ */
+/* $NetBSD: gpioow.c,v 1.18.8.1 2021/08/04 18:33:11 thorpej Exp $ */
 /*	$OpenBSD: gpioow.c,v 1.1 2006/03/04 16:27:03 grange Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gpioow.c,v 1.18 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpioow.c,v 1.18.8.1 2021/08/04 18:33:11 thorpej Exp $");
 
 /*
  * 1-Wire bus bit-banging through GPIO pin.
@@ -149,7 +149,7 @@ gpioow_attach(device_t parent, device_t 
 
 	memset(, 0, sizeof(oba));
 	oba.oba_bus = >sc_ow_bus;
-	sc->sc_ow_dev = config_found(self, , onewirebus_print, CFARG_EOL);
+	sc->sc_ow_dev = config_found(self, , onewirebus_print, CFARGS_NONE);
 
 	if (!pmf_device_register(self, NULL, NULL))
 		aprint_error("%s: could not establish power handler\n",

Index: src/sys/dev/gpio/gpiosim.c
diff -u src/sys/dev/gpio/gpiosim.c:1.22 src/sys/dev/gpio/gpiosim.c:1.22.8.1
--- src/sys/dev/gpio/gpiosim.c:1.22	Sat Apr 24 23:36:54 2021
+++ src/sys/dev/gpio/gpiosim.c	Wed Aug  4 18:33:11 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: gpiosim.c,v 1.22 2021/04/24 23:36:54 thorpej Exp $ */
+/* $NetBSD: gpiosim.c,v 1.22.8.1 2021/08/04 18:33:11 thorpej Exp $ */
 /*  $OpenBSD: gpiosim.c,v 1.1 2008/11/23 18:46:49 mbalmer Exp $	*/
 
 /*
@@ -142,7 +142,7 @@ gpiosim_attach(device_t parent, device_t
 	CTL_CREATE, CTL_EOL);
 
 	aprint_normal(": simulating %d pins\n", 

CVS commit: [thorpej-cfargs2] src/sys/dev/fdt

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 18:24:14 UTC 2021

Modified Files:
src/sys/dev/fdt [thorpej-cfargs2]: dwc2_fdt.c dwc3_fdt.c ehci_fdt.c
fdt_i2c.c fdt_spi.c fdtbus.c gpiokeys.c ohci_fdt.c
virtio_mmio_fdt.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/dev/fdt/dwc2_fdt.c
cvs rdiff -u -r1.15 -r1.15.4.1 src/sys/dev/fdt/dwc3_fdt.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/dev/fdt/ehci_fdt.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/dev/fdt/fdt_i2c.c \
src/sys/dev/fdt/gpiokeys.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/dev/fdt/fdt_spi.c
cvs rdiff -u -r1.41 -r1.41.8.1 src/sys/dev/fdt/fdtbus.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/dev/fdt/ohci_fdt.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/dev/fdt/virtio_mmio_fdt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/fdt/dwc2_fdt.c
diff -u src/sys/dev/fdt/dwc2_fdt.c:1.11 src/sys/dev/fdt/dwc2_fdt.c:1.11.8.1
--- src/sys/dev/fdt/dwc2_fdt.c:1.11	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/fdt/dwc2_fdt.c	Wed Aug  4 18:24:13 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dwc2_fdt.c,v 1.11 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: dwc2_fdt.c,v 1.11.8.1 2021/08/04 18:24:13 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: dwc2_fdt.c,v 1.11 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2_fdt.c,v 1.11.8.1 2021/08/04 18:24:13 thorpej Exp $");
 
 #include 
 #include 
@@ -204,7 +204,7 @@ dwc2_fdt_deferred(device_t self)
 		return;
 	}
 	sc->sc_dwc2.sc_child = config_found(sc->sc_dwc2.sc_dev,
-	>sc_dwc2.sc_bus, usbctlprint, CFARG_EOL);
+	>sc_dwc2.sc_bus, usbctlprint, CFARGS_NONE);
 }
 
 static void

Index: src/sys/dev/fdt/dwc3_fdt.c
diff -u src/sys/dev/fdt/dwc3_fdt.c:1.15 src/sys/dev/fdt/dwc3_fdt.c:1.15.4.1
--- src/sys/dev/fdt/dwc3_fdt.c:1.15	Tue May 18 11:13:31 2021
+++ src/sys/dev/fdt/dwc3_fdt.c	Wed Aug  4 18:24:13 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc3_fdt.c,v 1.15 2021/05/18 11:13:31 jmcneill Exp $ */
+/* $NetBSD: dwc3_fdt.c,v 1.15.4.1 2021/08/04 18:24:13 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: dwc3_fdt.c,v 1.15 2021/05/18 11:13:31 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc3_fdt.c,v 1.15.4.1 2021/08/04 18:24:13 thorpej Exp $");
 
 #include 
 #include 
@@ -327,7 +327,7 @@ dwc3_fdt_attach(device_t parent, device_
 		return;
 	}
 
-	sc->sc_child = config_found(self, >sc_bus, usbctlprint, CFARG_EOL);
+	sc->sc_child = config_found(self, >sc_bus, usbctlprint, CFARGS_NONE);
 	sc->sc_child2 = config_found(self, >sc_bus2, usbctlprint,
-	CFARG_EOL);
+	CFARGS_NONE);
 }

Index: src/sys/dev/fdt/ehci_fdt.c
diff -u src/sys/dev/fdt/ehci_fdt.c:1.7 src/sys/dev/fdt/ehci_fdt.c:1.7.8.1
--- src/sys/dev/fdt/ehci_fdt.c:1.7	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/fdt/ehci_fdt.c	Wed Aug  4 18:24:13 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci_fdt.c,v 1.7 2021/04/24 23:36:53 thorpej Exp $ */
+/* $NetBSD: ehci_fdt.c,v 1.7.8.1 2021/08/04 18:24:13 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ehci_fdt.c,v 1.7 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_fdt.c,v 1.7.8.1 2021/08/04 18:24:13 thorpej Exp $");
 
 #include 
 #include 
@@ -150,5 +150,5 @@ ehci_fdt_attach(device_t parent, device_
 
 	pmf_device_register1(self, NULL, NULL, ehci_shutdown);
 
-	sc->sc_child = config_found(self, >sc_bus, usbctlprint, CFARG_EOL);
+	sc->sc_child = config_found(self, >sc_bus, usbctlprint, CFARGS_NONE);
 }

Index: src/sys/dev/fdt/fdt_i2c.c
diff -u src/sys/dev/fdt/fdt_i2c.c:1.10 src/sys/dev/fdt/fdt_i2c.c:1.10.8.1
--- src/sys/dev/fdt/fdt_i2c.c:1.10	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/fdt/fdt_i2c.c	Wed Aug  4 18:24:13 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: fdt_i2c.c,v 1.10 2021/04/24 23:36:53 thorpej Exp $ */
+/* $NetBSD: fdt_i2c.c,v 1.10.8.1 2021/08/04 18:24:13 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fdt_i2c.c,v 1.10 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fdt_i2c.c,v 1.10.8.1 2021/08/04 18:24:13 thorpej Exp $");
 
 #include 
 #include 
@@ -123,8 +123,7 @@ fdtbus_attach_i2cbus(device_t dev, int p
 	prop_dictionary_set_bool(props, "i2c-no-indirect-config", true);
 
 	ret = config_found(dev, , print,
-	CFARG_IATTR, "i2cbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "i2cbus"));
 	if (iba.iba_child_devices)
 		prop_object_release(iba.iba_child_devices);
 
Index: src/sys/dev/fdt/gpiokeys.c
diff -u src/sys/dev/fdt/gpiokeys.c:1.10 src/sys/dev/fdt/gpiokeys.c:1.10.8.1
--- src/sys/dev/fdt/gpiokeys.c:1.10	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/fdt/gpiokeys.c	Wed Aug  4 18:24:14 2021

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 17:31:17 UTC 2021

Modified Files:
src/sys/dev/cardbus [thorpej-cfargs2]: cardbus.c cardslot.c
ehci_cardbus.c ohci_cardbus.c rbus_ppb.c uhci_cardbus.c
src/sys/dev/dec [thorpej-cfargs2]: dzkbd.c dzms.c
src/sys/dev/eisa [thorpej-cfargs2]: ahb.c eisa.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.111.8.1 src/sys/dev/cardbus/cardbus.c
cvs rdiff -u -r1.59 -r1.59.8.1 src/sys/dev/cardbus/cardslot.c
cvs rdiff -u -r1.36 -r1.36.8.1 src/sys/dev/cardbus/ehci_cardbus.c
cvs rdiff -u -r1.45 -r1.45.8.1 src/sys/dev/cardbus/ohci_cardbus.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/dev/cardbus/rbus_ppb.c
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/dev/cardbus/uhci_cardbus.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/dev/dec/dzkbd.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/dev/dec/dzms.c
cvs rdiff -u -r1.69 -r1.69.2.1 src/sys/dev/eisa/ahb.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/dev/eisa/eisa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/cardbus/cardbus.c
diff -u src/sys/dev/cardbus/cardbus.c:1.111 src/sys/dev/cardbus/cardbus.c:1.111.8.1
--- src/sys/dev/cardbus/cardbus.c:1.111	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/cardbus/cardbus.c	Wed Aug  4 17:31:16 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cardbus.c,v 1.111 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: cardbus.c,v 1.111.8.1 2021/08/04 17:31:16 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1997, 1998, 1999 and 2000
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.111 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cardbus.c,v 1.111.8.1 2021/08/04 17:31:16 thorpej Exp $");
 
 #include "opt_cardbus.h"
 
@@ -605,9 +605,8 @@ cardbus_rescan(device_t self, const char
 		locs[CARDBUSCF_FUNCTION] = function;
 
 		if ((csc = config_found(sc->sc_dev, , cardbusprint,
-	CFARG_SUBMATCH, config_stdsubmatch,
-	CFARG_LOCATORS, locs,
-	CFARG_EOL)) == NULL) {
+	CFARGS(.submatch = config_stdsubmatch,
+	   .locators = locs))) == NULL) {
 			/* do not match */
 			disable_function(sc, function);
 			sc->sc_funcs[function] = NULL;

Index: src/sys/dev/cardbus/cardslot.c
diff -u src/sys/dev/cardbus/cardslot.c:1.59 src/sys/dev/cardbus/cardslot.c:1.59.8.1
--- src/sys/dev/cardbus/cardslot.c:1.59	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/cardbus/cardslot.c	Wed Aug  4 17:31:16 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cardslot.c,v 1.59 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: cardslot.c,v 1.59.8.1 2021/08/04 17:31:16 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1999 and 2000
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.59 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.59.8.1 2021/08/04 17:31:16 thorpej Exp $");
 
 #include "opt_cardslot.h"
 
@@ -138,8 +138,7 @@ cardslotattach(device_t parent, device_t
 	DPRINTF(("%s attaching CardBus bus...\n", device_xname(self)));
 	if (cba != NULL) {
 		csc = device_private(config_found(self, cba, cardslot_cb_print,
-		CFARG_IATTR, "cbbus",
-		CFARG_EOL));
+		CFARGS(.iattr = "cbbus")));
 		if (csc) {
 			/* cardbus found */
 			DPRINTF(("%s: found cardbus on %s\n", __func__,
@@ -150,9 +149,8 @@ cardslotattach(device_t parent, device_t
 
 	if (pa != NULL) {
 		sc->sc_16_softc = config_found(self, pa, cardslot_16_print,
-		CFARG_SUBMATCH, cardslot_16_submatch,
-		CFARG_IATTR, "pcmciabus",
-		CFARG_EOL);
+		CFARGS(.submatch = cardslot_16_submatch,
+			   .iattr = "pcmciabus"));
 		if (sc->sc_16_softc) {
 			/* pcmcia 16-bit bus found */
 			DPRINTF(("%s: found 16-bit pcmcia bus\n", __func__));

Index: src/sys/dev/cardbus/ehci_cardbus.c
diff -u src/sys/dev/cardbus/ehci_cardbus.c:1.36 src/sys/dev/cardbus/ehci_cardbus.c:1.36.8.1
--- src/sys/dev/cardbus/ehci_cardbus.c:1.36	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/cardbus/ehci_cardbus.c	Wed Aug  4 17:31:16 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ehci_cardbus.c,v 1.36 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: ehci_cardbus.c,v 1.36.8.1 2021/08/04 17:31:16 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ehci_cardbus.c,v 1.36 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_cardbus.c,v 1.36.8.1 2021/08/04 17:31:16 thorpej Exp $");
 
 #include 
 #include 
@@ -203,7 +203,7 @@ ehci_cardbus_attach(device_t parent, dev
 
 	/* Attach usb device. */
 	sc->sc.sc_child = config_found(self, >sc.sc_bus, usbctlprint,
-	CFARG_EOL);
+	CFARGS_NONE);
 }
 
 int

Index: src/sys/dev/cardbus/ohci_cardbus.c
diff -u src/sys/dev/cardbus/ohci_cardbus.c:1.45 src/sys/dev/cardbus/ohci_cardbus.c:1.45.8.1
--- src/sys/dev/cardbus/ohci_cardbus.c:1.45	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/cardbus/ohci_cardbus.c	Wed Aug  4 17:31:16 2021

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 17:28:41 UTC 2021

Modified Files:
src/sys/dev/bi [thorpej-cfargs2]: bi.c kdb.c
src/sys/dev/bluetooth [thorpej-cfargs2]: bthidev.c bthub.c btkbd.c
btmagic.c btms.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/dev/bi/bi.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/dev/bi/kdb.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/dev/bluetooth/bthidev.c
cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/dev/bluetooth/bthub.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/bluetooth/btkbd.c \
src/sys/dev/bluetooth/btmagic.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/dev/bluetooth/btms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/bi/bi.c
diff -u src/sys/dev/bi/bi.c:1.26 src/sys/dev/bi/bi.c:1.26.8.1
--- src/sys/dev/bi/bi.c:1.26	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/bi/bi.c	Wed Aug  4 17:28:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: bi.c,v 1.26 2021/04/24 23:36:53 thorpej Exp $ */
+/*	$NetBSD: bi.c,v 1.26.8.1 2021/08/04 17:28:41 thorpej Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bi.c,v 1.26 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bi.c,v 1.26.8.1 2021/08/04 17:28:41 thorpej Exp $");
 
 #include 
 #include 
@@ -142,6 +142,6 @@ bi_attach(struct bi_softc *sc)
 		}
 		ba.ba_nodenr = nodenr;
 		ba.ba_ivec = sc->sc_lastiv + 64 + 4 * nodenr; /* all on spl5 */
-		config_found(sc->sc_dev, , bi_print, CFARG_EOL);
+		config_found(sc->sc_dev, , bi_print, CFARGS_NONE);
 	}
 }

Index: src/sys/dev/bi/kdb.c
diff -u src/sys/dev/bi/kdb.c:1.48 src/sys/dev/bi/kdb.c:1.48.8.1
--- src/sys/dev/bi/kdb.c:1.48	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/bi/kdb.c	Wed Aug  4 17:28:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: kdb.c,v 1.48 2021/04/24 23:36:53 thorpej Exp $ */
+/*	$NetBSD: kdb.c,v 1.48.8.1 2021/08/04 17:28:41 thorpej Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kdb.c,v 1.48 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kdb.c,v 1.48.8.1 2021/08/04 17:28:41 thorpej Exp $");
 
 #include 
 #include 
@@ -210,7 +210,7 @@ err2:		bus_dmamem_unmap(sc->sc_dmat, sc-
 	KDB_WL(BIREG_BCICSR, KDB_RL(BIREG_BCICSR) |
 	BCI_STOPEN | BCI_IDENTEN | BCI_UINTEN | BCI_INTEN);
 	KDB_WL(BIREG_UINTRCSR, ba->ba_ivec);
-	config_found(sc->sc_dev, , kdbprint, CFARG_EOL);
+	config_found(sc->sc_dev, , kdbprint, CFARGS_NONE);
 }
 
 void

Index: src/sys/dev/bluetooth/bthidev.c
diff -u src/sys/dev/bluetooth/bthidev.c:1.33 src/sys/dev/bluetooth/bthidev.c:1.33.8.1
--- src/sys/dev/bluetooth/bthidev.c:1.33	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/bluetooth/bthidev.c	Wed Aug  4 17:28:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: bthidev.c,v 1.33 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: bthidev.c,v 1.33.8.1 2021/08/04 17:28:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bthidev.c,v 1.33 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bthidev.c,v 1.33.8.1 2021/08/04 17:28:41 thorpej Exp $");
 
 #include 
 #include 
@@ -320,10 +320,9 @@ bthidev_attach(device_t parent, device_t
 		locs[BTHIDBUSCF_REPORTID] = rep;
 
 		dev = config_found(self, , bthidev_print,
-		CFARG_SUBMATCH, config_stdsubmatch,
-		CFARG_IATTR, "bthidbus",
-		CFARG_LOCATORS, locs,
-		CFARG_EOL);
+		CFARGS(.submatch = config_stdsubmatch,
+			   .iattr = "bthidbus",
+			   .locators = locs));
 		if (dev != NULL) {
 			hidev = device_private(dev);
 			hidev->sc_dev = dev;

Index: src/sys/dev/bluetooth/bthub.c
diff -u src/sys/dev/bluetooth/bthub.c:1.25 src/sys/dev/bluetooth/bthub.c:1.25.8.1
--- src/sys/dev/bluetooth/bthub.c:1.25	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/bluetooth/bthub.c	Wed Aug  4 17:28:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: bthub.c,v 1.25 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: bthub.c,v 1.25.8.1 2021/08/04 17:28:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bthub.c,v 1.25 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bthub.c,v 1.25.8.1 2021/08/04 17:28:41 thorpej Exp $");
 
 #include 
 #include 
@@ -238,7 +238,7 @@ bthub_pioctl(dev_t devno, unsigned long 
 		if (dev != NULL)
 			return EADDRINUSE;
 
-		dev = config_found(self, dict, bthub_print, CFARG_EOL);
+		dev = config_found(self, dict, bthub_print, CFARGS_NONE);
 		if (dev == NULL)
 			return ENXIO;
 

Index: src/sys/dev/bluetooth/btkbd.c
diff -u src/sys/dev/bluetooth/btkbd.c:1.20 src/sys/dev/bluetooth/btkbd.c:1.20.8.1
--- src/sys/dev/bluetooth/btkbd.c:1.20	Sat Apr 24 23:36:53 2021
+++ 

CVS commit: [thorpej-cfargs2] src/sys/dev

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 17:27:29 UTC 2021

Modified Files:
src/sys/dev/ata [thorpej-cfargs2]: ata.c ata_raid.c
src/sys/dev/audio [thorpej-cfargs2]: audio.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.161 -r1.161.8.1 src/sys/dev/ata/ata.c
cvs rdiff -u -r1.44 -r1.44.8.1 src/sys/dev/ata/ata_raid.c
cvs rdiff -u -r1.105 -r1.105.2.1 src/sys/dev/audio/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ata/ata.c
diff -u src/sys/dev/ata/ata.c:1.161 src/sys/dev/ata/ata.c:1.161.8.1
--- src/sys/dev/ata/ata.c:1.161	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/ata/ata.c	Wed Aug  4 17:27:29 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ata.c,v 1.161 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: ata.c,v 1.161.8.1 2021/08/04 17:27:29 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.161 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.161.8.1 2021/08/04 17:27:29 thorpej Exp $");
 
 #include "opt_ata.h"
 
@@ -206,8 +206,7 @@ ata_channel_attach(struct ata_channel *c
 	KASSERT(chp->ch_queue != NULL);
 
 	chp->atabus = config_found(chp->ch_atac->atac_dev, chp, atabusprint,
-		CFARG_IATTR, "ata",
-		CFARG_EOL);
+		CFARGS(.iattr = "ata"));
 }
 
 /*
@@ -375,8 +374,7 @@ atabusconfig_thread(void *arg)
 		adev.adev_drv_data = >ch_drive[i];
 		chp->ch_drive[i].drv_softc = config_found(atabus_sc->sc_dev,
 		, ataprint,
-		CFARG_IATTR, "ata_hl",
-		CFARG_EOL);
+		CFARGS(.iattr = "ata_hl"));
 		if (chp->ch_drive[i].drv_softc != NULL) {
 			ata_probe_caps(>ch_drive[i]);
 		} else {

Index: src/sys/dev/ata/ata_raid.c
diff -u src/sys/dev/ata/ata_raid.c:1.44 src/sys/dev/ata/ata_raid.c:1.44.8.1
--- src/sys/dev/ata/ata_raid.c:1.44	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/ata/ata_raid.c	Wed Aug  4 17:27:29 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ata_raid.c,v 1.44 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: ata_raid.c,v 1.44.8.1 2021/08/04 17:27:29 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.44 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.44.8.1 2021/08/04 17:27:29 thorpej Exp $");
 
 #include 
 #include 
@@ -216,9 +216,8 @@ ataraid_attach(device_t parent, device_t
 		locs[ATARAIDCF_UNIT] = aai->aai_arrayno;
 
 		config_found(self, aai, ataraid_print,
-		CFARG_SUBMATCH, config_stdsubmatch,
-		CFARG_LOCATORS, locs,
-		CFARG_EOL);
+		CFARGS(.submatch = config_stdsubmatch,
+			   .locators = locs));
 	}
 }
 

Index: src/sys/dev/audio/audio.c
diff -u src/sys/dev/audio/audio.c:1.105 src/sys/dev/audio/audio.c:1.105.2.1
--- src/sys/dev/audio/audio.c:1.105	Wed Jul 21 06:14:58 2021
+++ src/sys/dev/audio/audio.c	Wed Aug  4 17:27:29 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.105 2021/07/21 06:14:58 isaki Exp $	*/
+/*	$NetBSD: audio.c,v 1.105.2.1 2021/08/04 17:27:29 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.105 2021/07/21 06:14:58 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.105.2.1 2021/08/04 17:27:29 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -1413,7 +1413,7 @@ audiosearch(device_t parent, cfdata_t cf
 
 	if (config_probe(parent, cf, aux))
 		config_attach(parent, cf, aux, NULL,
-		CFARG_EOL);
+		CFARGS_NONE);
 
 	return 0;
 }
@@ -1424,8 +1424,7 @@ audiorescan(device_t self, const char *i
 	struct audio_softc *sc = device_private(self);
 
 	config_search(sc->sc_dev, NULL,
-	CFARG_SEARCH, audiosearch,
-	CFARG_EOL);
+	CFARGS(.search = audiosearch));
 
 	return 0;
 }
@@ -1449,8 +1448,7 @@ audio_attach_mi(const struct audio_hw_if
 	arg.hwif = ahwp;
 	arg.hdl = hdlp;
 	return config_found(dev, , audioprint,
-	CFARG_IATTR, "audiobus",
-	CFARG_EOL);
+	CFARGS(.iattr = "audiobus"));
 }
 
 /*



CVS commit: [thorpej-cfargs2] src/sys/dev/adb

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 17:25:27 UTC 2021

Modified Files:
src/sys/dev/adb [thorpej-cfargs2]: adb_bus.c adb_kbd.c adb_ktm.c
adb_ms.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/dev/adb/adb_bus.c
cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/dev/adb/adb_kbd.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/dev/adb/adb_ktm.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/dev/adb/adb_ms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/adb/adb_bus.c
diff -u src/sys/dev/adb/adb_bus.c:1.11 src/sys/dev/adb/adb_bus.c:1.11.8.1
--- src/sys/dev/adb/adb_bus.c:1.11	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/adb/adb_bus.c	Wed Aug  4 17:25:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_bus.c,v 1.11 2021/04/24 23:36:52 thorpej Exp $ */
+/*	$NetBSD: adb_bus.c,v 1.11.8.1 2021/08/04 17:25:27 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2006 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: adb_bus.c,v 1.11 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_bus.c,v 1.11.8.1 2021/08/04 17:25:27 thorpej Exp $");
 
 #include 
 #include 
@@ -169,7 +169,7 @@ nadb_init(device_t dev)
 			sc->sc_devtable[i].handler_id);
 			aaa.dev = >sc_devtable[i];
 			if (config_found(sc->sc_dev, , nadb_devprint,
-	 CFARG_EOL)) {
+	 CFARGS_NONE)) {
 devmask |= (1 << i);
 			} else {
 aprint_normal(" not configured\n");

Index: src/sys/dev/adb/adb_kbd.c
diff -u src/sys/dev/adb/adb_kbd.c:1.31 src/sys/dev/adb/adb_kbd.c:1.31.8.1
--- src/sys/dev/adb/adb_kbd.c:1.31	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/adb/adb_kbd.c	Wed Aug  4 17:25:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_kbd.c,v 1.31 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: adb_kbd.c,v 1.31.8.1 2021/08/04 17:25:27 thorpej Exp $	*/
 
 /*
  * Copyright (C) 1998	Colin Wood
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: adb_kbd.c,v 1.31 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_kbd.c,v 1.31.8.1 2021/08/04 17:25:27 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -384,8 +384,7 @@ adbkbd_attach(device_t parent, device_t 
 	a.accesscookie = sc;
 
 	sc->sc_wskbddev = config_found(self, , wskbddevprint,
-	CFARG_IATTR, "wskbddev",
-	CFARG_EOL);
+	CFARGS(.iattr = "wskbddev"));
 #ifdef ADBKBD_EMUL_USB
 	sc->sc_emul_usb = TRUE;
 	wskbd_set_evtrans(sc->sc_wskbddev, adb_to_usb, 128);
@@ -396,9 +395,7 @@ adbkbd_attach(device_t parent, device_t 
 	am.accessops = _accessops;
 	am.accesscookie = sc;
 	sc->sc_wsmousedev = config_found(self, , wsmousedevprint,
-	CFARG_IATTR, "wsmousedev",
-	CFARG_EOL);
-
+	CFARGS(.iattr = "wsmousedev"));
 #endif
 	adbkbd_setup_sysctl(sc);
 

Index: src/sys/dev/adb/adb_ktm.c
diff -u src/sys/dev/adb/adb_ktm.c:1.3 src/sys/dev/adb/adb_ktm.c:1.3.8.1
--- src/sys/dev/adb/adb_ktm.c:1.3	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/adb/adb_ktm.c	Wed Aug  4 17:25:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_ktm.c,v 1.3 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: adb_ktm.c,v 1.3.8.1 2021/08/04 17:25:27 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2019 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: adb_ktm.c,v 1.3 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_ktm.c,v 1.3.8.1 2021/08/04 17:25:27 thorpej Exp $");
 
 #include 
 #include 
@@ -136,7 +136,7 @@ ktm_attach(device_t parent, device_t sel
 
 	a.accessops = _accessops;
 	a.accesscookie = sc;
-	sc->sc_wsmousedev = config_found(self, , wsmousedevprint, CFARG_EOL);
+	sc->sc_wsmousedev = config_found(self, , wsmousedevprint, CFARGS_NONE);
 }
 
 static int

Index: src/sys/dev/adb/adb_ms.c
diff -u src/sys/dev/adb/adb_ms.c:1.20 src/sys/dev/adb/adb_ms.c:1.20.8.1
--- src/sys/dev/adb/adb_ms.c:1.20	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/adb/adb_ms.c	Wed Aug  4 17:25:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_ms.c,v 1.20 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: adb_ms.c,v 1.20.8.1 2021/08/04 17:25:27 thorpej Exp $	*/
 
 /*
  * Copyright (C) 1998	Colin Wood
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: adb_ms.c,v 1.20 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb_ms.c,v 1.20.8.1 2021/08/04 17:25:27 thorpej Exp $");
 
 #include 
 #include 
@@ -247,7 +247,7 @@ adbms_attach(device_t parent, device_t s
 
 	a.accessops = _accessops;
 	a.accesscookie = sc;
-	sc->sc_wsmousedev = config_found(self, , wsmousedevprint, CFARG_EOL);
+	sc->sc_wsmousedev = config_found(self, , wsmousedevprint, CFARGS_NONE);
 }
 
 



CVS commit: [thorpej-cfargs2] src/sys/dev/acpi

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 17:24:17 UTC 2021

Modified Files:
src/sys/dev/acpi [thorpej-cfargs2]: acpi.c acpi_display.c dwiic_acpi.c
ehci_acpi.c ipmi_acpi.c smbus_acpi.c virtio_acpi.c wss_acpi.c
xhci_acpi.c
src/sys/dev/acpi/wmi [thorpej-cfargs2]: wmi_acpi.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.292 -r1.292.4.1 src/sys/dev/acpi/acpi.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/dev/acpi/acpi_display.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/dev/acpi/dwiic_acpi.c \
src/sys/dev/acpi/virtio_acpi.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/dev/acpi/ehci_acpi.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/dev/acpi/ipmi_acpi.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/dev/acpi/smbus_acpi.c
cvs rdiff -u -r1.34 -r1.34.8.1 src/sys/dev/acpi/wss_acpi.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/dev/acpi/xhci_acpi.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/dev/acpi/wmi/wmi_acpi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/acpi/acpi.c
diff -u src/sys/dev/acpi/acpi.c:1.292 src/sys/dev/acpi/acpi.c:1.292.4.1
--- src/sys/dev/acpi/acpi.c:1.292	Wed May 12 23:22:33 2021
+++ src/sys/dev/acpi/acpi.c	Wed Aug  4 17:24:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi.c,v 1.292 2021/05/12 23:22:33 thorpej Exp $	*/
+/*	$NetBSD: acpi.c,v 1.292.4.1 2021/08/04 17:24:17 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.292 2021/05/12 23:22:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.292.4.1 2021/08/04 17:24:17 thorpej Exp $");
 
 #include "pci.h"
 #include "opt_acpi.h"
@@ -361,9 +361,8 @@ int
 acpi_check(device_t parent, const char *ifattr)
 {
 	return config_search(parent, NULL,
-			 CFARG_SUBMATCH, acpi_submatch,
-			 CFARG_IATTR, ifattr,
-			 CFARG_EOL) != NULL;
+			 CFARGS(.submatch = acpi_submatch,
+.iattr = ifattr)) != NULL;
 }
 
 int
@@ -492,8 +491,7 @@ acpi_attach(device_t parent, device_t se
 	 * Early initialization of acpiec(4) via ECDT.
 	 */
 	config_found(self, aa, NULL,
-	CFARG_IATTR, "acpiecdtbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "acpiecdtbus"));
 
 	rv = AcpiInitializeObjects(ACPI_FULL_INITIALIZATION);
 
@@ -558,8 +556,7 @@ acpi_attach(device_t parent, device_t se
 			continue;
 		}
 		config_found(sc->sc_dev, hdr, NULL,
-		CFARG_IATTR, "acpisdtbus",
-		CFARG_EOL);
+		CFARGS(.iattr = "acpisdtbus"));
 		AcpiPutTable(hdr);
 	}
 
@@ -898,8 +895,7 @@ acpi_rescan(device_t self, const char *i
 
 	if (ifattr_match(ifattr, "acpihpetbus") && sc->sc_hpet == NULL) {
 		sc->sc_hpet = config_found(sc->sc_dev, , NULL,
-	   CFARG_IATTR, "acpihpetbus",
-	   CFARG_EOL);
+	   CFARGS(.iattr = "acpihpetbus"));
 	}
 
 	/*
@@ -915,14 +911,12 @@ acpi_rescan(device_t self, const char *i
 	 */
 	if (ifattr_match(ifattr, "acpiapmbus") && sc->sc_apmbus == NULL) {
 		sc->sc_apmbus = config_found(sc->sc_dev, NULL, NULL,
-	 CFARG_IATTR, "acpiapmbus",
-	 CFARG_EOL);
+	 CFARGS(.iattr = "acpiapmbus"));
 	}
 
 	if (ifattr_match(ifattr, "acpiwdrtbus") && sc->sc_wdrt == NULL) {
 		sc->sc_wdrt = config_found(sc->sc_dev, NULL, NULL,
-	   CFARG_IATTR, "acpiwdrtbus",
-	   CFARG_EOL);
+	   CFARGS(.iattr = "acpiwdrtbus"));
 	}
 
 	return 0;
@@ -965,9 +959,8 @@ acpi_rescan_early(struct acpi_softc *sc)
 		aa.aa_dmat64 = ad->ad_dmat64;
 
 		ad->ad_device = config_found(sc->sc_dev, , acpi_print,
-		CFARG_IATTR, "acpinodebus",
-		CFARG_DEVHANDLE, devhandle_from_acpi(ad->ad_handle),
-		CFARG_EOL);
+		CFARGS(.iattr = "acpinodebus",
+			   .devhandle = devhandle_from_acpi(ad->ad_handle)));
 	}
 }
 
@@ -1033,9 +1026,8 @@ acpi_rescan_nodes(struct acpi_softc *sc)
 		aa.aa_dmat64 = ad->ad_dmat64;
 
 		ad->ad_device = config_found(sc->sc_dev, , acpi_print,
-		CFARG_IATTR, "acpinodebus",
-		CFARG_DEVHANDLE, devhandle_from_acpi(ad->ad_handle),
-		CFARG_EOL);
+		CFARGS(.iattr = "acpinodebus",
+			   .devhandle = devhandle_from_acpi(ad->ad_handle)));
 	}
 }
 

Index: src/sys/dev/acpi/acpi_display.c
diff -u src/sys/dev/acpi/acpi_display.c:1.19 src/sys/dev/acpi/acpi_display.c:1.19.8.1
--- src/sys/dev/acpi/acpi_display.c:1.19	Sat Apr 24 23:36:52 2021
+++ src/sys/dev/acpi/acpi_display.c	Wed Aug  4 17:24:17 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi_display.c,v 1.19 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: acpi_display.c,v 1.19.8.1 2021/08/04 17:24:17 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: acpi_display.c,v 1.19 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_display.c,v 1.19.8.1 2021/08/04 17:24:17 thorpej Exp $");
 
 #include 
 #include 
@@ -573,7 +573,7 @@ acpidisp_vga_scan_outdevs(struct acpidis
 		

CVS commit: [thorpej-cfargs2] src/sys/arch/evbarm

2021-08-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 16:59:14 UTC 2021

Modified Files:
src/sys/arch/evbarm/adi_brh [thorpej-cfargs2]: obio.c
src/sys/arch/evbarm/armadillo [thorpej-cfargs2]: armadillo9_iic.c
src/sys/arch/evbarm/g42xxeb [thorpej-cfargs2]: g42xxeb_kmkbd.c
g42xxeb_lcd.c gb225.c gb225_pcic.c obio.c
src/sys/arch/evbarm/gumstix [thorpej-cfargs2]: gxiic.c gxio.c gxlcd.c
src/sys/arch/evbarm/hdl_g [thorpej-cfargs2]: obio.c
src/sys/arch/evbarm/ifpga [thorpej-cfargs2]: ifpga.c
src/sys/arch/evbarm/iq80310 [thorpej-cfargs2]: obio.c
src/sys/arch/evbarm/iq80321 [thorpej-cfargs2]: obio.c
src/sys/arch/evbarm/iyonix [thorpej-cfargs2]: obio.c
src/sys/arch/evbarm/lubbock [thorpej-cfargs2]: lubbock_lcd.c obio.c
sacc_obio.c
src/sys/arch/evbarm/mini2440 [thorpej-cfargs2]: mini2440_lcd.c
src/sys/arch/evbarm/mpcsa [thorpej-cfargs2]: mpcsa_leds.c
src/sys/arch/evbarm/netwalker [thorpej-cfargs2]: netwalker_btn.c
src/sys/arch/evbarm/nslu2 [thorpej-cfargs2]: nslu2_iic.c
src/sys/arch/evbarm/smdk2xx0 [thorpej-cfargs2]: smdk2410_kbd.c
smdk2410_lcd.c
src/sys/arch/evbarm/tsarm [thorpej-cfargs2]: tskp.c tslcd.c tspld.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/evbarm/adi_brh/obio.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/evbarm/armadillo/armadillo9_iic.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/evbarm/g42xxeb/g42xxeb_kmkbd.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/evbarm/g42xxeb/g42xxeb_lcd.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/evbarm/g42xxeb/gb225.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/evbarm/g42xxeb/gb225_pcic.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/evbarm/g42xxeb/obio.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/evbarm/gumstix/gxiic.c
cvs rdiff -u -r1.27 -r1.27.8.1 src/sys/arch/evbarm/gumstix/gxio.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/evbarm/gumstix/gxlcd.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/evbarm/hdl_g/obio.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/arch/evbarm/ifpga/ifpga.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/evbarm/iq80310/obio.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/evbarm/iq80321/obio.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/evbarm/iyonix/obio.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/evbarm/lubbock/lubbock_lcd.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/evbarm/lubbock/obio.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/evbarm/lubbock/sacc_obio.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/evbarm/mini2440/mini2440_lcd.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/evbarm/mpcsa/mpcsa_leds.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/evbarm/netwalker/netwalker_btn.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/evbarm/nslu2/nslu2_iic.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/evbarm/smdk2xx0/smdk2410_kbd.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/evbarm/smdk2xx0/smdk2410_lcd.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/evbarm/tsarm/tskp.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/evbarm/tsarm/tslcd.c
cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/arch/evbarm/tsarm/tspld.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/adi_brh/obio.c
diff -u src/sys/arch/evbarm/adi_brh/obio.c:1.12 src/sys/arch/evbarm/adi_brh/obio.c:1.12.8.1
--- src/sys/arch/evbarm/adi_brh/obio.c:1.12	Sat Apr 24 23:36:32 2021
+++ src/sys/arch/evbarm/adi_brh/obio.c	Wed Aug  4 16:59:12 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: obio.c,v 1.12 2021/04/24 23:36:32 thorpej Exp $	*/
+/*	$NetBSD: obio.c,v 1.12.8.1 2021/08/04 16:59:12 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.12 2021/04/24 23:36:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.12.8.1 2021/08/04 16:59:12 thorpej Exp $");
 
 #include 
 #include 
@@ -105,8 +105,7 @@ obio_attach(device_t parent, device_t se
 	 * configuration file.
 	 */
 	config_search(self, NULL,
-	CFARG_SEARCH, obio_search,
-	CFARG_EOL);
+	CFARGS(.search = obio_search));
 }
 
 int
@@ -138,7 +137,7 @@ obio_search(device_t parent, cfdata_t cf
 	oba.oba_irq = cf->cf_loc[OBIOCF_IRQ];
 
 	if (config_probe(parent, cf, ))
-		config_attach(parent, cf, , obio_print, CFARG_EOL);
+		config_attach(parent, cf, , obio_print, CFARGS_NONE);
 
 	return (0);
 }

Index: src/sys/arch/evbarm/armadillo/armadillo9_iic.c
diff -u src/sys/arch/evbarm/armadillo/armadillo9_iic.c:1.10 src/sys/arch/evbarm/armadillo/armadillo9_iic.c:1.10.8.1
--- src/sys/arch/evbarm/armadillo/armadillo9_iic.c:1.10	Sat Apr 24 23:36:32 2021
+++ src/sys/arch/evbarm/armadillo/armadillo9_iic.c	Wed Aug  4 16:59:13 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: armadillo9_iic.c,v 1.10 2021/04/24 23:36:32 thorpej Exp $	*/
+/*	$NetBSD: armadillo9_iic.c,v 

CVS commit: [thorpej-cfargs2] src/sys/arch/evbmips

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 03:24:21 UTC 2021

Modified Files:
src/sys/arch/evbmips/adm5120 [thorpej-cfargs2]: mainbus.c
src/sys/arch/evbmips/alchemy [thorpej-cfargs2]: mainbus.c obio.c
src/sys/arch/evbmips/atheros [thorpej-cfargs2]: mainbus.c
src/sys/arch/evbmips/gdium [thorpej-cfargs2]: bonito_mainbus.c
mainbus.c
src/sys/arch/evbmips/ingenic [thorpej-cfargs2]: mainbus.c
src/sys/arch/evbmips/loongson [thorpej-cfargs2]: bonito_mainbus.c
mainbus.c
src/sys/arch/evbmips/loongson/dev [thorpej-cfargs2]: pcib.c
src/sys/arch/evbmips/malta/dev [thorpej-cfargs2]: gt.c mainbus.c
src/sys/arch/evbmips/malta/pci [thorpej-cfargs2]: pcib.c
src/sys/arch/evbmips/mipssim [thorpej-cfargs2]: mainbus.c
virtio_mainbus.c
src/sys/arch/evbmips/sbmips [thorpej-cfargs2]: zbbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/evbmips/adm5120/mainbus.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/evbmips/alchemy/mainbus.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/evbmips/alchemy/obio.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/evbmips/atheros/mainbus.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/evbmips/gdium/bonito_mainbus.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/evbmips/gdium/mainbus.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/evbmips/ingenic/mainbus.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/evbmips/loongson/bonito_mainbus.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/evbmips/loongson/mainbus.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/evbmips/loongson/dev/pcib.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/evbmips/malta/dev/gt.c \
src/sys/arch/evbmips/malta/dev/mainbus.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/evbmips/malta/pci/pcib.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/evbmips/mipssim/mainbus.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/evbmips/mipssim/virtio_mainbus.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/evbmips/sbmips/zbbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbmips/adm5120/mainbus.c
diff -u src/sys/arch/evbmips/adm5120/mainbus.c:1.4 src/sys/arch/evbmips/adm5120/mainbus.c:1.4.8.1
--- src/sys/arch/evbmips/adm5120/mainbus.c:1.4	Sat Apr 24 23:36:34 2021
+++ src/sys/arch/evbmips/adm5120/mainbus.c	Wed Aug  4 03:24:19 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.4 2021/04/24 23:36:34 thorpej Exp $ */
+/* $NetBSD: mainbus.c,v 1.4.8.1 2021/08/04 03:24:19 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
@@ -66,7 +66,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.4 2021/04/24 23:36:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.4.8.1 2021/08/04 03:24:19 thorpej Exp $");
 
 #include 
 #include 
@@ -153,8 +153,7 @@ mainbus_attach(device_t parent, device_t
 	for (md = mainbusdevs; md->md_name != NULL; md++) {
 		ma.ma_name = md->md_name;
 		config_found(self, , mainbus_print,
-		CFARG_IATTR, "mainbus",
-		CFARG_EOL);
+		CFARGS(.iattr = "mainbus"));
 	}
 }
 

Index: src/sys/arch/evbmips/alchemy/mainbus.c
diff -u src/sys/arch/evbmips/alchemy/mainbus.c:1.11 src/sys/arch/evbmips/alchemy/mainbus.c:1.11.8.1
--- src/sys/arch/evbmips/alchemy/mainbus.c:1.11	Sat Apr 24 23:36:34 2021
+++ src/sys/arch/evbmips/alchemy/mainbus.c	Wed Aug  4 03:24:20 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.11 2021/04/24 23:36:34 thorpej Exp $ */
+/* $NetBSD: mainbus.c,v 1.11.8.1 2021/08/04 03:24:20 thorpej Exp $ */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.11 2021/04/24 23:36:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.11.8.1 2021/08/04 03:24:20 thorpej Exp $");
 
 #include 
 #include 
@@ -87,7 +87,7 @@ mainbus_attach(device_t parent, device_t
 	printf("\n");
 
 	for (md = mainbusdevs; md->md_name != NULL; md++) {
-		config_found(self, NULL, mainbus_print, CFARG_EOL);
+		config_found(self, NULL, mainbus_print, CFARGS_NONE);
 	}
 }
 

Index: src/sys/arch/evbmips/alchemy/obio.c
diff -u src/sys/arch/evbmips/alchemy/obio.c:1.5 src/sys/arch/evbmips/alchemy/obio.c:1.5.8.1
--- src/sys/arch/evbmips/alchemy/obio.c:1.5	Sat Apr 24 23:36:34 2021
+++ src/sys/arch/evbmips/alchemy/obio.c	Wed Aug  4 03:24:20 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: obio.c,v 1.5 2021/04/24 23:36:34 thorpej Exp $ */
+/* $NetBSD: obio.c,v 1.5.8.1 2021/08/04 03:24:20 thorpej Exp $ */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.5 2021/04/24 23:36:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.5.8.1 2021/08/04 03:24:20 thorpej Exp $");
 
 #include 
 #include 
@@ -89,8 +89,7 @@ obio_attach(device_t parent, device_t se
 		oa.oba_addr = od->od_addr;
 		oa.oba_irq = od->od_irq;
 		

CVS commit: [thorpej-cfargs2] src/sys/arch/evbppc

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 03:23:10 UTC 2021

Modified Files:
src/sys/arch/evbppc/ev64260 [thorpej-cfargs2]: mainbus.c
src/sys/arch/evbppc/explora/dev [thorpej-cfargs2]: elb.c fb_elb.c
src/sys/arch/evbppc/mpc85xx [thorpej-cfargs2]: autoconf.c
src/sys/arch/evbppc/pmppc [thorpej-cfargs2]: mainbus.c
src/sys/arch/evbppc/virtex [thorpej-cfargs2]: design_gsrd1.c
design_gsrd2.c
src/sys/arch/evbppc/virtex/dev [thorpej-cfargs2]: tft.c
src/sys/arch/evbppc/walnut/dev [thorpej-cfargs2]: pbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/evbppc/ev64260/mainbus.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/evbppc/explora/dev/elb.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/evbppc/explora/dev/fb_elb.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/evbppc/mpc85xx/autoconf.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/evbppc/pmppc/mainbus.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/evbppc/virtex/design_gsrd1.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/evbppc/virtex/design_gsrd2.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/evbppc/virtex/dev/tft.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/evbppc/walnut/dev/pbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbppc/ev64260/mainbus.c
diff -u src/sys/arch/evbppc/ev64260/mainbus.c:1.8 src/sys/arch/evbppc/ev64260/mainbus.c:1.8.8.1
--- src/sys/arch/evbppc/ev64260/mainbus.c:1.8	Sat Apr 24 23:36:36 2021
+++ src/sys/arch/evbppc/ev64260/mainbus.c	Wed Aug  4 03:23:10 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.8 2021/04/24 23:36:36 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.8.8.1 2021/08/04 03:23:10 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.8 2021/04/24 23:36:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.8.8.1 2021/08/04 03:23:10 thorpej Exp $");
 
 #include "mainbus.h"
 #include "opt_multiprocessor.h"
@@ -86,7 +86,7 @@ mainbus_attach(device_t parent, device_t
 	mba.mba_name = "cpu";
 	mba.mba_unit = 0;
 	mba.mba_addr = MAINBUSCF_ADDR_DEFAULT;
-	config_found(self, , mainbus_cfprint, CFARG_EOL);
+	config_found(self, , mainbus_cfprint, CFARGS_NONE);
 
 #ifdef MULTIPROCESSOR
 	/*
@@ -95,7 +95,7 @@ mainbus_attach(device_t parent, device_t
 	mba.mba_name = "cpu";
 	mba.mba_unit = 1;
 	mba.mba_addr = MAINBUSCF_ADDR_DEFAULT;
-	config_found(self, , mainbus_cfprint, CFARG_EOL);
+	config_found(self, , mainbus_cfprint, CFARGS_NONE);
 #endif
 
 	/*
@@ -104,7 +104,7 @@ mainbus_attach(device_t parent, device_t
 	mba.mba_name = "gt";
 	mba.mba_unit = -1;
 	mba.mba_addr = gt_base;
-	config_found(self, , mainbus_cfprint, CFARG_EOL);
+	config_found(self, , mainbus_cfprint, CFARGS_NONE);
 }
 
 int

Index: src/sys/arch/evbppc/explora/dev/elb.c
diff -u src/sys/arch/evbppc/explora/dev/elb.c:1.10 src/sys/arch/evbppc/explora/dev/elb.c:1.10.8.1
--- src/sys/arch/evbppc/explora/dev/elb.c:1.10	Sat Apr 24 23:36:36 2021
+++ src/sys/arch/evbppc/explora/dev/elb.c	Wed Aug  4 03:23:10 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: elb.c,v 1.10 2021/04/24 23:36:36 thorpej Exp $	*/
+/*	$NetBSD: elb.c,v 1.10.8.1 2021/08/04 03:23:10 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: elb.c,v 1.10 2021/04/24 23:36:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: elb.c,v 1.10.8.1 2021/08/04 03:23:10 thorpej Exp $");
 
 #include 
 #include 
@@ -141,7 +141,7 @@ elb_attach(device_t parent, device_t sel
 		eaa.elb_base2 = elb->elb_addr2;
 		eaa.elb_irq = elb->elb_irq;
 
-		(void) config_found(self, , elb_print, CFARG_EOL);
+		(void) config_found(self, , elb_print, CFARGS_NONE);
 	}
 }
 

Index: src/sys/arch/evbppc/explora/dev/fb_elb.c
diff -u src/sys/arch/evbppc/explora/dev/fb_elb.c:1.19 src/sys/arch/evbppc/explora/dev/fb_elb.c:1.19.8.1
--- src/sys/arch/evbppc/explora/dev/fb_elb.c:1.19	Sat Apr 24 23:36:36 2021
+++ src/sys/arch/evbppc/explora/dev/fb_elb.c	Wed Aug  4 03:23:10 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fb_elb.c,v 1.19 2021/04/24 23:36:36 thorpej Exp $	*/
+/*	$NetBSD: fb_elb.c,v 1.19.8.1 2021/08/04 03:23:10 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fb_elb.c,v 1.19 2021/04/24 23:36:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb_elb.c,v 1.19.8.1 2021/08/04 03:23:10 thorpej Exp $");
 
 #include 
 #include 
@@ -214,7 +214,7 @@ fb_elb_attach(device_t parent, device_t 
 	waa.accessops = 
 	waa.accesscookie = sc;
 
-	config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 static void

Index: src/sys/arch/evbppc/mpc85xx/autoconf.c
diff -u 

CVS commit: [thorpej-cfargs2] src/sys/arch/evbsh3

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 03:08:49 UTC 2021

Modified Files:
src/sys/arch/evbsh3/ap_ms104_sh4 [thorpej-cfargs2]: shpcmcia.c
src/sys/arch/evbsh3/evbsh3 [thorpej-cfargs2]: mainbus.c
src/sys/arch/evbsh3/t_sh7706lan [thorpej-cfargs2]: scimci.c ssumci.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/evbsh3/evbsh3/mainbus.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/evbsh3/t_sh7706lan/scimci.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/evbsh3/t_sh7706lan/ssumci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
diff -u src/sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c:1.6 src/sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c:1.6.8.1
--- src/sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c:1.6	Sat Apr 24 23:36:36 2021
+++ src/sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c	Wed Aug  4 03:08:48 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: shpcmcia.c,v 1.6 2021/04/24 23:36:36 thorpej Exp $	*/
+/*	$NetBSD: shpcmcia.c,v 1.6.8.1 2021/08/04 03:08:48 thorpej Exp $	*/
 
 /*-
  * Copyright (C) 2009 NONAKA Kimihiro 
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: shpcmcia.c,v 1.6 2021/04/24 23:36:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: shpcmcia.c,v 1.6.8.1 2021/08/04 03:08:48 thorpej Exp $");
 
 #include 
 #include 
@@ -313,7 +313,7 @@ shpcmcia_attach_socket(struct shpcmcia_h
 	paa.pch = (pcmcia_chipset_handle_t)h;
 
 	h->pcmcia =
-	config_found(h->sc->sc_dev, , shpcmcia_print, CFARG_EOL);
+	config_found(h->sc->sc_dev, , shpcmcia_print, CFARGS_NONE);
 
 	/* if there's actually a pcmcia device attached, initialize the slot */
 	if (h->pcmcia)

Index: src/sys/arch/evbsh3/evbsh3/mainbus.c
diff -u src/sys/arch/evbsh3/evbsh3/mainbus.c:1.10 src/sys/arch/evbsh3/evbsh3/mainbus.c:1.10.8.1
--- src/sys/arch/evbsh3/evbsh3/mainbus.c:1.10	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/evbsh3/evbsh3/mainbus.c	Wed Aug  4 03:08:48 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.10 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.10.8.1 2021/08/04 03:08:48 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.10 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.10.8.1 2021/08/04 03:08:48 thorpej Exp $");
 
 #include 
 #include 
@@ -62,12 +62,11 @@ mainbus_attach(device_t parent, device_t
 	/* CPU  */
 	memset(, 0, sizeof(maa));
 	maa.ma_name = "cpu";
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 
 	/* Devices */
 	config_search(self, NULL,
-	CFARG_SEARCH, mainbus_search,
-	CFARG_EOL);
+	CFARGS(.search = mainbus_search));
 }
 
 static int
@@ -81,7 +80,7 @@ mainbus_search(device_t parent, cfdata_t
 	maa.ma_name = cf->cf_name;
 
 	if (config_probe(parent, cf, ))
-		config_attach(parent, cf, , mainbus_print, CFARG_EOL);
+		config_attach(parent, cf, , mainbus_print, CFARGS_NONE);
 
 	return 0;
 }

Index: src/sys/arch/evbsh3/t_sh7706lan/scimci.c
diff -u src/sys/arch/evbsh3/t_sh7706lan/scimci.c:1.3 src/sys/arch/evbsh3/t_sh7706lan/scimci.c:1.3.8.1
--- src/sys/arch/evbsh3/t_sh7706lan/scimci.c:1.3	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/evbsh3/t_sh7706lan/scimci.c	Wed Aug  4 03:08:48 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: scimci.c,v 1.3 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: scimci.c,v 1.3.8.1 2021/08/04 03:08:48 thorpej Exp $	*/
 
 /*-
  * Copyright (C) 2009 NONAKA Kimihiro 
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: scimci.c,v 1.3 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scimci.c,v 1.3.8.1 2021/08/04 03:08:48 thorpej Exp $");
 
 #include 
 #include 
@@ -235,7 +235,7 @@ scimci_attach(device_t parent, device_t 
 		 | SMC_CAPS_SINGLE_ONLY
 		 | SMC_CAPS_POLL_CARD_DET;
 
-	sc->sc_sdmmc = config_found(sc->sc_dev, , NULL, CFARG_EOL);
+	sc->sc_sdmmc = config_found(sc->sc_dev, , NULL, CFARGS_NONE);
 	if (sc->sc_sdmmc == NULL)
 		aprint_error_dev(sc->sc_dev, "couldn't attach bus\n");
 }

Index: src/sys/arch/evbsh3/t_sh7706lan/ssumci.c
diff -u src/sys/arch/evbsh3/t_sh7706lan/ssumci.c:1.4 src/sys/arch/evbsh3/t_sh7706lan/ssumci.c:1.4.8.1
--- src/sys/arch/evbsh3/t_sh7706lan/ssumci.c:1.4	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/evbsh3/t_sh7706lan/ssumci.c	Wed Aug  4 03:08:48 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ssumci.c,v 1.4 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: ssumci.c,v 1.4.8.1 2021/08/04 03:08:48 thorpej Exp $	*/
 
 /*-
  * Copyright (C) 2010 NONAKA Kimihiro 
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ssumci.c,v 1.4 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ssumci.c,v 1.4.8.1 2021/08/04 03:08:48 thorpej Exp $");
 

CVS commit: [thorpej-cfargs2] src/sys/arch/zaurus/dev

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 03:07:41 UTC 2021

Modified Files:
src/sys/arch/zaurus/dev [thorpej-cfargs2]: w100lcd.c zapm.c ziic.c
zkbd.c zlcd.c zrc.c zssp.c ztp.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/zaurus/dev/w100lcd.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/zaurus/dev/zapm.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/zaurus/dev/ziic.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/zaurus/dev/zkbd.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/zaurus/dev/zlcd.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/zaurus/dev/zrc.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/zaurus/dev/zssp.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/zaurus/dev/ztp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/zaurus/dev/w100lcd.c
diff -u src/sys/arch/zaurus/dev/w100lcd.c:1.4 src/sys/arch/zaurus/dev/w100lcd.c:1.4.8.1
--- src/sys/arch/zaurus/dev/w100lcd.c:1.4	Sat Apr 24 23:36:52 2021
+++ src/sys/arch/zaurus/dev/w100lcd.c	Wed Aug  4 03:07:41 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: w100lcd.c,v 1.4 2021/04/24 23:36:52 thorpej Exp $ */
+/* $NetBSD: w100lcd.c,v 1.4.8.1 2021/08/04 03:07:41 thorpej Exp $ */
 /*
  * Copyright (c) 2002, 2003  Genetec Corporation.  All rights reserved.
  * Written by Hiroyuki Bessho for Genetec Corporation.
@@ -39,7 +39,7 @@
  * LCD on/off switch and backlight brightness are done in lcdctl.c.
  */
 #include 
-__KERNEL_RCSID(0, "$NetBSD: w100lcd.c,v 1.4 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: w100lcd.c,v 1.4.8.1 2021/08/04 03:07:41 thorpej Exp $");
 
 #include "lcdctl.h"
 
@@ -145,7 +145,7 @@ w100lcd_attach(device_t parent, device_t
 	aa.accessops = _accessops;
 	aa.accesscookie = sc;
 
-	(void)config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	(void)config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 
 	if (!pmf_device_register(self, w100lcd_suspend, w100lcd_resume))
 		aprint_error_dev(self, "couldn't establish power handler\n");

Index: src/sys/arch/zaurus/dev/zapm.c
diff -u src/sys/arch/zaurus/dev/zapm.c:1.13 src/sys/arch/zaurus/dev/zapm.c:1.13.8.1
--- src/sys/arch/zaurus/dev/zapm.c:1.13	Sat Apr 24 23:36:52 2021
+++ src/sys/arch/zaurus/dev/zapm.c	Wed Aug  4 03:07:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: zapm.c,v 1.13 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: zapm.c,v 1.13.8.1 2021/08/04 03:07:41 thorpej Exp $	*/
 /*	$OpenBSD: zaurus_apm.c,v 1.13 2006/12/12 23:14:28 dim Exp $	*/
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: zapm.c,v 1.13 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zapm.c,v 1.13.8.1 2021/08/04 03:07:41 thorpej Exp $");
 
 #include 
 #include 
@@ -195,7 +195,7 @@ zapm_attach(device_t parent, device_t se
 	aaa.accesscookie = sc;
 	aaa.apm_detail = 0x0102;
 
-	sc->sc_apmdev = config_found(self, , apmprint, CFARG_EOL);
+	sc->sc_apmdev = config_found(self, , apmprint, CFARGS_NONE);
 	if (sc->sc_apmdev != NULL) {
 		zapm_poll1(sc, 0);
 		callout_schedule(>sc_cyclic_poll, CYCLIC_TIME);

Index: src/sys/arch/zaurus/dev/ziic.c
diff -u src/sys/arch/zaurus/dev/ziic.c:1.5 src/sys/arch/zaurus/dev/ziic.c:1.5.8.1
--- src/sys/arch/zaurus/dev/ziic.c:1.5	Sat Apr 24 23:36:52 2021
+++ src/sys/arch/zaurus/dev/ziic.c	Wed Aug  4 03:07:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ziic.c,v 1.5 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: ziic.c,v 1.5.8.1 2021/08/04 03:07:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ziic.c,v 1.5 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ziic.c,v 1.5.8.1 2021/08/04 03:07:41 thorpej Exp $");
 
 #include 
 #include 
@@ -129,7 +129,7 @@ pxaiic_attach(device_t parent, device_t 
 
 	memset(, 0, sizeof(iba));
 	iba.iba_tag = >sc_i2c;
-	config_found(psc->sc_dev, , iicbus_print, CFARG_EOL);
+	config_found(psc->sc_dev, , iicbus_print, CFARGS_NONE);
 }
 
 static int

Index: src/sys/arch/zaurus/dev/zkbd.c
diff -u src/sys/arch/zaurus/dev/zkbd.c:1.21 src/sys/arch/zaurus/dev/zkbd.c:1.21.8.1
--- src/sys/arch/zaurus/dev/zkbd.c:1.21	Sat Apr 24 23:36:52 2021
+++ src/sys/arch/zaurus/dev/zkbd.c	Wed Aug  4 03:07:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: zkbd.c,v 1.21 2021/04/24 23:36:52 thorpej Exp $	*/
+/*	$NetBSD: zkbd.c,v 1.21.8.1 2021/08/04 03:07:41 thorpej Exp $	*/
 /* $OpenBSD: zaurus_kbd.c,v 1.28 2005/12/21 20:36:03 deraadt Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: zkbd.c,v 1.21 2021/04/24 23:36:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zkbd.c,v 1.21.8.1 2021/08/04 03:07:41 thorpej Exp $");
 
 #include "opt_wsdisplay_compat.h"
 #if 0	/* XXX */
@@ -336,7 +336,7 @@ zkbd_attach(device_t parent, device_t se
 
 	zkbd_hinge(sc);		/* to initialize sc_hinge */
 
-	sc->sc_wskbddev = config_found(self, , wskbddevprint, 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 03:03:31 UTC 2021

Modified Files:
src/sys/arch/x68k/dev [thorpej-cfargs2]: fd.c grf_machdep.c intio.c
mfp.c mha.c neptune.c scsirom.c zs.c
src/sys/arch/x68k/x68k [thorpej-cfargs2]: mainbus.c
src/sys/arch/x86/pci [thorpej-cfargs2]: amdnb_misc.c amdpcib.c amdsmn.c
dwiic_pci.c ichlpcib.c pchb.c pcib.c tcpcib.c
src/sys/arch/x86/pci/imcsmb [thorpej-cfargs2]: imc.c imcsmb.c
src/sys/arch/x86/x86 [thorpej-cfargs2]: cpu.c mainbus.c mp.c mpacpi.c
mpbios.c
src/sys/arch/xen/x86 [thorpej-cfargs2]: cpu.c xen_mainbus.c
src/sys/arch/xen/xen [thorpej-cfargs2]: hypervisor.c xpci_xenbus.c
src/sys/arch/xen/xenbus [thorpej-cfargs2]: xenbus_probe.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.124.8.1 src/sys/arch/x68k/dev/fd.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/x68k/dev/grf_machdep.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/arch/x68k/dev/intio.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/arch/x68k/dev/mfp.c
cvs rdiff -u -r1.55 -r1.55.8.1 src/sys/arch/x68k/dev/mha.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/x68k/dev/neptune.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/x68k/dev/scsirom.c
cvs rdiff -u -r1.45 -r1.45.8.1 src/sys/arch/x68k/dev/zs.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/x68k/x68k/mainbus.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/x86/pci/amdnb_misc.c \
src/sys/arch/x86/pci/amdpcib.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/x86/pci/amdsmn.c
cvs rdiff -u -r1.5 -r1.5.4.1 src/sys/arch/x86/pci/dwiic_pci.c
cvs rdiff -u -r1.53 -r1.53.8.1 src/sys/arch/x86/pci/ichlpcib.c
cvs rdiff -u -r1.36 -r1.36.8.1 src/sys/arch/x86/pci/pchb.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/x86/pci/pcib.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/x86/pci/tcpcib.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/x86/pci/imcsmb/imc.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/x86/pci/imcsmb/imcsmb.c
cvs rdiff -u -r1.200 -r1.200.8.1 src/sys/arch/x86/x86/cpu.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/x86/x86/mainbus.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/x86/x86/mp.c
cvs rdiff -u -r1.106 -r1.106.4.1 src/sys/arch/x86/x86/mpacpi.c
cvs rdiff -u -r1.69 -r1.69.8.1 src/sys/arch/x86/x86/mpbios.c
cvs rdiff -u -r1.140 -r1.140.8.1 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/xen/x86/xen_mainbus.c
cvs rdiff -u -r1.91 -r1.91.8.1 src/sys/arch/xen/xen/hypervisor.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/xen/xen/xpci_xenbus.c
cvs rdiff -u -r1.57 -r1.57.2.1 src/sys/arch/xen/xenbus/xenbus_probe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x68k/dev/fd.c
diff -u src/sys/arch/x68k/dev/fd.c:1.124 src/sys/arch/x68k/dev/fd.c:1.124.8.1
--- src/sys/arch/x68k/dev/fd.c:1.124	Sat Apr 24 23:36:51 2021
+++ src/sys/arch/x68k/dev/fd.c	Wed Aug  4 03:03:30 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fd.c,v 1.124 2021/04/24 23:36:51 thorpej Exp $	*/
+/*	$NetBSD: fd.c,v 1.124.8.1 2021/08/04 03:03:30 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.124 2021/04/24 23:36:51 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.124.8.1 2021/08/04 03:03:30 thorpej Exp $");
 
 #include "opt_ddb.h"
 #include "opt_m68k_arch.h"
@@ -514,7 +514,7 @@ fdcattach(device_t parent, device_t self
 
 	/* physical limit: four drives per controller. */
 	for (fa.fa_drive = 0; fa.fa_drive < 4; fa.fa_drive++) {
-		(void)config_found(self, (void *), fdprint, CFARG_EOL);
+		(void)config_found(self, (void *), fdprint, CFARGS_NONE);
 	}
 
 	intio_enable_intr(SICILIAN_INTR_FDC);

Index: src/sys/arch/x68k/dev/grf_machdep.c
diff -u src/sys/arch/x68k/dev/grf_machdep.c:1.33 src/sys/arch/x68k/dev/grf_machdep.c:1.33.8.1
--- src/sys/arch/x68k/dev/grf_machdep.c:1.33	Sat Apr 24 23:36:51 2021
+++ src/sys/arch/x68k/dev/grf_machdep.c	Wed Aug  4 03:03:30 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: grf_machdep.c,v 1.33 2021/04/24 23:36:51 thorpej Exp $	*/
+/*	$NetBSD: grf_machdep.c,v 1.33.8.1 2021/08/04 03:03:30 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1991 University of Utah.
@@ -44,7 +44,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: grf_machdep.c,v 1.33 2021/04/24 23:36:51 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_machdep.c,v 1.33.8.1 2021/08/04 03:03:30 thorpej Exp $");
 
 #include "locators.h"
 
@@ -93,15 +93,14 @@ grfbusattach(device_t parent, device_t s
 
 	aprint_normal("\n");
 	config_search(self, NULL,
-	CFARG_SEARCH, grfbussearch,
-	CFARG_EOL);
+	CFARGS(.search = grfbussearch));
 }
 
 int
 grfbussearch(device_t self, cfdata_t match, const int *ldesc, void *aux)
 {
 
-	config_found(self, >cf_loc[GRFBCF_ADDR], grfbusprint, CFARG_EOL);
+	config_found(self, >cf_loc[GRFBCF_ADDR], grfbusprint, CFARGS_NONE);
 	return (0);
 }
 
@@ -157,7 +156,7 @@ 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 03:00:08 UTC 2021

Modified Files:
src/sys/arch/usermode/dev [thorpej-cfargs2]: mainbus.c vatapi.c vncfb.c
src/sys/arch/vax/mba [thorpej-cfargs2]: mba.c
src/sys/arch/vax/uba [thorpej-cfargs2]: qv.c qvaux.c qvkbd.c qvms.c
src/sys/arch/vax/vax [thorpej-cfargs2]: autoconf.c cmi.c ka860.c
nmi_mainbus.c sbi.c ubi.c
src/sys/arch/vax/vsa [thorpej-cfargs2]: dz_vsbus.c hdc9224.c lcg.c
smg.c spx.c vsbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/usermode/dev/mainbus.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/usermode/dev/vatapi.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/usermode/dev/vncfb.c
cvs rdiff -u -r1.41 -r1.41.8.1 src/sys/arch/vax/mba/mba.c
cvs rdiff -u -r1.37 -r1.37.8.1 src/sys/arch/vax/uba/qv.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/vax/uba/qvaux.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/vax/uba/qvkbd.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/vax/uba/qvms.c
cvs rdiff -u -r1.98 -r1.98.8.1 src/sys/arch/vax/vax/autoconf.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/vax/vax/cmi.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/arch/vax/vax/ka860.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/vax/vax/nmi_mainbus.c
cvs rdiff -u -r1.39 -r1.39.8.1 src/sys/arch/vax/vax/sbi.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/vax/vax/ubi.c
cvs rdiff -u -r1.45 -r1.45.8.1 src/sys/arch/vax/vsa/dz_vsbus.c
cvs rdiff -u -r1.61 -r1.61.8.1 src/sys/arch/vax/vsa/hdc9224.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/vax/vsa/lcg.c
cvs rdiff -u -r1.60 -r1.60.8.1 src/sys/arch/vax/vsa/smg.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/vax/vsa/spx.c
cvs rdiff -u -r1.66 -r1.66.8.1 src/sys/arch/vax/vsa/vsbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/usermode/dev/mainbus.c
diff -u src/sys/arch/usermode/dev/mainbus.c:1.11 src/sys/arch/usermode/dev/mainbus.c:1.11.8.1
--- src/sys/arch/usermode/dev/mainbus.c:1.11	Sat Apr 24 23:36:50 2021
+++ src/sys/arch/usermode/dev/mainbus.c	Wed Aug  4 03:00:08 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.11 2021/04/24 23:36:50 thorpej Exp $ */
+/* $NetBSD: mainbus.c,v 1.11.8.1 2021/08/04 03:00:08 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill 
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.11 2021/04/24 23:36:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.11.8.1 2021/08/04 03:00:08 thorpej Exp $");
 
 #include 
 #include 
@@ -80,45 +80,45 @@ mainbus_attach(device_t parent, device_t
 	sc->sc_dev = self;
 
 	taa.taa_type = THUNKBUS_TYPE_CPU;
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 
 	taa.taa_type = THUNKBUS_TYPE_TTYCONS;
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 
 	if (usermode_vnc_port > 0 && usermode_vnc_port < 65536) {
 		taa.taa_type = THUNKBUS_TYPE_VNCFB;
 		taa.u.vnc.width = usermode_vnc_width;
 		taa.u.vnc.height = usermode_vnc_height;
 		taa.u.vnc.port = usermode_vnc_port;
-		config_found(self, , mainbus_print, CFARG_EOL);
+		config_found(self, , mainbus_print, CFARGS_NONE);
 	}
 
 	taa.taa_type = THUNKBUS_TYPE_CLOCK;
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 
 	if (usermode_tap_device) {
 		taa.taa_type = THUNKBUS_TYPE_VETH;
 		taa.u.veth.device = usermode_tap_device;
 		taa.u.veth.eaddr = usermode_tap_eaddr;
-		config_found(self, , mainbus_print, CFARG_EOL);
+		config_found(self, , mainbus_print, CFARGS_NONE);
 	}
 
 	if (usermode_audio_device) {
 		taa.taa_type = THUNKBUS_TYPE_VAUDIO;
 		taa.u.vaudio.device = usermode_audio_device;
-		config_found(self, , mainbus_print, CFARG_EOL);
+		config_found(self, , mainbus_print, CFARGS_NONE);
 	}
 
 	for (i = 0; i < usermode_disk_image_path_count; i++) {
 		taa.taa_type = THUNKBUS_TYPE_DISKIMAGE;
 		taa.u.diskimage.path = usermode_disk_image_path[i];
-		config_found(self, , mainbus_print, CFARG_EOL);
+		config_found(self, , mainbus_print, CFARGS_NONE);
 	}
 
 	for (i = 0; i < usermode_vdev_count; i++) {
 		taa.taa_type = usermode_vdev_type[i];
 		taa.u.vdev.path = usermode_vdev_path[i];
-		config_found(self, , mainbus_print, CFARG_EOL);
+		config_found(self, , mainbus_print, CFARGS_NONE);
 	}
 }
 

Index: src/sys/arch/usermode/dev/vatapi.c
diff -u src/sys/arch/usermode/dev/vatapi.c:1.3 src/sys/arch/usermode/dev/vatapi.c:1.3.8.1
--- src/sys/arch/usermode/dev/vatapi.c:1.3	Sat Apr 24 23:36:50 2021
+++ src/sys/arch/usermode/dev/vatapi.c	Wed Aug  4 03:00:08 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: vatapi.c,v 1.3 2021/04/24 23:36:50 thorpej Exp $ */
+/* $NetBSD: vatapi.c,v 1.3.8.1 2021/08/04 03:00:08 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2018 Reinoud Zandijk 
@@ -27,7 +27,7 @@
  */
 
 #include 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:58:24 UTC 2021

Modified Files:
src/sys/arch/sun2/dev [thorpej-cfargs2]: zs.c
src/sys/arch/sun2/sun2 [thorpej-cfargs2]: mbio.c mbmem.c obio.c obmem.c
src/sys/arch/sun3/dev [thorpej-cfargs2]: fd.c sebuf.c xd.c xy.c zs.c
src/sys/arch/sun3/sun3 [thorpej-cfargs2]: autoconf.c mainbus.c obio.c
obmem.c vme.c
src/sys/arch/sun3/sun3x [thorpej-cfargs2]: obio.c vme.c
src/sys/arch/sun68k/sun68k [thorpej-cfargs2]: autoconf.c vme_sun68k.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/sun2/dev/zs.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/sun2/sun2/mbio.c \
src/sys/arch/sun2/sun2/obio.c src/sys/arch/sun2/sun2/obmem.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/sun2/sun2/mbmem.c
cvs rdiff -u -r1.85 -r1.85.8.1 src/sys/arch/sun3/dev/fd.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/sun3/dev/sebuf.c
cvs rdiff -u -r1.76 -r1.76.8.1 src/sys/arch/sun3/dev/xd.c
cvs rdiff -u -r1.81 -r1.81.8.1 src/sys/arch/sun3/dev/xy.c
cvs rdiff -u -r1.89 -r1.89.8.1 src/sys/arch/sun3/dev/zs.c
cvs rdiff -u -r1.80 -r1.80.8.1 src/sys/arch/sun3/sun3/autoconf.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/sun3/sun3/mainbus.c
cvs rdiff -u -r1.58 -r1.58.8.1 src/sys/arch/sun3/sun3/obio.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/arch/sun3/sun3/obmem.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/sun3/sun3/vme.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/arch/sun3/sun3x/obio.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/sun3/sun3x/vme.c
cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/arch/sun68k/sun68k/autoconf.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/sun68k/sun68k/vme_sun68k.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sun2/dev/zs.c
diff -u src/sys/arch/sun2/dev/zs.c:1.22 src/sys/arch/sun2/dev/zs.c:1.22.8.1
--- src/sys/arch/sun2/dev/zs.c:1.22	Sat Apr 24 23:36:49 2021
+++ src/sys/arch/sun2/dev/zs.c	Wed Aug  4 02:58:23 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: zs.c,v 1.22 2021/04/24 23:36:49 thorpej Exp $	*/
+/*	$NetBSD: zs.c,v 1.22.8.1 2021/08/04 02:58:23 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.22 2021/04/24 23:36:49 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.22.8.1 2021/08/04 02:58:23 thorpej Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -233,7 +233,7 @@ zs_attach(struct zsc_softc *zsc, struct 
 		 * The child attach will setup the hardware.
 		 */
 		if ((child = config_found(zsc->zsc_dev, (void *)_args,
-		zs_print, CFARG_EOL)) == NULL) {
+		zs_print, CFARGS_NONE)) == NULL) {
 			/* No sub-driver.  Just reset it. */
 			uint8_t reset = (channel == 0) ?
 ZSWR9_A_RESET : ZSWR9_B_RESET;
@@ -274,14 +274,14 @@ zs_attach(struct zsc_softc *zsc, struct 
 #if (NKBD > 0)
 	kma.kmta_name = "keyboard";
 	config_found(child, (void *), NULL,
-	CFARG_EOL);
+	CFARGS_NONE);
 #endif
 	break;
 case ZS_PERIPHERAL_SUNMS:
 #if (NMS > 0)
 	kma.kmta_name = "mouse";
 	config_found(child, (void *), NULL,
-	CFARG_EOL);
+	CFARGS_NONE);
 #endif
 	break;
 default:

Index: src/sys/arch/sun2/sun2/mbio.c
diff -u src/sys/arch/sun2/sun2/mbio.c:1.20 src/sys/arch/sun2/sun2/mbio.c:1.20.8.1
--- src/sys/arch/sun2/sun2/mbio.c:1.20	Sat Apr 24 23:36:49 2021
+++ src/sys/arch/sun2/sun2/mbio.c	Wed Aug  4 02:58:23 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mbio.c,v 1.20 2021/04/24 23:36:49 thorpej Exp $	*/
+/*	$NetBSD: mbio.c,v 1.20.8.1 2021/08/04 02:58:23 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mbio.c,v 1.20 2021/04/24 23:36:49 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mbio.c,v 1.20.8.1 2021/08/04 02:58:23 thorpej Exp $");
 
 #include 
 #include 
@@ -130,15 +130,13 @@ mbio_attach(device_t parent, device_t se
 	for (cpp = special; *cpp != NULL; cpp++) {
 		mba.mba_name = *cpp;
 		config_search(self, ,
-		CFARG_SEARCH, sun68k_bus_search,
-		CFARG_EOL);
+		CFARGS(.search = sun68k_bus_search));
 	}
 
 	/* Find all other mbio devices */
 	mba.mba_name = NULL;
 	config_search(self, ,
-	CFARG_SEARCH, sun68k_bus_search,
-	CFARG_EOL);
+	CFARGS(.search = sun68k_bus_search));
 }
 
 int
Index: src/sys/arch/sun2/sun2/obio.c
diff -u src/sys/arch/sun2/sun2/obio.c:1.20 src/sys/arch/sun2/sun2/obio.c:1.20.8.1
--- src/sys/arch/sun2/sun2/obio.c:1.20	Sat Apr 24 23:36:49 2021
+++ src/sys/arch/sun2/sun2/obio.c	Wed Aug  4 02:58:23 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: obio.c,v 1.20 2021/04/24 23:36:49 thorpej Exp $	*/
+/*	$NetBSD: obio.c,v 1.20.8.1 2021/08/04 02:58:23 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:57:07 UTC 2021

Modified Files:
src/sys/arch/shark/ofw [thorpej-cfargs2]: ofisascr.c vlpci.c
src/sys/arch/shark/shark [thorpej-cfargs2]: sequoia.c shark_iic.c
src/sys/arch/sparc/dev [thorpej-cfargs2]: bootbus.c cgfourteen.c ebus.c
fd.c obio.c sbus.c ts102.c vme_machdep.c zs.c
src/sys/arch/sparc/sparc [thorpej-cfargs2]: autoconf.c cpuunit.c
iommu.c msiiep.c
src/sys/arch/sparc64/dev [thorpej-cfargs2]: cbus.c central.c com_ebus.c
ebus.c ebus_mainbus.c fdc.c ffb.c fhc.c gfb.c jbus-i2c.c psycho.c
pyro.c sab.c sbus.c schizo.c upa.c vbus.c vdsk.c vpci.c zs.c
src/sys/arch/sparc64/sparc64 [thorpej-cfargs2]: autoconf.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/shark/ofw/ofisascr.c \
src/sys/arch/shark/ofw/vlpci.c
cvs rdiff -u -r1.15 -r1.15.6.1 src/sys/arch/shark/shark/sequoia.c
cvs rdiff -u -r1.1 -r1.1.8.1 src/sys/arch/shark/shark/shark_iic.c
cvs rdiff -u -r1.22 -r1.22.4.1 src/sys/arch/sparc/dev/bootbus.c
cvs rdiff -u -r1.89 -r1.89.8.1 src/sys/arch/sparc/dev/cgfourteen.c
cvs rdiff -u -r1.40 -r1.40.4.1 src/sys/arch/sparc/dev/ebus.c
cvs rdiff -u -r1.162 -r1.162.8.1 src/sys/arch/sparc/dev/fd.c
cvs rdiff -u -r1.75 -r1.75.8.1 src/sys/arch/sparc/dev/obio.c
cvs rdiff -u -r1.82 -r1.82.4.1 src/sys/arch/sparc/dev/sbus.c
cvs rdiff -u -r1.20 -r1.20.2.1 src/sys/arch/sparc/dev/ts102.c
cvs rdiff -u -r1.73 -r1.73.4.1 src/sys/arch/sparc/dev/vme_machdep.c
cvs rdiff -u -r1.122 -r1.122.8.1 src/sys/arch/sparc/dev/zs.c
cvs rdiff -u -r1.268 -r1.268.2.1 src/sys/arch/sparc/sparc/autoconf.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/sparc/sparc/cpuunit.c
cvs rdiff -u -r1.98 -r1.98.4.1 src/sys/arch/sparc/sparc/iommu.c
cvs rdiff -u -r1.51 -r1.51.4.1 src/sys/arch/sparc/sparc/msiiep.c
cvs rdiff -u -r1.6 -r1.6.4.1 src/sys/arch/sparc64/dev/cbus.c
cvs rdiff -u -r1.7 -r1.7.4.1 src/sys/arch/sparc64/dev/central.c \
src/sys/arch/sparc64/dev/vbus.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/arch/sparc64/dev/com_ebus.c
cvs rdiff -u -r1.67 -r1.67.4.1 src/sys/arch/sparc64/dev/ebus.c
cvs rdiff -u -r1.20 -r1.20.4.1 src/sys/arch/sparc64/dev/ebus_mainbus.c
cvs rdiff -u -r1.50 -r1.50.8.1 src/sys/arch/sparc64/dev/fdc.c
cvs rdiff -u -r1.66 -r1.66.8.1 src/sys/arch/sparc64/dev/ffb.c
cvs rdiff -u -r1.9 -r1.9.4.1 src/sys/arch/sparc64/dev/fhc.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/sparc64/dev/gfb.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/sparc64/dev/jbus-i2c.c
cvs rdiff -u -r1.134 -r1.134.4.1 src/sys/arch/sparc64/dev/psycho.c
cvs rdiff -u -r1.24 -r1.24.4.1 src/sys/arch/sparc64/dev/pyro.c
cvs rdiff -u -r1.56 -r1.56.8.1 src/sys/arch/sparc64/dev/sab.c
cvs rdiff -u -r1.102 -r1.102.4.1 src/sys/arch/sparc64/dev/sbus.c
cvs rdiff -u -r1.45 -r1.45.4.1 src/sys/arch/sparc64/dev/schizo.c
cvs rdiff -u -r1.22 -r1.22.4.1 src/sys/arch/sparc64/dev/upa.c
cvs rdiff -u -r1.7 -r1.7.2.1 src/sys/arch/sparc64/dev/vdsk.c
cvs rdiff -u -r1.11 -r1.11.4.1 src/sys/arch/sparc64/dev/vpci.c
cvs rdiff -u -r1.76 -r1.76.8.1 src/sys/arch/sparc64/dev/zs.c
cvs rdiff -u -r1.233 -r1.233.2.1 src/sys/arch/sparc64/sparc64/autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/shark/ofw/ofisascr.c
diff -u src/sys/arch/shark/ofw/ofisascr.c:1.11 src/sys/arch/shark/ofw/ofisascr.c:1.11.8.1
--- src/sys/arch/shark/ofw/ofisascr.c:1.11	Sat Apr 24 23:36:48 2021
+++ src/sys/arch/shark/ofw/ofisascr.c	Wed Aug  4 02:57:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ofisascr.c,v 1.11 2021/04/24 23:36:48 thorpej Exp $	*/
+/*	$NetBSD: ofisascr.c,v 1.11.8.1 2021/08/04 02:57:06 thorpej Exp $	*/
 
 /*
  * Copyright 1997
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ofisascr.c,v 1.11 2021/04/24 23:36:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofisascr.c,v 1.11.8.1 2021/08/04 02:57:06 thorpej Exp $");
 
 #include 
 #include 
@@ -105,6 +105,5 @@ ofisascrattach(device_t parent, device_t
 	ia.ia_aux = (void *)oba->oba_phandle;
 
 	config_found(dev, , NULL,
-	CFARG_DEVHANDLE, devhandle_from_of(oba->oba_phandle),
-	CFARG_EOL);
+	CFARGS(.devhandle = devhandle_from_of(oba->oba_phandle)));
 }
Index: src/sys/arch/shark/ofw/vlpci.c
diff -u src/sys/arch/shark/ofw/vlpci.c:1.11 src/sys/arch/shark/ofw/vlpci.c:1.11.8.1
--- src/sys/arch/shark/ofw/vlpci.c:1.11	Sat Apr 24 23:36:48 2021
+++ src/sys/arch/shark/ofw/vlpci.c	Wed Aug  4 02:57:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: vlpci.c,v 1.11 2021/04/24 23:36:48 thorpej Exp $	*/
+/*	$NetBSD: vlpci.c,v 1.11.8.1 2021/08/04 02:57:06 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2017 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: vlpci.c,v 1.11 2021/04/24 23:36:48 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vlpci.c,v 1.11.8.1 2021/08/04 02:57:06 thorpej Exp $");
 
 #include "opt_pci.h"
 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:53:01 UTC 2021

Modified Files:
src/sys/arch/riscv/htif [thorpej-cfargs2]: htif.c
src/sys/arch/riscv/riscv [thorpej-cfargs2]: mainbus.c
src/sys/arch/rs6000/mca [thorpej-cfargs2]: ioplanar.c
src/sys/arch/rs6000/rs6000 [thorpej-cfargs2]: mainbus.c
src/sys/arch/sandpoint/sandpoint [thorpej-cfargs2]: eumb.c mainbus.c
nhpow.c
src/sys/arch/sbmips/sbmips [thorpej-cfargs2]: zbbus.c
src/sys/arch/sgimips/dev [thorpej-cfargs2]: crmfb.c imc.c pic.c zs.c
zs_kbd.c zs_ms.c
src/sys/arch/sgimips/gio [thorpej-cfargs2]: gio.c grtwo.c light.c
newport.c pci_gio.c
src/sys/arch/sgimips/hpc [thorpej-cfargs2]: hpc.c pi1ppc.c
src/sys/arch/sgimips/ioc [thorpej-cfargs2]: ioc.c oioc.c
src/sys/arch/sgimips/mace [thorpej-cfargs2]: mace.c pci_mace.c
src/sys/arch/sgimips/sgimips [thorpej-cfargs2]: mainbus.c
src/sys/arch/sh3/dev [thorpej-cfargs2]: adc.c shb.c shpcic.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/riscv/htif/htif.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/riscv/riscv/mainbus.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/rs6000/mca/ioplanar.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/rs6000/rs6000/mainbus.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/sandpoint/sandpoint/eumb.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/sandpoint/sandpoint/mainbus.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/sandpoint/sandpoint/nhpow.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/sbmips/sbmips/zbbus.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/arch/sgimips/dev/crmfb.c
cvs rdiff -u -r1.36 -r1.36.8.1 src/sys/arch/sgimips/dev/imc.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/sgimips/dev/pic.c
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/arch/sgimips/dev/zs.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/sgimips/dev/zs_kbd.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/sgimips/dev/zs_ms.c
cvs rdiff -u -r1.37 -r1.37.8.1 src/sys/arch/sgimips/gio/gio.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/sgimips/gio/grtwo.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/sgimips/gio/light.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/sgimips/gio/newport.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/sgimips/gio/pci_gio.c
cvs rdiff -u -r1.72 -r1.72.8.1 src/sys/arch/sgimips/hpc/hpc.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/sgimips/hpc/pi1ppc.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/sgimips/ioc/ioc.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/sgimips/ioc/oioc.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/sgimips/mace/mace.c \
src/sys/arch/sgimips/mace/pci_mace.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/sgimips/sgimips/mainbus.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/sh3/dev/adc.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/sh3/dev/shb.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/sh3/dev/shpcic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/riscv/htif/htif.c
diff -u src/sys/arch/riscv/htif/htif.c:1.3 src/sys/arch/riscv/htif/htif.c:1.3.8.1
--- src/sys/arch/riscv/htif/htif.c:1.3	Sat Apr 24 23:36:47 2021
+++ src/sys/arch/riscv/htif/htif.c	Wed Aug  4 02:52:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: htif.c,v 1.3 2021/04/24 23:36:47 thorpej Exp $	*/
+/*	$NetBSD: htif.c,v 1.3.8.1 2021/08/04 02:52:59 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 
-__RCSID("$NetBSD: htif.c,v 1.3 2021/04/24 23:36:47 thorpej Exp $");
+__RCSID("$NetBSD: htif.c,v 1.3.8.1 2021/08/04 02:52:59 thorpej Exp $");
 
 #include 
 #include 
@@ -68,7 +68,7 @@ htif_mainbus_attach(device_t parent, dev
 	struct htif_attach_args haa;
 
 	haa.haa_name = "htifcons";
-	config_found(self, , htif_mainbus_print, CFARG_EOL);
+	config_found(self, , htif_mainbus_print, CFARGS_NONE);
 	haa.haa_name = "htifdisk";
-	config_found(self, , htif_mainbus_print, CFARG_EOL);
+	config_found(self, , htif_mainbus_print, CFARGS_NONE);
 }

Index: src/sys/arch/riscv/riscv/mainbus.c
diff -u src/sys/arch/riscv/riscv/mainbus.c:1.3 src/sys/arch/riscv/riscv/mainbus.c:1.3.8.1
--- src/sys/arch/riscv/riscv/mainbus.c:1.3	Sat Apr 24 23:36:47 2021
+++ src/sys/arch/riscv/riscv/mainbus.c	Wed Aug  4 02:52:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.3 2021/04/24 23:36:47 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.3.8.1 2021/08/04 02:52:59 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 
 #include 
 
-__RCSID("$NetBSD: mainbus.c,v 1.3 2021/04/24 23:36:47 thorpej Exp $");
+__RCSID("$NetBSD: mainbus.c,v 1.3.8.1 2021/08/04 02:52:59 thorpej Exp $");
 
 #include 
 #include 
@@ -72,5 +72,5 @@ mainbus_attach(device_t parent, device_t
 	maa.maa_name = "cpu";
 	maa.maa_instance = 0;
 
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:49:41 UTC 2021

Modified Files:
src/sys/arch/news68k/dev [thorpej-cfargs2]: hb.c kb_hb.c kb_kbc.c kbc.c
ms_hb.c ms_kbc.c zs.c
src/sys/arch/news68k/news68k [thorpej-cfargs2]: mainbus.c
src/sys/arch/newsmips/apbus [thorpej-cfargs2]: apbus.c kb_ap.c ms_ap.c
spifi.c xafb.c zs_ap.c
src/sys/arch/newsmips/dev [thorpej-cfargs2]: fb.c hb.c kb_hb.c ms_hb.c
sc_wrap.c zs_hb.c
src/sys/arch/newsmips/newsmips [thorpej-cfargs2]: mainbus.c
src/sys/arch/next68k/dev [thorpej-cfargs2]: intio.c nextdisplay.c
nextkbd.c zs.c
src/sys/arch/next68k/next68k [thorpej-cfargs2]: mainbus.c
src/sys/arch/ofppc/ofppc [thorpej-cfargs2]: mainbus.c
src/sys/arch/ofppc/pci [thorpej-cfargs2]: ofwpci.c
src/sys/arch/playstation2/dev [thorpej-cfargs2]: ohci_sbus.c sbus.c
spd.c
src/sys/arch/playstation2/ee [thorpej-cfargs2]: gsfb.c
src/sys/arch/playstation2/playstation2 [thorpej-cfargs2]: mainbus.c
src/sys/arch/pmax/ibus [thorpej-cfargs2]: dz_ibus.c ibus.c pm.c sii.c
src/sys/arch/pmax/pmax [thorpej-cfargs2]: mainbus.c
src/sys/arch/pmax/tc [thorpej-cfargs2]: dt.c dtkbd.c dtms.c
src/sys/arch/powerpc/booke/dev [thorpej-cfargs2]: cpunode.c pq3duart.c
pq3ehci.c pq3etsec.c pq3gpio.c pq3obio.c
src/sys/arch/powerpc/booke/pci [thorpej-cfargs2]: pq3pci.c
src/sys/arch/powerpc/ibm4xx/dev [thorpej-cfargs2]: dwctwo_plb.c exb.c
gpiic_opb.c gpio_opb.c opb.c plb.c
src/sys/arch/powerpc/ibm4xx/pci [thorpej-cfargs2]: pchb.c
src/sys/arch/powerpc/pci [thorpej-cfargs2]: pchb.c pcib.c
src/sys/arch/prep/pci [thorpej-cfargs2]: gten.c pceb.c
src/sys/arch/prep/pnpbus [thorpej-cfargs2]: pnpbus.c
src/sys/arch/prep/prep [thorpej-cfargs2]: mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/news68k/dev/hb.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/news68k/dev/kb_hb.c \
src/sys/arch/news68k/dev/kbc.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/news68k/dev/kb_kbc.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/news68k/dev/ms_hb.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/news68k/dev/ms_kbc.c
cvs rdiff -u -r1.32 -r1.32.8.1 src/sys/arch/news68k/dev/zs.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/news68k/news68k/mainbus.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/arch/newsmips/apbus/apbus.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/newsmips/apbus/kb_ap.c \
src/sys/arch/newsmips/apbus/ms_ap.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/newsmips/apbus/spifi.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/newsmips/apbus/xafb.c
cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/arch/newsmips/apbus/zs_ap.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/arch/newsmips/dev/fb.c \
src/sys/arch/newsmips/dev/zs_hb.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/newsmips/dev/hb.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/newsmips/dev/kb_hb.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/newsmips/dev/ms_hb.c
cvs rdiff -u -r1.32 -r1.32.8.1 src/sys/arch/newsmips/dev/sc_wrap.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/newsmips/newsmips/mainbus.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/next68k/dev/intio.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/next68k/dev/nextdisplay.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/next68k/dev/nextkbd.c
cvs rdiff -u -r1.35 -r1.35.8.1 src/sys/arch/next68k/dev/zs.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/next68k/next68k/mainbus.c
cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/arch/ofppc/ofppc/mainbus.c
cvs rdiff -u -r1.20 -r1.20.4.1 src/sys/arch/ofppc/pci/ofwpci.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/playstation2/dev/ohci_sbus.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/playstation2/dev/sbus.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/playstation2/dev/spd.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/playstation2/ee/gsfb.c
cvs rdiff -u -r1.17 -r1.17.8.1 \
src/sys/arch/playstation2/playstation2/mainbus.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/pmax/ibus/dz_ibus.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/pmax/ibus/ibus.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/pmax/ibus/pm.c
cvs rdiff -u -r1.15 -r1.15.2.1 src/sys/arch/pmax/ibus/sii.c
cvs rdiff -u -r1.43 -r1.43.8.1 src/sys/arch/pmax/pmax/mainbus.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/pmax/tc/dt.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/pmax/tc/dtkbd.c \
src/sys/arch/pmax/tc/dtms.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/powerpc/booke/dev/cpunode.c \
src/sys/arch/powerpc/booke/dev/pq3duart.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/powerpc/booke/dev/pq3ehci.c
cvs rdiff -u -r1.55 -r1.55.2.1 src/sys/arch/powerpc/booke/dev/pq3etsec.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/powerpc/booke/dev/pq3gpio.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/powerpc/booke/dev/pq3obio.c
cvs 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:45:07 UTC 2021

Modified Files:
src/sys/arch/mipsco/isa [thorpej-cfargs2]: isa_machdep.c
src/sys/arch/mipsco/mipsco [thorpej-cfargs2]: mainbus.c
src/sys/arch/mipsco/obio [thorpej-cfargs2]: obio.c zs.c
src/sys/arch/mmeye/dev [thorpej-cfargs2]: mmeyepcmcia.c rtciic.c
src/sys/arch/mmeye/mmeye [thorpej-cfargs2]: mainbus.c
src/sys/arch/mvme68k/dev [thorpej-cfargs2]: mainbus.c pcc.c wdsc.c zs.c
src/sys/arch/mvmeppc/mvmeppc [thorpej-cfargs2]: mainbus.c
src/sys/arch/netwinder/pci [thorpej-cfargs2]: pcib.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/mipsco/isa/isa_machdep.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/mipsco/mipsco/mainbus.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/mipsco/obio/obio.c
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/arch/mipsco/obio/zs.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/mmeye/dev/mmeyepcmcia.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/mmeye/dev/rtciic.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/mmeye/mmeye/mainbus.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/mvme68k/dev/mainbus.c
cvs rdiff -u -r1.34 -r1.34.8.1 src/sys/arch/mvme68k/dev/pcc.c \
src/sys/arch/mvme68k/dev/wdsc.c
cvs rdiff -u -r1.43 -r1.43.8.1 src/sys/arch/mvme68k/dev/zs.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/mvmeppc/mvmeppc/mainbus.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/netwinder/pci/pcib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mipsco/isa/isa_machdep.c
diff -u src/sys/arch/mipsco/isa/isa_machdep.c:1.18 src/sys/arch/mipsco/isa/isa_machdep.c:1.18.8.1
--- src/sys/arch/mipsco/isa/isa_machdep.c:1.18	Sat Apr 24 23:36:43 2021
+++ src/sys/arch/mipsco/isa/isa_machdep.c	Wed Aug  4 02:45:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: isa_machdep.c,v 1.18 2021/04/24 23:36:43 thorpej Exp $	*/
+/*	$NetBSD: isa_machdep.c,v 1.18.8.1 2021/08/04 02:45:06 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.18 2021/04/24 23:36:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.18.8.1 2021/08/04 02:45:06 thorpej Exp $");
 
 #include 
 #include 
@@ -144,7 +144,7 @@ isabusattach(device_t parent, device_t s
 	(*platform.intr_establish)(SYS_INTR_ATBUS, isa_intr, ic);
 
 	printf("\n");
-	config_found(self, , mipscoisabusprint, CFARG_EOL);
+	config_found(self, , mipscoisabusprint, CFARGS_NONE);
 }
 
 int

Index: src/sys/arch/mipsco/mipsco/mainbus.c
diff -u src/sys/arch/mipsco/mipsco/mainbus.c:1.11 src/sys/arch/mipsco/mipsco/mainbus.c:1.11.8.1
--- src/sys/arch/mipsco/mipsco/mainbus.c:1.11	Sat Apr 24 23:36:43 2021
+++ src/sys/arch/mipsco/mipsco/mainbus.c	Wed Aug  4 02:45:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.11 2021/04/24 23:36:43 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.11.8.1 2021/08/04 02:45:06 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.11 2021/04/24 23:36:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.11.8.1 2021/08/04 02:45:06 thorpej Exp $");
 
 #include 
 #include 
@@ -66,15 +66,15 @@ mbattach(device_t parent, device_t self,
 
 	nca.ca_name = "cpu";
 	nca.ca_addr = 0;
-	config_found(self, , mbprint, CFARG_EOL);
+	config_found(self, , mbprint, CFARGS_NONE);
 
 	nca.ca_name = "obio";
 	nca.ca_addr = 0;
-	config_found(self, , NULL, CFARG_EOL);
+	config_found(self, , NULL, CFARGS_NONE);
 
 	nca.ca_name = "isabus";		/* XXX */
 	nca.ca_addr = 0;
-	config_found(self, , NULL, CFARG_EOL);
+	config_found(self, , NULL, CFARGS_NONE);
 
 }
 

Index: src/sys/arch/mipsco/obio/obio.c
diff -u src/sys/arch/mipsco/obio/obio.c:1.18 src/sys/arch/mipsco/obio/obio.c:1.18.8.1
--- src/sys/arch/mipsco/obio/obio.c:1.18	Sat Apr 24 23:36:43 2021
+++ src/sys/arch/mipsco/obio/obio.c	Wed Aug  4 02:45:06 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: obio.c,v 1.18 2021/04/24 23:36:43 thorpej Exp $	*/
+/*	$NetBSD: obio.c,v 1.18.8.1 2021/08/04 02:45:06 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.18 2021/04/24 23:36:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.18.8.1 2021/08/04 02:45:06 thorpej Exp $");
 
 #include "locators.h"
 
@@ -87,8 +87,7 @@ obio_attach(device_t parent, device_t se
 
 	printf("\n");
 	config_search(self, ca,
-	CFARG_SEARCH, obio_search,
-	CFARG_EOL);
+	CFARGS(.search = obio_search));
 }
 
 static int
@@ -100,7 +99,7 @@ obio_search(device_t parent, cfdata_t cf
 	ca->ca_name = cf->cf_name;
 
 	if (config_probe(parent, cf, ca))
-		config_attach(parent, cf, ca, obio_print, CFARG_EOL);
+		config_attach(parent, cf, ca, obio_print, CFARGS_NONE);
 
 	

CVS commit: [thorpej-cfargs2] src/sys/arch/mips

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:44:16 UTC 2021

Modified Files:
src/sys/arch/mips/adm5120 [thorpej-cfargs2]: adm5120_extio.c
adm5120_obio.c
src/sys/arch/mips/adm5120/dev [thorpej-cfargs2]: admgpio.c admpci.c
ahci.c
src/sys/arch/mips/alchemy [thorpej-cfargs2]: aubus.c
src/sys/arch/mips/alchemy/dev [thorpej-cfargs2]: augpio.c aupci.c
aupcmcia.c aupsc.c ausmbus_psc.c auspi.c ohci_aubus.c
src/sys/arch/mips/atheros [thorpej-cfargs2]: arbus.c
src/sys/arch/mips/atheros/dev [thorpej-cfargs2]: argpio.c arpci.c
arspi.c ehci_arbus.c ohci_arbus.c
src/sys/arch/mips/cavium [thorpej-cfargs2]: mainbus.c octeon_bootbus.c
octeon_cpunode.c octeon_iobus.c
src/sys/arch/mips/cavium/dev [thorpej-cfargs2]: octeon_dwctwo.c
octeon_gmx.c octeon_mpi.c octeon_pip.c octeon_xhci.c
src/sys/arch/mips/ingenic [thorpej-cfargs2]: apbus.c ingenic_dwctwo.c
ingenic_ehci.c ingenic_ohci.c jziic.c
src/sys/arch/mips/ralink [thorpej-cfargs2]: ralink_ehci.c ralink_gpio.c
ralink_i2c.c ralink_mainbus.c ralink_ohci.c
src/sys/arch/mips/rmi [thorpej-cfargs2]: rmixl_cpucore.c
rmixl_cpunode.c rmixl_ehci.c rmixl_gpio.c rmixl_iobus.c
rmixl_mainbus.c rmixl_obio.c rmixl_ohci.c rmixl_pcie.c rmixl_pcix.c
rmixl_usbi.c
src/sys/arch/mips/sibyte/dev [thorpej-cfargs2]: sbgbus.c sbobio.c
sbscd.c sbsmbus.c
src/sys/arch/mips/sibyte/pci [thorpej-cfargs2]: sbbrz.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/mips/adm5120/adm5120_extio.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/mips/adm5120/adm5120_obio.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/mips/adm5120/dev/admgpio.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/mips/adm5120/dev/admpci.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/mips/adm5120/dev/ahci.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/mips/alchemy/aubus.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/mips/alchemy/dev/augpio.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/mips/alchemy/dev/aupci.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/mips/alchemy/dev/aupcmcia.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/mips/alchemy/dev/aupsc.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/mips/alchemy/dev/ausmbus_psc.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/mips/alchemy/dev/auspi.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/mips/alchemy/dev/ohci_aubus.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/mips/atheros/arbus.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/mips/atheros/dev/argpio.c \
src/sys/arch/mips/atheros/dev/ehci_arbus.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/mips/atheros/dev/arpci.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/mips/atheros/dev/arspi.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/mips/atheros/dev/ohci_arbus.c
cvs rdiff -u -r1.8 -r1.8.4.1 src/sys/arch/mips/cavium/mainbus.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/mips/cavium/octeon_bootbus.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/mips/cavium/octeon_cpunode.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/mips/cavium/octeon_iobus.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/mips/cavium/dev/octeon_dwctwo.c
cvs rdiff -u -r1.19 -r1.19.4.1 src/sys/arch/mips/cavium/dev/octeon_gmx.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/mips/cavium/dev/octeon_mpi.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/mips/cavium/dev/octeon_pip.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/mips/cavium/dev/octeon_xhci.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/mips/ingenic/apbus.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/mips/ingenic/ingenic_dwctwo.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/mips/ingenic/ingenic_ehci.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/mips/ingenic/ingenic_ohci.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/mips/ingenic/jziic.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/mips/ralink/ralink_ehci.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/mips/ralink/ralink_gpio.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/mips/ralink/ralink_i2c.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/mips/ralink/ralink_mainbus.c \
src/sys/arch/mips/ralink/ralink_ohci.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/mips/rmi/rmixl_cpucore.c \
src/sys/arch/mips/rmi/rmixl_iobus.c src/sys/arch/mips/rmi/rmixl_obio.c \
src/sys/arch/mips/rmi/rmixl_ohci.c src/sys/arch/mips/rmi/rmixl_usbi.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/mips/rmi/rmixl_cpunode.c \
src/sys/arch/mips/rmi/rmixl_gpio.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/mips/rmi/rmixl_ehci.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/mips/rmi/rmixl_mainbus.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/mips/rmi/rmixl_pcie.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/mips/rmi/rmixl_pcix.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/mips/sibyte/dev/sbgbus.c
cvs rdiff -u -r1.24 -r1.24.8.1 

CVS commit: [thorpej-cfargs2] src/sys/arch/macppc

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:39:49 UTC 2021

Modified Files:
src/sys/arch/macppc/dev [thorpej-cfargs2]: adb.c akbd.c ams.c cuda.c
gpio.c ki2c.c mediabay.c mesh.c obio.c ofb.c pbms.c platinumfb.c
pmu.c smu.c smuiic.c snapper.c uni-n.c valkyriefb.c zs.c
src/sys/arch/macppc/macppc [thorpej-cfargs2]: mainbus.c memory.c
src/sys/arch/macppc/pci [thorpej-cfargs2]: bandit.c grackle.c u3.c
uninorth.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.36.8.1 src/sys/arch/macppc/dev/adb.c
cvs rdiff -u -r1.46 -r1.46.8.1 src/sys/arch/macppc/dev/akbd.c
cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/arch/macppc/dev/ams.c
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/arch/macppc/dev/cuda.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/macppc/dev/gpio.c
cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/arch/macppc/dev/ki2c.c
cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/arch/macppc/dev/mediabay.c
cvs rdiff -u -r1.41 -r1.41.8.1 src/sys/arch/macppc/dev/mesh.c
cvs rdiff -u -r1.49 -r1.49.8.1 src/sys/arch/macppc/dev/obio.c
cvs rdiff -u -r1.71 -r1.71.8.1 src/sys/arch/macppc/dev/ofb.c
cvs rdiff -u -r1.18 -r1.18.2.1 src/sys/arch/macppc/dev/pbms.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/macppc/dev/platinumfb.c
cvs rdiff -u -r1.37 -r1.37.8.1 src/sys/arch/macppc/dev/pmu.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/macppc/dev/smu.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/macppc/dev/smuiic.c
cvs rdiff -u -r1.60 -r1.60.2.1 src/sys/arch/macppc/dev/snapper.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/macppc/dev/uni-n.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/macppc/dev/valkyriefb.c
cvs rdiff -u -r1.52 -r1.52.8.1 src/sys/arch/macppc/dev/zs.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/macppc/macppc/mainbus.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/macppc/macppc/memory.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/macppc/pci/bandit.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/macppc/pci/grackle.c
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/macppc/pci/u3.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/macppc/pci/uninorth.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/macppc/dev/adb.c
diff -u src/sys/arch/macppc/dev/adb.c:1.36 src/sys/arch/macppc/dev/adb.c:1.36.8.1
--- src/sys/arch/macppc/dev/adb.c:1.36	Sat Apr 24 23:36:41 2021
+++ src/sys/arch/macppc/dev/adb.c	Wed Aug  4 02:39:49 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb.c,v 1.36 2021/04/24 23:36:41 thorpej Exp $	*/
+/*	$NetBSD: adb.c,v 1.36.8.1 2021/08/04 02:39:49 thorpej Exp $	*/
 
 /*-
  * Copyright (C) 1994	Bradley A. Grantham
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: adb.c,v 1.36 2021/04/24 23:36:41 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adb.c,v 1.36.8.1 2021/08/04 02:39:49 thorpej Exp $");
 
 #include 
 #include 
@@ -150,7 +150,7 @@ adbattach(device_t parent, device_t self
 	aa_args.adbaddr = ADBADDR_APM;
 	aa_args.handler_id = ADBADDR_APM;
 
-	(void)config_found(self, _args, NULL, CFARG_EOL);
+	(void)config_found(self, _args, NULL, CFARGS_NONE);
 #endif
 
 	/* 
@@ -174,7 +174,7 @@ adbattach(device_t parent, device_t self
 	aa_args.origaddr = 0;
 	aa_args.adbaddr = 0;
 	aa_args.handler_id = 0;
-	(void)config_found(self, _args, adbprint, CFARG_EOL);
+	(void)config_found(self, _args, adbprint, CFARGS_NONE);
 #endif
 
 	/* for each ADB device */
@@ -186,7 +186,7 @@ adbattach(device_t parent, device_t self
 		aa_args.adbaddr = adbaddr;
 		aa_args.handler_id = adbdata.devType;
 
-		(void)config_found(self, _args, adbprint, CFARG_EOL);
+		(void)config_found(self, _args, adbprint, CFARGS_NONE);
 	}
 
 	if (adbHardware == ADB_HW_CUDA)

Index: src/sys/arch/macppc/dev/akbd.c
diff -u src/sys/arch/macppc/dev/akbd.c:1.46 src/sys/arch/macppc/dev/akbd.c:1.46.8.1
--- src/sys/arch/macppc/dev/akbd.c:1.46	Sat Apr 24 23:36:41 2021
+++ src/sys/arch/macppc/dev/akbd.c	Wed Aug  4 02:39:49 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: akbd.c,v 1.46 2021/04/24 23:36:41 thorpej Exp $	*/
+/*	$NetBSD: akbd.c,v 1.46.8.1 2021/08/04 02:39:49 thorpej Exp $	*/
 
 /*
  * Copyright (C) 1998	Colin Wood
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: akbd.c,v 1.46 2021/04/24 23:36:41 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: akbd.c,v 1.46.8.1 2021/08/04 02:39:49 thorpej Exp $");
 
 #include 
 #include 
@@ -250,7 +250,7 @@ akbdattach(device_t parent, device_t sel
 	a.accessops = _accessops;
 	a.accesscookie = sc;
 
-	sc->sc_wskbddev = config_found(self, , wskbddevprint, CFARG_EOL);
+	sc->sc_wskbddev = config_found(self, , wskbddevprint, CFARGS_NONE);
 }
 
 

Index: src/sys/arch/macppc/dev/ams.c
diff -u src/sys/arch/macppc/dev/ams.c:1.30 src/sys/arch/macppc/dev/ams.c:1.30.8.1
--- src/sys/arch/macppc/dev/ams.c:1.30	Sat Apr 24 23:36:41 2021
+++ src/sys/arch/macppc/dev/ams.c	Wed Aug  4 02:39:49 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ams.c,v 1.30 2021/04/24 23:36:41 thorpej 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:37:21 UTC 2021

Modified Files:
src/sys/arch/landisk/dev [thorpej-cfargs2]: obio.c
src/sys/arch/landisk/landisk [thorpej-cfargs2]: mainbus.c
src/sys/arch/luna68k/dev [thorpej-cfargs2]: lunafb.c lunaws.c sio.c
src/sys/arch/luna68k/luna68k [thorpej-cfargs2]: mainbus.c
src/sys/arch/mac68k/dev [thorpej-cfargs2]: adb.c akbd.c ams.c
grf_subr.c macfb.c ncr5380.c zs.c
src/sys/arch/mac68k/mac68k [thorpej-cfargs2]: mainbus.c
src/sys/arch/mac68k/nubus [thorpej-cfargs2]: nubus.c
src/sys/arch/mac68k/obio [thorpej-cfargs2]: iwm_fd.c obio.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.10.8.1 src/sys/arch/landisk/dev/obio.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/landisk/landisk/mainbus.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/arch/luna68k/dev/lunafb.c
cvs rdiff -u -r1.32 -r1.32.8.1 src/sys/arch/luna68k/dev/lunaws.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/luna68k/dev/sio.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/luna68k/luna68k/mainbus.c
cvs rdiff -u -r1.58 -r1.58.8.1 src/sys/arch/mac68k/dev/adb.c
cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/arch/mac68k/dev/akbd.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/mac68k/dev/ams.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/mac68k/dev/grf_subr.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/mac68k/dev/macfb.c
cvs rdiff -u -r1.69 -r1.69.8.1 src/sys/arch/mac68k/dev/ncr5380.c
cvs rdiff -u -r1.59 -r1.59.8.1 src/sys/arch/mac68k/dev/zs.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/mac68k/mac68k/mainbus.c
cvs rdiff -u -r1.67 -r1.67.8.1 src/sys/arch/mac68k/nubus/nubus.c
cvs rdiff -u -r1.60 -r1.60.4.1 src/sys/arch/mac68k/obio/iwm_fd.c
cvs rdiff -u -r1.26 -r1.26.8.1 src/sys/arch/mac68k/obio/obio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/landisk/dev/obio.c
diff -u src/sys/arch/landisk/dev/obio.c:1.10 src/sys/arch/landisk/dev/obio.c:1.10.8.1
--- src/sys/arch/landisk/dev/obio.c:1.10	Sat Apr 24 23:36:40 2021
+++ src/sys/arch/landisk/dev/obio.c	Wed Aug  4 02:37:20 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: obio.c,v 1.10 2021/04/24 23:36:40 thorpej Exp $	*/
+/*	$NetBSD: obio.c,v 1.10.8.1 2021/08/04 02:37:20 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.10 2021/04/24 23:36:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.10.8.1 2021/08/04 02:37:20 thorpej Exp $");
 
 #include "btn_obio.h"
 #include "pwrsw_obio.h"
@@ -106,8 +106,7 @@ obio_attach(device_t parent, device_t se
 #endif
 
 	config_search(self, NULL,
-	CFARG_SEARCH, obio_search,
-	CFARG_EOL);
+	CFARGS(.search = obio_search));
 }
 
 static int
@@ -143,7 +142,7 @@ obio_search(device_t parent, cfdata_t cf
 
 		tryagain = 0;
 		if (config_probe(parent, cf, )) {
-			config_attach(parent, cf, , obio_print, CFARG_EOL);
+			config_attach(parent, cf, , obio_print, CFARGS_NONE);
 			tryagain = (cf->cf_fstate == FSTATE_STAR);
 		}
 	} while (tryagain);

Index: src/sys/arch/landisk/landisk/mainbus.c
diff -u src/sys/arch/landisk/landisk/mainbus.c:1.5 src/sys/arch/landisk/landisk/mainbus.c:1.5.8.1
--- src/sys/arch/landisk/landisk/mainbus.c:1.5	Sat Apr 24 23:36:40 2021
+++ src/sys/arch/landisk/landisk/mainbus.c	Wed Aug  4 02:37:20 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.5 2021/04/24 23:36:40 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.5.8.1 2021/08/04 02:37:20 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.5 2021/04/24 23:36:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.5.8.1 2021/08/04 02:37:20 thorpej Exp $");
 
 #include "obio.h"
 #include "pci.h"
@@ -80,19 +80,19 @@ mainbus_attach(device_t parent, device_t
 	memset(, 0, sizeof(mba));
 	mba.mba_ca.ca_name = "cpu";
 	mba.mba_ca.ca_node = 0;
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 
 #if NPCI > 0
 	/* SH PCIC */
 	memset(, 0, sizeof(mba));
 	mba.mba_mba.ma_name = "shpcic";
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 #endif
 
 	/* SH bus */
 	memset(, 0, sizeof(mba));
 	mba.mba_mba.ma_name = "shb";
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 
 #if NOBIO > 0
 	/* on-board I/O */
@@ -100,7 +100,7 @@ mainbus_attach(device_t parent, device_t
 	mba.mba_oba.oba_busname = "obio";
 	mba.mba_oba.oba_iot = _bus_io;
 	mba.mba_oba.oba_memt = _bus_mem;
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 #endif
 }
 

Index: src/sys/arch/luna68k/dev/lunafb.c
diff -u src/sys/arch/luna68k/dev/lunafb.c:1.42 

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 02:35:50 UTC 2021

Modified Files:
src/sys/arch/ia64/ia64 [thorpej-cfargs2]: mainbus.c
src/sys/arch/ibmnws/ibmnws [thorpej-cfargs2]: mainbus.c
src/sys/arch/iyonix/iyonix [thorpej-cfargs2]: obio.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/ia64/ia64/mainbus.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/ibmnws/ibmnws/mainbus.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/iyonix/iyonix/obio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/ia64/ia64/mainbus.c
diff -u src/sys/arch/ia64/ia64/mainbus.c:1.12 src/sys/arch/ia64/ia64/mainbus.c:1.12.8.1
--- src/sys/arch/ia64/ia64/mainbus.c:1.12	Sat Apr 24 23:36:40 2021
+++ src/sys/arch/ia64/ia64/mainbus.c	Wed Aug  4 02:35:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.12 2021/04/24 23:36:40 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.12.8.1 2021/08/04 02:35:50 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.12 2021/04/24 23:36:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.12.8.1 2021/08/04 02:35:50 thorpej Exp $");
 
 #include "acpica.h"
 
@@ -108,8 +108,7 @@ mainbus_attach(device_t parent, device_t
 
 			if (entry->Header.Type == ACPI_MADT_TYPE_LOCAL_SAPIC)
 config_found(self, entry, NULL,
-CFARG_IATTR, "cpubus",
-CFARG_EOL);
+CFARGS(.iattr = "cpubus"));
 
 			p += entry->Header.Length;
 		}
@@ -129,8 +128,7 @@ mainbus_attach(device_t parent, device_t
 	aaa.aa_dmat = NULL;	/* XXX */
 	aaa.aa_dmat64 = NULL;	/* XXX */
 	config_found(self, , NULL,
-	CFARG_IATTR, "acpibus",
-	CFARG_EOL);
+	CFARGS(.iattr = "acpibus"));
 #endif
 
 	return;

Index: src/sys/arch/ibmnws/ibmnws/mainbus.c
diff -u src/sys/arch/ibmnws/ibmnws/mainbus.c:1.16 src/sys/arch/ibmnws/ibmnws/mainbus.c:1.16.8.1
--- src/sys/arch/ibmnws/ibmnws/mainbus.c:1.16	Sat Apr 24 23:36:40 2021
+++ src/sys/arch/ibmnws/ibmnws/mainbus.c	Wed Aug  4 02:35:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.16 2021/04/24 23:36:40 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.16.8.1 2021/08/04 02:35:50 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -108,8 +108,7 @@ mainbus_attach(device_t parent, device_t
 	ca.ca_name = "cpu";
 	ca.ca_node = 0;
 	config_found(self, , mainbus_print,
-	CFARG_IATTR, "mainbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "mainbus"));
 
 #if NOBIO > 0
 	obio_reserve_resource_map();
@@ -148,8 +147,7 @@ mainbus_attach(device_t parent, device_t
 	mba.mba_pba.pba_bridgetag = NULL;
 	mba.mba_pba.pba_flags = PCI_FLAGS_IO_OKAY | PCI_FLAGS_MEM_OKAY;
 	config_found(self, _pba, pcibusprint,
-	CFARG_IATTR, "pcibus",
-	CFARG_EOL);
+	CFARGS(.iattr = "pcibus"));
 #endif
 
 #if NOBIO > 0
@@ -162,8 +160,7 @@ mainbus_attach(device_t parent, device_t
 		mba.mba_pba.pba_iot = _io_space_tag;
 		mba.mba_pba.pba_memt = _mem_space_tag;
 		config_found(self, _pba, mainbus_print,
-		CFARG_IATTR, "mainbus",
-		CFARG_EOL);
+		CFARGS(.iattr = "mainbus"));
 	}
 #endif
 #endif

Index: src/sys/arch/iyonix/iyonix/obio.c
diff -u src/sys/arch/iyonix/iyonix/obio.c:1.7 src/sys/arch/iyonix/iyonix/obio.c:1.7.8.1
--- src/sys/arch/iyonix/iyonix/obio.c:1.7	Sat Apr 24 23:36:40 2021
+++ src/sys/arch/iyonix/iyonix/obio.c	Wed Aug  4 02:35:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: obio.c,v 1.7 2021/04/24 23:36:40 thorpej Exp $	*/
+/*	$NetBSD: obio.c,v 1.7.8.1 2021/08/04 02:35:50 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.7 2021/04/24 23:36:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.7.8.1 2021/08/04 02:35:50 thorpej Exp $");
 
 #include 
 #include 
@@ -103,8 +103,7 @@ obio_attach(device_t parent, device_t se
 	 * configuration file.
 	 */
 	config_search(self, NULL,
-	CFARG_SEARCH, obio_search,
-	CFARG_EOL);
+	CFARGS(.search = obio_search));
 }
 
 int
@@ -140,7 +139,7 @@ obio_search(device_t parent, cfdata_t cf
 		oba.oba_irq = -1;
 
 	if (config_probe(parent, cf, ))
-		config_attach(parent, cf, , obio_print, CFARG_EOL);
+		config_attach(parent, cf, , obio_print, CFARGS_NONE);
 
 	return (0);
 }



CVS commit: [thorpej-cfargs2] src/sys/arch/i386

2021-08-03 Thread Jason R Thorpe
NEL_RCSID(0, "$NetBSD: geode.c,v 1.16.8.1 2021/08/04 01:21:27 thorpej Exp $");
 
 #include 
 #include 
@@ -120,7 +120,7 @@ geode_gcb_attach(device_t parent, device
 	aprint_naive("\n");
 	aprint_normal(": AMD Geode GCB (rev. 0x%02x)\n", rev);
 
-	while (config_found(self, NULL, NULL, CFARG_EOL) != NULL)
+	while (config_found(self, NULL, NULL, CFARGS_NONE) != NULL)
 		/* empty */;
 }
 static int

Index: src/sys/arch/i386/pci/gscpcib.c
diff -u src/sys/arch/i386/pci/gscpcib.c:1.19 src/sys/arch/i386/pci/gscpcib.c:1.19.8.1
--- src/sys/arch/i386/pci/gscpcib.c:1.19	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/i386/pci/gscpcib.c	Wed Aug  4 01:21:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gscpcib.c,v 1.19 2021/04/24 23:36:39 thorpej Exp $	*/
+/*	$NetBSD: gscpcib.c,v 1.19.8.1 2021/08/04 01:21:27 thorpej Exp $	*/
 /*	$OpenBSD: gscpcib.c,v 1.3 2004/10/05 19:02:33 grange Exp $	*/
 /*
  * Copyright (c) 2004 Alexander Yurchenko 
@@ -23,7 +23,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gscpcib.c,v 1.19 2021/04/24 23:36:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gscpcib.c,v 1.19.8.1 2021/08/04 01:21:27 thorpej Exp $");
 
 #include 
 #include 
@@ -100,8 +100,7 @@ gscpcib_rescan(device_t self, const char
 		gba.gba_npins = GSCGPIO_NPINS;
 
 		sc->sc_gpiobus = config_found(self, , gpiobus_print,
-		CFARG_IATTR, "gpiobus",
-		CFARG_EOL);
+		CFARGS(.iattr = "gpiobus"));
 		return 0;
 	}
 #endif

Index: src/sys/arch/i386/pci/pceb.c
diff -u src/sys/arch/i386/pci/pceb.c:1.25 src/sys/arch/i386/pci/pceb.c:1.25.8.1
--- src/sys/arch/i386/pci/pceb.c:1.25	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/i386/pci/pceb.c	Wed Aug  4 01:21:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pceb.c,v 1.25 2021/04/24 23:36:39 thorpej Exp $	*/
+/*	$NetBSD: pceb.c,v 1.25.8.1 2021/08/04 01:21:27 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.25 2021/04/24 23:36:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.25.8.1 2021/08/04 01:21:27 thorpej Exp $");
 
 #include 
 #include 
@@ -127,8 +127,7 @@ pceb_callback(device_t self)
 	ea.ea_eba.eba_dmat = _bus_dma_tag;
 #endif
 	config_found(self, _eba, eisabusprint,
-	CFARG_IATTR, "eisabus",
-	CFARG_EOL);
+	CFARGS(.iattr = "eisabus"));
 
 	/*
 	 * Attach the ISA bus behind this bridge.
@@ -140,6 +139,5 @@ pceb_callback(device_t self)
 	ea.ea_iba.iba_dmat = _bus_dma_tag;
 #endif
 	config_found(self, _iba, isabusprint,
-	CFARG_IATTR, "isabus",
-	CFARG_EOL);
+	CFARGS(.iattr = "isabus"));
 }

Index: src/sys/arch/i386/pci/pcmb.c
diff -u src/sys/arch/i386/pci/pcmb.c:1.21 src/sys/arch/i386/pci/pcmb.c:1.21.8.1
--- src/sys/arch/i386/pci/pcmb.c:1.21	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/i386/pci/pcmb.c	Wed Aug  4 01:21:27 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcmb.c,v 1.21 2021/04/24 23:36:39 thorpej Exp $	*/
+/*	$NetBSD: pcmb.c,v 1.21.8.1 2021/08/04 01:21:27 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pcmb.c,v 1.21 2021/04/24 23:36:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcmb.c,v 1.21.8.1 2021/08/04 01:21:27 thorpej Exp $");
 
 #include 
 #include 
@@ -108,5 +108,5 @@ pcmb_callback(device_t self)
 #endif
 	ma.mba_mc = NULL;
 	ma.mba_bus = 0;
-	config_found(self, , mcabusprint, CFARG_EOL);
+	config_found(self, , mcabusprint, CFARGS_NONE);
 }

Index: src/sys/arch/i386/pci/viapcib.c
diff -u src/sys/arch/i386/pci/viapcib.c:1.18 src/sys/arch/i386/pci/viapcib.c:1.18.8.1
--- src/sys/arch/i386/pci/viapcib.c:1.18	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/i386/pci/viapcib.c	Wed Aug  4 01:21:27 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: viapcib.c,v 1.18 2021/04/24 23:36:39 thorpej Exp $ */
+/* $NetBSD: viapcib.c,v 1.18.8.1 2021/08/04 01:21:27 thorpej Exp $ */
 /* $FreeBSD: src/sys/pci/viapm.c,v 1.10 2005/05/29 04:42:29 nyan Exp $ */
 
 /*-
@@ -55,7 +55,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: viapcib.c,v 1.18 2021/04/24 23:36:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viapcib.c,v 1.18.8.1 2021/08/04 01:21:27 thorpej Exp $");
 
 #include 
 #include 
@@ -215,8 +215,7 @@ core_pcib:
 		iba.iba_tag->ic_exec = viapcib_exec;
 
 		config_found(self, , iicbus_print,
-		CFARG_IATTR, "i2cbus",
-		CFARG_EOL);
+		CFARGS(.iattr = "i2cbus"));
 	}
 }
 

Index: src/sys/arch/i386/pnpbios/pnpbios.c
diff -u src/sys/arch/i386/pnpbios/pnpbios.c:1.76 src/sys/arch/i386/pnpbios/pnpbios.c:1.76.8.1
--- src/sys/arch/i386/pnpbios/pnpbios.c:1.76	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/i386/pnpbios/pnpbios.c	Wed Aug  4 01:21:27 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: pnpbios.c,v 1.76 2021/04/24 23:36:39 thorpej Exp $ */
+/* $NetBSD: pnpbios.c,v 1.76.8.1 2021/08/04 01:21:27 thorpej Exp $ */
 
 /*

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 01:08:48 UTC 2021

Modified Files:
src/sys/arch/hpcarm/dev [thorpej-cfargs2]: epsonlcd.c ipaq_atmelgpio.c
ipaq_lcd.c ipaq_pcic.c ipaq_saip.c j720kbd.c j720pwr.c j720ssp.c
j720tp.c nbpiic.c nbpkbd.c nbppcon.c sacc_hpcarm.c sed_saip.c
uda1341.c wzero3_kbd.c wzero3_keypad.c wzero3_lcd.c wzero3_tp.c
src/sys/arch/hpcmips/dev [thorpej-cfargs2]: it8368.c ite8181.c
m38813c.c mq200.c optpoint.c plum.c plumiobus.c plumohci.c
plumpcmcia.c plumvideo.c tc5165buf.c ucb1200.c ucbtp.c
src/sys/arch/hpcmips/hpcmips [thorpej-cfargs2]: mainbus.c
src/sys/arch/hpcmips/isa [thorpej-cfargs2]: isa_machdep.c
plumisa_machdep.c
src/sys/arch/hpcmips/tx [thorpej-cfargs2]: tx3912video.c tx39biu.c
tx39sib.c tx39spi.c tx39uart.c txcom.c txcsbus.c txioman.c txsim.c
src/sys/arch/hpcmips/vr [thorpej-cfargs2]: vr4181giu.c vrc4172gpio.c
vrc4172pci.c vrc4173bcu.c vrdsiu_mouse.c vrgiu.c vrip.c vrkiu.c
vrpciu.c vrpiu.c
src/sys/arch/hpcsh/dev [thorpej-cfargs2]: j6x0tp.c pfckbd.c psh3tp.c
src/sys/arch/hpcsh/dev/hd64461 [thorpej-cfargs2]: hd64461.c
hd64461pcmcia.c hd64461video.c
src/sys/arch/hpcsh/dev/hd64465 [thorpej-cfargs2]: hd64465.c
hd64465pcmcia.c
src/sys/arch/hpcsh/hpcsh [thorpej-cfargs2]: mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/hpcarm/dev/epsonlcd.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/hpcarm/dev/ipaq_atmelgpio.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/hpcarm/dev/ipaq_lcd.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/hpcarm/dev/ipaq_pcic.c
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/hpcarm/dev/ipaq_saip.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/hpcarm/dev/j720kbd.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/hpcarm/dev/j720pwr.c \
src/sys/arch/hpcarm/dev/wzero3_lcd.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/hpcarm/dev/j720ssp.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/hpcarm/dev/j720tp.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/hpcarm/dev/nbpiic.c \
src/sys/arch/hpcarm/dev/nbppcon.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/hpcarm/dev/nbpkbd.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/hpcarm/dev/sacc_hpcarm.c
cvs rdiff -u -r1.27 -r1.27.8.1 src/sys/arch/hpcarm/dev/sed_saip.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/hpcarm/dev/uda1341.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/hpcarm/dev/wzero3_kbd.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/hpcarm/dev/wzero3_keypad.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/hpcarm/dev/wzero3_tp.c
cvs rdiff -u -r1.26 -r1.26.6.1 src/sys/arch/hpcmips/dev/it8368.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/arch/hpcmips/dev/ite8181.c \
src/sys/arch/hpcmips/dev/plumpcmcia.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/hpcmips/dev/m38813c.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/hpcmips/dev/mq200.c
cvs rdiff -u -r1.8 -r1.8.8.1 src/sys/arch/hpcmips/dev/optpoint.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/hpcmips/dev/plum.c \
src/sys/arch/hpcmips/dev/tc5165buf.c
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/hpcmips/dev/plumiobus.c \
src/sys/arch/hpcmips/dev/plumohci.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/arch/hpcmips/dev/plumvideo.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/hpcmips/dev/ucb1200.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/hpcmips/dev/ucbtp.c
cvs rdiff -u -r1.32 -r1.32.8.1 src/sys/arch/hpcmips/hpcmips/mainbus.c
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/arch/hpcmips/isa/isa_machdep.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/hpcmips/isa/plumisa_machdep.c
cvs rdiff -u -r1.46 -r1.46.8.1 src/sys/arch/hpcmips/tx/tx3912video.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/hpcmips/tx/tx39biu.c \
src/sys/arch/hpcmips/tx/tx39uart.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/hpcmips/tx/tx39sib.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/hpcmips/tx/tx39spi.c
cvs rdiff -u -r1.51 -r1.51.8.1 src/sys/arch/hpcmips/tx/txcom.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/hpcmips/tx/txcsbus.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/hpcmips/tx/txioman.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/hpcmips/tx/txsim.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/hpcmips/vr/vr4181giu.c
cvs rdiff -u -r1.16 -r1.16.8.1 src/sys/arch/hpcmips/vr/vrc4172gpio.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/hpcmips/vr/vrc4172pci.c
cvs rdiff -u -r1.25 -r1.25.8.1 src/sys/arch/hpcmips/vr/vrc4173bcu.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/hpcmips/vr/vrdsiu_mouse.c
cvs rdiff -u -r1.46 -r1.46.4.1 src/sys/arch/hpcmips/vr/vrgiu.c
cvs rdiff -u -r1.38 -r1.38.8.1 src/sys/arch/hpcmips/vr/vrip.c
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/arch/hpcmips/vr/vrkiu.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/hpcmips/vr/vrpciu.c
cvs rdiff -u -r1.43 -r1.43.8.1 src/sys/arch/hpcmips/vr/vrpiu.c
cvs rdiff -u -r1.24 -r1.24.8.1 

CVS commit: [thorpej-cfargs2] src/sys/arch/hppa

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 01:03:37 UTC 2021

Modified Files:
src/sys/arch/hppa/dev [thorpej-cfargs2]: asp.c astro.c dino.c elroy.c
gecko.c lasi.c mongoose.c phantomas.c ssio.c uturn.c wax.c
src/sys/arch/hppa/gsc [thorpej-cfargs2]: gscbus.c
src/sys/arch/hppa/hppa [thorpej-cfargs2]: mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/hppa/dev/asp.c \
src/sys/arch/hppa/dev/astro.c src/sys/arch/hppa/dev/elroy.c \
src/sys/arch/hppa/dev/wax.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/hppa/dev/dino.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/hppa/dev/gecko.c \
src/sys/arch/hppa/dev/phantomas.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/hppa/dev/lasi.c \
src/sys/arch/hppa/dev/uturn.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/hppa/dev/mongoose.c
cvs rdiff -u -r1.4 -r1.4.2.1 src/sys/arch/hppa/dev/ssio.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/hppa/gsc/gscbus.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/hppa/hppa/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hppa/dev/asp.c
diff -u src/sys/arch/hppa/dev/asp.c:1.3 src/sys/arch/hppa/dev/asp.c:1.3.8.1
--- src/sys/arch/hppa/dev/asp.c:1.3	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/hppa/dev/asp.c	Wed Aug  4 01:03:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: asp.c,v 1.3 2021/04/24 23:36:39 thorpej Exp $	*/
+/*	$NetBSD: asp.c,v 1.3.8.1 2021/08/04 01:03:37 thorpej Exp $	*/
 
 /*	$OpenBSD: asp.c,v 1.5 2000/02/09 05:04:22 mickey Exp $	*/
 
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.3 2021/04/24 23:36:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asp.c,v 1.3.8.1 2021/08/04 01:03:37 thorpej Exp $");
 
 #include 
 #include 
@@ -275,5 +275,5 @@ aspattach(device_t parent, device_t self
 	ga.ga_fix_args = asp_fix_args;
 	ga.ga_fix_args_cookie = sc;
 	ga.ga_scsi_target = sc->sc_trs->asp_scsi;
-	config_found(self, , gscprint, CFARG_EOL);
+	config_found(self, , gscprint, CFARGS_NONE);
 }
Index: src/sys/arch/hppa/dev/astro.c
diff -u src/sys/arch/hppa/dev/astro.c:1.3 src/sys/arch/hppa/dev/astro.c:1.3.8.1
--- src/sys/arch/hppa/dev/astro.c:1.3	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/hppa/dev/astro.c	Wed Aug  4 01:03:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: astro.c,v 1.3 2021/04/24 23:36:39 thorpej Exp $	*/
+/*	$NetBSD: astro.c,v 1.3.8.1 2021/08/04 01:03:37 thorpej Exp $	*/
 
 /*	$OpenBSD: astro.c,v 1.8 2007/10/06 23:50:54 krw Exp $	*/
 
@@ -345,8 +345,7 @@ astro_callback(device_t self, struct con
 {
 
 	return config_found(self, ca, mbprint,
-	CFARG_SUBMATCH, mbsubmatch,
-	CFARG_EOL);
+	CFARGS(.submatch = mbsubmatch));
 }
 
 int
Index: src/sys/arch/hppa/dev/elroy.c
diff -u src/sys/arch/hppa/dev/elroy.c:1.3 src/sys/arch/hppa/dev/elroy.c:1.3.8.1
--- src/sys/arch/hppa/dev/elroy.c:1.3	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/hppa/dev/elroy.c	Wed Aug  4 01:03:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: elroy.c,v 1.3 2021/04/24 23:36:39 thorpej Exp $	*/
+/*	$NetBSD: elroy.c,v 1.3.8.1 2021/08/04 01:03:37 thorpej Exp $	*/
 
 /*	$OpenBSD: elroy.c,v 1.5 2009/03/30 21:24:57 kettenis Exp $	*/
 
@@ -1313,5 +1313,5 @@ le64toh(r->eio_base), le64toh(r->eio_mas
 	pba.pba_bus = 0; /* (le32toh(elroy_read32(>busnum)) & 0xff) >> 4; */
  	pba.pba_flags = PCI_FLAGS_IO_OKAY | PCI_FLAGS_MEM_OKAY;
 
-	config_found(self, , pcibusprint, CFARG_EOL);
+	config_found(self, , pcibusprint, CFARGS_NONE);
 }
Index: src/sys/arch/hppa/dev/wax.c
diff -u src/sys/arch/hppa/dev/wax.c:1.3 src/sys/arch/hppa/dev/wax.c:1.3.8.1
--- src/sys/arch/hppa/dev/wax.c:1.3	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/hppa/dev/wax.c	Wed Aug  4 01:03:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: wax.c,v 1.3 2021/04/24 23:36:39 thorpej Exp $	*/
+/*	$NetBSD: wax.c,v 1.3.8.1 2021/08/04 01:03:37 thorpej Exp $	*/
 
 /*	$OpenBSD: wax.c,v 1.1 1998/11/23 03:04:10 mickey Exp $	*/
 
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: wax.c,v 1.3 2021/04/24 23:36:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wax.c,v 1.3.8.1 2021/08/04 01:03:37 thorpej Exp $");
 
 #include 
 #include 
@@ -166,5 +166,5 @@ waxattach(device_t parent, device_t self
 	ga.ga_fix_args = wax_fix_args;
 	ga.ga_fix_args_cookie = sc;
 	ga.ga_scsi_target = 7; /* XXX */
-	config_found(self, , gscprint, CFARG_EOL);
+	config_found(self, , gscprint, CFARGS_NONE);
 }

Index: src/sys/arch/hppa/dev/dino.c
diff -u src/sys/arch/hppa/dev/dino.c:1.11 src/sys/arch/hppa/dev/dino.c:1.11.8.1
--- src/sys/arch/hppa/dev/dino.c:1.11	Sat Apr 24 23:36:39 2021
+++ src/sys/arch/hppa/dev/dino.c	Wed Aug  4 01:03:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dino.c,v 1.11 2021/04/24 23:36:39 thorpej Exp $ */
+/*	$NetBSD: dino.c,v 1.11.8.1 2021/08/04 01:03:37 thorpej Exp $ */
 
 /*	$OpenBSD: dino.c,v 1.5 2004/02/13 20:39:31 mickey Exp $	*/
 
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: 

CVS commit: [thorpej-cfargs2] src/sys/arch/hp300

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 01:02:36 UTC 2021

Modified Files:
src/sys/arch/hp300/dev [thorpej-cfargs2]: dio.c diofb.c dnkbd.c fhpib.c
frodo.c hpib.c intio.c nhpib.c sgc.c sti_sgc.c
src/sys/arch/hp300/hp300 [thorpej-cfargs2]: autoconf.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.40.8.1 src/sys/arch/hp300/dev/dio.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/hp300/dev/diofb.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/hp300/dev/dnkbd.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/arch/hp300/dev/fhpib.c \
src/sys/arch/hp300/dev/nhpib.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/hp300/dev/frodo.c
cvs rdiff -u -r1.43 -r1.43.2.1 src/sys/arch/hp300/dev/hpib.c
cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/arch/hp300/dev/intio.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/hp300/dev/sgc.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/hp300/dev/sti_sgc.c
cvs rdiff -u -r1.109 -r1.109.8.1 src/sys/arch/hp300/hp300/autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp300/dev/dio.c
diff -u src/sys/arch/hp300/dev/dio.c:1.40 src/sys/arch/hp300/dev/dio.c:1.40.8.1
--- src/sys/arch/hp300/dev/dio.c:1.40	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/hp300/dev/dio.c	Wed Aug  4 01:02:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dio.c,v 1.40 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: dio.c,v 1.40.8.1 2021/08/04 01:02:36 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: dio.c,v 1.40 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dio.c,v 1.40.8.1 2021/08/04 01:02:36 thorpej Exp $");
 
 #define	_HP300_INTR_H_PRIVATE
 
@@ -155,8 +155,7 @@ dioattach(device_t parent, device_t self
 
 		/* Attach matching device. */
 		config_found(self, , dioprint,
-		CFARG_SUBMATCH, diosubmatch,
-		CFARG_EOL);
+		CFARGS(.submatch = diosubmatch));
 		scode += scodesize;
 	}
 }

Index: src/sys/arch/hp300/dev/diofb.c
diff -u src/sys/arch/hp300/dev/diofb.c:1.6 src/sys/arch/hp300/dev/diofb.c:1.6.8.1
--- src/sys/arch/hp300/dev/diofb.c:1.6	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/hp300/dev/diofb.c	Wed Aug  4 01:02:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: diofb.c,v 1.6 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: diofb.c,v 1.6.8.1 2021/08/04 01:02:36 thorpej Exp $	*/
 /*	$OpenBSD: diofb.c,v 1.18 2010/12/26 15:40:59 miod Exp $	*/
 
 /*
@@ -334,7 +334,7 @@ diofb_end_attach(device_t self, struct w
 	waa.accessops = accessops;
 	waa.accesscookie = fb;
 
-	config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 /*

Index: src/sys/arch/hp300/dev/dnkbd.c
diff -u src/sys/arch/hp300/dev/dnkbd.c:1.12 src/sys/arch/hp300/dev/dnkbd.c:1.12.8.1
--- src/sys/arch/hp300/dev/dnkbd.c:1.12	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/hp300/dev/dnkbd.c	Wed Aug  4 01:02:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dnkbd.c,v 1.12 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: dnkbd.c,v 1.12.8.1 2021/08/04 01:02:36 thorpej Exp $	*/
 /*	$OpenBSD: dnkbd.c,v 1.17 2009/07/23 21:05:56 blambert Exp $	*/
 
 /*
@@ -391,16 +391,14 @@ dnkbd_attach_subdevices(struct dnkbd_sof
 	}
 
 	sc->sc_wskbddev = config_found(sc->sc_dev, , wskbddevprint,
-	CFARG_IATTR, "wskbddev",
-	CFARG_EOL);
+	CFARGS(.iattr = "wskbddev"));
 
 #if NWSMOUSE > 0
 	ma.accessops = _accessops;
 	ma.accesscookie = sc;
 
 	sc->sc_wsmousedev = config_found(sc->sc_dev, , wsmousedevprint,
-	CFARG_IATTR, "wsmousedev",
-	CFARG_EOL);
+	CFARGS(.iattr = "wsmousedev"));
 #endif
 
 	SET(sc->sc_flags, SF_ATTACHED);

Index: src/sys/arch/hp300/dev/fhpib.c
diff -u src/sys/arch/hp300/dev/fhpib.c:1.42 src/sys/arch/hp300/dev/fhpib.c:1.42.8.1
--- src/sys/arch/hp300/dev/fhpib.c:1.42	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/hp300/dev/fhpib.c	Wed Aug  4 01:02:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fhpib.c,v 1.42 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: fhpib.c,v 1.42.8.1 2021/08/04 01:02:36 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fhpib.c,v 1.42 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fhpib.c,v 1.42.8.1 2021/08/04 01:02:36 thorpej Exp $");
 
 #include 
 #include 
@@ -186,7 +186,7 @@ fhpibattach(device_t parent, device_t se
 	ha.ha_type = HPIBC;			/* XXX */
 	ha.ha_ba = HPIBC_BA;
 	ha.ha_softcpp = >sc_hpibbus;	/* XXX */
-	(void)config_found(self, , hpibdevprint, CFARG_EOL);
+	(void)config_found(self, , hpibdevprint, CFARGS_NONE);
 }
 
 static void
Index: src/sys/arch/hp300/dev/nhpib.c
diff -u src/sys/arch/hp300/dev/nhpib.c:1.42 src/sys/arch/hp300/dev/nhpib.c:1.42.8.1
--- src/sys/arch/hp300/dev/nhpib.c:1.42	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/hp300/dev/nhpib.c	Wed Aug  4 01:02:36 2021
@@ 

CVS commit: [thorpej-cfargs2] src/sys/arch/ews4800mips

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 01:01:42 UTC 2021

Modified Files:
src/sys/arch/ews4800mips/dev [thorpej-cfargs2]: ewskbd.c ewsms.c
src/sys/arch/ews4800mips/ews4800mips [thorpej-cfargs2]: mainbus.c
src/sys/arch/ews4800mips/sbd [thorpej-cfargs2]: fb_sbdio.c kbms_sbdio.c
sbdio.c zs_sbdio.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/ews4800mips/dev/ewskbd.c
cvs rdiff -u -r1.9 -r1.9.8.1 src/sys/arch/ews4800mips/dev/ewsms.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/ews4800mips/ews4800mips/mainbus.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/ews4800mips/sbd/fb_sbdio.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/ews4800mips/sbd/kbms_sbdio.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/ews4800mips/sbd/sbdio.c
cvs rdiff -u -r1.13 -r1.13.8.1 src/sys/arch/ews4800mips/sbd/zs_sbdio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/ews4800mips/dev/ewskbd.c
diff -u src/sys/arch/ews4800mips/dev/ewskbd.c:1.12 src/sys/arch/ews4800mips/dev/ewskbd.c:1.12.8.1
--- src/sys/arch/ews4800mips/dev/ewskbd.c:1.12	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/ews4800mips/dev/ewskbd.c	Wed Aug  4 01:01:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ewskbd.c,v 1.12 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: ewskbd.c,v 1.12.8.1 2021/08/04 01:01:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2005 Izumi Tsutsui.  All rights reserved.
@@ -59,7 +59,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ewskbd.c,v 1.12 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ewskbd.c,v 1.12.8.1 2021/08/04 01:01:41 thorpej Exp $");
 
 #include 
 #include 
@@ -251,7 +251,7 @@ ewskbd_zsc_attach(device_t parent, devic
 	wskaa.accessops = _wskbd_accessops;
 	wskaa.accesscookie = cs;
 	sc->sc_dc->wskbddev = config_found(self, , wskbddevprint,
-	CFARG_EOL);
+	CFARGS_NONE);
 }
 
 static int

Index: src/sys/arch/ews4800mips/dev/ewsms.c
diff -u src/sys/arch/ews4800mips/dev/ewsms.c:1.9 src/sys/arch/ews4800mips/dev/ewsms.c:1.9.8.1
--- src/sys/arch/ews4800mips/dev/ewsms.c:1.9	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/ews4800mips/dev/ewsms.c	Wed Aug  4 01:01:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ewsms.c,v 1.9 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: ewsms.c,v 1.9.8.1 2021/08/04 01:01:41 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2004 Steve Rumble
@@ -38,7 +38,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ewsms.c,v 1.9 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ewsms.c,v 1.9.8.1 2021/08/04 01:01:41 thorpej Exp $");
 
 #include 
 #include 
@@ -184,7 +184,7 @@ ewsms_zsc_attach(device_t parent, device
 	wsmaa.accessops = _wsmouse_accessops;
 	wsmaa.accesscookie = sc;
 	sc->sc_wsmousedev = config_found(self, , wsmousedevprint,
-	CFARG_EOL);
+	CFARGS_NONE);
 }
 
 int

Index: src/sys/arch/ews4800mips/ews4800mips/mainbus.c
diff -u src/sys/arch/ews4800mips/ews4800mips/mainbus.c:1.6 src/sys/arch/ews4800mips/ews4800mips/mainbus.c:1.6.8.1
--- src/sys/arch/ews4800mips/ews4800mips/mainbus.c:1.6	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/ews4800mips/ews4800mips/mainbus.c	Wed Aug  4 01:01:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.6 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.6.8.1 2021/08/04 01:01:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2004, 2005 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.6 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.6.8.1 2021/08/04 01:01:41 thorpej Exp $");
 
 #include 
 #include 
@@ -66,13 +66,13 @@ mainbus_attach(device_t parent, device_t
 
 	/* CPU  */
 	ma.ma_name = "cpu";
-	config_found(self, , mainbus_print, CFARG_EOL);
+	config_found(self, , mainbus_print, CFARGS_NONE);
 
 	/* System Board dependent device busses */
 	if (platform.mainbusdevs != NULL) {
 		for (p = platform.mainbusdevs; *p != NULL; p++) {
 			ma.ma_name = *p;
-			config_found(self, , mainbus_print, CFARG_EOL);
+			config_found(self, , mainbus_print, CFARGS_NONE);
 		}
 	}
 }

Index: src/sys/arch/ews4800mips/sbd/fb_sbdio.c
diff -u src/sys/arch/ews4800mips/sbd/fb_sbdio.c:1.19 src/sys/arch/ews4800mips/sbd/fb_sbdio.c:1.19.8.1
--- src/sys/arch/ews4800mips/sbd/fb_sbdio.c:1.19	Sat Apr 24 23:36:37 2021
+++ src/sys/arch/ews4800mips/sbd/fb_sbdio.c	Wed Aug  4 01:01:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fb_sbdio.c,v 1.19 2021/04/24 23:36:37 thorpej Exp $	*/
+/*	$NetBSD: fb_sbdio.c,v 1.19.8.1 2021/08/04 01:01:41 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #define WIRED_FB_TLB
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fb_sbdio.c,v 1.19 2021/04/24 23:36:37 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb_sbdio.c,v 1.19.8.1 2021/08/04 01:01:41 thorpej Exp $");
 
 #include 
 #include 
@@ -163,7 +163,7 @@ 

CVS commit: [thorpej-cfargs2] src/sys/arch/epoc32

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 00:02:33 UTC 2021

Modified Files:
src/sys/arch/epoc32/dev [thorpej-cfargs2]: epockbd.c etna.c
src/sys/arch/epoc32/epoc32 [thorpej-cfargs2]: external.c internal.c
src/sys/arch/epoc32/windermere [thorpej-cfargs2]: windermere.c wmlcd.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/epoc32/dev/epockbd.c \
src/sys/arch/epoc32/dev/etna.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/epoc32/epoc32/external.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/epoc32/epoc32/internal.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/epoc32/windermere/windermere.c \
src/sys/arch/epoc32/windermere/wmlcd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/epoc32/dev/epockbd.c
diff -u src/sys/arch/epoc32/dev/epockbd.c:1.4 src/sys/arch/epoc32/dev/epockbd.c:1.4.8.1
--- src/sys/arch/epoc32/dev/epockbd.c:1.4	Sat Apr 24 23:36:32 2021
+++ src/sys/arch/epoc32/dev/epockbd.c	Wed Aug  4 00:02:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: epockbd.c,v 1.4 2021/04/24 23:36:32 thorpej Exp $	*/
+/*	$NetBSD: epockbd.c,v 1.4.8.1 2021/08/04 00:02:33 thorpej Exp $	*/
 /*
  * Copyright (c) 2013 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__KERNEL_RCSID(0, "$NetBSD: epockbd.c,v 1.4 2021/04/24 23:36:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epockbd.c,v 1.4.8.1 2021/08/04 00:02:33 thorpej Exp $");
 
 #include 
 #include 
@@ -101,7 +101,7 @@ epockbd_attach(struct epockbd_softc *sc)
 	aa.accessops = _accessops;
 	aa.accesscookie = sc;
 	sc->sc_wskbddev = config_found(sc->sc_dev, , wskbddevprint,
-	CFARG_EOL);
+	CFARGS_NONE);
 }
 
 /*
Index: src/sys/arch/epoc32/dev/etna.c
diff -u src/sys/arch/epoc32/dev/etna.c:1.4 src/sys/arch/epoc32/dev/etna.c:1.4.8.1
--- src/sys/arch/epoc32/dev/etna.c:1.4	Sat Apr 24 23:36:32 2021
+++ src/sys/arch/epoc32/dev/etna.c	Wed Aug  4 00:02:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: etna.c,v 1.4 2021/04/24 23:36:32 thorpej Exp $	*/
+/*	$NetBSD: etna.c,v 1.4.8.1 2021/08/04 00:02:33 thorpej Exp $	*/
 /*
  * Copyright (c) 2012 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: etna.c,v 1.4 2021/04/24 23:36:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: etna.c,v 1.4.8.1 2021/08/04 00:02:33 thorpej Exp $");
 
 #include 
 #include 
@@ -201,7 +201,7 @@ etna_attach(device_t parent, device_t se
 	paa.paa_busname = "pcmcia";
 	paa.pct = _pcmcia_functions;
 	paa.pch = sc;
-	sc->sc_pcmcia = config_found(self, , NULL, CFARG_EOL);
+	sc->sc_pcmcia = config_found(self, , NULL, CFARGS_NONE);
 
 	config_interrupts(self, etna_doattach);
 }

Index: src/sys/arch/epoc32/epoc32/external.c
diff -u src/sys/arch/epoc32/epoc32/external.c:1.3 src/sys/arch/epoc32/epoc32/external.c:1.3.8.1
--- src/sys/arch/epoc32/epoc32/external.c:1.3	Sat Apr 24 23:36:32 2021
+++ src/sys/arch/epoc32/epoc32/external.c	Wed Aug  4 00:02:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: external.c,v 1.3 2021/04/24 23:36:32 thorpej Exp $	*/
+/*	$NetBSD: external.c,v 1.3.8.1 2021/08/04 00:02:33 thorpej Exp $	*/
 /*
  * Copyright (c) 2012, 2013 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: external.c,v 1.3 2021/04/24 23:36:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: external.c,v 1.3.8.1 2021/08/04 00:02:33 thorpej Exp $");
 
 #include 
 #include 
@@ -65,8 +65,7 @@ external_attach(device_t parent, device_
 	aprint_normal("\n");
 
 	config_search(self, NULL,
-	CFARG_SEARCH, external_search,
-	CFARG_EOL);
+	CFARGS(.search = external_search));
 }
 
 /* ARGSUSED */
@@ -81,7 +80,7 @@ external_search(device_t parent, cfdata_
 	aa.addr2 = cf->cf_loc[EXTERNALCF_ADDR2];
 	aa.irq = cf->cf_loc[EXTERNALCF_IRQ];
 	if (config_probe(parent, cf, ))
-		config_attach(parent, cf, , external_print, CFARG_EOL);
+		config_attach(parent, cf, , external_print, CFARGS_NONE);
 
 	return 0;
 }

Index: src/sys/arch/epoc32/epoc32/internal.c
diff -u src/sys/arch/epoc32/epoc32/internal.c:1.2 src/sys/arch/epoc32/epoc32/internal.c:1.2.8.1
--- src/sys/arch/epoc32/epoc32/internal.c:1.2	Sat Apr 24 23:36:32 2021
+++ src/sys/arch/epoc32/epoc32/internal.c	Wed Aug  4 00:02:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: internal.c,v 1.2 2021/04/24 23:36:32 thorpej Exp $	*/
+/*	$NetBSD: internal.c,v 1.2.8.1 2021/08/04 00:02:33 thorpej Exp $	*/
 /*
  * Copyright (c) 2012 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: internal.c,v 1.2 2021/04/24 23:36:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: internal.c,v 1.2.8.1 2021/08/04 00:02:33 thorpej Exp $");
 
 #include 
 #include 
@@ -56,8 +56,7 @@ internal_attach(device_t parent, device_
 	aprint_normal("\n");
 
 	config_search(self, aux,
-	CFARG_SEARCH, internal_search,
-	

CVS commit: [thorpej-cfargs2] src/sys/arch/emips

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 00:01:52 UTC 2021

Modified Files:
src/sys/arch/emips/ebus [thorpej-cfargs2]: ebus.c gpio_ebus.c
src/sys/arch/emips/emips [thorpej-cfargs2]: mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/emips/ebus/ebus.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/emips/ebus/gpio_ebus.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/emips/emips/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/emips/ebus/ebus.c
diff -u src/sys/arch/emips/ebus/ebus.c:1.3 src/sys/arch/emips/ebus/ebus.c:1.3.8.1
--- src/sys/arch/emips/ebus/ebus.c:1.3	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/emips/ebus/ebus.c	Wed Aug  4 00:01:51 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ebus.c,v 1.3 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: ebus.c,v 1.3.8.1 2021/08/04 00:01:51 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 			/* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.3 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.3.8.1 2021/08/04 00:01:51 thorpej Exp $");
 
 #include 
 #include 
@@ -83,9 +83,8 @@ ebusattach(device_t parent, device_t sel
 		locs[EBUSCF_ADDR] = ia->ia_paddr;
 
 		if (config_found(self, ia, ebusprint,
- CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_LOCATORS, locs,
- CFARG_EOL) == NULL) {
+ CFARGS(.submatch = config_stdsubmatch,
+	.locators = locs)) == NULL) {
 			/* do we need to say anything? */
 			if (ia->ia_basz != 0) {
 mips_unmap_physmem((vaddr_t)ia->ia_vaddr,

Index: src/sys/arch/emips/ebus/gpio_ebus.c
diff -u src/sys/arch/emips/ebus/gpio_ebus.c:1.4 src/sys/arch/emips/ebus/gpio_ebus.c:1.4.8.1
--- src/sys/arch/emips/ebus/gpio_ebus.c:1.4	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/emips/ebus/gpio_ebus.c	Wed Aug  4 00:01:51 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gpio_ebus.c,v 1.4 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: gpio_ebus.c,v 1.4.8.1 2021/08/04 00:01:51 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include 			/* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gpio_ebus.c,v 1.4 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpio_ebus.c,v 1.4.8.1 2021/08/04 00:01:51 thorpej Exp $");
 
 #include 
 #include 
@@ -124,7 +124,7 @@ epio_ebus_attach(device_t parent, device
 	gba.gba_npins = GPIO_NPINS;
 
 	/* Attach GPIO framework */
-	(void)config_found(self, , gpiobus_print, CFARG_EOL);
+	(void)config_found(self, , gpiobus_print, CFARGS_NONE);
 }
 
 static int

Index: src/sys/arch/emips/emips/mainbus.c
diff -u src/sys/arch/emips/emips/mainbus.c:1.4 src/sys/arch/emips/emips/mainbus.c:1.4.8.1
--- src/sys/arch/emips/emips/mainbus.c:1.4	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/emips/emips/mainbus.c	Wed Aug  4 00:01:52 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.4 2021/04/24 23:36:31 thorpej Exp $ */
+/* $NetBSD: mainbus.c,v 1.4.8.1 2021/08/04 00:01:52 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.4 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.4.8.1 2021/08/04 00:01:52 thorpej Exp $");
 
 #include 
 #include 
@@ -71,11 +71,11 @@ mbattach(device_t parent, device_t self,
 
  	ma.ma_name = "cpu";
 	ma.ma_slot = 0;
-	config_found(self, , mbprint, CFARG_EOL);
+	config_found(self, , mbprint, CFARGS_NONE);
 
 	ma.ma_name = platform.iobus;
 	ma.ma_slot = 0;
-	config_found(self, , mbprint, CFARG_EOL);
+	config_found(self, , mbprint, CFARGS_NONE);
 }
 
 static int



CVS commit: [thorpej-cfargs2] src/sys/arch/dreamcast

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Aug  4 00:00:00 UTC 2021

Modified Files:
src/sys/arch/dreamcast/dev [thorpej-cfargs2]: pvr.c
src/sys/arch/dreamcast/dev/g1 [thorpej-cfargs2]: g1bus.c
src/sys/arch/dreamcast/dev/g2 [thorpej-cfargs2]: g2bus.c gapspci.c
src/sys/arch/dreamcast/dev/maple [thorpej-cfargs2]: maple.c mkbd.c
mms.c
src/sys/arch/dreamcast/dreamcast [thorpej-cfargs2]: mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.38.2.1 src/sys/arch/dreamcast/dev/pvr.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/dreamcast/dev/g1/g1bus.c
cvs rdiff -u -r1.15 -r1.15.8.1 src/sys/arch/dreamcast/dev/g2/g2bus.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/dreamcast/dev/g2/gapspci.c
cvs rdiff -u -r1.54 -r1.54.8.1 src/sys/arch/dreamcast/dev/maple/maple.c
cvs rdiff -u -r1.30 -r1.30.8.1 src/sys/arch/dreamcast/dev/maple/mkbd.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/dreamcast/dev/maple/mms.c
cvs rdiff -u -r1.12 -r1.12.8.1 src/sys/arch/dreamcast/dreamcast/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/dreamcast/dev/pvr.c
diff -u src/sys/arch/dreamcast/dev/pvr.c:1.38 src/sys/arch/dreamcast/dev/pvr.c:1.38.2.1
--- src/sys/arch/dreamcast/dev/pvr.c:1.38	Sat Jul 31 14:36:33 2021
+++ src/sys/arch/dreamcast/dev/pvr.c	Tue Aug  3 23:59:59 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pvr.c,v 1.38 2021/07/31 14:36:33 andvar Exp $	*/
+/*	$NetBSD: pvr.c,v 1.38.2.1 2021/08/03 23:59:59 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt.
@@ -35,7 +35,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.38 2021/07/31 14:36:33 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.38.2.1 2021/08/03 23:59:59 thorpej Exp $");
 
 #include 
 #include 
@@ -301,7 +301,7 @@ pvr_attach(device_t parent, device_t sel
 	waa.accessops = _accessops;
 	waa.accesscookie = sc;
 
-	(void) config_found(self, , wsemuldisplaydevprint, CFARG_EOL);
+	(void) config_found(self, , wsemuldisplaydevprint, CFARGS_NONE);
 }
 
 int

Index: src/sys/arch/dreamcast/dev/g1/g1bus.c
diff -u src/sys/arch/dreamcast/dev/g1/g1bus.c:1.2 src/sys/arch/dreamcast/dev/g1/g1bus.c:1.2.8.1
--- src/sys/arch/dreamcast/dev/g1/g1bus.c:1.2	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/dreamcast/dev/g1/g1bus.c	Wed Aug  4 00:00:00 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: g1bus.c,v 1.2 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: g1bus.c,v 1.2.8.1 2021/08/04 00:00:00 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -34,7 +34,7 @@
 
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: g1bus.c,v 1.2 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: g1bus.c,v 1.2.8.1 2021/08/04 00:00:00 thorpej Exp $");
 
 #include 
 #include 
@@ -76,8 +76,7 @@ g1busattach(device_t parent, device_t se
 	ga.ga_memt = >sc_memt;
 
 	config_search(self, ,
-	CFARG_SEARCH, g1bussearch,
-	CFARG_EOL);
+	CFARGS(.search = g1bussearch));
 }
 
 int
@@ -92,7 +91,7 @@ g1bussearch(device_t parent, cfdata_t cf
 {
 
 	if (config_probe(parent, cf, aux))
-		config_attach(parent, cf, aux, g1busprint, CFARG_EOL);
+		config_attach(parent, cf, aux, g1busprint, CFARGS_NONE);
 
 	return 0;
 }

Index: src/sys/arch/dreamcast/dev/g2/g2bus.c
diff -u src/sys/arch/dreamcast/dev/g2/g2bus.c:1.15 src/sys/arch/dreamcast/dev/g2/g2bus.c:1.15.8.1
--- src/sys/arch/dreamcast/dev/g2/g2bus.c:1.15	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/dreamcast/dev/g2/g2bus.c	Wed Aug  4 00:00:00 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: g2bus.c,v 1.15 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: g2bus.c,v 1.15.8.1 2021/08/04 00:00:00 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -34,7 +34,7 @@
 
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: g2bus.c,v 1.15 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: g2bus.c,v 1.15.8.1 2021/08/04 00:00:00 thorpej Exp $");
 
 #include 
 #include 
@@ -78,8 +78,7 @@ g2busattach(device_t parent, device_t se
 	ga.ga_memt = >sc_memt;
 
 	config_search(self, ,
-	CFARG_SEARCH, g2bussearch,
-	CFARG_EOL);
+	CFARGS(.search = g2bussearch));
 }
 
 int
@@ -94,7 +93,7 @@ g2bussearch(device_t parent, cfdata_t cf
 {
 
 	if (config_probe(parent, cf, aux))
-		config_attach(parent, cf, aux, g2busprint, CFARG_EOL);
+		config_attach(parent, cf, aux, g2busprint, CFARGS_NONE);
 
 	return 0;
 }

Index: src/sys/arch/dreamcast/dev/g2/gapspci.c
diff -u src/sys/arch/dreamcast/dev/g2/gapspci.c:1.20 src/sys/arch/dreamcast/dev/g2/gapspci.c:1.20.8.1
--- src/sys/arch/dreamcast/dev/g2/gapspci.c:1.20	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/dreamcast/dev/g2/gapspci.c	Wed Aug  4 00:00:00 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gapspci.c,v 1.20 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: gapspci.c,v 1.20.8.1 2021/08/04 00:00:00 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -33,7 +33,7 @@
  */
 
 

CVS commit: [thorpej-cfargs2] src/sys/arch/cobalt

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:57:22 UTC 2021

Modified Files:
src/sys/arch/cobalt/cobalt [thorpej-cfargs2]: mainbus.c
src/sys/arch/cobalt/dev [thorpej-cfargs2]: gt.c zs.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/cobalt/cobalt/mainbus.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/cobalt/dev/gt.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/cobalt/dev/zs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/cobalt/cobalt/mainbus.c
diff -u src/sys/arch/cobalt/cobalt/mainbus.c:1.21 src/sys/arch/cobalt/cobalt/mainbus.c:1.21.8.1
--- src/sys/arch/cobalt/cobalt/mainbus.c:1.21	Sat Apr 24 23:36:30 2021
+++ src/sys/arch/cobalt/cobalt/mainbus.c	Tue Aug  3 23:57:21 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.21 2021/04/24 23:36:30 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.21.8.1 2021/08/03 23:57:21 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang.  All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.21 2021/04/24 23:36:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.21.8.1 2021/08/03 23:57:21 thorpej Exp $");
 
 #include 
 #include 
@@ -64,8 +64,7 @@ mainbus_attach(device_t parent, device_t
 	aprint_normal("\n");
 
 	config_search(self, ,
-	CFARG_SEARCH, mainbus_search,
-	CFARG_EOL);
+	CFARGS(.search = mainbus_search));
 }
 
 static int
@@ -79,7 +78,7 @@ mainbus_search(device_t parent, cfdata_t
 		ma->ma_level = cf->cf_loc[MAINBUSCF_LEVEL];
 		ma->ma_irq = cf->cf_loc[MAINBUSCF_IRQ];
 		if (config_probe(parent, cf, ma))
-			config_attach(parent, cf, ma, mainbus_print, CFARG_EOL);
+			config_attach(parent, cf, ma, mainbus_print, CFARGS_NONE);
 	} while (cf->cf_fstate == FSTATE_STAR);
 
 	return 0;

Index: src/sys/arch/cobalt/dev/gt.c
diff -u src/sys/arch/cobalt/dev/gt.c:1.33 src/sys/arch/cobalt/dev/gt.c:1.33.8.1
--- src/sys/arch/cobalt/dev/gt.c:1.33	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/cobalt/dev/gt.c	Tue Aug  3 23:57:21 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gt.c,v 1.33 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: gt.c,v 1.33.8.1 2021/08/03 23:57:21 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang.  All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.33 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gt.c,v 1.33.8.1 2021/08/03 23:57:21 thorpej Exp $");
 
 #include "opt_pci.h"
 #include "pci.h"
@@ -157,7 +157,7 @@ gt_attach(device_t parent, device_t self
 	pba.pba_flags = PCI_FLAGS_IO_OKAY | PCI_FLAGS_MEM_OKAY |
 		PCI_FLAGS_MRL_OKAY | /*PCI_FLAGS_MRM_OKAY|*/ PCI_FLAGS_MWI_OKAY;
 	pba.pba_pc = pc;
-	config_found(self, , gt_print, CFARG_EOL);
+	config_found(self, , gt_print, CFARGS_NONE);
 #endif
 }
 

Index: src/sys/arch/cobalt/dev/zs.c
diff -u src/sys/arch/cobalt/dev/zs.c:1.5 src/sys/arch/cobalt/dev/zs.c:1.5.8.1
--- src/sys/arch/cobalt/dev/zs.c:1.5	Sat Apr 24 23:36:31 2021
+++ src/sys/arch/cobalt/dev/zs.c	Tue Aug  3 23:57:21 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: zs.c,v 1.5 2021/04/24 23:36:31 thorpej Exp $	*/
+/*	$NetBSD: zs.c,v 1.5.8.1 2021/08/03 23:57:21 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.5 2021/04/24 23:36:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.5.8.1 2021/08/03 23:57:21 thorpej Exp $");
 
 #include "opt_ddb.h"
 
@@ -223,7 +223,7 @@ zs_attach(device_t parent, device_t self
 		 * The child attach will setup the hardware.
 		 */
 		if (!config_found(self, (void *)_args, zs_print,
-		CFARG_EOL)) {
+		CFARGS_NONE)) {
 			/* No sub-driver.  Just reset it. */
 			uint8_t reset = (channel == 0) ?
 			ZSWR9_A_RESET : ZSWR9_B_RESET;



CVS commit: [thorpej-cfargs2] src/sys/arch/cesfic

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:56:15 UTC 2021

Modified Files:
src/sys/arch/cesfic/cesfic [thorpej-cfargs2]: autoconf.c
src/sys/arch/cesfic/dev [thorpej-cfargs2]: zs.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.28.8.1 src/sys/arch/cesfic/cesfic/autoconf.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/cesfic/dev/zs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/cesfic/cesfic/autoconf.c
diff -u src/sys/arch/cesfic/cesfic/autoconf.c:1.28 src/sys/arch/cesfic/cesfic/autoconf.c:1.28.8.1
--- src/sys/arch/cesfic/cesfic/autoconf.c:1.28	Sat Apr 24 23:36:30 2021
+++ src/sys/arch/cesfic/cesfic/autoconf.c	Tue Aug  3 23:56:15 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.28 2021/04/24 23:36:30 thorpej Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.28.8.1 2021/08/03 23:56:15 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1997, 1999
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.28 2021/04/24 23:36:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.28.8.1 2021/08/03 23:56:15 thorpej Exp $");
 
 #include 
 #include 
@@ -90,8 +90,7 @@ mainbusattach(device_t parent, device_t 
 
 	/* Search for and attach children. */
 	config_search(self, NULL,
-	CFARG_SEARCH, mainbussearch,
-	CFARG_EOL);
+	CFARGS(.search = mainbussearch));
 }
 
 int
@@ -99,7 +98,7 @@ mainbussearch(device_t parent, cfdata_t 
 {
 
 	if (config_probe(parent, cf, NULL))
-		config_attach(parent, cf, NULL, NULL, CFARG_EOL);
+		config_attach(parent, cf, NULL, NULL, CFARGS_NONE);
 	return (0);
 }
 

Index: src/sys/arch/cesfic/dev/zs.c
diff -u src/sys/arch/cesfic/dev/zs.c:1.22 src/sys/arch/cesfic/dev/zs.c:1.22.8.1
--- src/sys/arch/cesfic/dev/zs.c:1.22	Sat Apr 24 23:36:30 2021
+++ src/sys/arch/cesfic/dev/zs.c	Tue Aug  3 23:56:15 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: zs.c,v 1.22 2021/04/24 23:36:30 thorpej Exp $	*/
+/*	$NetBSD: zs.c,v 1.22.8.1 2021/08/03 23:56:15 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.22 2021/04/24 23:36:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.22.8.1 2021/08/03 23:56:15 thorpej Exp $");
 
 #include "opt_ddb.h"
 
@@ -165,7 +165,7 @@ zs_config(struct zsc_softc *zsc, char *b
 		 * The child attach will setup the hardware.
 		 */
 		if (!config_found(zsc->zsc_dev, (void *)_args,
-		zsc_print, CFARG_EOL)) {
+		zsc_print, CFARGS_NONE)) {
 			/* No sub-driver.  Just reset it. */
 			uint8_t reset = (channel == 0) ?
 ZSWR9_A_RESET : ZSWR9_B_RESET;



CVS commit: [thorpej-cfargs2] src/sys/arch/cats/pci

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:53:38 UTC 2021

Modified Files:
src/sys/arch/cats/pci [thorpej-cfargs2]: pcib.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.17.8.1 src/sys/arch/cats/pci/pcib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/cats/pci/pcib.c
diff -u src/sys/arch/cats/pci/pcib.c:1.17 src/sys/arch/cats/pci/pcib.c:1.17.8.1
--- src/sys/arch/cats/pci/pcib.c:1.17	Sat Apr 24 23:36:30 2021
+++ src/sys/arch/cats/pci/pcib.c	Tue Aug  3 23:53:38 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcib.c,v 1.17 2021/04/24 23:36:30 thorpej Exp $	*/
+/*	$NetBSD: pcib.c,v 1.17.8.1 2021/08/03 23:53:38 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.17 2021/04/24 23:36:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.17.8.1 2021/08/03 23:53:38 thorpej Exp $");
 
 #include 
 #include 
@@ -111,5 +111,5 @@ pcib_callback(device_t self)
 #if NISADMA > 0
 	iba.iba_dmat = _bus_dma_tag;
 #endif
-	config_found(self, , isabusprint, CFARG_EOL);
+	config_found(self, , isabusprint, CFARGS_NONE);
 }



CVS commit: [thorpej-cfargs2] src/sys/arch/bebox/bebox

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:44:31 UTC 2021

Modified Files:
src/sys/arch/bebox/bebox [thorpej-cfargs2]: mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.34.8.1 src/sys/arch/bebox/bebox/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/bebox/bebox/mainbus.c
diff -u src/sys/arch/bebox/bebox/mainbus.c:1.34 src/sys/arch/bebox/bebox/mainbus.c:1.34.8.1
--- src/sys/arch/bebox/bebox/mainbus.c:1.34	Sat Apr 24 23:36:30 2021
+++ src/sys/arch/bebox/bebox/mainbus.c	Tue Aug  3 23:44:31 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.34 2021/04/24 23:36:30 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.34.8.1 2021/08/03 23:44:31 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.34 2021/04/24 23:36:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.34.8.1 2021/08/03 23:44:31 thorpej Exp $");
 
 #include 
 #include 
@@ -111,13 +111,11 @@ mainbus_attach(device_t parent, device_t
 	ca.ca_name = "cpu";
 	ca.ca_node = 0;
 	config_found(self, , mainbus_print,
-	CFARG_IATTR, "mainbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "mainbus"));
 	ca.ca_name = "cpu";
 	ca.ca_node = 1;
 	config_found(self, , mainbus_print,
-	CFARG_IATTR, "mainbus",
-	CFARG_EOL);
+	CFARGS(.iattr = "mainbus"));
 
 	/*
 	 * XXX Note also that the presence of a PCI bus should
@@ -162,8 +160,7 @@ mainbus_attach(device_t parent, device_t
 	mba.mba_pba.pba_bridgetag = NULL;
 	mba.mba_pba.pba_flags = PCI_FLAGS_IO_OKAY | PCI_FLAGS_MEM_OKAY;
 	config_found(self, _pba, pcibusprint,
-	CFARG_IATTR, "pcibus",
-	CFARG_EOL);
+	CFARGS(.iattr = "pcibus"));
 #endif /* NPCI */
 
 #ifdef RESIDUAL_DATA_DUMP



CVS commit: [thorpej-cfargs2] src/sys/arch/atari

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:43:45 UTC 2021

Modified Files:
src/sys/arch/atari/atari [thorpej-cfargs2]: autoconf.c device.h
src/sys/arch/atari/dev [thorpej-cfargs2]: fd.c grf.c hdfd.c ite_cc.c
ite_et.c kbd.c ncr5380.c
src/sys/arch/atari/isa [thorpej-cfargs2]: isa_machdep.c
src/sys/arch/atari/pci [thorpej-cfargs2]: pci_machdep.c
src/sys/arch/atari/vme [thorpej-cfargs2]: vme.c vme_machdep.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.70.6.1 src/sys/arch/atari/atari/autoconf.c
cvs rdiff -u -r1.7 -r1.7.6.1 src/sys/arch/atari/atari/device.h
cvs rdiff -u -r1.88 -r1.88.8.1 src/sys/arch/atari/dev/fd.c \
src/sys/arch/atari/dev/hdfd.c
cvs rdiff -u -r1.52 -r1.52.6.1 src/sys/arch/atari/dev/grf.c
cvs rdiff -u -r1.42 -r1.42.6.1 src/sys/arch/atari/dev/ite_cc.c
cvs rdiff -u -r1.33 -r1.33.6.1 src/sys/arch/atari/dev/ite_et.c
cvs rdiff -u -r1.48 -r1.48.8.1 src/sys/arch/atari/dev/kbd.c
cvs rdiff -u -r1.75 -r1.75.8.1 src/sys/arch/atari/dev/ncr5380.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/arch/atari/isa/isa_machdep.c
cvs rdiff -u -r1.60 -r1.60.8.1 src/sys/arch/atari/pci/pci_machdep.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/atari/vme/vme.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/atari/vme/vme_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/atari/atari/autoconf.c
diff -u src/sys/arch/atari/atari/autoconf.c:1.70 src/sys/arch/atari/atari/autoconf.c:1.70.6.1
--- src/sys/arch/atari/atari/autoconf.c:1.70	Tue Apr 27 14:48:29 2021
+++ src/sys/arch/atari/atari/autoconf.c	Tue Aug  3 23:43:44 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.70 2021/04/27 14:48:29 thorpej Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.70.6.1 2021/08/03 23:43:44 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1995 Leo Weppelman
@@ -30,10 +30,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define	__SUBR_AUTOCONF_PRIVATE		/* XXX atari_config_found() */
-
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.70 2021/04/27 14:48:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.70.6.1 2021/08/03 23:43:44 thorpej Exp $");
 
 #include "opt_md.h"
 
@@ -141,18 +139,15 @@ simple_devprint(void *aux, const char *p
  */
 int
 atari_config_found(cfdata_t pcfp, device_t parent, void *aux, cfprint_t pfn,
-cfarg_t tag, ...)
+const struct cfargs *cfargs)
 {
 	struct device temp;
 	cfdata_t cf;
 	const struct cfattach *ca;
 	int rv = 0;
-	va_list ap;
-
-	va_start(ap, tag);
 
 	if (atari_realconfig) {
-		rv = config_vfound(parent, aux, pfn, tag, ap) != NULL;
+		rv = config_found(parent, aux, pfn, cfargs) != NULL;
 		goto out;
 	}
 
@@ -164,7 +159,7 @@ atari_config_found(cfdata_t pcfp, device
 	parent->dv_cfdriver = config_cfdriver_lookup(pcfp->cf_name);
 	parent->dv_unit = pcfp->cf_unit;
 
-	if ((cf = config_vsearch(parent, aux, tag, ap)) != NULL) {
+	if ((cf = config_search(parent, aux, cfargs)) != NULL) {
 		ca = config_cfattach_lookup(cf->cf_name, cf->cf_atname);
 		if (ca != NULL) {
 			(*ca->ca_attach)(parent, NULL, aux);
@@ -174,7 +169,6 @@ atari_config_found(cfdata_t pcfp, device
 	}
 	parent->dv_cfdata = NULL;
  out:
-	va_end(ap);
 	return rv;
 }
 
@@ -203,9 +197,9 @@ config_console(void)
 	 * some setup for the 'grf-side'. This make it possible to use
 	 * a PCI card for both wscons and grfabs.
 	 */
-	atari_config_found(cf, NULL, __UNCONST("pcib")  , NULL, CFARG_EOL);
-	atari_config_found(cf, NULL, __UNCONST("isab")  , NULL, CFARG_EOL);
-	atari_config_found(cf, NULL, __UNCONST("grfbus"), NULL, CFARG_EOL);
+	atari_config_found(cf, NULL, __UNCONST("pcib")  , NULL, CFARGS_NONE);
+	atari_config_found(cf, NULL, __UNCONST("isab")  , NULL, CFARGS_NONE);
+	atari_config_found(cf, NULL, __UNCONST("grfbus"), NULL, CFARGS_NONE);
 }
 
 /*
@@ -325,20 +319,20 @@ mbattach(device_t parent, device_t self,
 	mb_attached = 1;
 
 	printf ("\n");
-	config_found(self, __UNCONST("clock")   , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("grfbus")  , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("kbd") , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("fdc") , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("ser") , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("zs")  , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("ncrscsi") , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("nvr") , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("lpt") , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("wdc") , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("ne")  , simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("isab"), simple_devprint, CFARG_EOL);
-	config_found(self, __UNCONST("pcib"), simple_devprint, CFARG_EOL);
-	

CVS commit: [thorpej-cfargs2] src/sys/arch/arc

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:41:24 UTC 2021

Modified Files:
src/sys/arch/arc/arc [thorpej-cfargs2]: mainbus.c
src/sys/arch/arc/dti [thorpej-cfargs2]: btl.c
src/sys/arch/arc/isa [thorpej-cfargs2]: isabus.c
src/sys/arch/arc/jazz [thorpej-cfargs2]: fd.c jazzio.c
src/sys/arch/arc/pci [thorpej-cfargs2]: necpb.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.24.8.1 src/sys/arch/arc/arc/mainbus.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/arch/arc/dti/btl.c
cvs rdiff -u -r1.52 -r1.52.8.1 src/sys/arch/arc/isa/isabus.c
cvs rdiff -u -r1.50 -r1.50.8.1 src/sys/arch/arc/jazz/fd.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/arc/jazz/jazzio.c
cvs rdiff -u -r1.47 -r1.47.8.1 src/sys/arch/arc/pci/necpb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arc/arc/mainbus.c
diff -u src/sys/arch/arc/arc/mainbus.c:1.24 src/sys/arch/arc/arc/mainbus.c:1.24.8.1
--- src/sys/arch/arc/arc/mainbus.c:1.24	Sat Apr 24 23:36:25 2021
+++ src/sys/arch/arc/arc/mainbus.c	Tue Aug  3 23:41:24 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.24 2021/04/24 23:36:25 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.24.8.1 2021/08/03 23:41:24 thorpej Exp $	*/
 /*	$OpenBSD: mainbus.c,v 1.4 1998/10/15 21:30:15 imp Exp $	*/
 /*	NetBSD: mainbus.c,v 1.3 1995/06/28 02:45:10 cgd Exp 	*/
 
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.24 2021/04/24 23:36:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.24.8.1 2021/08/03 23:41:24 thorpej Exp $");
 
 #include 
 #include 
@@ -78,13 +78,13 @@ mbattach(device_t parent, device_t self,
 	nca.ca_name = "cpu";
 	nca.ca_slot = 0;
 	nca.ca_offset = 0;
-	config_found(self, , mbprint, CFARG_EOL);
+	config_found(self, , mbprint, CFARGS_NONE);
 
 	for (i = 0; platform->mainbusdevs[i] != NULL; i++) {
 		nca.ca_name = platform->mainbusdevs[i];
 		nca.ca_slot = 0;
 		nca.ca_offset = 0;
-		config_found(self, , mbprint, CFARG_EOL);
+		config_found(self, , mbprint, CFARGS_NONE);
 	}
 }
 

Index: src/sys/arch/arc/dti/btl.c
diff -u src/sys/arch/arc/dti/btl.c:1.29 src/sys/arch/arc/dti/btl.c:1.29.8.1
--- src/sys/arch/arc/dti/btl.c:1.29	Sat Apr 24 23:36:25 2021
+++ src/sys/arch/arc/dti/btl.c	Tue Aug  3 23:41:24 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: btl.c,v 1.29 2021/04/24 23:36:25 thorpej Exp $	*/
+/*	$NetBSD: btl.c,v 1.29.8.1 2021/08/03 23:41:24 thorpej Exp $	*/
 /*	NetBSD: bt.c,v 1.10 1996/05/12 23:51:54 mycroft Exp 	*/
 
 #undef BTDIAG
@@ -51,7 +51,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: btl.c,v 1.29 2021/04/24 23:36:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btl.c,v 1.29.8.1 2021/08/03 23:41:24 thorpej Exp $");
 
 #include 
 #include 
@@ -411,7 +411,7 @@ btattach(device_t parent, device_t self,
 	/*
 	 * ask the adapter what subunits are present
 	 */
-	config_found(self, >sc_link, scsiprint, CFARG_EOL);
+	config_found(self, >sc_link, scsiprint, CFARGS_NONE);
 }
 
 integrate void

Index: src/sys/arch/arc/isa/isabus.c
diff -u src/sys/arch/arc/isa/isabus.c:1.52 src/sys/arch/arc/isa/isabus.c:1.52.8.1
--- src/sys/arch/arc/isa/isabus.c:1.52	Sat Apr 24 23:36:25 2021
+++ src/sys/arch/arc/isa/isabus.c	Tue Aug  3 23:41:24 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: isabus.c,v 1.52 2021/04/24 23:36:25 thorpej Exp $	*/
+/*	$NetBSD: isabus.c,v 1.52.8.1 2021/08/03 23:41:24 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 @@ WITH THE USE OR PERFORMANCE OF THIS SOFT
 */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.52 2021/04/24 23:36:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isabus.c,v 1.52.8.1 2021/08/03 23:41:24 thorpej Exp $");
 
 #include 
 #include 
@@ -208,8 +208,7 @@ isabrattach(struct isabr_softc *sc)
 	iba.iba_dmat = >sc_dmat;
 	iba.iba_ic = >arc_isa_cs;
 	config_found(sc->sc_dev, , isabrprint,
-	CFARG_IATTR, "isabus",
-	CFARG_EOL);
+	CFARGS(.iattr = "isabus"));
 }
 
 static int

Index: src/sys/arch/arc/jazz/fd.c
diff -u src/sys/arch/arc/jazz/fd.c:1.50 src/sys/arch/arc/jazz/fd.c:1.50.8.1
--- src/sys/arch/arc/jazz/fd.c:1.50	Sat Apr 24 23:36:25 2021
+++ src/sys/arch/arc/jazz/fd.c	Tue Aug  3 23:41:24 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fd.c,v 1.50 2021/04/24 23:36:25 thorpej Exp $	*/
+/*	$NetBSD: fd.c,v 1.50.8.1 2021/08/03 23:41:24 thorpej Exp $	*/
 /*	$OpenBSD: fd.c,v 1.6 1998/10/03 21:18:57 millert Exp $	*/
 /*	NetBSD: fd.c,v 1.78 1995/07/04 07:23:09 mycroft Exp 	*/
 
@@ -66,7 +66,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.50 2021/04/24 23:36:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.50.8.1 2021/08/03 23:41:24 thorpej Exp $");
 
 #include 
 #include 
@@ -282,7 +282,7 @@ fdcattach(struct fdc_softc *fdc)
 	for (fa.fa_drive = 0; fa.fa_drive < 2; fa.fa_drive++) {
 		fa.fa_deftype = _types[type];
 		

CVS commit: [thorpej-cfargs2] src/sys/arch/amd64/amd64

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:24:35 UTC 2021

Modified Files:
src/sys/arch/amd64/amd64 [thorpej-cfargs2]: amd64_mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/amd64/amd64/amd64_mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amd64/amd64/amd64_mainbus.c
diff -u src/sys/arch/amd64/amd64/amd64_mainbus.c:1.6 src/sys/arch/amd64/amd64/amd64_mainbus.c:1.6.8.1
--- src/sys/arch/amd64/amd64/amd64_mainbus.c:1.6	Sat Apr 24 23:36:24 2021
+++ src/sys/arch/amd64/amd64/amd64_mainbus.c	Tue Aug  3 23:24:35 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: amd64_mainbus.c,v 1.6 2021/04/24 23:36:24 thorpej Exp $	*/
+/*	$NetBSD: amd64_mainbus.c,v 1.6.8.1 2021/08/03 23:24:35 thorpej Exp $	*/
 /*	NetBSD: mainbus.c,v 1.39 2018/12/02 08:19:44 cherry Exp 	*/
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: amd64_mainbus.c,v 1.6 2021/04/24 23:36:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amd64_mainbus.c,v 1.6.8.1 2021/08/03 23:24:35 thorpej Exp $");
 
 #include 
 #include 
@@ -180,8 +180,7 @@ amd64_mainbus_attach(device_t parent, de
 		mba.mba_acpi.aa_dmat = _bus_dma_tag;
 		mba.mba_acpi.aa_dmat64 = _bus_dma64_tag;
 		config_found(self, _acpi, NULL,
-		CFARG_IATTR, "acpibus",
-		CFARG_EOL);
+		CFARGS(.iattr = "acpibus"));
 	}
 #endif
 
@@ -191,8 +190,7 @@ amd64_mainbus_attach(device_t parent, de
 	mba.mba_ipmi.iaa_memt = x86_bus_space_mem;
 	if (ipmi_probe(_ipmi))
 		config_found(self, _ipmi, NULL,
-		CFARG_IATTR, "ipmibus",
-		CFARG_EOL);
+		CFARGS(.iattr = "ipmibus"));
 #endif
 
 #if NPCI > 0
@@ -220,8 +218,7 @@ amd64_mainbus_attach(device_t parent, de
 #endif
 		if (npcibus == 0)
 			config_found(self, _pba, pcibusprint,
-			CFARG_IATTR, "pcibus",
-			CFARG_EOL);
+			CFARGS(.iattr = "pcibus"));
 
 #if NACPICA > 0
 		if (mp_verbose)
@@ -236,8 +233,7 @@ amd64_mainbus_attach(device_t parent, de
 		mba.mba_iba.iba_iot = x86_bus_space_io;
 		mba.mba_iba.iba_memt = x86_bus_space_mem;
 		config_found(self, _iba, isabusprint,
-		CFARG_IATTR, "isabus",
-		CFARG_EOL);
+		CFARGS(.iattr = "isabus"));
 	}
 #endif
 



CVS commit: [thorpej-cfargs2] src/sys/arch/algor

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:20:34 UTC 2021

Modified Files:
src/sys/arch/algor/dev [thorpej-cfargs2]: bonito_mainbus.c mainbus.c
vtpbc_mainbus.c
src/sys/arch/algor/pci [thorpej-cfargs2]: pcib.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/algor/dev/bonito_mainbus.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/arch/algor/dev/mainbus.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/algor/dev/vtpbc_mainbus.c
cvs rdiff -u -r1.27 -r1.27.8.1 src/sys/arch/algor/pci/pcib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/algor/dev/bonito_mainbus.c
diff -u src/sys/arch/algor/dev/bonito_mainbus.c:1.18 src/sys/arch/algor/dev/bonito_mainbus.c:1.18.8.1
--- src/sys/arch/algor/dev/bonito_mainbus.c:1.18	Sat Apr 24 23:36:23 2021
+++ src/sys/arch/algor/dev/bonito_mainbus.c	Tue Aug  3 23:20:34 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: bonito_mainbus.c,v 1.18 2021/04/24 23:36:23 thorpej Exp $	*/
+/*	$NetBSD: bonito_mainbus.c,v 1.18.8.1 2021/08/03 23:20:34 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: bonito_mainbus.c,v 1.18 2021/04/24 23:36:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bonito_mainbus.c,v 1.18.8.1 2021/08/03 23:20:34 thorpej Exp $");
 
 #include "opt_algor_p6032.h"
 
@@ -113,5 +113,5 @@ bonito_mainbus_attach(device_t parent, d
 	}
 #endif /* ALGOR_P6032 */
 
-	config_found(self, , pcibusprint, CFARG_EOL);
+	config_found(self, , pcibusprint, CFARGS_NONE);
 }

Index: src/sys/arch/algor/dev/mainbus.c
diff -u src/sys/arch/algor/dev/mainbus.c:1.29 src/sys/arch/algor/dev/mainbus.c:1.29.8.1
--- src/sys/arch/algor/dev/mainbus.c:1.29	Sat Apr 24 23:36:23 2021
+++ src/sys/arch/algor/dev/mainbus.c	Tue Aug  3 23:20:34 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.29 2021/04/24 23:36:23 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.29.8.1 2021/08/03 23:20:34 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.29 2021/04/24 23:36:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.29.8.1 2021/08/03 23:20:34 thorpej Exp $");
 
 #include "opt_algor_p4032.h"
 #include "opt_algor_p5064.h"
@@ -221,8 +221,7 @@ mainbus_attach(device_t parent, device_t
 		ma.ma_addr = md->md_addr;
 		ma.ma_irq = md->md_irq;
 		config_found(self, , mainbus_print,
-		CFARG_SUBMATCH, mainbus_submatch,
-		CFARG_EOL);
+		CFARGS(.submatch = mainbus_submatch));
 	}
 }
 

Index: src/sys/arch/algor/dev/vtpbc_mainbus.c
diff -u src/sys/arch/algor/dev/vtpbc_mainbus.c:1.20 src/sys/arch/algor/dev/vtpbc_mainbus.c:1.20.8.1
--- src/sys/arch/algor/dev/vtpbc_mainbus.c:1.20	Sat Apr 24 23:36:23 2021
+++ src/sys/arch/algor/dev/vtpbc_mainbus.c	Tue Aug  3 23:20:34 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: vtpbc_mainbus.c,v 1.20 2021/04/24 23:36:23 thorpej Exp $	*/
+/*	$NetBSD: vtpbc_mainbus.c,v 1.20.8.1 2021/08/03 23:20:34 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: vtpbc_mainbus.c,v 1.20 2021/04/24 23:36:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vtpbc_mainbus.c,v 1.20.8.1 2021/08/03 23:20:34 thorpej Exp $");
 
 #include "opt_algor_p4032.h"
 #include "opt_algor_p5064.h"
@@ -128,5 +128,5 @@ vtpbc_mainbus_attach(device_t parent, de
 	}
 #endif /* ALGOR_P4032 || ALGOR_P5064 */
 
-	config_found(self, , pcibusprint, CFARG_EOL);
+	config_found(self, , pcibusprint, CFARGS_NONE);
 }

Index: src/sys/arch/algor/pci/pcib.c
diff -u src/sys/arch/algor/pci/pcib.c:1.27 src/sys/arch/algor/pci/pcib.c:1.27.8.1
--- src/sys/arch/algor/pci/pcib.c:1.27	Sat Apr 24 23:36:23 2021
+++ src/sys/arch/algor/pci/pcib.c	Tue Aug  3 23:20:34 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcib.c,v 1.27 2021/04/24 23:36:23 thorpej Exp $	*/
+/*	$NetBSD: pcib.c,v 1.27.8.1 2021/08/03 23:20:34 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.27 2021/04/24 23:36:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.27.8.1 2021/08/03 23:20:34 thorpej Exp $");
 
 #include "opt_algor_p5064.h" 
 #include "opt_algor_p6032.h"
@@ -317,7 +317,7 @@ pcib_bridge_callback(device_t self)
 	iba.iba_ic->ic_attach_hook = pcib_isa_attach_hook;
 	iba.iba_ic->ic_detach_hook = pcib_isa_detach_hook;
 
-	config_found(sc->sc_dev, , isabusprint, CFARG_EOL);
+	config_found(sc->sc_dev, , isabusprint, CFARGS_NONE);
 }
 
 void



CVS commit: [thorpej-cfargs2] src/sys/arch/acorn32

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:19:53 UTC 2021

Modified Files:
src/sys/arch/acorn32/eb7500atx [thorpej-cfargs2]: rsbus.c
src/sys/arch/acorn32/mainbus [thorpej-cfargs2]: fd.c pioc.c
src/sys/arch/acorn32/podulebus [thorpej-cfargs2]: amps.c asc.c cosc.c
csc.c podulebus.c ptsc.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/acorn32/eb7500atx/rsbus.c
cvs rdiff -u -r1.63 -r1.63.8.1 src/sys/arch/acorn32/mainbus/fd.c
cvs rdiff -u -r1.19 -r1.19.8.1 src/sys/arch/acorn32/mainbus/pioc.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/acorn32/podulebus/amps.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/acorn32/podulebus/asc.c \
src/sys/arch/acorn32/podulebus/cosc.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/acorn32/podulebus/csc.c \
src/sys/arch/acorn32/podulebus/ptsc.c
cvs rdiff -u -r1.31 -r1.31.8.1 src/sys/arch/acorn32/podulebus/podulebus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/acorn32/eb7500atx/rsbus.c
diff -u src/sys/arch/acorn32/eb7500atx/rsbus.c:1.11 src/sys/arch/acorn32/eb7500atx/rsbus.c:1.11.8.1
--- src/sys/arch/acorn32/eb7500atx/rsbus.c:1.11	Sat Apr 24 23:36:23 2021
+++ src/sys/arch/acorn32/eb7500atx/rsbus.c	Tue Aug  3 23:19:52 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: rsbus.c,v 1.11 2021/04/24 23:36:23 thorpej Exp $ */
+/* $NetBSD: rsbus.c,v 1.11.8.1 2021/08/03 23:19:52 thorpej Exp $ */
 
 /*
  * Copyright (c) 2002
@@ -29,7 +29,7 @@
 
 #include 
 
-__KERNEL_RCSID(0, "$NetBSD: rsbus.c,v 1.11 2021/04/24 23:36:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rsbus.c,v 1.11.8.1 2021/08/03 23:19:52 thorpej Exp $");
 
 #include 
 #include 
@@ -71,8 +71,7 @@ rsbus_attach(device_t parent, device_t s
 	 *  Attach each devices
 	 */
 	config_search(self, NULL,
-	CFARG_SEARCH, rsbus_search,
-	CFARG_EOL);
+	CFARGS(.search = rsbus_search));
 }
 
 static int
@@ -87,7 +86,7 @@ rsbus_search(device_t parent, cfdata_t c
 	sa.sa_intr = cf->cf_loc[RSBUSCF_IRQ];
 
 	if (config_probe(parent, cf, ))
-		config_attach(parent, cf, , rsbus_print, CFARG_EOL);
+		config_attach(parent, cf, , rsbus_print, CFARGS_NONE);
 
 	return (0);
 }

Index: src/sys/arch/acorn32/mainbus/fd.c
diff -u src/sys/arch/acorn32/mainbus/fd.c:1.63 src/sys/arch/acorn32/mainbus/fd.c:1.63.8.1
--- src/sys/arch/acorn32/mainbus/fd.c:1.63	Sat Apr 24 23:36:23 2021
+++ src/sys/arch/acorn32/mainbus/fd.c	Tue Aug  3 23:19:53 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fd.c,v 1.63 2021/04/24 23:36:23 thorpej Exp $	*/
+/*	$NetBSD: fd.c,v 1.63.8.1 2021/08/03 23:19:53 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.63 2021/04/24 23:36:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.63.8.1 2021/08/03 23:19:53 thorpej Exp $");
 
 #include "opt_ddb.h"
 
@@ -431,7 +431,7 @@ fdcattach(device_t parent, device_t self
 			type, fa.fa_drive);
 		else
 			fa.fa_deftype = NULL;		/* unknown */
-		(void)config_found(self, (void *), fdprint, CFARG_EOL);
+		(void)config_found(self, (void *), fdprint, CFARGS_NONE);
 	}
 }
 

Index: src/sys/arch/acorn32/mainbus/pioc.c
diff -u src/sys/arch/acorn32/mainbus/pioc.c:1.19 src/sys/arch/acorn32/mainbus/pioc.c:1.19.8.1
--- src/sys/arch/acorn32/mainbus/pioc.c:1.19	Sat Apr 24 23:36:23 2021
+++ src/sys/arch/acorn32/mainbus/pioc.c	Tue Aug  3 23:19:53 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pioc.c,v 1.19 2021/04/24 23:36:23 thorpej Exp $	*/ 
+/*	$NetBSD: pioc.c,v 1.19.8.1 2021/08/03 23:19:53 thorpej Exp $	*/ 
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -41,7 +41,7 @@
 /*#define PIOC_DEBUG*/
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: pioc.c,v 1.19 2021/04/24 23:36:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pioc.c,v 1.19.8.1 2021/08/03 23:19:53 thorpej Exp $");
 
 #include 
 #include 
@@ -234,7 +234,7 @@ piocsearch(device_t parent, cfdata_t cf,
 
 		tryagain = 0;
 		if (config_probe(parent, cf, )) {
-			config_attach(parent, cf, , piocprint, CFARG_EOL);
+			config_attach(parent, cf, , piocprint, CFARGS_NONE);
 /*			tryagain = (cf->cf_fstate == FSTATE_STAR);*/
 		}
 	} while (tryagain);
@@ -267,7 +267,7 @@ piocsubmatch(device_t parent, cfdata_t c
 			pa->pa_irq = cf->cf_loc[PIOCCF_IRQ];
 		tryagain = 0;
 		if (config_probe(parent, cf, pa)) {
-			config_attach(parent, cf, pa, piocprint, CFARG_EOL);
+			config_attach(parent, cf, pa, piocprint, CFARGS_NONE);
 /*			tryagain = (cf->cf_fstate == FSTATE_STAR);*/
 		}
 	} while (tryagain);
@@ -383,8 +383,7 @@ piocattach(device_t parent, device_t sel
 		pa.pa_drq = -1;
 		pa.pa_irq = -1;
 		config_found(self, , piocprint,
-		CFARG_SUBMATCH, piocsubmatch,
-		CFARG_EOL);
+		CFARGS(.submatch = piocsubmatch));
 	}
 
 	/*
@@ -403,8 +402,7 @@ piocattach(device_t parent, device_t sel
 		pa.pa_drq = -1;
 		pa.pa_irq = -1;
 		

CVS commit: [thorpej-cfargs2] src/sys/arch/alpha

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:14:59 UTC 2021

Modified Files:
src/sys/arch/alpha/alpha [thorpej-cfargs2]: mainbus.c
src/sys/arch/alpha/jensenio [thorpej-cfargs2]: jensenio.c
src/sys/arch/alpha/mcbus [thorpej-cfargs2]: mcbus.c
src/sys/arch/alpha/pci [thorpej-cfargs2]: apecs.c cia.c dwlpx.c
irongate.c lca.c mcpcia.c sio.c tsc.c tsciic.c ttwoga.c
src/sys/arch/alpha/sableio [thorpej-cfargs2]: sableio.c
src/sys/arch/alpha/tc [thorpej-cfargs2]: tcasic.c
src/sys/arch/alpha/tlsb [thorpej-cfargs2]: gbus.c kftxx.c tlsb.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.36.2.1 src/sys/arch/alpha/alpha/mainbus.c
cvs rdiff -u -r1.21 -r1.21.6.1 src/sys/arch/alpha/jensenio/jensenio.c
cvs rdiff -u -r1.24 -r1.24.2.1 src/sys/arch/alpha/mcbus/mcbus.c
cvs rdiff -u -r1.58 -r1.58.2.1 src/sys/arch/alpha/pci/apecs.c
cvs rdiff -u -r1.78 -r1.78.2.1 src/sys/arch/alpha/pci/cia.c
cvs rdiff -u -r1.42 -r1.42.2.1 src/sys/arch/alpha/pci/dwlpx.c
cvs rdiff -u -r1.20 -r1.20.2.1 src/sys/arch/alpha/pci/irongate.c
cvs rdiff -u -r1.56 -r1.56.2.1 src/sys/arch/alpha/pci/lca.c
cvs rdiff -u -r1.34 -r1.34.2.1 src/sys/arch/alpha/pci/mcpcia.c
cvs rdiff -u -r1.56 -r1.56.6.1 src/sys/arch/alpha/pci/sio.c
cvs rdiff -u -r1.28 -r1.28.2.1 src/sys/arch/alpha/pci/tsc.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/alpha/pci/tsciic.c
cvs rdiff -u -r1.19 -r1.19.2.1 src/sys/arch/alpha/pci/ttwoga.c
cvs rdiff -u -r1.15 -r1.15.6.1 src/sys/arch/alpha/sableio/sableio.c
cvs rdiff -u -r1.51 -r1.51.6.1 src/sys/arch/alpha/tc/tcasic.c
cvs rdiff -u -r1.24 -r1.24.6.1 src/sys/arch/alpha/tlsb/gbus.c
cvs rdiff -u -r1.18 -r1.18.2.1 src/sys/arch/alpha/tlsb/kftxx.c
cvs rdiff -u -r1.40 -r1.40.2.1 src/sys/arch/alpha/tlsb/tlsb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/alpha/mainbus.c
diff -u src/sys/arch/alpha/alpha/mainbus.c:1.36 src/sys/arch/alpha/alpha/mainbus.c:1.36.2.1
--- src/sys/arch/alpha/alpha/mainbus.c:1.36	Wed Jul  7 03:24:26 2021
+++ src/sys/arch/alpha/alpha/mainbus.c	Tue Aug  3 23:14:58 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.36 2021/07/07 03:24:26 thorpej Exp $ */
+/* $NetBSD: mainbus.c,v 1.36.2.1 2021/08/03 23:14:58 thorpej Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.36 2021/07/07 03:24:26 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.36.2.1 2021/08/03 23:14:58 thorpej Exp $");
 
 #include 
 #include 
@@ -85,7 +85,7 @@ mbattach(device_t parent, device_t self,
 
 		ma.ma_name = "cpu";
 		ma.ma_slot = i;
-		if (config_found(self, , mbprint, CFARG_EOL) != NULL)
+		if (config_found(self, , mbprint, CFARGS_NONE) != NULL)
 			cpuattachcnt++;
 	}
 	if (ncpus != cpuattachcnt)
@@ -98,13 +98,13 @@ mbattach(device_t parent, device_t self,
 	if (alpha_is_qemu) {
 		ma.ma_name = "qemu";
 		ma.ma_slot = 0;			/* meaningless */
-		config_found(self, , mbprint, CFARG_EOL);
+		config_found(self, , mbprint, CFARGS_NONE);
 	}
 
 	if (platform.iobus != NULL) {
 		ma.ma_name = platform.iobus;
 		ma.ma_slot = 0;			/* meaningless */
-		config_found(self, , mbprint, CFARG_EOL);
+		config_found(self, , mbprint, CFARGS_NONE);
 	}
 }
 

Index: src/sys/arch/alpha/jensenio/jensenio.c
diff -u src/sys/arch/alpha/jensenio/jensenio.c:1.21 src/sys/arch/alpha/jensenio/jensenio.c:1.21.6.1
--- src/sys/arch/alpha/jensenio/jensenio.c:1.21	Fri May  7 16:58:34 2021
+++ src/sys/arch/alpha/jensenio/jensenio.c	Tue Aug  3 23:14:58 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: jensenio.c,v 1.21 2021/05/07 16:58:34 thorpej Exp $ */
+/* $NetBSD: jensenio.c,v 1.21.6.1 2021/08/03 23:14:58 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: jensenio.c,v 1.21 2021/05/07 16:58:34 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: jensenio.c,v 1.21.6.1 2021/08/03 23:14:58 thorpej Exp $");
 
 #include 
 #include 
@@ -186,10 +186,9 @@ jensenio_attach(device_t parent, device_
 
 		locs[JENSENIOCF_PORT] = jensenio_devs[i].jd_ioaddr;
 		config_found(self, , jensenio_print,
-		CFARG_SUBMATCH, config_stdsubmatch,
-		CFARG_IATTR, "jensenio",
-		CFARG_LOCATORS, locs,
-		CFARG_EOL);
+		CFARGS(.submatch = config_stdsubmatch,
+			   .iattr = "jensenio",
+			   .locators = locs));
 	}
 
 	/*
@@ -203,8 +202,7 @@ jensenio_attach(device_t parent, device_
 	ja.ja_eisa.eba_dmat = >jc_dmat_eisa;
 	ja.ja_eisa.eba_ec = >jc_ec;
 	config_found(self, _eisa, eisabusprint,
-	CFARG_IATTR, "eisabus",
-	CFARG_EOL);
+	CFARGS(.iattr = "eisabus"));
 
 	/*
 	 * Attach the ISA bus.
@@ -217,8 +215,7 @@ jensenio_attach(device_t parent, device_
 	ja.ja_isa.iba_dmat = >jc_dmat_isa;
 	

CVS commit: [thorpej-cfargs2] src/sys/arch

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 23:05:52 UTC 2021

Modified Files:
src/sys/arch/amiga/amiga [thorpej-cfargs2]: autoconf.c device.h
src/sys/arch/amiga/clockport [thorpej-cfargs2]: a1k2cp.c clockport.c
gencp.c
src/sys/arch/amiga/dev [thorpej-cfargs2]: acafh.c afsc.c ahsc.c
amidisplaycc.c atzsc.c bppcsc.c cbiiisc.c drsc.c drsupio.c empsc.c
fd.c gayle_pcmcia.c grf.c grf_cc.c grf_cl.c grf_cv.c grf_cv3d.c
grf_et.c grf_rh.c grf_rt.c grf_ul.c gtsc.c gvpbus.c gvpio.c hyper.c
ioblix_zbus.c ivsc.c kbd.c mfc.c mgnsc.c mlhsc.c mntva.c ms.c
otgsc.c p5bus.c wesc.c wstsc.c xsh.c xsurf.c z3rambd.c zbus.c
zssc.c
src/sys/arch/amiga/pci [thorpej-cfargs2]: cv3dpb.c em4k.c empb.c mppb.c
p5pb.c
src/sys/arch/amigappc/amigappc [thorpej-cfargs2]: autoconf.c mainbus.c

Log Message:
Adapt to CFARGS().


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.119.6.1 src/sys/arch/amiga/amiga/autoconf.c
cvs rdiff -u -r1.15 -r1.15.6.1 src/sys/arch/amiga/amiga/device.h
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/amiga/clockport/a1k2cp.c
cvs rdiff -u -r1.6 -r1.6.8.1 src/sys/arch/amiga/clockport/clockport.c
cvs rdiff -u -r1.2 -r1.2.8.1 src/sys/arch/amiga/clockport/gencp.c
cvs rdiff -u -r1.4 -r1.4.8.1 src/sys/arch/amiga/dev/acafh.c \
src/sys/arch/amiga/dev/bppcsc.c src/sys/arch/amiga/dev/mntva.c \
src/sys/arch/amiga/dev/xsurf.c src/sys/arch/amiga/dev/z3rambd.c
cvs rdiff -u -r1.45 -r1.45.8.1 src/sys/arch/amiga/dev/afsc.c
cvs rdiff -u -r1.39 -r1.39.8.1 src/sys/arch/amiga/dev/ahsc.c
cvs rdiff -u -r1.36 -r1.36.2.1 src/sys/arch/amiga/dev/amidisplaycc.c
cvs rdiff -u -r1.44 -r1.44.8.1 src/sys/arch/amiga/dev/atzsc.c
cvs rdiff -u -r1.22 -r1.22.8.1 src/sys/arch/amiga/dev/cbiiisc.c \
src/sys/arch/amiga/dev/drsupio.c
cvs rdiff -u -r1.34 -r1.34.8.1 src/sys/arch/amiga/dev/drsc.c \
src/sys/arch/amiga/dev/otgsc.c
cvs rdiff -u -r1.29 -r1.29.8.1 src/sys/arch/amiga/dev/empsc.c
cvs rdiff -u -r1.98 -r1.98.8.1 src/sys/arch/amiga/dev/fd.c
cvs rdiff -u -r1.33 -r1.33.8.1 src/sys/arch/amiga/dev/gayle_pcmcia.c \
src/sys/arch/amiga/dev/mlhsc.c
cvs rdiff -u -r1.66 -r1.66.6.1 src/sys/arch/amiga/dev/grf.c
cvs rdiff -u -r1.42 -r1.42.6.1 src/sys/arch/amiga/dev/grf_cc.c
cvs rdiff -u -r1.51 -r1.51.6.1 src/sys/arch/amiga/dev/grf_cl.c
cvs rdiff -u -r1.60 -r1.60.6.1 src/sys/arch/amiga/dev/grf_cv.c
cvs rdiff -u -r1.35 -r1.35.6.1 src/sys/arch/amiga/dev/grf_cv3d.c
cvs rdiff -u -r1.37 -r1.37.6.1 src/sys/arch/amiga/dev/grf_et.c
cvs rdiff -u -r1.58 -r1.58.6.1 src/sys/arch/amiga/dev/grf_rh.c
cvs rdiff -u -r1.59 -r1.59.6.1 src/sys/arch/amiga/dev/grf_rt.c
cvs rdiff -u -r1.52 -r1.52.6.1 src/sys/arch/amiga/dev/grf_ul.c
cvs rdiff -u -r1.42 -r1.42.8.1 src/sys/arch/amiga/dev/gtsc.c
cvs rdiff -u -r1.27 -r1.27.8.1 src/sys/arch/amiga/dev/gvpbus.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/amiga/dev/gvpio.c
cvs rdiff -u -r1.23 -r1.23.8.1 src/sys/arch/amiga/dev/hyper.c
cvs rdiff -u -r1.20 -r1.20.8.1 src/sys/arch/amiga/dev/ioblix_zbus.c
cvs rdiff -u -r1.38 -r1.38.8.1 src/sys/arch/amiga/dev/ivsc.c
cvs rdiff -u -r1.60 -r1.60.2.1 src/sys/arch/amiga/dev/kbd.c
cvs rdiff -u -r1.58 -r1.58.8.1 src/sys/arch/amiga/dev/mfc.c
cvs rdiff -u -r1.47 -r1.47.8.1 src/sys/arch/amiga/dev/mgnsc.c \
src/sys/arch/amiga/dev/zssc.c
cvs rdiff -u -r1.41 -r1.41.2.1 src/sys/arch/amiga/dev/ms.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/amiga/dev/p5bus.c
cvs rdiff -u -r1.41 -r1.41.8.1 src/sys/arch/amiga/dev/wesc.c
cvs rdiff -u -r1.36 -r1.36.8.1 src/sys/arch/amiga/dev/wstsc.c
cvs rdiff -u -r1.3 -r1.3.8.1 src/sys/arch/amiga/dev/xsh.c
cvs rdiff -u -r1.76 -r1.76.6.1 src/sys/arch/amiga/dev/zbus.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/amiga/pci/cv3dpb.c
cvs rdiff -u -r1.7 -r1.7.8.1 src/sys/arch/amiga/pci/em4k.c
cvs rdiff -u -r1.14 -r1.14.8.1 src/sys/arch/amiga/pci/empb.c
cvs rdiff -u -r1.11 -r1.11.8.1 src/sys/arch/amiga/pci/mppb.c
cvs rdiff -u -r1.18 -r1.18.8.1 src/sys/arch/amiga/pci/p5pb.c
cvs rdiff -u -r1.8 -r1.8.6.1 src/sys/arch/amigappc/amigappc/autoconf.c
cvs rdiff -u -r1.5 -r1.5.8.1 src/sys/arch/amigappc/amigappc/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amiga/amiga/autoconf.c
diff -u src/sys/arch/amiga/amiga/autoconf.c:1.119 src/sys/arch/amiga/amiga/autoconf.c:1.119.6.1
--- src/sys/arch/amiga/amiga/autoconf.c:1.119	Tue Apr 27 14:48:28 2021
+++ src/sys/arch/amiga/amiga/autoconf.c	Tue Aug  3 23:05:51 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.119 2021/04/27 14:48:28 thorpej Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.119.6.1 2021/08/03 23:05:51 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -30,10 +30,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define	__SUBR_AUTOCONF_PRIVATE		/* XXX amiga_config_found() */
-
 #include 
-__KERNEL_RCSID(0, "$NetBSD: 

CVS commit: [thorpej-cfargs2] src/sys

2021-08-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Aug  3 15:00:15 UTC 2021

Modified Files:
src/sys/kern [thorpej-cfargs2]: subr_autoconf.c
src/sys/sys [thorpej-cfargs2]: device.h

Log Message:
Address concerns about limited compile-time type checking with the
tag-value mechanism of specifying arguments to config_search(),
config_found(), and config_attach() by replacing the tag-value scheme
with a "struct cfargs", a pointer to which is passed to the aforementioned
functions instead.

The structure has a version field to allow for future ABI versioning
flexibility.  The external structure is canononicalized internally
before use.

To ease the initialization of this structure, use a variadic preprocessor
macro, CFARGS(), to construct an anonymous "struct cfargs" inline, the
address of which is passed to the target function.  A CFARGS_NONE macro
provides a symbolic stand-in for when the caller doesn't want to pass
arguments (currently expands to NULL and is handled during canonicalization).


To generate a diff of this commit:
cvs rdiff -u -r1.288 -r1.288.2.1 src/sys/kern/subr_autoconf.c
cvs rdiff -u -r1.171 -r1.171.2.1 src/sys/sys/device.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.288 src/sys/kern/subr_autoconf.c:1.288.2.1
--- src/sys/kern/subr_autoconf.c:1.288	Mon Jun 14 08:55:49 2021
+++ src/sys/kern/subr_autoconf.c	Tue Aug  3 15:00:15 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.288 2021/06/14 08:55:49 skrll Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.288.2.1 2021/08/03 15:00:15 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -76,10 +76,8 @@
  *	@(#)subr_autoconf.c	8.3 (Berkeley) 5/17/94
  */
 
-#define	__SUBR_AUTOCONF_PRIVATE	/* see  */
-
 #include 
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.288 2021/06/14 08:55:49 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.288.2.1 2021/08/03 15:00:15 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -168,6 +166,20 @@ struct alldevs_foray {
 	struct devicelist	af_garbage;
 };
 
+/*
+ * Internal version of the cfargs structure; all versions are
+ * canonicalized to this.
+ */
+struct cfargs_internal {
+	union {
+		cfsubmatch_t	submatch;/* submatch function (direct config) */
+		cfsearch_t	search;	 /* search function (indirect config) */
+	};
+	const char *	iattr;		/* interface attribute */
+	const int *	locators;	/* locators array */
+	devhandle_t	devhandle;	/* devhandle_t (by value) */
+};
+
 static char *number(char *, int);
 static void mapply(struct matchinfo *, cfdata_t);
 static void config_devdelete(device_t);
@@ -177,6 +189,8 @@ static void config_devlink(device_t);
 static void config_alldevs_enter(struct alldevs_foray *);
 static void config_alldevs_exit(struct alldevs_foray *);
 static void config_add_attrib_dict(device_t);
+static device_t	config_attach_internal(device_t, cfdata_t, void *,
+		cfprint_t, const struct cfargs_internal *);
 
 static void config_collect_garbage(struct devicelist *);
 static void config_dump_garbage(struct devicelist *);
@@ -1068,65 +1082,37 @@ config_probe(device_t parent, cfdata_t c
 	return config_match(parent, cf, aux);
 }
 
-static void
-config_get_cfargs(cfarg_t tag,
-		  cfsubmatch_t *fnp,		/* output */
-		  const char **ifattrp,		/* output */
-		  const int **locsp,		/* output */
-		  devhandle_t *handlep,		/* output */
-		  va_list ap)
-{
-	cfsubmatch_t fn = NULL;
-	const char *ifattr = NULL;
-	const int *locs = NULL;
-	devhandle_t handle;
-
-	devhandle_invalidate();
-
-	while (tag != CFARG_EOL) {
-		switch (tag) {
-		/*
-		 * CFARG_SUBMATCH and CFARG_SEARCH are synonyms, but this
-		 * is merely an implementation detail.  They are distinct
-		 * from the caller's point of view.
-		 */
-		case CFARG_SUBMATCH:
-		case CFARG_SEARCH:
-			/* Only allow one function to be specified. */
-			if (fn != NULL) {
-panic("%s: caller specified both "
-"SUBMATCH and SEARCH", __func__);
-			}
-			fn = va_arg(ap, cfsubmatch_t);
-			break;
-
-		case CFARG_IATTR:
-			ifattr = va_arg(ap, const char *);
-			break;
+static struct cfargs_internal *
+cfargs_canonicalize(const struct cfargs * const cfargs,
+struct cfargs_internal * const store)
+{
+	struct cfargs_internal *args = store;
 
-		case CFARG_LOCATORS:
-			locs = va_arg(ap, const int *);
-			break;
+	memset(args, 0, sizeof(*args));
 
-		case CFARG_DEVHANDLE:
-			handle = va_arg(ap, devhandle_t);
-			break;
+	/* If none specified, are all-NULL pointers are good. */
+	if (cfargs == NULL) {
+		return args;
+	}
 
-		default:
-			panic("%s: unknown cfarg tag: %d\n",
-			__func__, tag);
-		}
-		tag = va_arg(ap, cfarg_t);
+	/*
+	 * submatch and search are mutually-exclusive.
+	 */
+	if (cfargs->submatch != NULL && cfargs->search != NULL) {
+		panic("cfargs_canonicalize: submatch and search are "
+		   

CVS commit: [thorpej-i2c-spi-conf] src/sys

2021-08-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Aug  1 22:42:46 UTC 2021

Modified Files:
src/sys/altq [thorpej-i2c-spi-conf]: altq_cbq.c altq_cbq.h
altq_rmclass.c altq_rmclass.h
src/sys/arch/aarch64/aarch64 [thorpej-i2c-spi-conf]: cpu.c
src/sys/arch/aarch64/conf [thorpej-i2c-spi-conf]: files.aarch64
majors.aarch64
src/sys/arch/aarch64/include [thorpej-i2c-spi-conf]: armreg.h
src/sys/arch/acorn32/podulebus [thorpej-i2c-spi-conf]: if_ie.c
src/sys/arch/algor/conf [thorpej-i2c-spi-conf]: P4032 P5064 P6032
majors.algor
src/sys/arch/alpha/alpha [thorpej-i2c-spi-conf]: autoconf.c
core_machdep.c db_disasm.c db_instruction.h db_trace.c
dec_alphabook1.c dec_axppci_33.c dec_eb66.c dec_kn300.c
fp_complete.c genassym.cf interrupt.c lock_stubs.s locore.s
machdep.c mainbus.c patch.c pmap.c trap.c vm_machdep.c
src/sys/arch/alpha/common [thorpej-i2c-spi-conf]: bus_dma.c
sgmap_common.c sgmap_typedep.c shared_intr.c
src/sys/arch/alpha/conf [thorpej-i2c-spi-conf]: GENERIC INSTALL
majors.alpha std.alpha
src/sys/arch/alpha/include [thorpej-i2c-spi-conf]: alpha.h bus_defs.h
cpu.h fpu.h intr.h mutex.h param.h pci_machdep.h proc.h rwlock.h
src/sys/arch/alpha/isa [thorpej-i2c-spi-conf]: isapnp_machdep.c
src/sys/arch/alpha/jensenio [thorpej-i2c-spi-conf]:
jensenio_bus_intio.c jensenio_bus_io.c jensenio_bus_mem.c
jensenio_dma.c jensenio_intr.c
src/sys/arch/alpha/mcbus [thorpej-i2c-spi-conf]: mcbus.c mcmem.c
src/sys/arch/alpha/pci [thorpej-i2c-spi-conf]: apecs.c apecs_bus_io.c
apecs_bus_mem.c apecs_dma.c apecs_pci.c cia.c cia_bwx_bus_io.c
cia_bwx_bus_mem.c cia_dma.c cia_pci.c cia_swiz_bus_io.c
cia_swiz_bus_mem.c ciavar.h dwlpx.c dwlpx_bus_io.c dwlpx_bus_mem.c
dwlpx_dma.c dwlpx_pci.c irongate.c irongate_bus_io.c
irongate_bus_mem.c irongate_dma.c irongate_pci.c lca.c lca_bus_io.c
lca_bus_mem.c lca_dma.c lca_pci.c lcareg.h lcavar.h mcpcia.c
mcpcia_bus_io.c mcpcia_bus_mem.c mcpcia_dma.c mcpcia_pci.c
pci_1000.c pci_1000a.c pci_2100_a50.c pci_2100_a500.c
pci_2100_a500.h pci_550.c pci_6600.c pci_alphabook1.c
pci_axppci_33.c pci_eb164.c pci_eb64plus.c pci_eb66.c pci_kn20aa.c
pci_kn300.c pci_kn8ae.c pci_machdep.c pci_sgmap_pte32.c
pci_sgmap_pte64.c pci_up1000.c sio_pic.c sioreg.h siovar.h tsc.c
tsp_bus_io.c tsp_bus_mem.c tsp_dma.c tsp_pci.c tsreg.h tsvar.h
ttwoga.c ttwoga_bus_io.c ttwoga_bus_mem.c ttwoga_pci.c
src/sys/arch/alpha/tc [thorpej-i2c-spi-conf]: tc_bus_mem.c tc_dma.c
tc_dma_3000_500.c tc_sgmap.c
src/sys/arch/alpha/tlsb [thorpej-i2c-spi-conf]: kftxx.c tlsb.c
tlsbmem.c
src/sys/arch/amd64/conf [thorpej-i2c-spi-conf]: ALL XEN3_DOM0
majors.amd64
src/sys/arch/arm/amlogic [thorpej-i2c-spi-conf]: gxlphy.c
src/sys/arch/arm/arm [thorpej-i2c-spi-conf]: cpufunc.c
src/sys/arch/arm/arm32 [thorpej-i2c-spi-conf]: cpu.c
src/sys/arch/arm/broadcom [thorpej-i2c-spi-conf]: bcm2835_gpio.c
src/sys/arch/arm/conf [thorpej-i2c-spi-conf]: majors.arm32
src/sys/arch/arm/dts [thorpej-i2c-spi-conf]:
sun50i-a64-sopine-baseboard.dts
src/sys/arch/arm/fdt [thorpej-i2c-spi-conf]: acpi_fdt.c files.fdt
src/sys/arch/arm/imx [thorpej-i2c-spi-conf]: imx51_ccm.c imx51_ccmreg.h
src/sys/arch/arm/include [thorpej-i2c-spi-conf]: param.h
src/sys/arch/arm/ixp12x0 [thorpej-i2c-spi-conf]: ixp12x0_clk.c
src/sys/arch/arm/nvidia [thorpej-i2c-spi-conf]: tegra_cec.c
src/sys/arch/arm/omap [thorpej-i2c-spi-conf]: omap3_ehci.c
src/sys/arch/arm/rockchip [thorpej-i2c-spi-conf]: rk_anxdp.c
rk_platform.c
src/sys/arch/arm/sunxi [thorpej-i2c-spi-conf]: sunxi_platform.c
src/sys/arch/arm/xscale [thorpej-i2c-spi-conf]: ixp425_npe.c
ixp425_npereg.h
src/sys/arch/atari/pci [thorpej-i2c-spi-conf]: pci_vga.c
src/sys/arch/cats/conf [thorpej-i2c-spi-conf]: GENERIC
src/sys/arch/cesfic/cesfic [thorpej-i2c-spi-conf]: pmap_bootstrap.c
src/sys/arch/cobalt/conf [thorpej-i2c-spi-conf]: majors.cobalt
std.cobalt
src/sys/arch/cobalt/stand/boot [thorpej-i2c-spi-conf]: tlp.c
src/sys/arch/dreamcast/dev [thorpej-i2c-spi-conf]: pvr.c
src/sys/arch/emips/conf [thorpej-i2c-spi-conf]: RAMDISK
src/sys/arch/emips/ebus [thorpej-i2c-spi-conf]: ace_ebus.c flash_ebus.c
src/sys/arch/emips/stand/common [thorpej-i2c-spi-conf]: ace.c raw.c
src/sys/arch/epoc32/conf [thorpej-i2c-spi-conf]: majors.epoc32
src/sys/arch/epoc32/epoc32 [thorpej-i2c-spi-conf]: intr.c
src/sys/arch/evbarm/conf 

CVS commit: src/doc

2021-08-01 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Aug  1 21:00:41 UTC 2021

Modified Files:
src/doc: BRANCHES

Log Message:
Document thorpej-cfargs2.


To generate a diff of this commit:
cvs rdiff -u -r1.359 -r1.360 src/doc/BRANCHES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/BRANCHES
diff -u src/doc/BRANCHES:1.359 src/doc/BRANCHES:1.360
--- src/doc/BRANCHES:1.359	Sun Apr 25 18:16:25 2021
+++ src/doc/BRANCHES	Sun Aug  1 21:00:41 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: BRANCHES,v 1.359 2021/04/25 18:16:25 thorpej Exp $
+#	$NetBSD: BRANCHES,v 1.360 2021/08/01 21:00:41 thorpej Exp $
 #
 # This file contains a list of branches that exist in the NetBSD CVS
 # tree and their current state.
@@ -734,6 +734,17 @@ Maintainer:	Jason Thorpe 
+Scope:		src/sys
+Notes:
+
 Branch:		thorpej-futex
 Description:	Overhaul of futex operations to fix thread priority issues
 Status:		Active



CVS commit: src/sys/arch/alpha/alpha

2021-07-31 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 31 14:51:25 UTC 2021

Modified Files:
src/sys/arch/alpha/alpha: pmap.c

Log Message:
Fix a silly mistake (missing return) in the DEBUG case of the kernel pmap
case of pmap_extract().


To generate a diff of this commit:
cvs rdiff -u -r1.299 -r1.300 src/sys/arch/alpha/alpha/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/alpha/pmap.c
diff -u src/sys/arch/alpha/alpha/pmap.c:1.299 src/sys/arch/alpha/alpha/pmap.c:1.300
--- src/sys/arch/alpha/alpha/pmap.c:1.299	Mon Jul 19 16:31:19 2021
+++ src/sys/arch/alpha/alpha/pmap.c	Sat Jul 31 14:51:25 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.299 2021/07/19 16:31:19 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.300 2021/07/31 14:51:25 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008, 2020
@@ -135,7 +135,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.299 2021/07/19 16:31:19 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.300 2021/07/31 14:51:25 thorpej Exp $");
 
 #include 
 #include 
@@ -2587,6 +2587,7 @@ pmap_extract(pmap_t pmap, vaddr_t va, pa
 printf("failed (kernel vtophys)\n");
 			}
 		}
+		return address_is_valid;
 #else
 		return vtophys_internal(va, pap);
 #endif



CVS commit: src/sys/dev/eisa

2021-07-26 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Jul 27 01:18:04 UTC 2021

Modified Files:
src/sys/dev/eisa: ahb.c

Log Message:
- Remove unused  include.
- Rename ahb_ecb_phys_kv() to ahb_ecb_lookup().
- Remove a bogus comment.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/dev/eisa/ahb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/ahb.c
diff -u src/sys/dev/eisa/ahb.c:1.68 src/sys/dev/eisa/ahb.c:1.69
--- src/sys/dev/eisa/ahb.c:1.68	Mon Jul 26 16:45:56 2021
+++ src/sys/dev/eisa/ahb.c	Tue Jul 27 01:18:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ahb.c,v 1.68 2021/07/26 16:45:56 thorpej Exp $	*/
+/*	$NetBSD: ahb.c,v 1.69 2021/07/27 01:18:04 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.68 2021/07/26 16:45:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.69 2021/07/27 01:18:04 thorpej Exp $");
 
 #include "opt_ddb.h"
 
@@ -58,7 +58,6 @@ __KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.68
 #include 
 #include 
 #include 
-#include 
 #include 
 #include 
 
@@ -121,7 +120,7 @@ static void	ahb_send_immed(struct ahb_so
 static int	ahbintr(void *);
 static void	ahb_free_ecb(struct ahb_softc *, struct ahb_ecb *);
 static struct	ahb_ecb *ahb_get_ecb(struct ahb_softc *);
-static struct	ahb_ecb *ahb_ecb_phys_kv(struct ahb_softc *, uint32_t);
+static struct	ahb_ecb *ahb_ecb_lookup(struct ahb_softc *, uint32_t);
 static void	ahb_done(struct ahb_softc *, struct ahb_ecb *);
 static int	ahb_find(bus_space_tag_t, bus_space_handle_t,
 		struct ahb_probe_data *);
@@ -324,7 +323,7 @@ ahb_send_immed(struct ahb_softc *sc, u_i
 		Debugger();
 	}
 
-	bus_space_write_4(iot, ioh, MBOXOUT0, cmd);	/* don't know this will work */
+	bus_space_write_4(iot, ioh, MBOXOUT0, cmd);
 	bus_space_write_1(iot, ioh, G2CNTRL, G2CNTRL_SET_HOST_READY);
 	bus_space_write_1(iot, ioh, ATTN, OP_IMMED |
 		ecb->xs->xs_periph->periph_target);
@@ -374,7 +373,7 @@ ahbintr(void *arg)
 		case AHB_ECB_OK:
 		case AHB_ECB_RECOVERED:
 		case AHB_ECB_ERR:
-			ecb = ahb_ecb_phys_kv(sc, mboxval);
+			ecb = ahb_ecb_lookup(sc, mboxval);
 			if (!ecb) {
 aprint_error_dev(sc->sc_dev,
 "BAD ECB RETURNED!\n");
@@ -506,10 +505,10 @@ ahb_get_ecb(struct ahb_softc *sc)
 }
 
 /*
- * given a physical address, find the ecb that it corresponds to.
+ * Lookup and return the ECB that has the specified DMA address.
  */
 static struct ahb_ecb *
-ahb_ecb_phys_kv(struct ahb_softc *sc, uint32_t ecb_phys)
+ahb_ecb_lookup(struct ahb_softc *sc, uint32_t ecb_phys)
 {
 	int hashnum = ECB_HASH(ecb_phys);
 	struct ahb_ecb *ecb = sc->sc_ecbhash[hashnum];



CVS commit: src/sys/dev/eisa

2021-07-26 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jul 26 16:45:56 UTC 2021

Modified Files:
src/sys/dev/eisa: ahb.c ahbreg.h

Log Message:
- Type hygiene.
- Rename ahb_ecb::hashkey to ahb_ecb::ecb_dma_addr, and use that value
  rather than recomputing it all the time.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/dev/eisa/ahb.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/eisa/ahbreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/ahb.c
diff -u src/sys/dev/eisa/ahb.c:1.67 src/sys/dev/eisa/ahb.c:1.68
--- src/sys/dev/eisa/ahb.c:1.67	Sat Jul 24 15:52:16 2021
+++ src/sys/dev/eisa/ahb.c	Mon Jul 26 16:45:56 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ahb.c,v 1.67 2021/07/24 15:52:16 thorpej Exp $	*/
+/*	$NetBSD: ahb.c,v 1.68 2021/07/26 16:45:56 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.67 2021/07/24 15:52:16 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.68 2021/07/26 16:45:56 thorpej Exp $");
 
 #include "opt_ddb.h"
 
@@ -108,7 +108,7 @@ struct ahb_softc {
 /*
  * Offset of an ECB from the beginning of the ECB DMA mapping.
  */
-#define	AHB_ECB_OFF(e)	(((u_long)(e)) - ((u_long)>sc_ecbs[0]))
+#define	AHB_ECB_OFF(e)	(((uintptr_t)(e)) - ((uintptr_t)>sc_ecbs[0]))
 
 struct ahb_probe_data {
 	int sc_irq;
@@ -121,7 +121,7 @@ static void	ahb_send_immed(struct ahb_so
 static int	ahbintr(void *);
 static void	ahb_free_ecb(struct ahb_softc *, struct ahb_ecb *);
 static struct	ahb_ecb *ahb_get_ecb(struct ahb_softc *);
-static struct	ahb_ecb *ahb_ecb_phys_kv(struct ahb_softc *, physaddr);
+static struct	ahb_ecb *ahb_ecb_phys_kv(struct ahb_softc *, uint32_t);
 static void	ahb_done(struct ahb_softc *, struct ahb_ecb *);
 static int	ahb_find(bus_space_tag_t, bus_space_handle_t,
 		struct ahb_probe_data *);
@@ -294,12 +294,7 @@ ahb_send_mbox(struct ahb_softc *sc, int 
 		Debugger();
 	}
 
-	/*
-	 * don't know if this will work.
-	 * XXX WHAT DOES THIS COMMENT MEAN?!  --thorpej
-	 */
-	bus_space_write_4(iot, ioh, MBOXOUT0,
-	sc->sc_dmamap_ecb->dm_segs[0].ds_addr + AHB_ECB_OFF(ecb));
+	bus_space_write_4(iot, ioh, MBOXOUT0, ecb->ecb_dma_addr);
 	bus_space_write_1(iot, ioh, ATTN, opcode |
 		ecb->xs->xs_periph->periph_target);
 
@@ -309,7 +304,7 @@ ahb_send_mbox(struct ahb_softc *sc, int 
 }
 
 /*
- * Function to  send an immediate type command to the adapter
+ * Function to send an immediate type command to the adapter
  */
 static void
 ahb_send_immed(struct ahb_softc *sc, u_int32_t cmd, struct ahb_ecb *ecb)
@@ -454,13 +449,14 @@ ahb_init_ecb(struct ahb_softc *sc, struc
 		return (error);
 	}
 
+	ecb->ecb_dma_addr = sc->sc_dmamap_ecb->dm_segs[0].ds_addr +
+	AHB_ECB_OFF(ecb);
+
 	/*
 	 * put in the phystokv hash table
 	 * Never gets taken out.
 	 */
-	ecb->hashkey = sc->sc_dmamap_ecb->dm_segs[0].ds_addr +
-	AHB_ECB_OFF(ecb);
-	hashnum = ECB_HASH(ecb->hashkey);
+	hashnum = ECB_HASH(ecb->ecb_dma_addr);
 	ecb->nexthash = sc->sc_ecbhash[hashnum];
 	sc->sc_ecbhash[hashnum] = ecb;
 	ahb_reset_ecb(sc, ecb);
@@ -513,13 +509,13 @@ ahb_get_ecb(struct ahb_softc *sc)
  * given a physical address, find the ecb that it corresponds to.
  */
 static struct ahb_ecb *
-ahb_ecb_phys_kv(struct ahb_softc *sc, physaddr ecb_phys)
+ahb_ecb_phys_kv(struct ahb_softc *sc, uint32_t ecb_phys)
 {
 	int hashnum = ECB_HASH(ecb_phys);
 	struct ahb_ecb *ecb = sc->sc_ecbhash[hashnum];
 
 	while (ecb) {
-		if (ecb->hashkey == ecb_phys)
+		if (ecb->ecb_dma_addr == ecb_phys)
 			break;
 		ecb = ecb->nexthash;
 	}
@@ -867,11 +863,11 @@ ahb_scsipi_request(struct scsipi_channel
 		ecb->opt2 = periph->periph_lun | ECB_NRB;
 		memcpy(>scsi_cmd, xs->cmd,
 		ecb->scsi_cmd_length = xs->cmdlen);
-		ecb->sense_ptr = sc->sc_dmamap_ecb->dm_segs[0].ds_addr +
-		AHB_ECB_OFF(ecb) + offsetof(struct ahb_ecb, ecb_sense);
+		ecb->sense_ptr = ecb->ecb_dma_addr +
+		offsetof(struct ahb_ecb, ecb_sense);
 		ecb->req_sense_length = sizeof(ecb->ecb_sense);
-		ecb->status = sc->sc_dmamap_ecb->dm_segs[0].ds_addr +
-		AHB_ECB_OFF(ecb) + offsetof(struct ahb_ecb, ecb_status);
+		ecb->status = ecb->ecb_dma_addr +
+		offsetof(struct ahb_ecb, ecb_status);
 		ecb->ecb_status.host_stat = 0x00;
 		ecb->ecb_status.target_stat = 0x00;
 
@@ -927,17 +923,16 @@ ahb_scsipi_request(struct scsipi_channel
 ecb->dmamap_xfer->dm_segs[seg].ds_len;
 			}
 
-			ecb->data_addr = sc->sc_dmamap_ecb->dm_segs[0].ds_addr +
-			AHB_ECB_OFF(ecb) +
+			ecb->data_addr = ecb->ecb_dma_addr +
 			offsetof(struct ahb_ecb, ahb_dma);
 			ecb->data_length = ecb->dmamap_xfer->dm_nsegs *
 			sizeof(struct ahb_dma_seg);
 			ecb->opt1 |= ECB_S_G;
 		} else {	/* No data xfer, use non S/G values */
-			ecb->data_addr = (physaddr)0;
+			ecb->data_addr = 0;
 			ecb->data_length = 0;
 		}
-		ecb->link_addr = (physaddr)0;
+		

CVS commit: src/sys/dev/eisa

2021-07-24 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 24 22:37:56 UTC 2021

Modified Files:
src/sys/dev/eisa: eisadevs.h eisadevs_data.h

Log Message:
Regen: Add some Compaq display controllers.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/eisa/eisadevs.h
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/eisa/eisadevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/eisadevs.h
diff -u src/sys/dev/eisa/eisadevs.h:1.30 src/sys/dev/eisa/eisadevs.h:1.31
--- src/sys/dev/eisa/eisadevs.h:1.30	Sun Dec 11 12:21:20 2005
+++ src/sys/dev/eisa/eisadevs.h	Sat Jul 24 22:37:56 2021
@@ -1,10 +1,10 @@
-/*	$NetBSD: eisadevs.h,v 1.30 2005/12/11 12:21:20 christos Exp $	*/
+/*	$NetBSD: eisadevs.h,v 1.31 2021/07/24 22:37:56 thorpej Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: eisadevs,v 1.27 2005/02/27 00:26:59 perry Exp
+ *	NetBSD: eisadevs,v 1.30 2021/07/24 22:36:31 thorpej Exp
  */
 
 /*
@@ -38,6 +38,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+
 /*
  * List of known products, grouped and sorted by vendor code.
  */
@@ -65,6 +66,13 @@
 #define	EISA_PRODUCT_BUS6301	"BusLogic Bt763E Ethernet"
 
 /* Compaq products */
+#define	EISA_PRODUCT_CPQ3001	"Compaq Advanced VGA"
+#define	EISA_PRODUCT_CPQ3011	"Compaq QVision 1024/E Video Controller"
+#define	EISA_PRODUCT_CPQ3021	"Compaq QVision 1024/I Video Controller"
+#define	EISA_PRODUCT_CPQ3111	"Compaq QVision 1024/E Graphics Controller"
+#define	EISA_PRODUCT_CPQ3112	"Compaq QVision 1280/E Graphics Controller"
+#define	EISA_PRODUCT_CPQ3121	"Compaq QVision 1024/I Graphics Controller"
+#define	EISA_PRODUCT_CPQ3122	"Compaq QVision 1280/I Graphics Controller"
 #define	EISA_PRODUCT_CPQ4001	"Compaq IDA array controller"
 #define	EISA_PRODUCT_CPQ4002	"Compaq IDA-2 array controller"
 #define	EISA_PRODUCT_CPQ4010	"Compaq IEAS array controller"

Index: src/sys/dev/eisa/eisadevs_data.h
diff -u src/sys/dev/eisa/eisadevs_data.h:1.31 src/sys/dev/eisa/eisadevs_data.h:1.32
--- src/sys/dev/eisa/eisadevs_data.h:1.31	Sun Dec 11 12:21:20 2005
+++ src/sys/dev/eisa/eisadevs_data.h	Sat Jul 24 22:37:56 2021
@@ -1,10 +1,10 @@
-/*	$NetBSD: eisadevs_data.h,v 1.31 2005/12/11 12:21:20 christos Exp $	*/
+/*	$NetBSD: eisadevs_data.h,v 1.32 2021/07/24 22:37:56 thorpej Exp $	*/
 
 /*
  * THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: eisadevs,v 1.27 2005/02/27 00:26:59 perry Exp
+ *	NetBSD: eisadevs,v 1.30 2021/07/24 22:36:31 thorpej Exp
  */
 
 /*
@@ -111,6 +111,41 @@ const struct eisa_knowndev eisa_knowndev
 	},
 	{
 	0,
+	"CPQ3001",
+	EISA_PRODUCT_CPQ3001,
+	},
+	{
+	0,
+	"CPQ3011",
+	EISA_PRODUCT_CPQ3011,
+	},
+	{
+	0,
+	"CPQ3021",
+	EISA_PRODUCT_CPQ3021,
+	},
+	{
+	0,
+	"CPQ3111",
+	EISA_PRODUCT_CPQ3111,
+	},
+	{
+	0,
+	"CPQ3112",
+	EISA_PRODUCT_CPQ3112,
+	},
+	{
+	0,
+	"CPQ3121",
+	EISA_PRODUCT_CPQ3121,
+	},
+	{
+	0,
+	"CPQ3122",
+	EISA_PRODUCT_CPQ3122,
+	},
+	{
+	0,
 	"CPQ4001",
 	EISA_PRODUCT_CPQ4001,
 	},



CVS commit: src/sys/dev/eisa

2021-07-24 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 24 22:36:31 UTC 2021

Modified Files:
src/sys/dev/eisa: eisadevs

Log Message:
Add some Compaq display controllers.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/eisa/eisadevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/eisadevs
diff -u src/sys/dev/eisa/eisadevs:1.29 src/sys/dev/eisa/eisadevs:1.30
--- src/sys/dev/eisa/eisadevs:1.29	Wed Jan 21 14:18:44 2009
+++ src/sys/dev/eisa/eisadevs	Sat Jul 24 22:36:31 2021
@@ -1,4 +1,4 @@
-$NetBSD: eisadevs,v 1.29 2009/01/21 14:18:44 jnemeth Exp $
+$NetBSD: eisadevs,v 1.30 2021/07/24 22:36:31 thorpej Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -86,6 +86,13 @@ product BUS 6001	Bt760 Ethernet
 product BUS 6301	Bt763E Ethernet
 
 /* Compaq products */
+product CPQ 3001	Advanced VGA
+product CPQ 3011	QVision 1024/E Video Controller
+product CPQ 3021	QVision 1024/I Video Controller
+product CPQ 3111	QVision 1024/E Graphics Controller
+product CPQ 3112	QVision 1280/E Graphics Controller
+product CPQ 3121	QVision 1024/I Graphics Controller
+product CPQ 3122	QVision 1280/I Graphics Controller
 product	CPQ 4001	IDA array controller
 product CPQ 4002	IDA-2 array controller
 product CPQ 4010	IEAS array controller



CVS commit: src/sys/dev/eisa

2021-07-24 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 24 19:14:35 UTC 2021

Modified Files:
src/sys/dev/eisa: depca_eisa.c

Log Message:
Report our interrupt trigger type.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/eisa/depca_eisa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/depca_eisa.c
diff -u src/sys/dev/eisa/depca_eisa.c:1.16 src/sys/dev/eisa/depca_eisa.c:1.17
--- src/sys/dev/eisa/depca_eisa.c:1.16	Mon Jul 12 16:44:52 2021
+++ src/sys/dev/eisa/depca_eisa.c	Sat Jul 24 19:14:35 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: depca_eisa.c,v 1.16 2021/07/12 16:44:52 thorpej Exp $	*/
+/*	$NetBSD: depca_eisa.c,v 1.17 2021/07/24 19:14:35 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: depca_eisa.c,v 1.16 2021/07/12 16:44:52 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: depca_eisa.c,v 1.17 2021/07/24 19:14:35 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -175,9 +175,11 @@ depca_eisa_intr_establish(struct depca_s
 		aprint_error("\n");
 		return (NULL);
 	}
-	if (intrstr != NULL)
-		aprint_normal_dev(sc->sc_dev, "interrupting at %s\n",
-		intrstr);
+	if (intrstr != NULL) {
+		aprint_normal_dev(sc->sc_dev,
+		"interrupting at %s (%s trigger)\n",
+		(esc->sc_ist == IST_LEVEL) ? "level" : "edge", intrstr);
+	}
 
 	return (rv);
 }



CVS commit: src/sys/dev/eisa

2021-07-24 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 24 19:06:25 UTC 2021

Modified Files:
src/sys/dev/eisa: mlx_eisa.c

Log Message:
Noralize autoconfiguration messages, and report interrupt trigger type.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/eisa/mlx_eisa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/mlx_eisa.c
diff -u src/sys/dev/eisa/mlx_eisa.c:1.28 src/sys/dev/eisa/mlx_eisa.c:1.29
--- src/sys/dev/eisa/mlx_eisa.c:1.28	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/eisa/mlx_eisa.c	Sat Jul 24 19:06:25 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: mlx_eisa.c,v 1.28 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: mlx_eisa.c,v 1.29 2021/07/24 19:06:25 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mlx_eisa.c,v 1.28 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mlx_eisa.c,v 1.29 2021/07/24 19:06:25 thorpej Exp $");
 
 #include 
 #include 
@@ -113,16 +113,32 @@ mlx_eisa_attach(device_t parent, device_
 	struct mlx_softc *mlx;
 	bus_space_tag_t iot;
 	const char *intrstr;
-	int irq, icfg;
+	int irq, ist, icfg;
 	char intrbuf[EISA_INTRSTR_LEN];
 
 	mlx = device_private(self);
 	iot = ea->ea_iot;
 	ec = ea->ea_ec;
 
+	dce = eisa_compatible_lookup(ea, compat_data);
+	KASSERT(dce != NULL);
+
+	mlx->mlx_ci.ci_nchan = (int)dce->value;
+	mlx->mlx_ci.ci_iftype = 1;
+
+	mlx->mlx_submit = mlx_v1_submit;
+	mlx->mlx_findcomplete = mlx_v1_findcomplete;
+	mlx->mlx_intaction = mlx_v1_intaction;
+	mlx->mlx_fw_handshake = mlx_v1_fw_handshake;
+#ifdef MLX_RESET
+	mlx->mlx_reset = mlx_v1_reset;
+#endif
+
+	aprint_normal(": Mylex RAID\n");
+
 	if (bus_space_map(iot, EISA_SLOT_ADDR(ea->ea_slot) +
 	MLX_EISA_SLOT_OFFSET, MLX_EISA_IOSIZE, 0, )) {
-		aprint_error(": can't map i/o space\n");
+		aprint_error_dev(self, "can't map i/o space\n");
 		return;
 	}
 
@@ -150,42 +166,32 @@ mlx_eisa_attach(device_t parent, device_
 		irq = 15;
 		break;
 	default:
-		aprint_error(": controller on invalid IRQ\n");
+		aprint_error_dev(self,
+		"controller on invalid IRQ (icfg=0x%02x)\n", icfg);
 		return;
 	}
 
+	ist = (icfg & 0x08) != 0 ? IST_LEVEL : IST_EDGE;
+
 	if (eisa_intr_map(ec, irq, )) {
-		aprint_error(": can't map interrupt (%d)\n", irq);
+		aprint_error_dev(self, "can't map interrupt (%d)\n", irq);
 		return;
 	}
 
 	intrstr = eisa_intr_string(ec, ih, intrbuf, sizeof(intrbuf));
-	mlx->mlx_ih = eisa_intr_establish(ec, ih,
-	((icfg & 0x08) != 0 ? IST_LEVEL : IST_EDGE),
-	IPL_BIO, mlx_intr, mlx);
+	mlx->mlx_ih = eisa_intr_establish(ec, ih, ist, IPL_BIO, mlx_intr, mlx);
 	if (mlx->mlx_ih == NULL) {
-		aprint_error(": can't establish interrupt");
+		aprint_error_dev(self, "can't establish interrupt");
 		if (intrstr != NULL)
-			aprint_normal(" at %s", intrstr);
-		aprint_normal("\n");
+			aprint_error(" at %s", intrstr);
+		aprint_error("\n");
 		return;
 	}
+	if (intrstr != NULL) {
+		aprint_normal_dev(self, "interrupting at %s (%s trigger)\n",
+		ist == IST_EDGE ? "edge" : "level", intrstr);
+	}
 
-	dce = eisa_compatible_lookup(ea, compat_data);
-	KASSERT(dce != NULL);
-
-	mlx->mlx_ci.ci_nchan = (int)dce->value;
-	mlx->mlx_ci.ci_iftype = 1;
-
-	mlx->mlx_submit = mlx_v1_submit;
-	mlx->mlx_findcomplete = mlx_v1_findcomplete;
-	mlx->mlx_intaction = mlx_v1_intaction;
-	mlx->mlx_fw_handshake = mlx_v1_fw_handshake;
-#ifdef MLX_RESET
-	mlx->mlx_reset = mlx_v1_reset;
-#endif
-
-	aprint_normal(": Mylex RAID\n");
 	mlx_init(mlx, intrstr);
 }
 



CVS commit: src/sys/dev/eisa

2021-07-24 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 24 18:50:07 UTC 2021

Modified Files:
src/sys/dev/eisa: if_tlp_eisa.c

Log Message:
Report which trigger type we're using for our interrupt.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/eisa/if_tlp_eisa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/if_tlp_eisa.c
diff -u src/sys/dev/eisa/if_tlp_eisa.c:1.28 src/sys/dev/eisa/if_tlp_eisa.c:1.29
--- src/sys/dev/eisa/if_tlp_eisa.c:1.28	Wed Jan 27 04:35:15 2021
+++ src/sys/dev/eisa/if_tlp_eisa.c	Sat Jul 24 18:50:07 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tlp_eisa.c,v 1.28 2021/01/27 04:35:15 thorpej Exp $	*/
+/*	$NetBSD: if_tlp_eisa.c,v 1.29 2021/07/24 18:50:07 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_tlp_eisa.c,v 1.28 2021/01/27 04:35:15 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tlp_eisa.c,v 1.29 2021/07/24 18:50:07 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -150,7 +150,7 @@ tlp_eisa_attach(device_t parent, device_
 	const struct tulip_eisa_product *tep;
 	u_int8_t enaddr[ETHER_ADDR_LEN], tmpbuf[sizeof(testpat)];
 	u_int32_t val;
-	int irq, i, cnt;
+	int irq, ist, i, cnt;
 	char intrbuf[EISA_INTRSTR_LEN];
 
 	/*
@@ -244,6 +244,7 @@ tlp_eisa_attach(device_t parent, device_
 	 */
 	val = bus_space_read_4(iot, ioh, DE425_CFG0);
 	irq = tlp_eisa_irqs[(val >> 1) & 0x03];
+	ist = (val & 0x01) ? IST_EDGE : IST_LEVEL;
 
 	/*
 	 * Map and establish our interrupt.
@@ -253,8 +254,7 @@ tlp_eisa_attach(device_t parent, device_
 		return;
 	}
 	intrstr = eisa_intr_string(ec, ih, intrbuf, sizeof(intrbuf));
-	esc->sc_ih = eisa_intr_establish(ec, ih,
-	(val & 0x01) ? IST_EDGE : IST_LEVEL, IPL_NET, tlp_intr, sc);
+	esc->sc_ih = eisa_intr_establish(ec, ih, ist, IPL_NET, tlp_intr, sc);
 	if (esc->sc_ih == NULL) {
 		aprint_error_dev(self, "unable to establish interrupt");
 		if (intrstr != NULL)
@@ -262,8 +262,10 @@ tlp_eisa_attach(device_t parent, device_
 		aprint_error("\n");
 		return;
 	}
-	if (intrstr != NULL)
-		aprint_normal_dev(self, "interrupting at %s\n", intrstr);
+	if (intrstr != NULL) {
+		aprint_normal_dev(self, "interrupting at %s (%s trigger)\n",
+		ist == IST_EDGE ? "edge" : "level", intrstr);
+	}
 
 	/*
 	 * Finish off the attach.



CVS commit: src/sys/dev/eisa

2021-07-24 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 24 15:52:16 UTC 2021

Modified Files:
src/sys/dev/eisa: ahb.c

Log Message:
Don't blindly establish our interrupt handler as IST_LEVEL.  If the INTDEF
register has the INTHIGH bit set, the controller is going to keep the
line low when *not* asserting an interrupt, and since EISA level-tiggered
interrupts are active-low, this would result in a forever-interrupt-storm.

So, if INTHIGH is set in INTDEF, establish our interrupt handler as
IST_EDGE, which will program the EISA PIC to detect the interrupt on
the rising edge of the IRQ line.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/eisa/ahb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/ahb.c
diff -u src/sys/dev/eisa/ahb.c:1.66 src/sys/dev/eisa/ahb.c:1.67
--- src/sys/dev/eisa/ahb.c:1.66	Sat Apr 24 23:36:53 2021
+++ src/sys/dev/eisa/ahb.c	Sat Jul 24 15:52:16 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ahb.c,v 1.66 2021/04/24 23:36:53 thorpej Exp $	*/
+/*	$NetBSD: ahb.c,v 1.67 2021/07/24 15:52:16 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.66 2021/04/24 23:36:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahb.c,v 1.67 2021/07/24 15:52:16 thorpej Exp $");
 
 #include "opt_ddb.h"
 
@@ -112,6 +112,7 @@ struct ahb_softc {
 
 struct ahb_probe_data {
 	int sc_irq;
+	int sc_ist;
 	int sc_scsi_dev;
 };
 
@@ -251,7 +252,7 @@ ahbattach(device_t parent, device_t self
 		return;
 	}
 	intrstr = eisa_intr_string(ec, ih, intrbuf, sizeof(intrbuf));
-	sc->sc_ih = eisa_intr_establish(ec, ih, IST_LEVEL, IPL_BIO,
+	sc->sc_ih = eisa_intr_establish(ec, ih, apd.sc_ist, IPL_BIO,
 	ahbintr, sc);
 	if (sc->sc_ih == NULL) {
 		aprint_error_dev(sc->sc_dev, "couldn't establish interrupt");
@@ -260,8 +261,11 @@ ahbattach(device_t parent, device_t self
 		aprint_error("\n");
 		return;
 	}
-	if (intrstr != NULL)
-		aprint_normal_dev(sc->sc_dev, "interrupting at %s\n", intrstr);
+	if (intrstr != NULL) {
+		aprint_normal_dev(sc->sc_dev,
+		"interrupting at %s (%s trigger)\n", intrstr,
+		apd.sc_ist == IST_EDGE ? "edge" : "level");
+	}
 
 	/*
 	 * ask the adapter what subunits are present
@@ -609,7 +613,7 @@ ahb_find(bus_space_tag_t iot, bus_space_
 struct ahb_probe_data *sc)
 {
 	u_char intdef;
-	int i, irq, busid;
+	int i, irq, ist, busid;
 	int wait = 1000;	/* 1 sec enough? */
 
 	bus_space_write_1(iot, ioh, PORTADDR, PORTADDR_ENHANCED);
@@ -676,6 +680,21 @@ ahb_find(bus_space_tag_t iot, bus_space_
 		return EIO;
 	}
 
+	/*
+	 * On EISA, edge triggered interrupts are signalled by the rising
+	 * edge of the interrupt signal, while level tiggered interrupts
+	 * are signalled so long as the interrupt signal is driven low.
+	 *
+	 * So, if the controller is configured for active-high interrupts,
+	 * that is "edge trigger" in our parlance, while active-low would
+	 * be "level trigger".
+	 */
+	if (intdef & INTHIGH) {
+		ist = IST_EDGE;
+	} else {
+		ist = IST_LEVEL;
+	}
+
 	bus_space_write_1(iot, ioh, INTDEF, (intdef | INTEN));	/* make sure we can interrupt */
 
 	/* who are we on the scsi bus? */
@@ -684,6 +703,7 @@ ahb_find(bus_space_tag_t iot, bus_space_
 	/* if we want to return data, do so now */
 	if (sc) {
 		sc->sc_irq = irq;
+		sc->sc_ist = ist;
 		sc->sc_scsi_dev = busid;
 	}
 



CVS commit: src/sys/dev/eisa

2021-07-24 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jul 24 15:44:16 UTC 2021

Modified Files:
src/sys/dev/eisa: ahbreg.h

Log Message:
Correct the comment about the INTHIGH bit in the INTDEF register.  It
does indeed mean "IRQ signal is active-high", but "else edge" is not
correct; level-triggered EISA interrupt are active-low, and edge-triggered
EISA interrupts are rising-edge, so INTHIGH would in fact mean "edge".


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/eisa/ahbreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/eisa/ahbreg.h
diff -u src/sys/dev/eisa/ahbreg.h:1.16 src/sys/dev/eisa/ahbreg.h:1.17
--- src/sys/dev/eisa/ahbreg.h:1.16	Mon Apr 28 20:23:48 2008
+++ src/sys/dev/eisa/ahbreg.h	Sat Jul 24 15:44:16 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: ahbreg.h,v 1.16 2008/04/28 20:23:48 martin Exp $	*/
+/*	$NetBSD: ahbreg.h,v 1.17 2021/07/24 15:44:16 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@ typedef u_int32_t physlen;
 #define	INT12	0x03
 #define	INT14	0x05
 #define	INT15	0x06
-#define INTHIGH 0x08		/* int high=ACTIVE (else edge) */
+#define INTHIGH 0x08		/* interrupt signal is active-high */
 #define	INTEN	0x10
 / bit definitions for SCSIDEF /
 #define	HSCSIID	0x0F		/* our SCSI ID */



CVS commit: src/sys/arch/alpha/conf

2021-07-23 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Fri Jul 23 14:38:58 UTC 2021

Modified Files:
src/sys/arch/alpha/conf: GENERIC INSTALL

Log Message:
Use wildcard matches more consistently, and attach pci, eisa, isa, and
usb to their interface attributes, which makes for easier trimming-down
with "no" directives.


To generate a diff of this commit:
cvs rdiff -u -r1.412 -r1.413 src/sys/arch/alpha/conf/GENERIC
cvs rdiff -u -r1.117 -r1.118 src/sys/arch/alpha/conf/INSTALL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/conf/GENERIC
diff -u src/sys/arch/alpha/conf/GENERIC:1.412 src/sys/arch/alpha/conf/GENERIC:1.413
--- src/sys/arch/alpha/conf/GENERIC:1.412	Tue Jun 29 10:22:34 2021
+++ src/sys/arch/alpha/conf/GENERIC	Fri Jul 23 14:38:58 2021
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.412 2021/06/29 10:22:34 nia Exp $
+# $NetBSD: GENERIC,v 1.413 2021/07/23 14:38:58 thorpej Exp $
 #
 # This machine description file is used to generate the default NetBSD
 # kernel.
@@ -19,7 +19,7 @@ include 	"arch/alpha/conf/std.alpha"
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-ident		"GENERIC-$Revision: 1.412 $"
+ident		"GENERIC-$Revision: 1.413 $"
 
 maxusers 32
 
@@ -184,11 +184,11 @@ config		netbsd	root on ? type ?
 #config		netbsd	root on ? type nfs
 
 mainbus0 at	root
-cpu*	at	mainbus0
-qemu*	at	mainbus0
+cpu*	at	mainbus?
+qemu*	at	mainbus?
 
 # TurboLaser bus support and devices
-tlsb*	at	mainbus0
+tlsb*	at	mainbus?
 gbus*	at	tlsb? node ? offset ?
 tlsbmem* at	tlsb? node ? offset ?
 kft*	at	tlsb? node ? offset ?
@@ -197,19 +197,19 @@ kft*	at	tlsb? node ? offset ?
 mcclock* at	gbus? offset ?
 
 # MCBUS bus support
-mcbus*	at	mainbus0
+mcbus*	at	mainbus?
 mcmem*	at	mcbus? mid ?
 
 #i2c	at	mcbus?
 
 #EV6 Tsunami Core Logic
 
-tsc*	at	mainbus0
+tsc*	at	mainbus?
 tsciic* 	at	tsc?
 iic* 	at	tsciic?
 
 # DECpc AXP150 (Jensen) internal bus support
-jensenio* at	mainbus0
+jensenio* at	mainbus?
 
 com*	at	jensenio? port ?
 lpt*	at	jensenio? port ?
@@ -217,7 +217,7 @@ mcclock* at	jensenio? port ?
 pckbc*	at	jensenio? port ?
 
 # TURBOchannel host bus adapter support
-tcasic*	at	mainbus0
+tcasic*	at	mainbus?
 
 # TURBOchannel bus support
 tc*	at	tcasic?
@@ -269,18 +269,10 @@ pckbc*	at	sableio? port ?
 fdc*	at	sableio? port ?
 
 # PCI bus support
-pci*	at	apecs?
-pci*	at	cia?
-pci*	at	irongate?
-pci*	at	lca?
-pci*	at	ppb?
-pci*	at	dwlpx?
-pci*	at	mcpcia?
-pci*	at	tsp?
-pci*	at	ttwopci?
+pci*	at	pcibus?			# "pcibus" interface attribute
 
 # AGP support
-agp*	at	irongate?
+agp*	at	agpbus?			# "agpbus" interface attribute
 
 # PCI devices
 
@@ -404,11 +396,8 @@ tqphy*	at mii? phy ?			# TDK Semiconduct
 ukphy*	at mii? phy ?			# generic unknown PHYs
 
 # ISA/EISA bus support
-isa*	at	jensenio?
-eisa*	at	jensenio?
-isa*	at	pceb?
-eisa*	at	pceb?
-isa*	at	sio?
+isa*	at	isabus?			# "isabus" interface attribute
+eisa*	at	eisabus?		# "eisabus" interface attribute
 #isapnp*	at	isa?
 
 # ISA devices
@@ -550,11 +539,7 @@ iic* 	at alipm?
 slhci*	at pcmcia? function ?			# ScanLogic SL811HS
 
 # USB bus support
-usb*	at xhci?
-usb*	at ehci?
-usb*	at ohci?
-usb*	at slhci?
-usb*	at uhci?
+usb*	at usbus?			# "usbus" interface attribute
 
 # USB Hubs
 uhub*	at usb?

Index: src/sys/arch/alpha/conf/INSTALL
diff -u src/sys/arch/alpha/conf/INSTALL:1.117 src/sys/arch/alpha/conf/INSTALL:1.118
--- src/sys/arch/alpha/conf/INSTALL:1.117	Mon Sep 28 03:48:12 2020
+++ src/sys/arch/alpha/conf/INSTALL	Fri Jul 23 14:38:58 2021
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.117 2020/09/28 03:48:12 thorpej Exp $
+# $NetBSD: INSTALL,v 1.118 2021/07/23 14:38:58 thorpej Exp $
 #
 # Alpha INSTALL kernel.
 
@@ -86,11 +86,11 @@ options 	WSEMUL_VT100
 config		netbsd	root on ? type ?
 
 mainbus0 at	root
-cpu*	at	mainbus0
-qemu*	at	mainbus0
+cpu*	at	mainbus?
+qemu*	at	mainbus?
 
 # TurboLaser bus support and devices
-tlsb*	at	mainbus0
+tlsb*	at	mainbus?
 gbus*	at	tlsb? node ? offset ?
 tlsbmem* at	tlsb? node ? offset ?
 kft*	at	tlsb? node ? offset ?
@@ -99,15 +99,15 @@ kft*	at	tlsb? node ? offset ?
 mcclock* at	gbus? offset ?
 
 # MCBUS bus support
-mcbus*	at	mainbus0
+mcbus*	at	mainbus?
 mcmem*	at	mcbus? mid ?
 
 #EV6 Tsunami Core Logic
 
-tsc*	at	mainbus0
+tsc*	at	mainbus?
 
 # DECpc AXP150 (Jensen) internal bus support
-jensenio* at	mainbus0
+jensenio* at	mainbus?
 
 com*	at	jensenio? port ?
 lpt*	at	jensenio? port ?
@@ -115,7 +115,7 @@ mcclock* at	jensenio? port ?
 pckbc*	at	jensenio? port ?
 
 # TURBOchannel host bus adapter support
-tcasic*	at	mainbus0
+tcasic*	at	mainbus?
 
 # TURBOchannel bus support
 tc*	at	tcasic?
@@ -164,18 +164,10 @@ pckbc*	at	sableio? port ?
 fdc*	at	sableio? port ?
 
 # PCI bus support
-pci*	at	apecs?
-pci*	at	cia?
-pci*	at	irongate?
-pci*	at	lca?
-pci*	at	ppb?
-pci*	at	dwlpx?
-pci*	at	mcpcia?
-pci*	at	tsp?
-pci*	at	ttwopci?
+pci*	at	pcibus?			# "pcibus" interface attribute
 
 # AGP support
-agp*	at	

CVS commit: src/sys/arch/alpha/alpha

2021-07-22 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Fri Jul 23 04:19:50 UTC 2021

Modified Files:
src/sys/arch/alpha/alpha: trap.c

Log Message:
Emulate the IEEE flavors of the FIX extension instructions:
- FTOIS, FTOIT
- ITOFS, ITOFT
- SRQTS, SQRTT

Left out for now are the VAX FP flavors:
- ITOFF
- SQRTF, SQRTG


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/arch/alpha/alpha/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/alpha/trap.c
diff -u src/sys/arch/alpha/alpha/trap.c:1.137 src/sys/arch/alpha/alpha/trap.c:1.138
--- src/sys/arch/alpha/alpha/trap.c:1.137	Tue Jul 20 01:56:06 2021
+++ src/sys/arch/alpha/alpha/trap.c	Fri Jul 23 04:19:50 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.137 2021/07/20 01:56:06 thorpej Exp $ */
+/* $NetBSD: trap.c,v 1.138 2021/07/23 04:19:50 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001, 2021 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.137 2021/07/20 01:56:06 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.138 2021/07/23 04:19:50 thorpej Exp $");
 
 #include 
 #include 
@@ -383,6 +383,8 @@ trap(const u_long a0, const u_long a1, c
 ksi.ksi_code = SEGV_MAPERR;
 			else if (i == SIGILL)
 ksi.ksi_code = ILL_ILLOPC;
+			else if (i == SIGFPE)
+ksi.ksi_code = alpha_ucode_to_ksiginfo(ucode);
 			ksi.ksi_signo = i;
 			ksi.ksi_addr =
 (void *)l->l_md.md_tf->tf_regs[FRAME_PC];
@@ -961,6 +963,128 @@ unaligned_fixup(u_long va, u_long opcode
 	return (signo);
 }
 
+#define	EMUL_COUNT(ev)	atomic_inc_64(&(ev).ev_count)
+
+static struct evcnt emul_fix_ftoit =
+EVCNT_INITIALIZER(EVCNT_TYPE_TRAP, NULL, "emul fix", "ftoit");
+static struct evcnt emul_fix_ftois =
+EVCNT_INITIALIZER(EVCNT_TYPE_TRAP, NULL, "emul fix", "ftois");
+static struct evcnt emul_fix_itofs =
+EVCNT_INITIALIZER(EVCNT_TYPE_TRAP, NULL, "emul fix", "itofs");
+#if 0
+static struct evcnt emul_fix_itoff =
+EVCNT_INITIALIZER(EVCNT_TYPE_TRAP, NULL, "emul fix", "itoff");
+#endif
+static struct evcnt emul_fix_itoft =
+EVCNT_INITIALIZER(EVCNT_TYPE_TRAP, NULL, "emul fix", "itoft");
+static struct evcnt emul_fix_sqrtt =
+EVCNT_INITIALIZER(EVCNT_TYPE_TRAP, NULL, "emul fix", "sqrtt");
+static struct evcnt emul_fix_sqrts =
+EVCNT_INITIALIZER(EVCNT_TYPE_TRAP, NULL, "emul fix", "sqrts");
+
+EVCNT_ATTACH_STATIC(emul_fix_ftoit);
+EVCNT_ATTACH_STATIC(emul_fix_ftois);
+EVCNT_ATTACH_STATIC(emul_fix_itofs);
+#if 0
+EVCNT_ATTACH_STATIC(emul_fix_itoff);
+#endif
+EVCNT_ATTACH_STATIC(emul_fix_itoft);
+EVCNT_ATTACH_STATIC(emul_fix_sqrtt);
+EVCNT_ATTACH_STATIC(emul_fix_sqrts);
+
+static void
+emul_fix(struct lwp *l, const alpha_instruction *inst)
+{
+	union {
+		f_float f;
+		s_float s;
+		t_float t;
+	} fmem;
+	register_t *regptr;
+
+	KASSERT(l == curlwp);
+
+	/*
+	 * FIX instructions don't cause any exceptions, including
+	 * MM exceptions.  However, they are equivalent in result
+	 * to e.g. STL,LDF.  We will just assume that we can access
+	 * our kernel stack, and thus no exception checks are
+	 * required.
+	 */
+
+	kpreempt_disable();
+	if ((l->l_md.md_flags & MDLWP_FPACTIVE) == 0) {
+		fpu_load();
+	}
+	alpha_pal_wrfen(1);
+
+	if (inst->float_format.opcode == op_intmisc) {
+		regptr = irp(l, inst->float_format.fc);
+		switch (inst->float_format.function) {
+		case op_ftoit:
+			EMUL_COUNT(emul_fix_ftoit);
+			alpha_stt(inst->float_format.fa, );
+			if (regptr != NULL) {
+*regptr = fmem.t.i;
+			}
+			break;
+
+		case op_ftois:
+			EMUL_COUNT(emul_fix_ftois);
+			alpha_sts(inst->float_format.fa, );
+			if (regptr != NULL) {
+*regptr = (int32_t)fmem.s.i;
+			}
+			break;
+
+		default:
+			panic("%s: bad intmisc function=0x%x\n", __func__,
+			inst->float_format.function);
+		}
+	} else if (inst->float_format.opcode == op_fix_float) {
+		regptr = irp(l, inst->float_format.fa);
+		register_t regval = (regptr != NULL) ? *regptr : 0;
+
+		switch (inst->float_format.function) {
+		case op_itofs:
+			EMUL_COUNT(emul_fix_itofs);
+			fmem.s.i = (uint32_t)regval;
+			alpha_lds(inst->float_format.fc, );
+			break;
+
+		/*
+		 * The Book says about ITOFF:
+		 *
+		 *	ITOFF is equivalent to the following sequence,
+		 *	except that the word swapping that LDF normally
+		 *	performs is not performed by ITOFF.
+		 *
+		 *		STL
+		 *		LDF
+		 *
+		 * ...implying that we can't actually use LDF here ??? So
+		 * we'll skip it for now.
+		 */
+
+		case op_itoft:
+			EMUL_COUNT(emul_fix_itoft);
+			fmem.t.i = regval;
+			alpha_ldt(inst->float_format.fc, );
+			break;
+
+		default:
+			panic("%s: bad fix_float function=0x%x\n", __func__,
+			inst->float_format.function);
+		}
+	} else {
+		panic("%s: bad opcode=0x%02x", __func__,
+		inst->float_format.opcode);
+	}
+
+	alpha_pal_wrfen(0);
+	kpreempt_enable();
+}
+
 static struct evcnt 

CVS commit: src/sys/arch/alpha/alpha

2021-07-22 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Fri Jul 23 03:57:06 UTC 2021

Modified Files:
src/sys/arch/alpha/alpha: fp_complete.c

Log Message:
IEEE SQRTS / SQRTT is fix_float opclass 11, not fix_float opclass 10
(which is VAX SQRTF / SQRTG).


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/alpha/alpha/fp_complete.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/alpha/fp_complete.c
diff -u src/sys/arch/alpha/alpha/fp_complete.c:1.26 src/sys/arch/alpha/alpha/fp_complete.c:1.27
--- src/sys/arch/alpha/alpha/fp_complete.c:1.26	Fri Jul 23 03:50:32 2021
+++ src/sys/arch/alpha/alpha/fp_complete.c	Fri Jul 23 03:57:06 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: fp_complete.c,v 1.26 2021/07/23 03:50:32 thorpej Exp $ */
+/* $NetBSD: fp_complete.c,v 1.27 2021/07/23 03:57:06 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2001 Ross Harvey
@@ -37,7 +37,7 @@
 
 #include 			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: fp_complete.c,v 1.26 2021/07/23 03:50:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fp_complete.c,v 1.27 2021/07/23 03:57:06 thorpej Exp $");
 
 #include 
 #include 
@@ -588,7 +588,7 @@ alpha_fp_interpret(unsigned long pc, str
 		switch(inst.float_detail.src) {
 		case op_src_sf:
 			sts(inst.float_detail.fb, , l);
-			if (inst.float_detail.opclass == 10)
+			if (inst.float_detail.opclass == 11)
 sfc.i = float32_sqrt(sfb.i);
 			else if (inst.float_detail.opclass & ~3) {
 this_cannot_happen(1, inst.bits);
@@ -607,7 +607,7 @@ alpha_fp_interpret(unsigned long pc, str
 inst.bits, l);
 			else {
 stt(inst.float_detail.fb, , l);
-if (inst.float_detail.opclass == 10)
+if (inst.float_detail.opclass == 11)
 	tfc.i = float64_sqrt(tfb.i);
 else {
 	stt(inst.float_detail.fa, , l);



  1   2   3   4   5   6   7   8   9   10   >