Module Name: src Committed By: msaitoh Date: Mon Jun 6 18:27:12 UTC 2011
Modified Files: src/sys/dev/pci: pci_subr.c pcireg.h Log Message: Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF). To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 src/sys/dev/pci/pci_subr.c cvs rdiff -u -r1.71 -r1.72 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.86 src/sys/dev/pci/pci_subr.c:1.87 --- src/sys/dev/pci/pci_subr.c:1.86 Sat Dec 11 18:22:24 2010 +++ src/sys/dev/pci/pci_subr.c Mon Jun 6 18:27:12 2011 @@ -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"); } Index: src/sys/dev/pci/pcireg.h diff -u src/sys/dev/pci/pcireg.h:1.71 src/sys/dev/pci/pcireg.h:1.72 --- src/sys/dev/pci/pcireg.h:1.71 Tue Apr 5 23:37:46 2011 +++ src/sys/dev/pci/pcireg.h Mon Jun 6 18:27:12 2011 @@ -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).