From 2afc8fb59a09e8e631baa4f8ea928fd3aef1bdc1 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Wed, 8 Jan 2025 02:04:16 +0900 Subject: [PATCH] types: add NVME_FEAT_FDPE_*** definitions Also mark struct nvme_feat_fdp_events_cwd11 as deprecated instead. Signed-off-by: Tokunori Ikegami --- src/nvme/types.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/nvme/types.h b/src/nvme/types.h index 6fca0253..255462b7 100644 --- a/src/nvme/types.h +++ b/src/nvme/types.h @@ -5642,6 +5642,8 @@ struct nvme_fdp_events_log { /** * struct nvme_feat_fdp_events_cdw11 - FDP Events Feature Command Dword 11 + * Deprecated: doesn't support this struct. + * Use NVME_FEAT_FDPE_*** definitions instead. * @phndl: Placement Handle * @noet: Number of FDP Event Types * @rsvd24: Reserved @@ -5650,7 +5652,7 @@ struct nvme_feat_fdp_events_cdw11 { __le16 phndl; __u8 noet; __u8 rsvd24; -}; +} __attribute__((deprecated)); /** * enum nvme_fdp_supported_event_attributes - Supported FDP Event Attributes @@ -8407,6 +8409,10 @@ enum nvme_features_id { * @NVME_FEAT_EG_ENDGID_MASK: * @NVME_FEAT_EG_EGCW_SHIFT: * @NVME_FEAT_EG_EGCW_MASK: + * @NVME_FEAT_FDPE_PHNDL_SHIFT: + * @NVME_FEAT_FDPE_PHNDL_MASK: + * @NVME_FEAT_FDPE_NOET_SHIFT: + * @NVME_FEAT_FDPE_NOET_MASK: * @NVME_FEAT_SPM_PBSLC_SHIFT: * @NVME_FEAT_SPM_PBSLC_MASK: * @NVME_FEAT_HOSTID_EXHID_SHIFT: @@ -8513,6 +8519,10 @@ enum nvme_feat { NVME_FEAT_EG_ENDGID_MASK = 0xffff, NVME_FEAT_EG_EGCW_SHIFT = 16, NVME_FEAT_EG_EGCW_MASK = 0xff, + NVME_FEAT_FDPE_PHNDL_SHIFT = 0, + NVME_FEAT_FDPE_PHNDL_MASK = 0xffff, + NVME_FEAT_FDPE_NOET_SHIFT = 16, + NVME_FEAT_FDPE_NOET_MASK = 0xff, NVME_FEAT_SPM_PBSLC_SHIFT = 0, NVME_FEAT_SPM_PBSLC_MASK = 0xff, NVME_FEAT_HOSTID_EXHID_SHIFT = 0,