Skip to content

Commit

Permalink
types: add NVME_FEAT_FDPE_*** definitions
Browse files Browse the repository at this point in the history
Also mark struct nvme_feat_fdp_events_cwd11 as deprecated instead.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
  • Loading branch information
ikegami-t committed Jan 7, 2025
1 parent 7b9f86f commit 2afc8fb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2afc8fb

Please sign in to comment.