Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys pass string length (= boundary info) to pci_devinfo so t...
details: https://anonhg.NetBSD.org/src/rev/31ed86c41a45
branches: trunk
changeset: 565940:31ed86c41a45
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Apr 23 21:13:05 2004 +0000
description:
pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
diffstat:
sys/arch/algor/pci/pcib.c | 6 ++--
sys/arch/alpha/pci/sio.c | 6 ++--
sys/arch/amd64/pci/pchb.c | 6 ++--
sys/arch/amd64/pci/pcib.c | 6 ++--
sys/arch/bebox/pci/pchb.c | 6 ++--
sys/arch/bebox/pci/pcib.c | 6 ++--
sys/arch/cats/pci/pcib.c | 6 ++--
sys/arch/cobalt/pci/pcib.c | 6 ++--
sys/arch/i386/pci/p64h2apic.c | 6 ++--
sys/arch/i386/pci/pceb.c | 6 ++--
sys/arch/i386/pci/pchb.c | 6 ++--
sys/arch/i386/pci/pcib.c | 6 ++--
sys/arch/i386/pci/pcmb.c | 6 ++--
sys/arch/ibmnws/pci/pchb.c | 4 +-
sys/arch/ibmnws/pci/pcib.c | 6 ++--
sys/arch/macppc/pci/pchb.c | 6 ++--
sys/arch/mvmeppc/pci/pchb.c | 6 ++--
sys/arch/mvmeppc/pci/pcib.c | 6 ++--
sys/arch/netwinder/pci/pcib.c | 6 ++--
sys/arch/pmppc/pci/pchb.c | 6 ++--
sys/arch/prep/pci/gten.c | 6 ++--
sys/arch/prep/pci/pchb.c | 6 ++--
sys/arch/prep/pci/pcib.c | 6 ++--
sys/arch/sandpoint/pci/pchb.c | 6 ++--
sys/arch/sandpoint/pci/pcib.c | 6 ++--
sys/arch/x86/pci/aapic.c | 6 ++--
sys/dev/cardbus/cardbus.c | 7 +++--
sys/dev/cardbus/com_cardbus.c | 6 ++--
sys/dev/cardbus/ehci_cardbus.c | 6 ++--
sys/dev/cardbus/fwohci_cardbus.c | 6 ++--
sys/dev/cardbus/ohci_cardbus.c | 6 ++--
sys/dev/cardbus/rbus_ppb.c | 6 ++--
sys/dev/pci/autri.c | 6 ++--
sys/dev/pci/cmpci.c | 6 ++--
sys/dev/pci/cs4280.c | 6 ++--
sys/dev/pci/cs4281.c | 6 ++--
sys/dev/pci/eap.c | 6 ++--
sys/dev/pci/ehci_pci.c | 6 ++--
sys/dev/pci/emuxki.c | 6 ++--
sys/dev/pci/esa.c | 6 ++--
sys/dev/pci/esm.c | 6 ++--
sys/dev/pci/fwlynx_pci.c | 6 ++--
sys/dev/pci/fwohci_pci.c | 6 ++--
sys/dev/pci/gtp.c | 6 ++--
sys/dev/pci/if_an_pci.c | 6 ++--
sys/dev/pci/if_de.c | 52 ++++++++++++++++++++-------------------
sys/dev/pci/if_gem_pci.c | 6 ++--
sys/dev/pci/if_mtd_pci.c | 6 ++--
sys/dev/pci/if_txp.c | 6 ++--
sys/dev/pci/if_wi_pci.c | 6 ++--
sys/dev/pci/igsfb_pci.c | 6 ++--
sys/dev/pci/iha_pci.c | 6 ++--
sys/dev/pci/joy_pci.c | 6 ++--
sys/dev/pci/machfb.c | 6 ++--
sys/dev/pci/ohci_pci.c | 6 ++--
sys/dev/pci/pccbb.c | 6 ++--
sys/dev/pci/pci.c | 8 +++---
sys/dev/pci/pci_subr.c | 35 ++++++++++++++++----------
sys/dev/pci/pciide_common.c | 6 ++--
sys/dev/pci/pcivar.h | 4 +-
sys/dev/pci/pcscp.c | 6 ++--
sys/dev/pci/ppb.c | 6 ++--
sys/dev/pci/uhci_pci.c | 6 ++--
sys/dev/pci/vga_pci.c | 6 ++--
sys/dev/pci/yds.c | 6 ++--
65 files changed, 237 insertions(+), 227 deletions(-)
diffs (truncated from 1955 to 300 lines):
diff -r 81e53e785cd6 -r 31ed86c41a45 sys/arch/algor/pci/pcib.c
--- a/sys/arch/algor/pci/pcib.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/algor/pci/pcib.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcib.c,v 1.14 2003/11/02 22:03:42 he Exp $ */
+/* $NetBSD: pcib.c,v 1.15 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.14 2003/11/02 22:03:42 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.15 2004/04/23 21:13:05 itojun Exp $");
#include "opt_algor_p5064.h"
#include "opt_algor_p6032.h"
@@ -160,7 +160,7 @@
char devinfo[256];
int i;
- 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));
diff -r 81e53e785cd6 -r 31ed86c41a45 sys/arch/alpha/pci/sio.c
--- a/sys/arch/alpha/pci/sio.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/alpha/pci/sio.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sio.c,v 1.36 2003/01/01 00:39:20 thorpej Exp $ */
+/* $NetBSD: sio.c,v 1.37 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: sio.c,v 1.36 2003/01/01 00:39:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sio.c,v 1.37 2004/04/23 21:13:05 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -189,7 +189,7 @@
struct pci_attach_args *pa = aux;
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 (rev. 0x%02x)\n", devinfo,
PCI_REVISION(pa->pa_class));
diff -r 81e53e785cd6 -r 31ed86c41a45 sys/arch/amd64/pci/pchb.c
--- a/sys/arch/amd64/pci/pchb.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/amd64/pci/pchb.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.2 2003/07/14 23:32:34 lukem Exp $ */
+/* $NetBSD: pchb.c,v 1.3 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.2 2003/07/14 23:32:34 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.3 2004/04/23 21:13:05 itojun Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -114,7 +114,7 @@
* have auxiliary PCI buses.
*/
- 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));
switch (PCI_VENDOR(pa->pa_id)) {
diff -r 81e53e785cd6 -r 31ed86c41a45 sys/arch/amd64/pci/pcib.c
--- a/sys/arch/amd64/pci/pcib.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/amd64/pci/pcib.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcib.c,v 1.2 2003/07/14 23:32:34 lukem Exp $ */
+/* $NetBSD: pcib.c,v 1.3 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.2 2003/07/14 23:32:34 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.3 2004/04/23 21:13:05 itojun Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -184,7 +184,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 81e53e785cd6 -r 31ed86c41a45 sys/arch/bebox/pci/pchb.c
--- a/sys/arch/bebox/pci/pchb.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/bebox/pci/pchb.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.6 2003/07/15 01:26:32 lukem Exp $ */
+/* $NetBSD: pchb.c,v 1.7 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.6 2003/07/15 01:26:32 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.7 2004/04/23 21:13:05 itojun Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -96,7 +96,7 @@
* possibly chipset-specific.
*/
- 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 81e53e785cd6 -r 31ed86c41a45 sys/arch/bebox/pci/pcib.c
--- a/sys/arch/bebox/pci/pcib.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/bebox/pci/pcib.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcib.c,v 1.15 2003/07/15 01:26:33 lukem Exp $ */
+/* $NetBSD: pcib.c,v 1.16 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.15 2003/07/15 01:26:33 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.16 2004/04/23 21:13:05 itojun Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -101,7 +101,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 81e53e785cd6 -r 31ed86c41a45 sys/arch/cats/pci/pcib.c
--- a/sys/arch/cats/pci/pcib.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/cats/pci/pcib.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcib.c,v 1.5 2003/07/15 01:29:19 lukem Exp $ */
+/* $NetBSD: pcib.c,v 1.6 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.5 2003/07/15 01:29:19 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.6 2004/04/23 21:13:05 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -102,7 +102,7 @@
* Just print out a description and set the ISA bus
* callback.
*/
- 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 81e53e785cd6 -r 31ed86c41a45 sys/arch/cobalt/pci/pcib.c
--- a/sys/arch/cobalt/pci/pcib.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/cobalt/pci/pcib.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcib.c,v 1.9 2003/09/12 17:55:53 tsutsui Exp $ */
+/* $NetBSD: pcib.c,v 1.10 2004/04/23 21:13:05 itojun Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.9 2003/09/12 17:55:53 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.10 2004/04/23 21:13:05 itojun Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -78,7 +78,7 @@
struct pci_attach_args *pa = aux;
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("\n%s: %s, rev %d\n", self->dv_xname, devinfo,
PCI_REVISION(pa->pa_class));
diff -r 81e53e785cd6 -r 31ed86c41a45 sys/arch/i386/pci/p64h2apic.c
--- a/sys/arch/i386/pci/p64h2apic.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/i386/pci/p64h2apic.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: p64h2apic.c,v 1.5 2003/07/14 22:13:10 lukem Exp $ */
+/* $NetBSD: p64h2apic.c,v 1.6 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: p64h2apic.c,v 1.5 2003/07/14 22:13:10 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: p64h2apic.c,v 1.6 2004/04/23 21:13:05 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -94,7 +94,7 @@
struct pci_attach_args *pa = aux;
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 (rev. 0x%02x)\n", devinfo, PCI_REVISION(pa->pa_class));
sc->sc_tag = pa->pa_tag;
diff -r 81e53e785cd6 -r 31ed86c41a45 sys/arch/i386/pci/pceb.c
--- a/sys/arch/i386/pci/pceb.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/i386/pci/pceb.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pceb.c,v 1.12 2003/02/26 22:23:07 fvdl Exp $ */
+/* $NetBSD: pceb.c,v 1.13 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.12 2003/02/26 22:23:07 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pceb.c,v 1.13 2004/04/23 21:13:05 itojun Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -118,7 +118,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 81e53e785cd6 -r 31ed86c41a45 sys/arch/i386/pci/pchb.c
--- a/sys/arch/i386/pci/pchb.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/i386/pci/pchb.c Fri Apr 23 21:13:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.49 2004/02/27 09:01:26 jdolecek Exp $ */
+/* $NetBSD: pchb.c,v 1.50 2004/04/23 21:13:05 itojun Exp $ */
/*-
* Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.49 2004/02/27 09:01:26 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.50 2004/04/23 21:13:05 itojun Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -125,7 +125,7 @@
* have auxiliary PCI buses.
*/
- 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));
switch (PCI_VENDOR(pa->pa_id)) {
diff -r 81e53e785cd6 -r 31ed86c41a45 sys/arch/i386/pci/pcib.c
--- a/sys/arch/i386/pci/pcib.c Fri Apr 23 21:04:25 2004 +0000
+++ b/sys/arch/i386/pci/pcib.c Fri Apr 23 21:13:05 2004 +0000
Home |
Main Index |
Thread Index |
Old Index