Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF).

This commit is contained in:
msaitoh 2011-06-06 18:27:12 +00:00
parent 1480720bc7
commit 57ac6d0bbe
2 changed files with 11 additions and 3 deletions

View File

@ -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 @@ pci_conf_print_caplist(
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");
}

View File

@ -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 @@ typedef u_int8_t pci_revision_t;
#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).