diff options
author | Kelvin Cao <kelvin.cao@microchip.com> | 2020-01-14 20:56:47 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-01-15 11:00:39 -0600 |
commit | 4efa1d2e36976d7b26f2e67f4c838330fbc91299 (patch) | |
tree | 4caab5002d4299e8ed65bcda5de6d65804893801 /include/uapi/linux/switchtec_ioctl.h | |
parent | a3321ca394082f403b447646d81c18ff6b39f4a6 (diff) | |
download | talos-op-linux-4efa1d2e36976d7b26f2e67f4c838330fbc91299.tar.gz talos-op-linux-4efa1d2e36976d7b26f2e67f4c838330fbc91299.zip |
PCI/switchtec: Add Gen4 flash information interface support
Add the new flash_info registers struct and the implementation of
ioctl_flash_part_info() for the new Gen4 hardware.
[logang@deltatee.com: rewrote commit message]
Link: https://lore.kernel.org/r/20200115035648.2578-7-logang@deltatee.com
Signed-off-by: Kelvin Cao <kelvin.cao@microchip.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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/switchtec_ioctl.h b/include/uapi/linux/switchtec_ioctl.h index 4d09cfa2e9e6..2c661a3557e5 100644 --- a/include/uapi/linux/switchtec_ioctl.h +++ b/include/uapi/linux/switchtec_ioctl.h @@ -32,7 +32,15 @@ #define SWITCHTEC_IOCTL_PART_VENDOR5 10 #define SWITCHTEC_IOCTL_PART_VENDOR6 11 #define SWITCHTEC_IOCTL_PART_VENDOR7 12 +#define SWITCHTEC_IOCTL_PART_BL2_0 13 +#define SWITCHTEC_IOCTL_PART_BL2_1 14 +#define SWITCHTEC_IOCTL_PART_MAP_0 15 +#define SWITCHTEC_IOCTL_PART_MAP_1 16 +#define SWITCHTEC_IOCTL_PART_KEY_0 17 +#define SWITCHTEC_IOCTL_PART_KEY_1 18 + #define SWITCHTEC_NUM_PARTITIONS_GEN3 13 +#define SWITCHTEC_NUM_PARTITIONS_GEN4 19 /* obsolete: for compatibility with old userspace software */ #define SWITCHTEC_IOCTL_NUM_PARTITIONS SWITCHTEC_NUM_PARTITIONS_GEN3 |