diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2020-01-15 06:56:42 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-01-15 20:00:37 +0300 |
commit | fcccd282b633ab9fc7d53ff8ccf82ab5c30a0985 (patch) | |
tree | a59927d1633f740dded30ea87f9e9561bfccd49c /include/uapi/linux/switchtec_ioctl.h | |
parent | 2085747d533b9be5f5a51efbc3e86be0164571a2 (diff) | |
download | linux-fcccd282b633ab9fc7d53ff8ccf82ab5c30a0985.tar.xz |
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.
Link: https://lore.kernel.org/r/20200115035648.2578-2-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/uapi/linux/switchtec_ioctl.h')
-rw-r--r-- | include/uapi/linux/switchtec_ioctl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/linux/switchtec_ioctl.h b/include/uapi/linux/switchtec_ioctl.h index e8db938985ca..4d09cfa2e9e6 100644 --- a/include/uapi/linux/switchtec_ioctl.h +++ b/include/uapi/linux/switchtec_ioctl.h @@ -32,7 +32,10 @@ #define SWITCHTEC_IOCTL_PART_VENDOR5 10 #define SWITCHTEC_IOCTL_PART_VENDOR6 11 #define SWITCHTEC_IOCTL_PART_VENDOR7 12 -#define SWITCHTEC_IOCTL_NUM_PARTITIONS 13 +#define SWITCHTEC_NUM_PARTITIONS_GEN3 13 + +/* obsolete: for compatibility with old userspace software */ +#define SWITCHTEC_IOCTL_NUM_PARTITIONS SWITCHTEC_NUM_PARTITIONS_GEN3 struct switchtec_ioctl_flash_info { __u64 flash_length; |