summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJon Derrick <jonathan.derrick@intel.com>2015-08-11 00:20:41 +0300
committerJens Axboe <axboe@fb.com>2015-08-18 20:56:13 +0300
commit81f03fedcce7ee7e83c37237ecaa2f68aad236fd (patch)
tree1ed0c5082931cebb9a0624fbec86f8bd1dfb5e38 /include/uapi/linux
parentdfbac8c7ac5f58448b2216fe42ff52aaf175421d (diff)
downloadlinux-81f03fedcce7ee7e83c37237ecaa2f68aad236fd.tar.xz
NVMe: Add nvme subsystem reset IOCTL
Controllers can perform optional subsystem resets as introduced in NVMe 1.1. This patch adds an IOCTL to trigger the subsystem reset by writing "NVMe" to the NSSR register. Signed-off-by: Jon Derrick <jonathan.derrick@intel.com> Acked-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nvme.h b/include/uapi/linux/nvme.h
index 732b32e92b02..8864194a4151 100644
--- a/include/uapi/linux/nvme.h
+++ b/include/uapi/linux/nvme.h
@@ -584,5 +584,6 @@ struct nvme_passthru_cmd {
#define NVME_IOCTL_SUBMIT_IO _IOW('N', 0x42, struct nvme_user_io)
#define NVME_IOCTL_IO_CMD _IOWR('N', 0x43, struct nvme_passthru_cmd)
#define NVME_IOCTL_RESET _IO('N', 0x44)
+#define NVME_IOCTL_SUBSYS_RESET _IO('N', 0x45)
#endif /* _UAPI_LINUX_NVME_H */