Module Name: src
Committed By: msaitoh
Date: Wed Oct 19 04:23:37 UTC 2016
Modified Files:
src/sys/dev/pci: pci_subr.c pcireg.h
Log Message:
Add VF Resizable BARs ECN.
To generate a diff of this commit:
cvs rdiff -u -r1.150 -r1.151 src/sys/dev/pci/pci_subr.c
cvs rdiff -u -r1.114 -r1.115 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.150 src/sys/dev/pci/pci_subr.c:1.151
--- src/sys/dev/pci/pci_subr.c:1.150 Mon Aug 22 08:35:42 2016
+++ src/sys/dev/pci/pci_subr.c Wed Oct 19 04:23:37 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.150 2016/08/22 08:35:42 msaitoh Exp $ */
+/* $NetBSD: pci_subr.c,v 1.151 2016/10/19 04:23:37 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.150 2016/08/22 08:35:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.151 2016/10/19 04:23:37 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -3346,6 +3346,7 @@ pci_conf_print_ptm_cap(const pcireg_t *r
/* XXX pci_conf_print_frsq_cap */
/* XXX pci_conf_print_rtr_cap */
/* XXX pci_conf_print_desigvndsp_cap */
+/* XXX pci_conf_print_vf_resiz_bar_cap */
#undef MS
#undef SM
@@ -3428,6 +3429,8 @@ static struct {
NULL },
{ PCI_EXTCAP_DESIGVNDSP, "Designated Vendor-Specific",
NULL },
+ { PCI_EXTCAP_VF_RESIZ_BAR, "VF Resizable BARs",
+ NULL },
};
static int
Index: src/sys/dev/pci/pcireg.h
diff -u src/sys/dev/pci/pcireg.h:1.114 src/sys/dev/pci/pcireg.h:1.115
--- src/sys/dev/pci/pcireg.h:1.114 Wed Aug 17 06:32:01 2016
+++ src/sys/dev/pci/pcireg.h Wed Oct 19 04:23:37 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: pcireg.h,v 1.114 2016/08/17 06:32:01 msaitoh Exp $ */
+/* $NetBSD: pcireg.h,v 1.115 2016/10/19 04:23:37 msaitoh Exp $ */
/*
* Copyright (c) 1995, 1996, 1999, 2000
@@ -1405,6 +1405,7 @@ struct pci_rom {
#define PCI_EXTCAP_FRSQ 0x0021 /* Function Reading Status Queueing */
#define PCI_EXTCAP_RTR 0x0022 /* Readiness Time Reporting */
#define PCI_EXTCAP_DESIGVNDSP 0x0023 /* Designated Vendor-Specific */
+#define PCI_EXTCAP_VF_RESIZ_BAR 0x0024 /* VF Resizable BAR */
/*
* Extended capability ID: 0x0001
@@ -1937,4 +1938,9 @@ struct pci_rom {
* Designated Vendor-Specific
*/
+/*
+ * Extended capability ID: 0x0024
+ * VF Resizable BAR
+ */
+
#endif /* _DEV_PCI_PCIREG_H_ */