History

PCI/switchtec: Rename generation-specific constants

Gen4 hardware will have different values for the SWITCHTEC_X_RUNNING and SWITCHTEC_IOCTL_NUM_PARTITIONS, so rename them with GEN3 in their name. No functional changes intended.

Logan Gunthorpe committed 6 years ago

Commit fcccd281 parent 20857473 files · +13 −10Browse files

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

Unified · Split

include/uapi/linux/switchtec_ioctl.h+4−1
@@ -32,7 +32,10 @@ · 31 unmodified lines
32#define SWITCHTEC_IOCTL_PART_VENDOR5 1032#define SWITCHTEC_IOCTL_PART_VENDOR5 10
33#define SWITCHTEC_IOCTL_PART_VENDOR6 1133#define SWITCHTEC_IOCTL_PART_VENDOR6 11
34#define SWITCHTEC_IOCTL_PART_VENDOR7 1234#define SWITCHTEC_IOCTL_PART_VENDOR7 12
35#define SWITCHTEC_IOCTL_NUM_PARTITIONS 1335#define SWITCHTEC_NUM_PARTITIONS_GEN3 13
36
37/* obsolete: for compatibility with old userspace software */
38#define SWITCHTEC_IOCTL_NUM_PARTITIONS SWITCHTEC_NUM_PARTITIONS_GEN3
36 39
37struct switchtec_ioctl_flash_info {40struct switchtec_ioctl_flash_info {
38 __u64 flash_length;41 __u64 flash_length;