aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorSlava Shwartsman <slavash@FreeBSD.org>2018-09-26 13:16:55 +0000
committerSlava Shwartsman <slavash@FreeBSD.org>2018-09-26 13:16:55 +0000
commita4ea412d4ff4de61f72d3b4b8b4cefa62b991f53 (patch)
treeec14ab8117ee9ef24683dd1a2fc276a7d5819279 /sys/dev
parent0277ec9c43aef2eeb5af9f1f8814001bb512ea0e (diff)
downloadsrc-a4ea412d4ff4de61f72d3b4b8b4cefa62b991f53.tar.gz
src-a4ea412d4ff4de61f72d3b4b8b4cefa62b991f53.zip
Add PCIV_INVALID definition
From PCI Spec rev 2.2, 6.2.1. Device Identification: Vendor ID This field identifies the manufacturer of the device. Valid vendor identifiers are allocated by the PCI SIG to ensure uniqueness. 0FFFFh is an invalid value for Vendor ID. MFC after: 3 days Approved by: re (Glen), hselasky (mentor), kib (mentor) Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=338942
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pcireg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 00589c4b83da..edec95c8e67f 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -122,6 +122,9 @@
#define PCIM_MFDEV 0x80
#define PCIR_BIST 0x0f
+/* PCI Spec rev 2.2: 0FFFFh is an invalid value for Vendor ID. */
+#define PCIV_INVALID 0xffff
+
/* Capability Register Offsets */
#define PCICAP_ID 0x0