Skip to content

Commit

Permalink
types: add PEL vendor specific and TCG defined events definitions
Browse files Browse the repository at this point in the history
The PEL feature added by NVMe revision 1.4 with the event types.
But the event types were not implemented by the nvme-cli.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
  • Loading branch information
ikegami-t authored and igaw committed Jun 28, 2024
1 parent 40f4f70 commit e42b6a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -3870,6 +3870,8 @@ struct nvme_persistent_event_entry {
* @NVME_PEL_SET_FEATURE_EVENT: Set Feature Event
* @NVME_PEL_TELEMETRY_CRT: Telemetry Log Create Event
* @NVME_PEL_THERMAL_EXCURSION_EVENT: Thermal Excursion Event
* @NVME_PEL_VENDOR_SPECIFIC_EVENT: Vendor Specific Event
* @NVME_PEL_TCG_DEFINED_EVENT: TCG Defined Event
*/
enum nvme_persistent_event_types {
NVME_PEL_SMART_HEALTH_EVENT = 0x01,
Expand All @@ -3885,6 +3887,8 @@ enum nvme_persistent_event_types {
NVME_PEL_SET_FEATURE_EVENT = 0x0b,
NVME_PEL_TELEMETRY_CRT = 0x0c,
NVME_PEL_THERMAL_EXCURSION_EVENT = 0x0d,
NVME_PEL_VENDOR_SPECIFIC_EVENT = 0xde,
NVME_PEL_TCG_DEFINED_EVENT = 0xdf,
};

/**
Expand Down

0 comments on commit e42b6a8

Please sign in to comment.