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 two new capabilities(PCI_CAP_SATA and PCI_CA...
details: https://anonhg.NetBSD.org/src/rev/a3833f317e70
branches: trunk
changeset: 765812:a3833f317e70
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Jun 06 18:27:12 2011 +0000
description:
Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF).
diffstat:
sys/dev/pci/pci_subr.c | 10 ++++++++--
sys/dev/pci/pcireg.h | 4 +++-
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r 899466824579 -r a3833f317e70 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Mon Jun 06 18:01:15 2011 +0000
+++ b/sys/dev/pci/pci_subr.c Mon Jun 06 18:27:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.86 2010/12/11 18:22:24 matt Exp $ */
+/* $NetBSD: pci_subr.c,v 1.87 2011/06/06 18:27:12 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.86 2010/12/11 18:22:24 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.87 2011/06/06 18:27:12 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -1069,6 +1069,12 @@
case PCI_CAP_MSIX:
printf("MSI-X");
break;
+ case PCI_CAP_SATA:
+ printf("SATA");
+ break;
+ case PCI_CAP_PCIAF:
+ printf("Advanced Features");
+ break;
default:
printf("unknown");
}
diff -r 899466824579 -r a3833f317e70 sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h Mon Jun 06 18:01:15 2011 +0000
+++ b/sys/dev/pci/pcireg.h Mon Jun 06 18:27:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcireg.h,v 1.71 2011/04/05 23:37:46 dyoung Exp $ */
+/* $NetBSD: pcireg.h,v 1.72 2011/06/06 18:27:12 msaitoh Exp $ */
/*
* Copyright (c) 1995, 1996, 1999, 2000
@@ -466,6 +466,8 @@
#define PCI_CAP_SECURE 0x0f
#define PCI_CAP_PCIEXPRESS 0x10
#define PCI_CAP_MSIX 0x11
+#define PCI_CAP_SATA 0x12
+#define PCI_CAP_PCIAF 0x13
/*
* Vital Product Data; access via capability pointer (PCI rev 2.2).
Home |
Main Index |
Thread Index |
Old Index