Module Name: src
Committed By: msaitoh
Date: Wed Apr 17 04:36:27 UTC 2013
Modified Files:
src/sys/dev/pci: pci_subr.c pcireg.h
Log Message:
Add PCI_CAP_SUBVENDOR (= 0x0d).
To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/pci/pci_subr.c
cvs rdiff -u -r1.80 -r1.81 src/sys/dev/pci/pcireg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/pci_subr.c
diff -u src/sys/dev/pci/pci_subr.c:1.99 src/sys/dev/pci/pci_subr.c:1.100
--- src/sys/dev/pci/pci_subr.c:1.99 Tue Apr 16 15:50:58 2013
+++ src/sys/dev/pci/pci_subr.c Wed Apr 17 04:36:27 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.99 2013/04/16 15:50:58 msaitoh Exp $ */
+/* $NetBSD: pci_subr.c,v 1.100 2013/04/17 04:36:27 msaitoh Exp $ */
/*
* Copyright (c) 1997 Zubin D. Dittia. All rights reserved.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.99 2013/04/16 15:50:58 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.100 2013/04/17 04:36:27 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -1353,6 +1353,9 @@ pci_conf_print_caplist(
case PCI_CAP_HOTPLUG:
printf("Hot-Plug");
break;
+ case PCI_CAP_SUBVENDOR:
+ printf("Sub Vendor ID");
+ break;
case PCI_CAP_AGP8:
printf("AGP 8x");
break;
Index: src/sys/dev/pci/pcireg.h
diff -u src/sys/dev/pci/pcireg.h:1.80 src/sys/dev/pci/pcireg.h:1.81
--- src/sys/dev/pci/pcireg.h:1.80 Tue Apr 16 15:50:57 2013
+++ src/sys/dev/pci/pcireg.h Wed Apr 17 04:36:27 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: pcireg.h,v 1.80 2013/04/16 15:50:57 msaitoh Exp $ */
+/* $NetBSD: pcireg.h,v 1.81 2013/04/17 04:36:27 msaitoh Exp $ */
/*
* Copyright (c) 1995, 1996, 1999, 2000
@@ -463,6 +463,7 @@ typedef u_int8_t pci_revision_t;
#define PCI_CAP_DEBUGPORT 0x0a
#define PCI_CAP_CPCI_RSRCCTL 0x0b
#define PCI_CAP_HOTPLUG 0x0c
+#define PCI_CAP_SUBVENDOR 0x0d
#define PCI_CAP_AGP8 0x0e
#define PCI_CAP_SECURE 0x0f
#define PCI_CAP_PCIEXPRESS 0x10