Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci The register offset of the mask and pending regi...
details: https://anonhg.NetBSD.org/src/rev/95dcfc3bdd2e
branches: trunk
changeset: 837301:95dcfc3bdd2e
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Nov 28 08:26:07 2018 +0000
description:
The register offset of the mask and pending register is depend on the 64bit
address capable bit, so fix the definition of PCI MSI vector mask and pending
register. This problem was not a real bug because PCI_MSI{MASK,PENDING} were
not used from anywhere.
diffstat:
sys/dev/pci/pcireg.h | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r f724138d1877 -r 95dcfc3bdd2e sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h Wed Nov 28 08:19:19 2018 +0000
+++ b/sys/dev/pci/pcireg.h Wed Nov 28 08:26:07 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcireg.h,v 1.143 2018/11/05 03:51:31 msaitoh Exp $ */
+/* $NetBSD: pcireg.h,v 1.144 2018/11/28 08:26:07 msaitoh Exp $ */
/*
* Copyright (c) 1995, 1996, 1999, 2000
@@ -671,8 +671,12 @@
#define PCI_MSI_MDATA64 0xc /* 64-bit Message Data Register
* offset
*/
-#define PCI_MSI_MASK 0x10 /* Vector Mask register */
-#define PCI_MSI_PENDING 0x14 /* Vector Pending register */
+
+#define PCI_MSI_MASK 0x0c /* Vector Mask register */
+#define PCI_MSI_MASK64 0x10 /* 64-bit Vector Mask register */
+
+#define PCI_MSI_PENDING 0x10 /* Vector Pending register */
+#define PCI_MSI_PENDING64 0x14 /* 64-bit Vector Pending register */
#define PCI_MSI_CTL_MASK __BITS(31, 16)
#define PCI_MSI_CTL_EXTMDATA_EN __SHIFTIN(__BIT(10), PCI_MSI_CTL_MASK)
Home |
Main Index |
Thread Index |
Old Index