History

PCI: Add defines for PCIe Max_Read_Request_Size

There are a few drivers using magic numbers when operating with PCIe capabilities and PCI_EXP_DEVCTL_READRQ. Define known values to allow cleaning their code a bit.

Rafał Miłecki committed 11 years ago

Commit 5929b8a1 parent 94a90311 file · +4 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/pci_regs.h+4−0
@@ -451,6 +451,10 @@ · 450 unmodified lines
451451 #define PCI_EXP_DEVCTL_AUX_PME 0x0400 /* Auxiliary Power PM Enable */
452452 #define PCI_EXP_DEVCTL_NOSNOOP_EN 0x0800 /* Enable No Snoop */
453453 #define PCI_EXP_DEVCTL_READRQ 0x7000 /* Max_Read_Request_Size */
454+#define PCI_EXP_DEVCTL_READRQ_128B 0x0000 /* 128 Bytes */
455+#define PCI_EXP_DEVCTL_READRQ_256B 0x1000 /* 256 Bytes */
456+#define PCI_EXP_DEVCTL_READRQ_512B 0x2000 /* 512 Bytes */
457+#define PCI_EXP_DEVCTL_READRQ_1024B 0x3000 /* 1024 Bytes */
454458 #define PCI_EXP_DEVCTL_BCR_FLR 0x8000 /* Bridge Configuration Retry / FLR */
455459 #define PCI_EXP_DEVSTA 10 /* Device Status */
456460 #define PCI_EXP_DEVSTA_CED 0x0001 /* Correctable Error Detected */

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