Module Name:    src
Committed By:   thorpej
Date:           Fri Mar 26 02:04:02 UTC 2021

Modified Files:
        src/sys/arch/evbmips/loongson/dev [thorpej-cfargs]: pcib.c

Log Message:
pcibrescan(): config_found_ia() -> config_found().  Add a comment why we
are explicit about the interface attribute even though "pcib" itself only
carries one.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.16.1 src/sys/arch/evbmips/loongson/dev/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/evbmips/loongson/dev/pcib.c
diff -u src/sys/arch/evbmips/loongson/dev/pcib.c:1.2 src/sys/arch/evbmips/loongson/dev/pcib.c:1.2.16.1
--- src/sys/arch/evbmips/loongson/dev/pcib.c:1.2	Thu Mar  8 18:48:25 2018
+++ src/sys/arch/evbmips/loongson/dev/pcib.c	Fri Mar 26 02:04:02 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcib.c,v 1.2 2018/03/08 18:48:25 martin Exp $	*/
+/*	$NetBSD: pcib.c,v 1.2.16.1 2021/03/26 02:04:02 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.2 2018/03/08 18:48:25 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.2.16.1 2021/03/26 02:04:02 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -148,6 +148,10 @@ pcibrescan(device_t self, const char *if
 	struct pcib_softc *sc = device_private(self);
 	struct isabus_attach_args iba;
 
+	/*
+	 * pcib only carries "isabus", but this can also be used
+	 * by other drivers that carry additional interface attributes.
+	 */
 	if (ifattr_match(ifattr, "isabus") && sc->sc_isabus == NULL) {
 		/*
 		 * Attach the ISA bus behind this bridge.
@@ -162,7 +166,9 @@ pcibrescan(device_t self, const char *if
 
 		if (iba.iba_ic != NULL) 
 			sc->sc_isabus =
-			    config_found_ia(self, "isabus", &iba, isabusprint);
+			    config_found(self, &iba, isabusprint,
+					 CFARG_IATTR, "isabus",
+					 CFARG_EOL);
 	}
 	return 0;
 }

Reply via email to