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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -32,7 +32,10 @@ · 31 unmodified lines | |||
| 32 | #define SWITCHTEC_IOCTL_PART_VENDOR5 10 | 32 | #define SWITCHTEC_IOCTL_PART_VENDOR5 10 |
| 33 | #define SWITCHTEC_IOCTL_PART_VENDOR6 11 | 33 | #define SWITCHTEC_IOCTL_PART_VENDOR6 11 |
| 34 | #define SWITCHTEC_IOCTL_PART_VENDOR7 12 | 34 | #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 | ||
| 36 | 39 | ||
| 37 | struct switchtec_ioctl_flash_info { | 40 | struct switchtec_ioctl_flash_info { |
| 38 | __u64 flash_length; | 41 | __u64 flash_length; |