aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux/switchtec_ioctl.h
diff options
context:
space:
mode:
authorLogan Gunthorpe2017-06-15 14:12:23 -0600
committerBjorn Helgaas2017-06-27 18:23:14 -0500
commit079e3bc588465f6216bfc5ad61540b5db4616598 (patch)
tree43219000fb8694f00ab9b8220f06fff778665a09 /include/uapi/linux/switchtec_ioctl.h
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
switchtec: Add "running" status flag to fw partition info ioctl
This flag lets userspace know which firmware partitions are currently in use as opposed to just active. "Active" means they will be in use for the next reboot, whereas "running" means they are currently in use. If an old kernel is in use, or the firmware doesn't support these fields, the new flag will not be set in the output. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
Diffstat (limited to 'include/uapi/linux/switchtec_ioctl.h')
-rw-r--r--include/uapi/linux/switchtec_ioctl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/switchtec_ioctl.h b/include/uapi/linux/switchtec_ioctl.h
index 3e824e1a6495..5e392968bad2 100644
--- a/include/uapi/linux/switchtec_ioctl.h
+++ b/include/uapi/linux/switchtec_ioctl.h
@@ -39,6 +39,9 @@ struct switchtec_ioctl_flash_info {
__u32 padding;
};
+#define SWITCHTEC_IOCTL_PART_ACTIVE 1
+#define SWITCHTEC_IOCTL_PART_RUNNING 2
+
struct switchtec_ioctl_flash_part_info {
__u32 flash_partition;
__u32 address;