diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2013-05-06 08:22:18 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2013-05-08 09:55:05 -0400 |
commit | ab3ea5bf37e7189e843e19e500e7af50e802b5f6 (patch) | |
tree | af71b6bc25b4e51221d9fea8d3cd74d46ed66e83 /include/linux/nvme.h | |
parent | 44af146a84fa4a8e136d824207dcd356958a112b (diff) | |
download | linux-stable-ab3ea5bf37e7189e843e19e500e7af50e802b5f6.tar.gz linux-stable-ab3ea5bf37e7189e843e19e500e7af50e802b5f6.tar.bz2 linux-stable-ab3ea5bf37e7189e843e19e500e7af50e802b5f6.zip |
NVMe: Simplify Firmware Activate code slightly
Add definitions for the three Firmware Activate actions, and change the
SCSI translation code to construct the command into a temporary variable
instead of translating the endianness back-and-forth.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@linux.intel.com>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r-- | include/linux/nvme.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 971ef086ed63..f451c8d6e231 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -316,6 +316,9 @@ enum { NVME_FEAT_WRITE_ATOMIC = 0x0a, NVME_FEAT_ASYNC_EVENT = 0x0b, NVME_FEAT_SW_PROGRESS = 0x0c, + NVME_FWACT_REPL = (0 << 3), + NVME_FWACT_REPL_ACTV = (1 << 3), + NVME_FWACT_ACTV = (2 << 3), }; struct nvme_identify { |