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
3232 #define SWITCHTEC_IOCTL_PART_VENDOR5 10
3333 #define SWITCHTEC_IOCTL_PART_VENDOR6 11
3434 #define SWITCHTEC_IOCTL_PART_VENDOR7 12
35−#define SWITCHTEC_IOCTL_NUM_PARTITIONS 13
35+#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
3639
3740 struct switchtec_ioctl_flash_info {
3841 __u64 flash_length;