Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej-cfargs]: src/sys Temporarily continue to provide config_found_ia().



details:   https://anonhg.NetBSD.org/src/rev/f29ad6c3d1af
branches:  thorpej-cfargs
changeset: 953863:f29ad6c3d1af
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Mar 22 17:21:09 2021 +0000

description:
Temporarily continue to provide config_found_ia().

diffstat:

 sys/kern/subr_autoconf.c |  11 ++++++-----
 sys/sys/device.h         |   3 ++-
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r df24e3e535e0 -r f29ad6c3d1af sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Mon Mar 22 16:47:13 2021 +0000
+++ b/sys/kern/subr_autoconf.c  Mon Mar 22 17:21:09 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.277.2.4 2021/03/22 02:01:02 thorpej Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.277.2.5 2021/03/22 17:21:09 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.277.2.4 2021/03/22 02:01:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.277.2.5 2021/03/22 17:21:09 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1219,15 +1219,16 @@
        return NULL;
 }
 
-#if 0
+/* XXX GC */
 device_t
 config_found_ia(device_t parent, const char *ifattr, void *aux,
     cfprint_t print)
 {
 
-       return config_found_sm_loc(parent, ifattr, NULL, aux, print, NULL);
+       return config_found(parent, aux, print,
+           CFARG_IATTR, ifattr,
+           CFARG_EOL);
 }
-#endif
 
 device_t
 config_found(device_t parent, void *aux, cfprint_t print, cfarg_t tag, ...)
diff -r df24e3e535e0 -r f29ad6c3d1af sys/sys/device.h
--- a/sys/sys/device.h  Mon Mar 22 16:47:13 2021 +0000
+++ b/sys/sys/device.h  Mon Mar 22 17:21:09 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.167.2.2 2021/03/21 21:09:16 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.167.2.3 2021/03/22 17:21:09 thorpej Exp $ */
 
 /*
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -582,6 +582,7 @@
 cfdata_t config_search(device_t, void *, cfarg_t, ...);
 cfdata_t config_rootsearch(cfsubmatch_t, const char *, void *);
 device_t config_found(device_t, void *, cfprint_t, cfarg_t, ...);
+device_t config_found_ia(device_t, const char *, void *, cfprint_t); /* XXX */
 device_t config_rootfound(const char *, void *);
 device_t config_attach_loc(device_t, cfdata_t, const int *, void *, cfprint_t);
 device_t config_attach(device_t, cfdata_t, void *, cfprint_t);



Home | Main Index | Thread Index | Old Index