History

PCI/ATS: Show PASID Capability register width in bitmasks

The PASID Capability and Control registers are both 16 bits wide. Use 16-bit wide constants in field names to match the register width. No functional change intended.

Bjorn Helgaas committed 3 years ago

Commit d30fea21 parent 04e82fa1 file · +5 −5Browse files

Unified · Split

include/uapi/linux/pci_regs.h+5−5
@@ -930,12 +930,12 @@ · 929 unmodified lines
930930
931931 /* Process Address Space ID */
932932 #define PCI_PASID_CAP 0x04 /* PASID feature register */
933−#define PCI_PASID_CAP_EXEC 0x02 /* Exec permissions Supported */
934−#define PCI_PASID_CAP_PRIV 0x04 /* Privilege Mode Supported */
933+#define PCI_PASID_CAP_EXEC 0x0002 /* Exec permissions Supported */
934+#define PCI_PASID_CAP_PRIV 0x0004 /* Privilege Mode Supported */
935935 #define PCI_PASID_CTRL 0x06 /* PASID control register */
936−#define PCI_PASID_CTRL_ENABLE 0x01 /* Enable bit */
937−#define PCI_PASID_CTRL_EXEC 0x02 /* Exec permissions Enable */
938−#define PCI_PASID_CTRL_PRIV 0x04 /* Privilege Mode Enable */
936+#define PCI_PASID_CTRL_ENABLE 0x0001 /* Enable bit */
937+#define PCI_PASID_CTRL_EXEC 0x0002 /* Exec permissions Enable */
938+#define PCI_PASID_CTRL_PRIV 0x0004 /* Privilege Mode Enable */
939939 #define PCI_EXT_CAP_PASID_SIZEOF 8
940940
941941 /* Single Root I/O Virtualization */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t