svn commit: r188639 - head/sys/dev/pci

Alexander Motin mav at FreeBSD.org
Sun Feb 15 01:49:22 PST 2009


Author: mav
Date: Sun Feb 15 09:49:21 2009
New Revision: 188639
URL: http://svn.freebsd.org/changeset/base/188639

Log:
  Add SATA and PCI Advanced Features capabilities constants.

Modified:
  head/sys/dev/pci/pcireg.h

Modified: head/sys/dev/pci/pcireg.h
==============================================================================
--- head/sys/dev/pci/pcireg.h	Sun Feb 15 06:37:34 2009	(r188638)
+++ head/sys/dev/pci/pcireg.h	Sun Feb 15 09:49:21 2009	(r188639)
@@ -112,6 +112,8 @@
 #define	PCIY_SECDEV	0x0f	/* Secure Device */
 #define	PCIY_EXPRESS	0x10	/* PCI Express */
 #define	PCIY_MSIX	0x11	/* MSI-X */
+#define	PCIY_SATA	0x12	/* SATA */
+#define	PCIY_PCIAF	0x13	/* PCI Advanced Features */
 
 /* config registers for header type 0 devices */
 
@@ -611,3 +613,12 @@
 #define	PCIM_MSIX_BIR_BAR_20		4
 #define	PCIM_MSIX_BIR_BAR_24		5
 #define	PCIM_MSIX_VCTRL_MASK		0x1
+
+/* PCI Advanced Features definitions */
+#define	PCIR_PCIAF_CAP		0x3
+#define	PCIM_PCIAFCAP_TP	0x01
+#define	PCIM_PCIAFCAP_FLR	0x02
+#define	PCIR_PCIAF_CTRL		0x4
+#define	PCIR_PCIAFCTRL_FLR	0x01
+#define	PCIR_PCIAF_STATUS	0x5
+#define	PCIR_PCIAFSTATUS_TP	0x01


More information about the svn-src-all mailing list