Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Update for new pci_devinfo(9) signature.
details: https://anonhg.NetBSD.org/src/rev/ad3faa1d8487
branches: trunk
changeset: 565962:ad3faa1d8487
user: kleink <kleink%NetBSD.org@localhost>
date: Sat Apr 24 15:49:00 2004 +0000
description:
Update for new pci_devinfo(9) signature.
diffstat:
sys/arch/arm/s3c2xx0/s3c2800_pci.c | 6 +++---
sys/arch/evbarm/ifpga/ifpga.c | 6 +++---
sys/arch/evbmips/malta/pci/pchb.c | 7 ++++---
sys/arch/evbmips/malta/pci/pcib.c | 6 +++---
sys/arch/evbppc/walnut/pci/pchb.c | 6 +++---
sys/arch/hpcmips/vr/vrc4173bcu.c | 6 +++---
sys/arch/macppc/dev/ofb.c | 6 +++---
sys/arch/powerpc/ibm4xx/pci/pchb.c | 6 +++---
sys/arch/sparc/dev/ebus.c | 6 +++---
sys/arch/sparc/sparc/msiiep.c | 7 ++++---
sys/arch/sparc64/dev/ebus.c | 6 +++---
11 files changed, 35 insertions(+), 33 deletions(-)
diffs (299 lines):
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/arm/s3c2xx0/s3c2800_pci.c
--- a/sys/arch/arm/s3c2xx0/s3c2800_pci.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/arm/s3c2xx0/s3c2800_pci.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: s3c2800_pci.c,v 1.7 2003/07/15 00:24:49 lukem Exp $ */
+/* $NetBSD: s3c2800_pci.c,v 1.8 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright (c) 2002 Fujitsu Component Limited
@@ -100,7 +100,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: s3c2800_pci.c,v 1.7 2003/07/15 00:24:49 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: s3c2800_pci.c,v 1.8 2004/04/24 15:49:00 kleink Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -299,7 +299,7 @@
class_reg = bus_space_read_4(iot,
sc->sc_reg_ioh, PCI_CLASS_REG);
- pci_devinfo(id_reg, class_reg, 1, buf);
+ pci_devinfo(id_reg, class_reg, 1, buf, sizeof(buf));
printf("%s: %s\n", self->dv_xname, buf);
}
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/evbarm/ifpga/ifpga.c
--- a/sys/arch/evbarm/ifpga/ifpga.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/evbarm/ifpga/ifpga.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ifpga.c,v 1.17 2003/09/06 11:31:20 rearnsha Exp $ */
+/* $NetBSD: ifpga.c,v 1.18 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright (c) 2001 ARM Ltd
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ifpga.c,v 1.17 2003/09/06 11:31:20 rearnsha Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ifpga.c,v 1.18 2004/04/24 15:49:00 kleink Exp $");
#include <sys/types.h>
#include <sys/device.h>
@@ -303,7 +303,7 @@
class_reg = bus_space_read_4(pci_sc->sc_memt,
pci_sc->sc_reg_ioh, V360_PCI_CC_REV);
- pci_devinfo(id_reg, class_reg, 1, buf);
+ pci_devinfo(id_reg, class_reg, 1, buf, sizeof(buf));
printf("%s: %s\n", self->dv_xname, buf);
}
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/evbmips/malta/pci/pchb.c
--- a/sys/arch/evbmips/malta/pci/pchb.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/evbmips/malta/pci/pchb.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.6 2003/07/15 01:37:34 lukem Exp $ */
+/* $NetBSD: pchb.c,v 1.7 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.6 2003/07/15 01:37:34 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.7 2004/04/24 15:49:00 kleink Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -101,7 +101,8 @@
"Galileo Technology GT-64120%s System Controller",
PCI_REVISION(pa->pa_class) >= 0x10 ? "A" : "");
} else {
- pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo);
+ pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo,
+ sizeof(devinfo));
}
printf("%s: %s (rev. 0x%02x)\n", self->dv_xname, devinfo,
PCI_REVISION(pa->pa_class));
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/evbmips/malta/pci/pcib.c
--- a/sys/arch/evbmips/malta/pci/pcib.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/evbmips/malta/pci/pcib.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcib.c,v 1.8 2003/07/15 01:37:34 lukem Exp $ */
+/* $NetBSD: pcib.c,v 1.9 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.8 2003/07/15 01:37:34 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.9 2004/04/24 15:49:00 kleink Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -167,7 +167,7 @@
* Just print out a description and defer configuration
* until all PCI devices have been attached.
*/
- pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo);
+ pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, sizeof(devinfo));
printf("%s: %s, (rev . 0x%02x)\n", self->dv_xname, devinfo,
PCI_REVISION(pa->pa_class));
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/evbppc/walnut/pci/pchb.c
--- a/sys/arch/evbppc/walnut/pci/pchb.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/evbppc/walnut/pci/pchb.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.4 2003/07/25 14:34:33 scw Exp $ */
+/* $NetBSD: pchb.c,v 1.5 2004/04/24 15:49:00 kleink Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.4 2003/07/25 14:34:33 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.5 2004/04/24 15:49:00 kleink Exp $");
#include "pci.h"
#include "opt_pci.h"
@@ -153,7 +153,7 @@
* possibly chipset-specific.
*/
- pci_devinfo(id, class, 0, devinfo);
+ pci_devinfo(id, class, 0, devinfo, sizeof(devinfo));
printf("%s: %s (rev. 0x%02x)\n", self->dv_xname, devinfo,
PCI_REVISION(class));
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/hpcmips/vr/vrc4173bcu.c
--- a/sys/arch/hpcmips/vr/vrc4173bcu.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/hpcmips/vr/vrc4173bcu.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vrc4173bcu.c,v 1.14 2003/07/15 02:29:35 lukem Exp $ */
+/* $NetBSD: vrc4173bcu.c,v 1.15 2004/04/24 15:49:00 kleink Exp $ */
/*-
* Copyright (c) 2001,2002 Enami Tsugutomo.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vrc4173bcu.c,v 1.14 2003/07/15 02:29:35 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vrc4173bcu.c,v 1.15 2004/04/24 15:49:00 kleink Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -258,7 +258,7 @@
char buf[80];
#endif
- pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo);
+ pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, sizeof(devinfo));
printf(": %s (rev. 0x%02x)\n", devinfo, PCI_REVISION(pa->pa_class));
#if 0
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/macppc/dev/ofb.c
--- a/sys/arch/macppc/dev/ofb.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/macppc/dev/ofb.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofb.c,v 1.38 2003/11/13 03:09:28 chs Exp $ */
+/* $NetBSD: ofb.c,v 1.39 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofb.c,v 1.38 2003/11/13 03:09:28 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofb.c,v 1.39 2004/04/24 15:49:00 kleink Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -195,7 +195,7 @@
return;
}
- pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo);
+ pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, sizeof(devinfo));
printf(": %s\n", devinfo);
printf("%s: %d x %d, %dbpp\n", self->dv_xname,
dc->dc_ri.ri_width, dc->dc_ri.ri_height, dc->dc_ri.ri_depth);
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/powerpc/ibm4xx/pci/pchb.c
--- a/sys/arch/powerpc/ibm4xx/pci/pchb.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/powerpc/ibm4xx/pci/pchb.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.1 2003/09/23 15:30:22 shige Exp $ */
+/* $NetBSD: pchb.c,v 1.2 2004/04/24 15:49:00 kleink Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.1 2003/09/23 15:30:22 shige Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.2 2004/04/24 15:49:00 kleink Exp $");
#include "pci.h"
#include "opt_pci.h"
@@ -152,7 +152,7 @@
* possibly chipset-specific.
*/
- pci_devinfo(id, class, 0, devinfo);
+ pci_devinfo(id, class, 0, devinfo, sizeof(devinfo));
printf("%s: %s (rev. 0x%02x)\n", self->dv_xname, devinfo,
PCI_REVISION(class));
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/sparc/dev/ebus.c
--- a/sys/arch/sparc/dev/ebus.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/sparc/dev/ebus.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ebus.c,v 1.16 2004/03/17 17:04:59 pk Exp $ */
+/* $NetBSD: ebus.c,v 1.17 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.16 2004/03/17 17:04:59 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.17 2004/04/24 15:49:00 kleink Exp $");
#if defined(DEBUG) && !defined(EBUS_DEBUG)
#define EBUS_DEBUG
@@ -246,7 +246,7 @@
int node, error;
char devinfo[256];
- pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo);
+ pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, sizeof(devinfo));
printf(": %s, revision 0x%02x\n",
devinfo, PCI_REVISION(pa->pa_class));
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/sparc/sparc/msiiep.c
--- a/sys/arch/sparc/sparc/msiiep.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/sparc/sparc/msiiep.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msiiep.c,v 1.20 2004/03/17 17:04:59 pk Exp $ */
+/* $NetBSD: msiiep.c,v 1.21 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright (c) 2001 Valeriy E. Ushakov
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msiiep.c,v 1.20 2004/03/17 17:04:59 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msiiep.c,v 1.21 2004/04/24 15:49:00 kleink Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -343,7 +343,8 @@
sc->sc_bh = (bus_space_handle_t)MSIIEP_PCIC_VA;
/* print our PCI device info and bus clock frequency */
- pci_devinfo(mspcic->pcic_id, mspcic->pcic_class, 0, devinfo);
+ pci_devinfo(mspcic->pcic_id, mspcic->pcic_class, 0, devinfo,
+ sizeof(devinfo));
printf(": %s: clock = %s MHz\n", devinfo, clockfreq(sc->sc_clockfreq));
mspcic_init_maps();
diff -r 451b7a272ee3 -r ad3faa1d8487 sys/arch/sparc64/dev/ebus.c
--- a/sys/arch/sparc64/dev/ebus.c Sat Apr 24 15:46:24 2004 +0000
+++ b/sys/arch/sparc64/dev/ebus.c Sat Apr 24 15:49:00 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ebus.c,v 1.45 2004/03/21 16:29:42 pk Exp $ */
+/* $NetBSD: ebus.c,v 1.46 2004/04/24 15:49:00 kleink Exp $ */
/*
* Copyright (c) 1999, 2000, 2001 Matthew R. Green
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.45 2004/03/21 16:29:42 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ebus.c,v 1.46 2004/04/24 15:49:00 kleink Exp $");
#include "opt_ddb.h"
@@ -179,7 +179,7 @@
printf("\n");
- pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo);
+ pci_devinfo(pa->pa_id, pa->pa_class, 0, devinfo, sizeof(devinfo));
printf("%s: %s, revision 0x%02x\n", self->dv_xname, devinfo,
PCI_REVISION(pa->pa_class));
Home |
Main Index |
Thread Index |
Old Index