Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add PCI_CAP_SUBVENDOR (= 0x0d).



details:   https://anonhg.NetBSD.org/src/rev/9a62ba5c26b1
branches:  trunk
changeset: 786144:9a62ba5c26b1
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Apr 17 04:36:27 2013 +0000

description:
Add PCI_CAP_SUBVENDOR (= 0x0d).

diffstat:

 sys/dev/pci/pci_subr.c |  7 +++++--
 sys/dev/pci/pcireg.h   |  3 ++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 9e63a2a1aa81 -r 9a62ba5c26b1 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c    Wed Apr 17 01:36:41 2013 +0000
+++ b/sys/dev/pci/pci_subr.c    Wed Apr 17 04:36:27 2013 +0000
@@ -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 @@
                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;
diff -r 9e63a2a1aa81 -r 9a62ba5c26b1 sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h      Wed Apr 17 01:36:41 2013 +0000
+++ b/sys/dev/pci/pcireg.h      Wed Apr 17 04:36:27 2013 +0000
@@ -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 @@
 #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



Home | Main Index | Thread Index | Old Index