summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-05-30 21:44:22 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-05-30 21:44:22 +0000
commit93e9d044c89fb7f071eb5ddfb0fee702f8f945fb (patch)
treebdb6be261d0a06d4db9c06e7155a93e1d6cee4fc /sys
parentfe07de97ab0239344d83fc9793787b184ed8d02a (diff)
Fix definitions of PCI_MSIX_MAU32 and add a define for the MSI-X function
mask bit. ok mlarkin@, jmatthew@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pcireg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 90ef9275a05..4ef148c1326 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcireg.h,v 1.56 2018/08/03 22:18:13 kettenis Exp $ */
+/* $OpenBSD: pcireg.h,v 1.57 2019/05/30 21:44:21 kettenis Exp $ */
/* $NetBSD: pcireg.h,v 1.26 2000/05/10 16:58:42 thorpej Exp $ */
/*
@@ -617,6 +617,7 @@ typedef u_int8_t pci_revision_t;
* Extended Message Signaled Interrups; access via capability pointer.
*/
#define PCI_MSIX_MC_MSIXE 0x80000000
+#define PCI_MSIX_MC_FM 0x40000000
#define PCI_MSIX_MC_TBLSZ_MASK 0x07ff0000
#define PCI_MSIX_MC_TBLSZ_SHIFT 16
#define PCI_MSIX_MC_TBLSZ(reg) \
@@ -626,7 +627,7 @@ typedef u_int8_t pci_revision_t;
#define PCI_MSIX_TABLE_OFF ~(PCI_MSIX_TABLE_BIR)
#define PCI_MSIX_MA(i) ((i) * 16 + 0)
-#define PCI_MSIX_MAU32(i) ((i) * 16 + 0)
+#define PCI_MSIX_MAU32(i) ((i) * 16 + 4)
#define PCI_MSIX_MD(i) ((i) * 16 + 8)
#define PCI_MSIX_VC(i) ((i) * 16 + 12)
#define PCI_MSIX_VC_MASK 0x00000001