Skip to content

Commit 1adc191

Browse files
authored
Merge pull request #252 from Arunpandian15/doc_mi
types: doc field update for NVM commands, Feature Identifiers
2 parents fcfc388 + 1427943 commit 1adc191

1 file changed

Lines changed: 103 additions & 102 deletions

File tree

src/nvme/types.h

Lines changed: 103 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -4096,9 +4096,9 @@ enum nvme_ns_metadata_type {
40964096

40974097
/**
40984098
* struct nvme_timestamp -
4099-
* @timestamp:
4100-
* @attr:
4101-
* @rsvd:
4099+
* @timestamp: Timestamp value based on origin and synch field
4100+
* @attr: Attribute
4101+
* @rsvd: Reserved
41024102
*/
41034103
struct nvme_timestamp {
41044104
__u8 timestamp[6];
@@ -4108,13 +4108,13 @@ struct nvme_timestamp {
41084108

41094109
/**
41104110
* struct nvme_lba_range_type_entry -
4111-
* @type:
4112-
* @attributes:
4113-
* @rsvd2:
4114-
* @slba:
4115-
* @nlb:
4116-
* @guid:
4117-
* @rsvd48:
4111+
* @type: Specifies the Type of the LBA range
4112+
* @attributes: Specifies attributes of the LBA range
4113+
* @rsvd2: Reserved
4114+
* @slba: Starting LBA
4115+
* @nlb: Number of Logical Blocks
4116+
* @guid: Unique Identifier
4117+
* @rsvd48: Reserved
41184118
*/
41194119
struct nvme_lba_range_type_entry {
41204120
__u8 type;
@@ -4128,13 +4128,13 @@ struct nvme_lba_range_type_entry {
41284128

41294129
/**
41304130
* enum nvme_lbart -
4131-
* @NVME_LBART_TYPE_GP:
4132-
* @NVME_LBART_TYPE_FS:
4133-
* @NVME_LBART_TYPE_RAID:
4134-
* @NVME_LBART_TYPE_CACHE:
4135-
* @NVME_LBART_TYPE_SWAP:
4136-
* @NVME_LBART_ATTRIB_TEMP:
4137-
* @NVME_LBART_ATTRIB_HIDE:
4131+
* @NVME_LBART_TYPE_GP: General Purpose
4132+
* @NVME_LBART_TYPE_FS: Filesystem
4133+
* @NVME_LBART_TYPE_RAID: RAID
4134+
* @NVME_LBART_TYPE_CACHE: Cache
4135+
* @NVME_LBART_TYPE_SWAP: Page / swap file
4136+
* @NVME_LBART_ATTRIB_TEMP: Temp
4137+
* @NVME_LBART_ATTRIB_HIDE: Hidden
41384138
*/
41394139
enum nvme_lbart {
41404140
NVME_LBART_TYPE_GP = 0,
@@ -4148,20 +4148,20 @@ enum nvme_lbart {
41484148

41494149
/**
41504150
* struct nvme_lba_range_type -
4151-
* @entry:
4151+
* @entry: LBA range type entry
41524152
*/
41534153
struct nvme_lba_range_type {
41544154
struct nvme_lba_range_type_entry entry[NVME_FEAT_LBA_RANGE_MAX];
41554155
};
41564156

41574157
/**
41584158
* struct nvme_plm_config -
4159-
* @ee:
4160-
* @rsvd2:
4161-
* @dtwinrt:
4162-
* @dtwinwt:
4163-
* @dtwintt:
4164-
* @rsvd56:
4159+
* @ee: Enable Event
4160+
* @rsvd2: Reserved
4161+
* @dtwinrt: DTWIN Reads Threshold
4162+
* @dtwinwt: DTWIN Writes Threshold
4163+
* @dtwintt: DTWIN Time Threshold
4164+
* @rsvd56: Reserved
41654165
*/
41664166
struct nvme_plm_config {
41674167
__le16 ee;
@@ -4174,8 +4174,8 @@ struct nvme_plm_config {
41744174

41754175
/**
41764176
* struct nvme_feat_host_behavior -
4177-
* @acre:
4178-
* @rsvd1:
4177+
* @acre: Advanced Command Retry Enable
4178+
* @rsvd1: Reserved
41794179
*/
41804180
struct nvme_feat_host_behavior {
41814181
__u8 acre;
@@ -4184,17 +4184,17 @@ struct nvme_feat_host_behavior {
41844184

41854185
/**
41864186
* enum nvme_host_behavior_support -
4187-
* @NVME_ENABLE_ACRE:
4187+
* @NVME_ENABLE_ACRE: Enable Advanced Command Retry Enable
41884188
*/
41894189
enum nvme_host_behavior_support {
41904190
NVME_ENABLE_ACRE = 1 << 0,
41914191
};
41924192

41934193
/**
41944194
* struct nvme_dsm_range -
4195-
* @cattr:
4196-
* @nlb:
4197-
* @slba:
4195+
* @cattr: Context Attributes
4196+
* @nlb: Length in logical blocks
4197+
* @slba: Starting LBA
41984198
*/
41994199
struct nvme_dsm_range {
42004200
__le32 cattr;
@@ -4204,13 +4204,13 @@ struct nvme_dsm_range {
42044204

42054205
/**
42064206
* struct nvme_copy_range -
4207-
* @rsvd0:
4208-
* @slba:
4209-
* @nlb:
4210-
* @rsvd18:
4211-
* @eilbrt:
4212-
* @elbatm:
4213-
* @elbat:
4207+
* @rsvd0: Reserved
4208+
* @slba: Starting LBA
4209+
* @nlb: Number of Logical Blocks
4210+
* @rsvd18: Reserved
4211+
* @eilbrt: Expected Initial Logical Block Reference Tag
4212+
* @elbatm: Expected Logical Block Application Tag Mask
4213+
* @elbat: Expected Logical Block Application Tag
42144214
*/
42154215
struct nvme_copy_range {
42164216
__u8 rsvd0[8];
@@ -4224,11 +4224,11 @@ struct nvme_copy_range {
42244224

42254225
/**
42264226
* struct nvme_registered_ctrl -
4227-
* @cntlid:
4228-
* @rcsts:
4229-
* @rsvd3:
4230-
* @hostid:
4231-
* @rkey:
4227+
* @cntlid: Controller ID
4228+
* @rcsts: Reservation Status
4229+
* @rsvd3: Reserved
4230+
* @hostid: Host Identifier
4231+
* @rkey: Reservation Key
42324232
*/
42334233
struct nvme_registered_ctrl {
42344234
__le16 cntlid;
@@ -4240,12 +4240,12 @@ struct nvme_registered_ctrl {
42404240

42414241
/**
42424242
* struct nvme_registered_ctrl_ext -
4243-
* @cntlid:
4244-
* @rcsts:
4245-
* @rsvd3:
4246-
* @rkey:
4247-
* @hostid:
4248-
* @rsvd32:
4243+
* @cntlid: Controller ID
4244+
* @rcsts: Reservation Status
4245+
* @rsvd3: Reserved
4246+
* @rkey: Reservation Key
4247+
* @hostid: Host Identifier
4248+
* @rsvd32: Reserved
42494249
*/
42504250
struct nvme_registered_ctrl_ext {
42514251
__le16 cntlid;
@@ -4258,15 +4258,15 @@ struct nvme_registered_ctrl_ext {
42584258

42594259
/**
42604260
* struct nvme_resv_status -
4261-
* @gen:
4262-
* @rtype:
4263-
* @regctl:
4264-
* @rsvd7:
4265-
* @ptpls:
4266-
* @rsvd10:
4267-
* @rsvd24:
4268-
* @regctl_eds:
4269-
* @regctl_ds:
4261+
* @gen: Generation
4262+
* @rtype: Reservation Type
4263+
* @regctl: Number of Registered Controllers
4264+
* @rsvd7: Reserved
4265+
* @ptpls: Persist Through Power Loss State
4266+
* @rsvd10: Reserved
4267+
* @rsvd24: Reserved
4268+
* @regctl_eds: Registered Controller Extended Data Structure
4269+
* @regctl_ds: Registered Controller Data Structure
42704270
*/
42714271
struct nvme_resv_status {
42724272
__le32 gen;
@@ -4286,16 +4286,16 @@ struct nvme_resv_status {
42864286

42874287
/**
42884288
* struct nvme_streams_directive_params -
4289-
* @msl:
4290-
* @nssa:
4291-
* @nsso:
4292-
* @nssc:
4293-
* @rsvd:
4294-
* @sws:
4295-
* @sgs:
4296-
* @nsa:
4297-
* @nso:
4298-
* @rsvd2:
4289+
* @msl: Max Streams Limit
4290+
* @nssa: NVM Subsystem Streams Available
4291+
* @nsso: NVM Subsystem Streams Open
4292+
* @nssc: NVM Subsystem Stream Capability
4293+
* @rsvd: Reserved
4294+
* @sws: Stream Write Size
4295+
* @sgs: Stream Granularity Size
4296+
* @nsa: Namespace Streams Allocated
4297+
* @nso: Namespace Streams Open
4298+
* @rsvd2: Reserved
42994299
*/
43004300
struct nvme_streams_directive_params {
43014301
__le16 msl;
@@ -4312,8 +4312,8 @@ struct nvme_streams_directive_params {
43124312

43134313
/**
43144314
* struct nvme_streams_directive_status -
4315-
* @osc:
4316-
* @sid:
4315+
* @osc: Open Stream Count
4316+
* @sid: Stream Identifier
43174317
*/
43184318
struct nvme_streams_directive_status {
43194319
__le16 osc;
@@ -4322,9 +4322,9 @@ struct nvme_streams_directive_status {
43224322

43234323
/**
43244324
* struct nvme_id_directives -
4325-
* @supported:
4326-
* @enabled:
4327-
* @rsvd64:
4325+
* @supported: Identify directive is supported
4326+
* @enabled: Identify directive is Enabled
4327+
* @rsvd64: Reserved
43284328
*/
43294329
struct nvme_id_directives {
43304330
__u8 supported[32];
@@ -4344,11 +4344,11 @@ enum nvme_directive_types {
43444344

43454345
/**
43464346
* struct nvme_host_mem_buf_attrs -
4347-
* @hsize:
4348-
* @hmdlal:
4349-
* @hmdlau:
4350-
* @hmdlec:
4351-
* @rsvd16:
4347+
* @hsize: Host Memory Buffer Size
4348+
* @hmdlal: Host Memory Descriptor List Lower Address
4349+
* @hmdlau: Host Memory Descriptor List Upper Address
4350+
* @hmdlec: Host Memory Descriptor List Entry Count
4351+
* @rsvd16: Reserved
43524352
*/
43534353
struct nvme_host_mem_buf_attrs {
43544354
__le32 hsize;
@@ -4361,11 +4361,11 @@ struct nvme_host_mem_buf_attrs {
43614361

43624362
/**
43634363
* enum nvme_ae_type -
4364-
* @NVME_AER_ERROR:
4365-
* @NVME_AER_SMART:
4366-
* @NVME_AER_NOTICE:
4367-
* @NVME_AER_CSS:
4368-
* @NVME_AER_VS:
4364+
* @NVME_AER_ERROR: Error event
4365+
* @NVME_AER_SMART: SMART / Health Status event
4366+
* @NVME_AER_NOTICE: Notice event
4367+
* @NVME_AER_CSS: NVM Command Set Specific events
4368+
* @NVME_AER_VS: Vendor Specific event
43694369
*/
43704370
enum nvme_ae_type {
43714371
NVME_AER_ERROR = 0,
@@ -4377,12 +4377,12 @@ enum nvme_ae_type {
43774377

43784378
/**
43794379
* enum nvme_ae_info_error -
4380-
* @NVME_AER_ERROR_INVALID_DB_REG:
4381-
* @NVME_AER_ERROR_INVALID_DB_VAL:
4382-
* @NVME_AER_ERROR_DIAG_FAILURE:
4383-
* @NVME_AER_ERROR_PERSISTENT_INTERNAL_ERROR:
4384-
* @NVME_AER_ERROR_TRANSIENT_INTERNAL_ERROR:
4385-
* @NVME_AER_ERROR_FW_IMAGE_LOAD_ERROR:
4380+
* @NVME_AER_ERROR_INVALID_DB_REG: Write to Invalid Doorbell Register
4381+
* @NVME_AER_ERROR_INVALID_DB_VAL: Invalid Doorbell Write Value
4382+
* @NVME_AER_ERROR_DIAG_FAILURE: Diagnostic Failure
4383+
* @NVME_AER_ERROR_PERSISTENT_INTERNAL_ERROR: Persistent Internal Error
4384+
* @NVME_AER_ERROR_TRANSIENT_INTERNAL_ERROR: Transient Internal Error
4385+
* @NVME_AER_ERROR_FW_IMAGE_LOAD_ERROR: Firmware Image Load Error
43864386
*/
43874387
enum nvme_ae_info_error {
43884388
NVME_AER_ERROR_INVALID_DB_REG = 0x00,
@@ -4395,9 +4395,9 @@ enum nvme_ae_info_error {
43954395

43964396
/**
43974397
* enum nvme_ae_info_smart -
4398-
* @NVME_AER_SMART_SUBSYSTEM_RELIABILITY:
4399-
* @NVME_AER_SMART_TEMPERATURE_THRESHOLD:
4400-
* @NVME_AER_SMART_SPARE_THRESHOLD:
4398+
* @NVME_AER_SMART_SUBSYSTEM_RELIABILITY: NVM subsystem Reliability
4399+
* @NVME_AER_SMART_TEMPERATURE_THRESHOLD: Temperature Threshold
4400+
* @NVME_AER_SMART_SPARE_THRESHOLD: Spare Below Threshold
44014401
*/
44024402
enum nvme_ae_info_smart {
44034403
NVME_AER_SMART_SUBSYSTEM_RELIABILITY = 0x00,
@@ -4407,9 +4407,10 @@ enum nvme_ae_info_smart {
44074407

44084408
/**
44094409
* enum nvme_ae_info_css_nvm -
4410-
* @NVME_AER_CSS_NVM_RESERVATION:
4411-
* @NVME_AER_CSS_NVM_SANITIZE_COMPLETED:
4412-
* @NVME_AER_CSS_NVM_UNEXPECTED_SANITIZE_DEALLOC:
4410+
* @NVME_AER_CSS_NVM_RESERVATION: Reservation Log Page Available
4411+
* @NVME_AER_CSS_NVM_SANITIZE_COMPLETED: Sanitize Operation Completed
4412+
* @NVME_AER_CSS_NVM_UNEXPECTED_SANITIZE_DEALLOC: Sanitize Operation Completed
4413+
* With Unexpected Deallocation
44134414
*/
44144415
enum nvme_ae_info_css_nvm {
44154416
NVME_AER_CSS_NVM_RESERVATION = 0x00,
@@ -4419,14 +4420,14 @@ enum nvme_ae_info_css_nvm {
44194420

44204421
/**
44214422
* enum nvme_ae_info_notice -
4422-
* @NVME_AER_NOTICE_NS_CHANGED:
4423-
* @NVME_AER_NOTICE_FW_ACT_STARTING:
4424-
* @NVME_AER_NOTICE_TELEMETRY:
4425-
* @NVME_AER_NOTICE_ANA:
4426-
* @NVME_AER_NOTICE_PL_EVENT:
4427-
* @NVME_AER_NOTICE_LBA_STATUS_ALERT:
4428-
* @NVME_AER_NOTICE_EG_EVENT:
4429-
* @NVME_AER_NOTICE_DISC_CHANGED:
4423+
* @NVME_AER_NOTICE_NS_CHANGED: Namespace Attribute Changed
4424+
* @NVME_AER_NOTICE_FW_ACT_STARTING: Firmware Activation Starting
4425+
* @NVME_AER_NOTICE_TELEMETRY: Telemetry Log Changed
4426+
* @NVME_AER_NOTICE_ANA: Asymmetric Namespace Access Change
4427+
* @NVME_AER_NOTICE_PL_EVENT: Predictable Latency Event Aggregate Log Change
4428+
* @NVME_AER_NOTICE_LBA_STATUS_ALERT: LBA Status Information Alert
4429+
* @NVME_AER_NOTICE_EG_EVENT: Endurance Group Event Aggregate Log Page Change
4430+
* @NVME_AER_NOTICE_DISC_CHANGED: Discovery Log Page Change
44304431
*/
44314432
enum nvme_ae_info_notice {
44324433
NVME_AER_NOTICE_NS_CHANGED = 0x00,

0 commit comments

Comments
 (0)