Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/walnut/pci Use the correct <foo>_attach_args; spott...



details:   https://anonhg.NetBSD.org/src/rev/2c0aded1e6a2
branches:  trunk
changeset: 535263:2c0aded1e6a2
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Aug 13 05:23:33 2002 +0000

description:
Use the correct <foo>_attach_args; spotted by Jason Thorpe.

diffstat:

 sys/arch/walnut/pci/pchb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 33faede5a32e -r 2c0aded1e6a2 sys/arch/walnut/pci/pchb.c
--- a/sys/arch/walnut/pci/pchb.c        Tue Aug 13 05:08:19 2002 +0000
+++ b/sys/arch/walnut/pci/pchb.c        Tue Aug 13 05:23:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pchb.c,v 1.4 2002/08/12 02:06:23 simonb Exp $  */
+/*     $NetBSD: pchb.c,v 1.5 2002/08/13 05:23:33 simonb Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -46,10 +46,10 @@
 #include <sys/malloc.h>
 
 #define _GALAXY_BUS_DMA_PRIVATE
-#include <walnut/dev/pbusvar.h>
 #include <machine/walnut.h>
 
 #include <powerpc/ibm4xx/ibm405gp.h>
+#include <powerpc/ibm4xx/dev/plbvar.h>
 
 #include <dev/pci/pcivar.h>
 #include <dev/pci/pcireg.h>
@@ -69,14 +69,14 @@
 static int
 pchbmatch(struct device *parent, struct cfdata *cf, void *aux)
 {
-       struct pbus_attach_args *paa = aux;
+       struct plb_attach_args *paa = aux;
        /* XXX chipset tag unused by walnut, so just pass 0 */
        pci_chipset_tag_t pc = 0;
        pcitag_t tag; 
        int class, id;
 
        /* match only pchb devices */
-       if (strcmp(paa->pb_name, cf->cf_driver->cd_name) != 0)
+       if (strcmp(paa->plb_name, cf->cf_driver->cd_name) != 0)
                return 0;
 
        pci_machdep_init();



Home | Main Index | Thread Index | Old Index