[PATCH] PCIUtils: fix ATS capability error in lspci

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the wrong position of the ATS enable bit.

Signed-off-by: Yu Zhao <yu.zhao@xxxxxxxxx>

diff --git a/lib/header.h b/lib/header.h
index 23e0a80..24b569e 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -966,7 +966,7 @@
 #define  PCI_ATS_CAP_IQD(x)	((x) & 0x1f) /* Invalidate Queue Depth */
 #define PCI_ATS_CTRL		0x06	/* ATS Control Register */
 #define  PCI_ATS_CTRL_STU(x)	((x) & 0x1f) /* Smallest Translation Unit */
-#define  PCI_ATS_CTRL_ENABLE	0x80	/* ATS Enable */
+#define  PCI_ATS_CTRL_ENABLE	0x8000	/* ATS Enable */
 
 /* Single Root I/O Virtualization */
 #define PCI_IOV_CAP		0x04	/* SR-IOV Capability Register */
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux