TianoCore EDK2 master
Loading...
Searching...
No Matches
Nvme.h
Go to the documentation of this file.
1
17#ifndef __NVM_E_H__
18#define __NVM_E_H__
19
20#pragma pack(1)
21
22//
23// controller register offsets
24//
25#define NVME_CAP_OFFSET 0x0000 // Controller Capabilities
26#define NVME_VER_OFFSET 0x0008 // Version
27#define NVME_INTMS_OFFSET 0x000c // Interrupt Mask Set
28#define NVME_INTMC_OFFSET 0x0010 // Interrupt Mask Clear
29#define NVME_CC_OFFSET 0x0014 // Controller Configuration
30#define NVME_CSTS_OFFSET 0x001c // Controller Status
31#define NVME_NSSR_OFFSET 0x0020 // NVM Subsystem Reset (Optional)
32#define NVME_AQA_OFFSET 0x0024 // Admin Queue Attributes
33#define NVME_ASQ_OFFSET 0x0028 // Admin Submission Queue Base Address
34#define NVME_ACQ_OFFSET 0x0030 // Admin Completion Queue Base Address
35#define NVME_CMBLOC_OFFSET 0x0038 // Control Memory Buffer Location (Optional)
36#define NVME_CMBSZ_OFFSET 0x003C // Control Memory Buffer Size (Optional)
37#define NVME_BPINFO_OFFSET 0x0040 // Boot Partition Information
38#define NVME_BPRSEL_OFFSET 0x0044 // Boot Partition Read Select
39#define NVME_BPMBL_OFFSET 0x0048 // Boot Partition Memory Buffer Location
40#define NVME_SQ0_OFFSET 0x1000 // Submission Queue 0 (admin) Tail Doorbell
41#define NVME_CQ0_OFFSET 0x1004 // Completion Queue 0 (admin) Head Doorbell
42
43//
44// These register offsets are defined as 0x1000 + (N * (4 << CAP.DSTRD))
45// Get the doorbell stride bit shift value from the controller capabilities.
46//
47#define NVME_SQTDBL_OFFSET(QID, DSTRD) 0x1000 + ((2 * (QID)) * (4 << (DSTRD))) // Submission Queue y (NVM) Tail Doorbell
48#define NVME_CQHDBL_OFFSET(QID, DSTRD) 0x1000 + (((2 * (QID)) + 1) * (4 << (DSTRD))) // Completion Queue y (NVM) Head Doorbell
49
50#pragma pack(1)
51
52//
53// 3.1.1 Offset 00h: CAP - Controller Capabilities
54//
55typedef struct {
56 UINT16 Mqes; // Maximum Queue Entries Supported
57 UINT8 Cqr : 1; // Contiguous Queues Required
58 UINT8 Ams : 2; // Arbitration Mechanism Supported
59 UINT8 Rsvd1 : 5;
60 UINT8 To; // Timeout
61 UINT16 Dstrd : 4; // Doorbell Stride
62 UINT16 Nssrs : 1; // NVM Subsystem Reset Supported NSSRS
63 UINT16 Css : 8; // Command Sets Supported - Bit 37
64 UINT16 Bps : 1; // Boot Partition Support - Bit 45 in NVMe1.4
65 UINT16 Rsvd3 : 2;
66 UINT8 Mpsmin : 4; // Memory Page Size Minimum
67 UINT8 Mpsmax : 4; // Memory Page Size Maximum
68 UINT8 Pmrs : 1; // Persistent Memory Region Supported
69 UINT8 Cmbs : 1; // Controller Memory Buffer Supported
70 UINT8 Rsvd4 : 6;
71} NVME_CAP;
72
73//
74// 3.1.2 Offset 08h: VS - Version
75//
76typedef struct {
77 UINT16 Mnr; // Minor version number
78 UINT16 Mjr; // Major version number
79} NVME_VER;
80
81//
82// 3.1.5 Offset 14h: CC - Controller Configuration
83//
84typedef struct {
85 UINT16 En : 1; // Enable
86 UINT16 Rsvd1 : 3;
87 UINT16 Css : 3; // I/O Command Set Selected
88 UINT16 Mps : 4; // Memory Page Size
89 UINT16 Ams : 3; // Arbitration Mechanism Selected
90 UINT16 Shn : 2; // Shutdown Notification
91 UINT8 Iosqes : 4; // I/O Submission Queue Entry Size
92 UINT8 Iocqes : 4; // I/O Completion Queue Entry Size
93 UINT8 Rsvd2;
94} NVME_CC;
95#define NVME_CC_SHN_NORMAL_SHUTDOWN 1
96#define NVME_CC_SHN_ABRUPT_SHUTDOWN 2
97
98//
99// 3.1.6 Offset 1Ch: CSTS - Controller Status
100//
101typedef struct {
102 UINT32 Rdy : 1; // Ready
103 UINT32 Cfs : 1; // Controller Fatal Status
104 UINT32 Shst : 2; // Shutdown Status
105 UINT32 Nssro : 1; // NVM Subsystem Reset Occurred
106 UINT32 Rsvd1 : 27;
107} NVME_CSTS;
108#define NVME_CSTS_SHST_SHUTDOWN_OCCURRING 1
109#define NVME_CSTS_SHST_SHUTDOWN_COMPLETED 2
110//
111// 3.1.8 Offset 24h: AQA - Admin Queue Attributes
112//
113typedef struct {
114 UINT16 Asqs : 12; // Submission Queue Size
115 UINT16 Rsvd1 : 4;
116 UINT16 Acqs : 12; // Completion Queue Size
117 UINT16 Rsvd2 : 4;
118} NVME_AQA;
119
120//
121// 3.1.9 Offset 28h: ASQ - Admin Submission Queue Base Address
122//
123#define NVME_ASQ UINT64
124//
125// 3.1.10 Offset 30h: ACQ - Admin Completion Queue Base Address
126//
127#define NVME_ACQ UINT64
128
129//
130// 3.1.13 Offset 40h: BPINFO - Boot Partition Information
131//
132typedef struct {
133 UINT32 Bpsz : 15; // Boot Partition Size
134 UINT32 Rsvd1 : 9;
135 UINT32 Brs : 2; // Boot Read Status
136 UINT32 Rsvd2 : 5;
137 UINT32 Abpid : 1; // Active Boot Partition ID
139
140//
141// 3.1.14 Offset 44h: BPRSEL - Boot Partition Read Select
142//
143typedef struct {
144 UINT32 Bprsz : 10; // Boot Partition Read Size
145 UINT32 Bprof : 20; // Boot Partition Read Offset
146 UINT32 Rsvd1 : 1;
147 UINT32 Bpid : 1; // Boot Partition Identifier
149
150//
151// 3.1.15 Offset 48h: BPMBL - Boot Partition Memory Buffer Location (Optional)
152//
153typedef struct {
154 UINT64 Rsvd1 : 12;
155 UINT64 Bmbba : 52; // Boot Partition Memory Buffer Base Address
156} NVME_BPMBL;
157
158//
159// 3.1.25 Offset (1000h + ((2y) * (4 << CAP.DSTRD))): SQyTDBL - Submission Queue y Tail Doorbell
160//
161typedef struct {
162 UINT16 Sqt;
163 UINT16 Rsvd1;
165
166//
167// 3.1.12 Offset (1000h + ((2y + 1) * (4 << CAP.DSTRD))): CQyHDBL - Completion Queue y Head Doorbell
168//
169typedef struct {
170 UINT16 Cqh;
171 UINT16 Rsvd1;
173
174//
175// NVM command set structures
176//
177// Read Command
178//
179typedef struct {
180 //
181 // CDW 10, 11
182 //
183 UINT64 Slba; /* Starting Sector Address */
184 //
185 // CDW 12
186 //
187 UINT16 Nlb; /* Number of Sectors */
188 UINT16 Rsvd1 : 10;
189 UINT16 Prinfo : 4; /* Protection Info Check */
190 UINT16 Fua : 1; /* Force Unit Access */
191 UINT16 Lr : 1; /* Limited Retry */
192 //
193 // CDW 13
194 //
195 UINT32 Af : 4; /* Access Frequency */
196 UINT32 Al : 2; /* Access Latency */
197 UINT32 Sr : 1; /* Sequential Request */
198 UINT32 In : 1; /* Incompressible */
199 UINT32 Rsvd2 : 24;
200 //
201 // CDW 14
202 //
203 UINT32 Eilbrt; /* Expected Initial Logical Block Reference Tag */
204 //
205 // CDW 15
206 //
207 UINT16 Elbat; /* Expected Logical Block Application Tag */
208 UINT16 Elbatm; /* Expected Logical Block Application Tag Mask */
209} NVME_READ;
210
211//
212// Write Command
213//
214typedef struct {
215 //
216 // CDW 10, 11
217 //
218 UINT64 Slba; /* Starting Sector Address */
219 //
220 // CDW 12
221 //
222 UINT16 Nlb; /* Number of Sectors */
223 UINT16 Rsvd1 : 10;
224 UINT16 Prinfo : 4; /* Protection Info Check */
225 UINT16 Fua : 1; /* Force Unit Access */
226 UINT16 Lr : 1; /* Limited Retry */
227 //
228 // CDW 13
229 //
230 UINT32 Af : 4; /* Access Frequency */
231 UINT32 Al : 2; /* Access Latency */
232 UINT32 Sr : 1; /* Sequential Request */
233 UINT32 In : 1; /* Incompressible */
234 UINT32 Rsvd2 : 24;
235 //
236 // CDW 14
237 //
238 UINT32 Ilbrt; /* Initial Logical Block Reference Tag */
239 //
240 // CDW 15
241 //
242 UINT16 Lbat; /* Logical Block Application Tag */
243 UINT16 Lbatm; /* Logical Block Application Tag Mask */
244} NVME_WRITE;
245
246//
247// Flush
248//
249typedef struct {
250 //
251 // CDW 10
252 //
253 UINT32 Flush; /* Flush */
254} NVME_FLUSH;
255
256//
257// Write Uncorrectable command
258//
259typedef struct {
260 //
261 // CDW 10, 11
262 //
263 UINT64 Slba; /* Starting LBA */
264 //
265 // CDW 12
266 //
267 UINT32 Nlb : 16; /* Number of Logical Blocks */
268 UINT32 Rsvd1 : 16;
270
271//
272// Write Zeroes command
273//
274typedef struct {
275 //
276 // CDW 10, 11
277 //
278 UINT64 Slba; /* Starting LBA */
279 //
280 // CDW 12
281 //
282 UINT16 Nlb; /* Number of Logical Blocks */
283 UINT16 Rsvd1 : 10;
284 UINT16 Prinfo : 4; /* Protection Info Check */
285 UINT16 Fua : 1; /* Force Unit Access */
286 UINT16 Lr : 1; /* Limited Retry */
287 //
288 // CDW 13
289 //
290 UINT32 Rsvd2;
291 //
292 // CDW 14
293 //
294 UINT32 Ilbrt; /* Initial Logical Block Reference Tag */
295 //
296 // CDW 15
297 //
298 UINT16 Lbat; /* Logical Block Application Tag */
299 UINT16 Lbatm; /* Logical Block Application Tag Mask */
301
302//
303// Compare command
304//
305typedef struct {
306 //
307 // CDW 10, 11
308 //
309 UINT64 Slba; /* Starting LBA */
310 //
311 // CDW 12
312 //
313 UINT16 Nlb; /* Number of Logical Blocks */
314 UINT16 Rsvd1 : 10;
315 UINT16 Prinfo : 4; /* Protection Info Check */
316 UINT16 Fua : 1; /* Force Unit Access */
317 UINT16 Lr : 1; /* Limited Retry */
318 //
319 // CDW 13
320 //
321 UINT32 Rsvd2;
322 //
323 // CDW 14
324 //
325 UINT32 Eilbrt; /* Expected Initial Logical Block Reference Tag */
326 //
327 // CDW 15
328 //
329 UINT16 Elbat; /* Expected Logical Block Application Tag */
330 UINT16 Elbatm; /* Expected Logical Block Application Tag Mask */
332
333typedef union {
334 NVME_READ Read;
335 NVME_WRITE Write;
336 NVME_FLUSH Flush;
337 NVME_WRITE_UNCORRECTABLE WriteUncorrectable;
338 NVME_WRITE_ZEROES WriteZeros;
339 NVME_COMPARE Compare;
340} NVME_CMD;
341
342typedef struct {
343 UINT16 Mp; /* Maximum Power */
344 UINT8 Rsvd1; /* Reserved as of Nvm Express 1.1 Spec */
345 UINT8 Mps : 1; /* Max Power Scale */
346 UINT8 Nops : 1; /* Non-Operational State */
347 UINT8 Rsvd2 : 6; /* Reserved as of Nvm Express 1.1 Spec */
348 UINT32 Enlat; /* Entry Latency */
349 UINT32 Exlat; /* Exit Latency */
350 UINT8 Rrt : 5; /* Relative Read Throughput */
351 UINT8 Rsvd3 : 3; /* Reserved as of Nvm Express 1.1 Spec */
352 UINT8 Rrl : 5; /* Relative Read Latency */
353 UINT8 Rsvd4 : 3; /* Reserved as of Nvm Express 1.1 Spec */
354 UINT8 Rwt : 5; /* Relative Write Throughput */
355 UINT8 Rsvd5 : 3; /* Reserved as of Nvm Express 1.1 Spec */
356 UINT8 Rwl : 5; /* Relative Write Latency */
357 UINT8 Rsvd6 : 3; /* Reserved as of Nvm Express 1.1 Spec */
358 UINT8 Rsvd7[16]; /* Reserved as of Nvm Express 1.1 Spec */
360
361typedef struct {
362 UINT32 Ces : 1; /* Crypto Erase Supported */
363 UINT32 Bes : 1; /* Block Erase Supported */
364 UINT32 Ows : 1; /* Overwrite Supported */
365 UINT32 Rsvd1 : 26; /* Reserved as of NVM Express 2.0c Spec */
366 UINT32 Ndi : 1; /* No-Deallocate Inhibited */
367 UINT32 Nodmmas : 2; /* No-Deallocate Modifies Media After Sanitize */
369
370//
371// Identify Controller Data
372//
373typedef struct {
374 //
375 // Controller Capabilities and Features 0-255
376 //
377 UINT16 Vid; /* PCI Vendor ID */
378 UINT16 Ssvid; /* PCI sub-system vendor ID */
379 UINT8 Sn[20]; /* Product serial number */
380
381 UINT8 Mn[40]; /* Product model number */
382 UINT8 Fr[8]; /* Firmware Revision */
383 UINT8 Rab; /* Recommended Arbitration Burst */
384 UINT8 Ieee_oui[3]; /* Organization Unique Identifier */
385 UINT8 Cmic; /* Multi-interface Capabilities */
386 UINT8 Mdts; /* Maximum Data Transfer Size */
387 UINT8 Cntlid[2]; /* Controller ID */
388 UINT32 Ver; /* Version */
389 UINT32 Rtd3r; /* RTD3 Resume Latency */
390 UINT32 Rtd3e; /* RTD3 Entry Latency */
391 UINT32 Oaes; /* Optional Async Events Supported */
392 UINT32 Ctratt; /* Controller Attributes */
393 UINT16 Rrls; /* Read Recovery Levels Supported */
394 UINT8 Rsvd1[9]; /* Reserved as of NVM Express 1.4c Spec */
395 UINT8 Cntrltype; /* Controller Type */
396 UINT8 Fguid[16]; /* FRU Globally Unique Identifier */
397 UINT16 Crdt1; /* Command Retry Delay Time 1 */
398 UINT16 Crdt2; /* Command Retry Delay Time 2 */
399 UINT16 Crdt3; /* Command Retry Delay Time 3 */
400 UINT8 Rsvd2[106]; /* Reserved as of NVM Express 1.4c Spec */
401 UINT8 Rsvd3[16]; /* Reserved for NVMe MI Spec */
402
403 //
404 // Admin Command Set Attributes
405 //
406 UINT16 Oacs; /* Optional Admin Command Support */
407 #define NAMESPACE_MANAGEMENT_SUPPORTED BIT3
408 #define FW_DOWNLOAD_ACTIVATE_SUPPORTED BIT2
409 #define FORMAT_NVM_SUPPORTED BIT1
410 #define SECURITY_SEND_RECEIVE_SUPPORTED BIT0
411 UINT8 Acl; /* Abort Command Limit */
412 UINT8 Aerl; /* Async Event Request Limit */
413 UINT8 Frmw; /* Firmware updates */
414 UINT8 Lpa; /* Log Page Attributes */
415 UINT8 Elpe; /* Error Log Page Entries */
416 UINT8 Npss; /* Number of Power States Support */
417 UINT8 Avscc; /* Admin Vendor Specific Command Configuration */
418 UINT8 Apsta; /* Autonomous Power State Transition Attributes */
419 //
420 // Below fields before Rsvd2 are defined in NVM Express 1.4 Spec
421 //
422 UINT16 Wctemp; /* Warning Composite Temperature Threshold */
423 UINT16 Cctemp; /* Critical Composite Temperature Threshold */
424 UINT16 Mtfa; /* Maximum Time for Firmware Activation */
425 UINT32 Hmpre; /* Host Memory Buffer Preferred Size */
426 UINT32 Hmmin; /* Host Memory Buffer Minimum Size */
427 UINT8 Tnvmcap[16]; /* Total NVM Capacity */
428 UINT8 Unvmcap[16]; /* Unallocated NVM Capacity */
429 UINT32 Rpmbs; /* Replay Protected Memory Block Support */
430 UINT16 Edstt; /* Extended Device Self-test Time */
431 UINT8 Dsto; /* Device Self-test Options */
432 UINT8 Fwug; /* Firmware Update Granularity */
433 UINT16 Kas; /* Keep Alive Support */
434 UINT16 Hctma; /* Host Controlled Thermal Management Attributes */
435 UINT16 Mntmt; /* Minimum Thermal Management Temperature */
436 UINT16 Mxtmt; /* Maximum Thermal Management Temperature */
437 NVME_SANICAP Sanicap; /* Sanitize Capabilities */
438 UINT32 Hmminds; /* Host Memory Buffer Minimum Descriptor Entry Size */
439 UINT16 Hmmaxd; /* Host Memory Maximum Descriptors Entries */
440 UINT16 Nsetidmax; /* NVM Set Identifier Maximum */
441 UINT16 Endgidmax; /* Endurance Group Identifier Maximum */
442 UINT8 Anatt; /* ANA Transition Time */
443 UINT8 Anacap; /* Asymmetric Namespace Access Capabilities */
444 UINT32 Anagrpmax; /* ANA Group Identifier Maximum */
445 UINT32 Nanagrpid; /* Number of ANA Group Identifiers */
446 UINT32 Pels; /* Persistent Event Log Size */
447 UINT8 Rsvd4[156]; /* Reserved as of NVM Express 1.4c Spec */
448 //
449 // NVM Command Set Attributes
450 //
451 UINT8 Sqes; /* Submission Queue Entry Size */
452 UINT8 Cqes; /* Completion Queue Entry Size */
453 UINT16 Maxcmd; /* Maximum Outstanding Commands */
454 UINT32 Nn; /* Number of Namespaces */
455 UINT16 Oncs; /* Optional NVM Command Support */
456 UINT16 Fuses; /* Fused Operation Support */
457 UINT8 Fna; /* Format NVM Attributes */
458 UINT8 Vwc; /* Volatile Write Cache */
459 UINT16 Awun; /* Atomic Write Unit Normal */
460 UINT16 Awupf; /* Atomic Write Unit Power Fail */
461 UINT8 Nvscc; /* NVM Vendor Specific Command Configuration */
462 UINT8 Nwpc; /* Namespace Write Protection Capabilities */
463 UINT16 Acwu; /* Atomic Compare & Write Unit */
464 UINT16 Rsvd5; /* Reserved as of NVM Express 1.4c Spec */
465 UINT32 Sgls; /* SGL Support */
466 UINT32 Mnan; /* Maximum Number of Allowed Namespace */
467 UINT8 Rsvd6[224]; /* Reserved as of NVM Express 1.4c Spec */
468 UINT8 Subnqn[256]; /* NVM Subsystem NVMe Qualified Name */
469 UINT8 Rsvd7[768]; /* Reserved as of NVM Express 1.4c Spec */
470 UINT8 Rsvd8[256]; /* Reserved for NVMe over Fabrics Spec */
471 //
472 // Power State Descriptors
473 //
474 NVME_PSDESCRIPTOR PsDescriptor[32];
475
476 UINT8 VendorData[1024]; /* Vendor specific data */
478
479typedef struct {
480 UINT16 Ms; /* Metadata Size */
481 UINT8 Lbads; /* LBA Data Size */
482 UINT8 Rp : 2; /* Relative Performance */
483 #define LBAF_RP_BEST 00b
484 #define LBAF_RP_BETTER 01b
485 #define LBAF_RP_GOOD 10b
486 #define LBAF_RP_DEGRADED 11b
487 UINT8 Rsvd1 : 6; /* Reserved as of Nvm Express 1.1 Spec */
489
490//
491// Identify Namespace Data
492//
493typedef struct {
494 //
495 // NVM Command Set Specific
496 //
497 UINT64 Nsze; /* Namespace Size (total number of blocks in formatted namespace) */
498 UINT64 Ncap; /* Namespace Capacity (max number of logical blocks) */
499 UINT64 Nuse; /* Namespace Utilization */
500 UINT8 Nsfeat; /* Namespace Features */
501 UINT8 Nlbaf; /* Number of LBA Formats */
502 UINT8 Flbas; /* Formatted LBA size */
503 UINT8 Mc; /* Metadata Capabilities */
504 UINT8 Dpc; /* End-to-end Data Protection capabilities */
505 UINT8 Dps; /* End-to-end Data Protection Type Settings */
506 UINT8 Nmic; /* Namespace Multi-path I/O and Namespace Sharing Capabilities */
507 UINT8 Rescap; /* Reservation Capabilities */
508 UINT8 Rsvd1[88]; /* Reserved as of Nvm Express 1.1 Spec */
509 UINT64 Eui64; /* IEEE Extended Unique Identifier */
510 //
511 // LBA Format
512 //
513 NVME_LBAFORMAT LbaFormat[16];
514
515 UINT8 Rsvd2[192]; /* Reserved as of Nvm Express 1.1 Spec */
516 UINT8 VendorData[3712]; /* Vendor specific data */
518
519//
520// RPMB Device Configuration Block Data Structure as of Nvm Express 1.4 Spec
521//
522typedef struct {
523 UINT8 Bppe; /* Boot Partition Protection Enable */
524 UINT8 Bpl; /* Boot Partition Lock */
525 UINT8 Nwpac; /* Namespace Write Protection Authentication Control */
526 UINT8 Rsvd1[509]; /* Reserved as of Nvm Express 1.4 Spec */
528
529#define RPMB_FRAME_STUFF_BYTES 223
530
531//
532// RPMB Data Frame as of Nvm Express 1.4 Spec
533//
534typedef struct {
535 UINT8 Sbakamc[RPMB_FRAME_STUFF_BYTES]; /* [222-N:00] Stuff Bytes */
536 /* [222:222-(N-1)] Authentication Key or Message Authentication Code (MAC) */
537 UINT8 Rpmbt; /* RPMB Target */
538 UINT64 Nonce[2];
539 UINT32 Wcounter; /* Write Counter */
540 UINT32 Address; /* Starting address of data to be programmed to or read from the RPMB. */
541 UINT32 Scount; /* Sector Count */
542 UINT16 Result;
543 UINT16 Rpmessage; /* Request/Response Message */
544 // UINT8 *Data; /* Data to be written or read by signed access where M = 512 * Sector Count. */
546
547//
548// RPMB Device Configuration Block Data Structure.
549// (ref. NVMe Base spec. v2.0 Figure 460).
550//
551typedef struct {
552 UINT8 BPPEnable; /* Boot Partition Protection Enabled */
553 UINT8 BPLock; /* Boot Partition Lock */
554 UINT8 NameSpaceWrP; /* Namespace Write Protection */
555 UINT8 Rsvd1[509]; /* Reserved as of Nvm Express 2.0 Spec */
557
558//
559// RPMB Request and Response Message Types.
560// (ref. NVMe Base spec. v2.0 Figure 461).
561//
562#define NVME_RPMB_AUTHKEY_PROGRAM 0x0001
563#define NVME_RPMB_COUNTER_READ 0x0002
564#define NVME_RPMB_AUTHDATA_WRITE 0x0003
565#define NVME_RPMB_AUTHDATA_READ 0x0004
566#define NVME_RPMB_RESULT_READ 0x0005
567#define NVME_RPMB_DCB_WRITE 0x0006
568#define NVME_RPMB_DCB_READ 0x0007
569#define NVME_RPMB_AUTHKEY_PROGRAM_RESPONSE 0x0100
570#define NVME_RPMB_COUNTER_READ_RESPONSE 0x0200
571#define NVME_RPMB_AUTHDATA_WRITE_RESPONSE 0x0300
572#define NVME_RPMB_AUTHDATA_READ_RESPONSE 0x0400
573#define NVME_RPMB_DCB_WRITE_RESPONSE 0x0600
574#define NVME_RPMB_DCB_READ_RESPONSE 0x0700
575
576//
577// RPMB Operation Result.
578// (ref. NVMe Base spec. v2.0 Figure 462).
579//
580#define NVME_RPMB_RESULT_SUCCESS 0x00
581#define NVME_RPMB_RESULT_GENERAL_FAILURE 0x01
582#define NVME_RPMB_RESULT_AHTHENTICATION_FAILURE 0x02
583#define NVME_RPMB_RESULT_COUNTER_FAILURE 0x03
584#define NVME_RPMB_RESULT_ADDRESS_FAILURE 0x04
585#define NVME_RPMB_RESULT_WRITE_FAILURE 0x05
586#define NVME_RPMB_RESULT_READ_FAILURE 0x06
587#define NVME_RPMB_RESULT_AUTHKEY_NOT_PROGRAMMED 0x07
588#define NVME_RPMB_RESULT_INVALID_DCB 0x08
589
590//
591// Get Log Page - Boot Partition Log Header.
592// (ref. NVMe Base spec. v2.0 Figure 262).
593//
594typedef struct {
595 UINT8 LogIdentifier; /* Log Identifier, shall be set to 15h */
596 UINT8 Rsvd1[3];
597 UINT32 Bpsz : 15; /* Boot Partition Size */
598 UINT32 Rsvd2 : 16;
599 UINT32 Abpid : 1; /* Active Boot Partition ID */
600 UINT8 Rsvd3[8];
602
603//
604// NvmExpress Admin Identify Cmd
605//
606typedef struct {
607 //
608 // CDW 10
609 //
610 UINT32 Cns : 2;
611 UINT32 Rsvd1 : 30;
613
614//
615// NvmExpress Admin Create I/O Completion Queue
616//
617typedef struct {
618 //
619 // CDW 10
620 //
621 UINT32 Qid : 16; /* Queue Identifier */
622 UINT32 Qsize : 16; /* Queue Size */
623
624 //
625 // CDW 11
626 //
627 UINT32 Pc : 1; /* Physically Contiguous */
628 UINT32 Ien : 1; /* Interrupts Enabled */
629 UINT32 Rsvd1 : 14; /* reserved as of Nvm Express 1.1 Spec */
630 UINT32 Iv : 16; /* Interrupt Vector for MSI-X or MSI*/
632
633//
634// NvmExpress Admin Create I/O Submission Queue
635//
636typedef struct {
637 //
638 // CDW 10
639 //
640 UINT32 Qid : 16; /* Queue Identifier */
641 UINT32 Qsize : 16; /* Queue Size */
642
643 //
644 // CDW 11
645 //
646 UINT32 Pc : 1; /* Physically Contiguous */
647 UINT32 Qprio : 2; /* Queue Priority */
648 UINT32 Rsvd1 : 13; /* Reserved as of Nvm Express 1.1 Spec */
649 UINT32 Cqid : 16; /* Completion Queue ID */
651
652//
653// NvmExpress Admin Delete I/O Completion Queue
654//
655typedef struct {
656 //
657 // CDW 10
658 //
659 UINT16 Qid;
660 UINT16 Rsvd1;
662
663//
664// NvmExpress Admin Delete I/O Submission Queue
665//
666typedef struct {
667 //
668 // CDW 10
669 //
670 UINT16 Qid;
671 UINT16 Rsvd1;
673
674//
675// NvmExpress Admin Abort Command
676//
677typedef struct {
678 //
679 // CDW 10
680 //
681 UINT32 Sqid : 16; /* Submission Queue identifier */
682 UINT32 Cid : 16; /* Command Identifier */
684
685//
686// NvmExpress Admin Firmware Activate Command
687//
688typedef struct {
689 //
690 // CDW 10
691 //
692 UINT32 Fs : 3; /* Submission Queue identifier */
693 UINT32 Aa : 2; /* Command Identifier */
694 UINT32 Rsvd1 : 27;
696
697//
698// NvmExpress Admin Firmware Image Download Command
699//
700typedef struct {
701 //
702 // CDW 10
703 //
704 UINT32 Numd; /* Number of Dwords */
705 //
706 // CDW 11
707 //
708 UINT32 Ofst; /* Offset */
710
711//
712// NvmExpress Admin Get Features Command
713//
714typedef struct {
715 //
716 // CDW 10
717 //
718 UINT32 Fid : 8; /* Feature Identifier */
719 UINT32 Sel : 3; /* Select */
720 UINT32 Rsvd1 : 21;
722
723//
724// NvmExpress Admin Get Log Page Command
725//
726typedef struct {
727 //
728 // CDW 10
729 //
730 UINT32 Lid : 8; /* Log Page Identifier */
731 #define LID_ERROR_INFO 0x1
732 #define LID_SMART_INFO 0x2
733 #define LID_FW_SLOT_INFO 0x3
734 #define LID_BP_INFO 0x15
735 #define LID_SANITIZE_STATUS_INFO 0x81
736 UINT32 Rsvd1 : 8;
737 UINT32 Numd : 12; /* Number of Dwords */
738 UINT32 Rsvd2 : 4; /* Reserved as of Nvm Express 1.1 Spec */
740
741//
742// NvmExpress Admin Set Features Command
743//
744typedef struct {
745 //
746 // CDW 10
747 //
748 UINT32 Fid : 8; /* Feature Identifier */
749 UINT32 Rsvd1 : 23;
750 UINT32 Sv : 1; /* Save */
752
753//
754// NvmExpress Admin Sanitize Command
755//
756typedef struct {
757 //
758 // CDW 10
759 //
760 UINT32 Sanact : 3; /* Sanitize Action */
761 UINT32 Ause : 1; /* Allow Unrestricted Sanitize Exit */
762 UINT32 Owpass : 4; /* Overwrite Pass Count */
763 UINT32 Oipbp : 1; /* Overwrite Invert Pattern Between Passes */
764 UINT32 Nodas : 1; /* No-Deallocate After Sanitize */
765 UINT32 Rsvd1 : 22;
766 //
767 // CDW 11
768 //
769 UINT32 Ovrpat; /* Overwrite Pattern */
771
772#define SANITIZE_ACTION_NO_ACTION 0x0
773#define SANITIZE_ACTION_EXIT_FAILURE_MODE 0x1
774#define SANITIZE_ACTION_BLOCK_ERASE 0x2
775#define SANITIZE_ACTION_OVERWRITE 0x3
776#define SANITIZE_ACTION_CRYPTO_ERASE 0x4
777
778//
779// NvmExpress Admin Format NVM Command
780//
781typedef struct {
782 //
783 // CDW 10
784 //
785 UINT32 Lbaf : 4; /* LBA Format */
786 UINT32 Ms : 1; /* Metadata Settings */
787 UINT32 Pi : 3; /* Protection Information */
788 UINT32 Pil : 1; /* Protection Information Location */
789 UINT32 Ses : 3; /* Secure Erase Settings */
790 UINT32 Rsvd1 : 20;
792
793#define SES_NO_SECURE_ERASE 0x0
794#define SES_USER_DATA_ERASE 0x1
795#define SES_CRYPTO_ERASE 0x2
796
797//
798// NvmExpress Admin Security Receive Command
799//
800typedef struct {
801 //
802 // CDW 10
803 //
804 UINT32 Rsvd1 : 8;
805 UINT32 Spsp : 16; /* SP Specific */
806 UINT32 Secp : 8; /* Security Protocol */
807 //
808 // CDW 11
809 //
810 UINT32 Al; /* Allocation Length */
812
813//
814// NvmExpress Admin Security Send Command
815//
816typedef struct {
817 //
818 // CDW 10
819 //
820 UINT32 Rsvd1 : 8;
821 UINT32 Spsp : 16; /* SP Specific */
822 UINT32 Secp : 8; /* Security Protocol */
823 //
824 // CDW 11
825 //
826 UINT32 Tl; /* Transfer Length */
828
829typedef union {
830 NVME_ADMIN_IDENTIFY Identify;
831 NVME_ADMIN_CRIOCQ CrIoCq;
832 NVME_ADMIN_CRIOSQ CrIoSq;
833 NVME_ADMIN_DEIOCQ DeIoCq;
834 NVME_ADMIN_DEIOSQ DeIoSq;
835 NVME_ADMIN_ABORT Abort;
837 NVME_ADMIN_FIRMWARE_IMAGE_DOWNLOAD FirmwareImageDownload;
838 NVME_ADMIN_GET_FEATURES GetFeatures;
839 NVME_ADMIN_GET_LOG_PAGE GetLogPage;
840 NVME_ADMIN_SET_FEATURES SetFeatures;
841 NVME_ADMIN_FORMAT_NVM FormatNvm;
842 NVME_ADMIN_SECURITY_RECEIVE SecurityReceive;
843 NVME_ADMIN_SECURITY_SEND SecuritySend;
844 NVME_ADMIN_SANITIZE Sanitize;
846
847typedef struct {
848 UINT32 Cdw10;
849 UINT32 Cdw11;
850 UINT32 Cdw12;
851 UINT32 Cdw13;
852 UINT32 Cdw14;
853 UINT32 Cdw15;
854} NVME_RAW;
855
856typedef union {
857 NVME_ADMIN_CMD Admin; // Union of Admin commands
858 NVME_CMD Nvm; // Union of Nvm commands
859 NVME_RAW Raw;
861
862//
863// Submission Queue
864//
865typedef struct {
866 //
867 // CDW 0, Common to all commands
868 //
869 UINT8 Opc; // Opcode
870 UINT8 Fuse : 2; // Fused Operation
871 UINT8 Rsvd1 : 5;
872 UINT8 Psdt : 1; // PRP or SGL for Data Transfer
873 UINT16 Cid; // Command Identifier
874
875 //
876 // CDW 1
877 //
878 UINT32 Nsid; // Namespace Identifier
879
880 //
881 // CDW 2,3
882 //
883 UINT64 Rsvd2;
884
885 //
886 // CDW 4,5
887 //
888 UINT64 Mptr; // Metadata Pointer
889
890 //
891 // CDW 6-9
892 //
893 UINT64 Prp[2]; // First and second PRP entries
894
895 NVME_PAYLOAD Payload;
896} NVME_SQ;
897
898//
899// Completion Queue
900//
901typedef struct {
902 //
903 // CDW 0
904 //
905 UINT32 Dword0;
906 //
907 // CDW 1
908 //
909 UINT32 Rsvd1;
910 //
911 // CDW 2
912 //
913 UINT16 Sqhd; // Submission Queue Head Pointer
914 UINT16 Sqid; // Submission Queue Identifier
915 //
916 // CDW 3
917 //
918 UINT16 Cid; // Command Identifier
919 UINT16 Pt : 1; // Phase Tag
920 UINT16 Sc : 8; // Status Code
921 UINT16 Sct : 3; // Status Code Type
922 UINT16 Rsvd2 : 2;
923 UINT16 Mo : 1; // More
924 UINT16 Dnr : 1; // Do Not Retry
925} NVME_CQ;
926
927//
928// Nvm Express Admin cmd opcodes
929//
930#define NVME_ADMIN_DEIOSQ_CMD 0x00
931#define NVME_ADMIN_CRIOSQ_CMD 0x01
932#define NVME_ADMIN_GET_LOG_PAGE_CMD 0x02
933#define NVME_ADMIN_DEIOCQ_CMD 0x04
934#define NVME_ADMIN_CRIOCQ_CMD 0x05
935#define NVME_ADMIN_IDENTIFY_CMD 0x06
936#define NVME_ADMIN_ABORT_CMD 0x08
937#define NVME_ADMIN_SET_FEATURES_CMD 0x09
938#define NVME_ADMIN_GET_FEATURES_CMD 0x0A
939#define NVME_ADMIN_ASYNC_EVENT_REQUEST_CMD 0x0C
940#define NVME_ADMIN_NAMESACE_MANAGEMENT_CMD 0x0D
941#define NVME_ADMIN_FW_COMMIT_CMD 0x10
942#define NVME_ADMIN_FW_IAMGE_DOWNLOAD_CMD 0x11
943#define NVME_ADMIN_NAMESACE_ATTACHMENT_CMD 0x15
944#define NVME_ADMIN_FORMAT_NVM_CMD 0x80
945#define NVME_ADMIN_SECURITY_SEND_CMD 0x81
946#define NVME_ADMIN_SECURITY_RECEIVE_CMD 0x82
947#define NVME_ADMIN_SANITIZE_CMD 0x84
948
949#define NVME_IO_FLUSH_OPC 0
950#define NVME_IO_WRITE_OPC 1
951#define NVME_IO_READ_OPC 2
952
953typedef enum {
954 DeleteIOSubmissionQueueOpcode = NVME_ADMIN_DEIOSQ_CMD,
955 CreateIOSubmissionQueueOpcode = NVME_ADMIN_CRIOSQ_CMD,
956 GetLogPageOpcode = NVME_ADMIN_GET_LOG_PAGE_CMD,
957 DeleteIOCompletionQueueOpcode = NVME_ADMIN_DEIOCQ_CMD,
958 CreateIOCompletionQueueOpcode = NVME_ADMIN_CRIOCQ_CMD,
959 IdentifyOpcode = NVME_ADMIN_IDENTIFY_CMD,
960 AbortOpcode = NVME_ADMIN_ABORT_CMD,
961 SetFeaturesOpcode = NVME_ADMIN_SET_FEATURES_CMD,
962 GetFeaturesOpcode = NVME_ADMIN_GET_FEATURES_CMD,
963 AsyncEventRequestOpcode = NVME_ADMIN_ASYNC_EVENT_REQUEST_CMD,
964 NamespaceManagementOpcode = NVME_ADMIN_NAMESACE_MANAGEMENT_CMD,
965 FirmwareCommitOpcode = NVME_ADMIN_FW_COMMIT_CMD,
966 FirmwareImageDownloadOpcode = NVME_ADMIN_FW_IAMGE_DOWNLOAD_CMD,
967 NamespaceAttachmentOpcode = NVME_ADMIN_NAMESACE_ATTACHMENT_CMD,
968 FormatNvmOpcode = NVME_ADMIN_FORMAT_NVM_CMD,
969 SecuritySendOpcode = NVME_ADMIN_SECURITY_SEND_CMD,
970 SecurityReceiveOpcode = NVME_ADMIN_SECURITY_RECEIVE_CMD,
971 SanitizeOpcode = NVME_ADMIN_SANITIZE_CMD
972} NVME_ADMIN_COMMAND_OPCODE;
973
974//
975// Controller or Namespace Structure (CNS) field
976// (ref. spec. v1.1 figure 82).
977//
978typedef enum {
979 IdentifyNamespaceCns = 0x0,
980 IdentifyControllerCns = 0x1,
981 IdentifyActiveNsListCns = 0x2
982} NVME_ADMIN_IDENTIFY_CNS;
983
984//
985// Commit Action
986// (ref. spec. 1.1 figure 60).
987//
988typedef enum {
989 ActivateActionReplace = 0x0,
990 ActivateActionReplaceActivate = 0x1,
991 ActivateActionActivate = 0x2
992} NVME_FW_ACTIVATE_ACTION;
993
994//
995// Firmware Slot
996// (ref. spec. 1.1 Figure 60).
997//
998typedef enum {
999 FirmwareSlotCtrlChooses = 0x0,
1000 FirmwareSlot1 = 0x1,
1001 FirmwareSlot2 = 0x2,
1002 FirmwareSlot3 = 0x3,
1003 FirmwareSlot4 = 0x4,
1004 FirmwareSlot5 = 0x5,
1005 FirmwareSlot6 = 0x6,
1006 FirmwareSlot7 = 0x7
1007} NVME_FW_ACTIVATE_SLOT;
1008
1009//
1010// Get Log Page ? Log Page Identifiers
1011// (ref. spec. v2.0c Figure 202).
1012//
1013typedef enum {
1014 ErrorInfoLogID = LID_ERROR_INFO,
1015 SmartHealthInfoLogID = LID_SMART_INFO,
1016 FirmwareSlotInfoLogID = LID_FW_SLOT_INFO,
1017 BootPartitionInfoLogID = LID_BP_INFO,
1018 SanitizeStatusInfoLogID = LID_SANITIZE_STATUS_INFO
1019} NVME_LOG_ID;
1020
1021//
1022// Get Log Page ? Firmware Slot Information Log
1023// (ref. spec. v1.1 Figure 77).
1024//
1025typedef struct {
1026 //
1027 // Indicates the firmware slot from which the actively running firmware revision was loaded.
1028 //
1029 UINT8 ActivelyRunningFwSlot : 3;
1030 UINT8 : 1;
1031 //
1032 // Indicates the firmware slot that is going to be activated at the next controller reset. If this field is 0h, then the controller does not indicate the firmware slot that is going to be activated at the next controller reset.
1033 //
1034 UINT8 NextActiveFwSlot : 3;
1035 UINT8 : 1;
1037
1038//
1039// Get Log Page ? Firmware Slot Information Log
1040// (ref. spec. v1.1 Figure 77).
1041//
1042typedef struct {
1043 //
1044 // Specifies information about the active firmware revision.
1045 // s
1046 NVME_ACTIVE_FW_INFO ActiveFwInfo;
1047 UINT8 Reserved1[7];
1048 //
1049 // Contains the revision of the firmware downloaded to firmware slot 1/7. If no valid firmware revision is present or if this slot is unsupported, all zeros shall be returned.
1050 //
1051 CHAR8 FwRevisionSlot[7][8];
1052 UINT8 Reserved2[448];
1054
1055//
1056// SMART / Health Information (Log Identifier 02h)
1057// (ref. spec. v1.1 5.10.1.2)
1058//
1059typedef struct {
1060 //
1061 // This field indicates critical warnings for the state of the controller.
1062 //
1063 UINT8 CriticalWarningAvailableSpare : 1;
1064 UINT8 CriticalWarningTemperature : 1;
1065 UINT8 CriticalWarningReliability : 1;
1066 UINT8 CriticalWarningMediaReadOnly : 1;
1067 UINT8 CriticalWarningVolatileBackup : 1;
1068 UINT8 CriticalWarningReserved : 3;
1069 //
1070 // Contains a value corresponding to a temperature in degrees Kelvin that represents the current composite temperature of the controller and namespace(s) associated with that controller. The manner in which this value is computed is implementation specific and may not represent the actual temperature of any physical point in the NVM subsystem.
1071 //
1072 UINT16 CompositeTemp;
1073 //
1074 // Contains a normalized percentage (0 to 100%) of the remaining spare capacity available.
1075 //
1076 UINT8 AvailableSpare;
1077 //
1078 // When the Available Spare falls below the threshold indicated in this field, an asynchronous event completion may occur. The value is indicated as a normalized percentage (0 to 100%).
1079 //
1080 UINT8 AvailableSpareThreshold;
1081 //
1082 // Contains a vendor specific estimate of the percentage of NVM subsystem life used based on the actual usage and the manufacturer's prediction of NVM life. A value of 100 indicates that the estimated endurance of the NVM in the NVM subsystem has been consumed, but may not indicate an NVM subsystem failure. The value is allowed to exceed 100. Percentages greater than 254 shall be represented as 255. This value shall be updated once per power-on hour (when the controller is not in a sleep state).
1083 //
1084 UINT8 PercentageUsed;
1085 UINT8 Reserved1[26];
1086 //
1087 // Contains the number of 512 byte data units the host has read from the controller; this value does not include metadata.
1088 //
1089 UINT8 DataUnitsRead[16];
1090 //
1091 // Contains the number of 512 byte data units the host has written to the controller; this value does not include metadata.
1092 //
1093 UINT8 DataUnitsWritten[16];
1094 //
1095 // Contains the number of read commands completed by the controller.
1096 //
1097 UINT8 HostReadCommands[16];
1098 //
1099 // Contains the number of write commands completed by the controller.
1100 //
1101 UINT8 HostWriteCommands[16];
1102 //
1103 // Contains the amount of time the controller is busy with I/O commands. This value is reported in minutes.
1104 //
1105 UINT8 ControllerBusyTime[16];
1106 //
1107 // Contains the number of power cycles.
1108 //
1109 UINT8 PowerCycles[16];
1110 //
1111 // Contains the number of power-on hours.
1112 //
1113 UINT8 PowerOnHours[16];
1114 //
1115 // Contains the number of unsafe shutdowns.
1116 //
1117 UINT8 UnsafeShutdowns[16];
1118 //
1119 // Contains the number of occurrences where the controller detected an unrecovered data integrity error.
1120 //
1121 UINT8 MediaAndDataIntegrityErrors[16];
1122 //
1123 // Contains the number of Error Information log entries over the life of the controller.
1124 //
1125 UINT8 NumberErrorInformationLogEntries[16];
1126 //
1127 // Contains the amount of time in minutes that the controller is operational and the Composite Temperature is greater than or equal to the Warning Composite Temperature Threshold (WCTEMP) field and less than the Critical Composite Temperature Threshold (CCTEMP) field in the Identify Controller data structure in Figure 90.
1128 //
1129 UINT32 WarningCompositeTemperatureTime;
1130 //
1131 // Contains the amount of time in minutes that the controller is operational and the Composite Temperature is greater the Critical Composite Temperature Threshold (CCTEMP) field in the Identify Controller data structure in Figure 90.
1132 //
1133 UINT32 CriticalCompositeTemperatureTime;
1134 //
1135 // Contains the current temperature in degrees Kelvin reported by the temperature sensor. An implementation that does not implement the temperature sensor reports a temperature of zero degrees Kelvin.
1136 //
1137 UINT16 TemperatureSensor[8];
1138 UINT8 Reserved2[296];
1140
1141//
1142// Sanitize Status (Log Identifier 81h)
1143// (ref. spec. v2.0c 5.16.1.25).
1144//
1145typedef struct {
1146 //
1147 // Indicates the fraction complete of the sanitize operation. (SPROG)
1148 //
1149 UINT16 SanitizeProgress;
1150 //
1151 // Indicates the status associated with the most recent sanitize operation. (SSTAT)
1152 //
1153 UINT16 SanitizeStatus : 3;
1154 UINT16 OverwriteSanitizeCompletedNumber : 5;
1155 UINT16 GlobalDataErased : 1;
1156 UINT16 SanitizeStatusRsvd : 7;
1157 //
1158 // Contains the value of the Command Dword 10 field of the Sanitize command that started the sanitize operation whose status is reported in the SSTAT field. (SCDW10)
1159 //
1160 UINT32 SanitizeCmdDw10Info;
1161 //
1162 // Indicates the number of seconds required to complete an Overwrite sanitize operation with 16 passes in the background when the No-Deallocate Modifies Media After Sanitize field is not set to 10b.
1163 //
1164 UINT32 OverwriteEstimatedTime;
1165 //
1166 // Indicates the number of seconds required to complete a Block Erase sanitize operation in the background when the No-Deallocate Modifies Media After Sanitize field is not set to 10b.
1167 //
1168 UINT32 BlockEraseEstimatedTime;
1169 //
1170 // Indicates the number of seconds required to complete a Crypto Erase sanitize operation in the background when the No-Deallocate Modifies Media After Sanitize field is not set to 10b.
1171 //
1172 UINT32 CryptoEraseEstimatedTime;
1173 //
1174 // Indicates the number of seconds required to complete an Overwrite sanitize operation and the associated additional media modification after the Overwrite sanitize operation in the background.
1175 // The No-Deallocate After Sanitize bit was set to ?1? in the Sanitize command that requested the Overwrite sanitize operation.
1176 // The No-Deallocate Modifies Media After Sanitize field is set to 10b.
1177 //
1178 UINT32 OverwriteEstimatedTimeWithNodmm;
1179 //
1180 // Indicates the number of seconds required to complete a Block Erase sanitize operation and the associated additional media modification after the Block Erase sanitize operation in the background.
1181 // The No-Deallocate After Sanitize bit was set to ?1? in the Sanitize command that requested the Block Erase sanitize operation.
1182 // The No-Deallocate Modifies Media After Sanitize field is set to 10b.
1183 //
1184 UINT32 BlockEraseEstimatedTimeWithNodmm;
1185 //
1186 // Indicates the number of seconds required to complete a Crypto Erase sanitize operation and the associated additional media modification after the Crypto Erase sanitize operation in the background.
1187 // The No-Deallocate After Sanitize bit was set to ?1? in the Sanitize command that requested the Crypto Erase sanitize operation.
1188 // The No-Deallocate Modifies Media After Sanitize field is set to 10b.
1189 //
1190 UINT32 CryptoEraseEstimatedTimeWithNodmm;
1191 UINT8 Reserved[480];
1193
1194#pragma pack()
1195
1196#endif
EFI_STATUS EFIAPI Activate(IN CONST EFI_SMM_CONTROL2_PROTOCOL *This, IN OUT UINT8 *CommandPort OPTIONAL, IN OUT UINT8 *DataPort OPTIONAL, IN BOOLEAN Periodic OPTIONAL, IN EFI_SMM_PERIOD ActivationInterval OPTIONAL)
Definition: Nvme.h:113
Definition: Nvme.h:55
Definition: Nvme.h:84
Definition: Nvme.h:901
Definition: Nvme.h:847
Definition: Nvme.h:865
Definition: Nvme.h:76
Definition: Nvme.h:333