diff options
| author | David S. Miller <davem@davemloft.net> | 2018-04-16 18:55:05 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-04-16 18:55:05 -0400 |
| commit | 4c85d2d4de8171f29bb0a5825febf2972d9e9741 (patch) | |
| tree | 52a99ad473ddbf444fd753c020b05b4abdadca01 /include | |
| parent | 5da8baa3be33e07856b62e0d60be409bef1d71da (diff) | |
| parent | 8d98aa39b8d497e4c3da8c3973456ff710b68693 (diff) | |
| download | cachepc-linux-4c85d2d4de8171f29bb0a5825febf2972d9e9741.tar.gz cachepc-linux-4c85d2d4de8171f29bb0a5825febf2972d9e9741.zip | |
Merge branch 'pci-mrrs-consts'
Heiner Kallweit says:
====================
PCI: add two more values for PCIe Max_Read_Request_Size and initially use them in r8169 network driver
In r8169 network driver I stumbled across a magic number translating
to PCI MRRS size 4K. The PCI core is still missing constants for
values 2K and 4K (as defined in PCI standard).
So let's add these two constants and use the 4K constant in r8169.
Second patch depends on the first one, therefore both patches
preferrably should go through either PCI or netdev tree.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/pci_regs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index 103ba797a8f3..83ade9b5cf95 100644 --- a/include/uapi/linux/pci_regs.h +++ b/include/uapi/linux/pci_regs.h @@ -506,6 +506,8 @@ #define PCI_EXP_DEVCTL_READRQ_256B 0x1000 /* 256 Bytes */ #define PCI_EXP_DEVCTL_READRQ_512B 0x2000 /* 512 Bytes */ #define PCI_EXP_DEVCTL_READRQ_1024B 0x3000 /* 1024 Bytes */ +#define PCI_EXP_DEVCTL_READRQ_2048B 0x4000 /* 2048 Bytes */ +#define PCI_EXP_DEVCTL_READRQ_4096B 0x5000 /* 4096 Bytes */ #define PCI_EXP_DEVCTL_BCR_FLR 0x8000 /* Bridge Configuration Retry / FLR */ #define PCI_EXP_DEVSTA 10 /* Device Status */ #define PCI_EXP_DEVSTA_CED 0x0001 /* Correctable Error Detected */ |
