diff options
| author | Keith Busch <kbusch@kernel.org> | 2024-11-05 01:00:14 +0300 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2024-11-11 20:49:48 +0300 |
| commit | 83acb24e6de7bbb5cb0df1ba0f47a92da9112061 (patch) | |
| tree | d755d97c161ba202feccb0139415356de7fa00a4 /include | |
| parent | 61c9967cd63448292a64f9ee9aeb6e2053e3a624 (diff) | |
| download | linux-83acb24e6de7bbb5cb0df1ba0f47a92da9112061.tar.xz | |
nvmet: implement supported log pages
This log is required for nvme 2.1.
Reviewed-by: Matias Bjørling <matias.bjorling@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/nvme.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 26de7c5c12be..e9e508bca60f 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -1245,6 +1245,7 @@ enum { NVME_FEAT_WRITE_PROTECT = 0x84, NVME_FEAT_VENDOR_START = 0xC0, NVME_FEAT_VENDOR_END = 0xFF, + NVME_LOG_SUPPORTED = 0x00, NVME_LOG_ERROR = 0x01, NVME_LOG_SMART = 0x02, NVME_LOG_FW_SLOT = 0x03, @@ -1262,6 +1263,14 @@ enum { NVME_FWACT_ACTV = (2 << 3), }; +struct nvme_supported_log { + __le32 lids[256]; +}; + +enum { + NVME_LIDS_LSUPP = 1 << 0, +}; + /* NVMe Namespace Write Protect State */ enum { NVME_NS_NO_WRITE_PROTECT = 0, |
