TianoCore EDK2 master
Loading...
Searching...
No Matches
Nvme.h File Reference

Go to the source code of this file.

Data Structures

struct  NVME_CAP
 
struct  NVME_VER
 
struct  NVME_CC
 
struct  NVME_CSTS
 
struct  NVME_AQA
 
struct  NVME_BPINFO
 
struct  NVME_BPRSEL
 
struct  NVME_BPMBL
 
struct  NVME_SQTDBL
 
struct  NVME_CQHDBL
 
struct  NVME_READ
 
struct  NVME_WRITE
 
struct  NVME_FLUSH
 
struct  NVME_WRITE_UNCORRECTABLE
 
struct  NVME_WRITE_ZEROES
 
struct  NVME_COMPARE
 
union  NVME_CMD
 
struct  NVME_PSDESCRIPTOR
 
struct  NVME_SANICAP
 
struct  NVME_ADMIN_CONTROLLER_DATA
 
struct  NVME_LBAFORMAT
 
struct  NVME_ADMIN_NAMESPACE_DATA
 
struct  NVME_RPMB_CONFIGURATION_DATA
 
struct  NVME_RPMB_DATA_FRAME
 
struct  NVME_RPMB_DCB
 
struct  NVME_BOOT_PARTITION_HEADER
 
struct  NVME_ADMIN_IDENTIFY
 
struct  NVME_ADMIN_CRIOCQ
 
struct  NVME_ADMIN_CRIOSQ
 
struct  NVME_ADMIN_DEIOCQ
 
struct  NVME_ADMIN_DEIOSQ
 
struct  NVME_ADMIN_ABORT
 
struct  NVME_ADMIN_FIRMWARE_ACTIVATE
 
struct  NVME_ADMIN_FIRMWARE_IMAGE_DOWNLOAD
 
struct  NVME_ADMIN_GET_FEATURES
 
struct  NVME_ADMIN_GET_LOG_PAGE
 
struct  NVME_ADMIN_SET_FEATURES
 
struct  NVME_ADMIN_SANITIZE
 
struct  NVME_ADMIN_FORMAT_NVM
 
struct  NVME_ADMIN_SECURITY_RECEIVE
 
struct  NVME_ADMIN_SECURITY_SEND
 
union  NVME_ADMIN_CMD
 
struct  NVME_RAW
 
union  NVME_PAYLOAD
 
struct  NVME_SQ
 
struct  NVME_CQ
 
struct  NVME_ACTIVE_FW_INFO
 
struct  NVME_FW_SLOT_INFO_LOG
 
struct  NVME_SMART_HEALTH_INFO_LOG
 
struct  NVME_SANITIZE_STATUS_INFO_LOG
 

Macros

#define NVME_CAP_OFFSET   0x0000
 
#define NVME_VER_OFFSET   0x0008
 
#define NVME_INTMS_OFFSET   0x000c
 
#define NVME_INTMC_OFFSET   0x0010
 
#define NVME_CC_OFFSET   0x0014
 
#define NVME_CSTS_OFFSET   0x001c
 
#define NVME_NSSR_OFFSET   0x0020
 
#define NVME_AQA_OFFSET   0x0024
 
#define NVME_ASQ_OFFSET   0x0028
 
#define NVME_ACQ_OFFSET   0x0030
 
#define NVME_CMBLOC_OFFSET   0x0038
 
#define NVME_CMBSZ_OFFSET   0x003C
 
#define NVME_BPINFO_OFFSET   0x0040
 
#define NVME_BPRSEL_OFFSET   0x0044
 
#define NVME_BPMBL_OFFSET   0x0048
 
#define NVME_SQ0_OFFSET   0x1000
 
#define NVME_CQ0_OFFSET   0x1004
 
#define NVME_SQTDBL_OFFSET(QID, DSTRD)   0x1000 + ((2 * (QID)) * (4 << (DSTRD)))
 
#define NVME_CQHDBL_OFFSET(QID, DSTRD)   0x1000 + (((2 * (QID)) + 1) * (4 << (DSTRD)))
 
#define NVME_CC_SHN_NORMAL_SHUTDOWN   1
 
#define NVME_CC_SHN_ABRUPT_SHUTDOWN   2
 
#define NVME_CSTS_SHST_SHUTDOWN_OCCURRING   1
 
#define NVME_CSTS_SHST_SHUTDOWN_COMPLETED   2
 
#define NVME_ASQ   UINT64
 
#define NVME_ACQ   UINT64
 
#define NAMESPACE_MANAGEMENT_SUPPORTED   BIT3
 
#define FW_DOWNLOAD_ACTIVATE_SUPPORTED   BIT2
 
#define FORMAT_NVM_SUPPORTED   BIT1
 
#define SECURITY_SEND_RECEIVE_SUPPORTED   BIT0
 
#define LBAF_RP_BEST   00b
 
#define LBAF_RP_BETTER   01b
 
#define LBAF_RP_GOOD   10b
 
#define LBAF_RP_DEGRADED   11b
 
#define RPMB_FRAME_STUFF_BYTES   223
 
#define NVME_RPMB_AUTHKEY_PROGRAM   0x0001
 
#define NVME_RPMB_COUNTER_READ   0x0002
 
#define NVME_RPMB_AUTHDATA_WRITE   0x0003
 
#define NVME_RPMB_AUTHDATA_READ   0x0004
 
#define NVME_RPMB_RESULT_READ   0x0005
 
#define NVME_RPMB_DCB_WRITE   0x0006
 
#define NVME_RPMB_DCB_READ   0x0007
 
#define NVME_RPMB_AUTHKEY_PROGRAM_RESPONSE   0x0100
 
#define NVME_RPMB_COUNTER_READ_RESPONSE   0x0200
 
#define NVME_RPMB_AUTHDATA_WRITE_RESPONSE   0x0300
 
#define NVME_RPMB_AUTHDATA_READ_RESPONSE   0x0400
 
#define NVME_RPMB_DCB_WRITE_RESPONSE   0x0600
 
#define NVME_RPMB_DCB_READ_RESPONSE   0x0700
 
#define NVME_RPMB_RESULT_SUCCESS   0x00
 
#define NVME_RPMB_RESULT_GENERAL_FAILURE   0x01
 
#define NVME_RPMB_RESULT_AHTHENTICATION_FAILURE   0x02
 
#define NVME_RPMB_RESULT_COUNTER_FAILURE   0x03
 
#define NVME_RPMB_RESULT_ADDRESS_FAILURE   0x04
 
#define NVME_RPMB_RESULT_WRITE_FAILURE   0x05
 
#define NVME_RPMB_RESULT_READ_FAILURE   0x06
 
#define NVME_RPMB_RESULT_AUTHKEY_NOT_PROGRAMMED   0x07
 
#define NVME_RPMB_RESULT_INVALID_DCB   0x08
 
#define LID_ERROR_INFO   0x1
 
#define LID_SMART_INFO   0x2
 
#define LID_FW_SLOT_INFO   0x3
 
#define LID_BP_INFO   0x15
 
#define LID_SANITIZE_STATUS_INFO   0x81
 
#define SANITIZE_ACTION_NO_ACTION   0x0
 
#define SANITIZE_ACTION_EXIT_FAILURE_MODE   0x1
 
#define SANITIZE_ACTION_BLOCK_ERASE   0x2
 
#define SANITIZE_ACTION_OVERWRITE   0x3
 
#define SANITIZE_ACTION_CRYPTO_ERASE   0x4
 
#define SES_NO_SECURE_ERASE   0x0
 
#define SES_USER_DATA_ERASE   0x1
 
#define SES_CRYPTO_ERASE   0x2
 
#define NVME_ADMIN_DEIOSQ_CMD   0x00
 
#define NVME_ADMIN_CRIOSQ_CMD   0x01
 
#define NVME_ADMIN_GET_LOG_PAGE_CMD   0x02
 
#define NVME_ADMIN_DEIOCQ_CMD   0x04
 
#define NVME_ADMIN_CRIOCQ_CMD   0x05
 
#define NVME_ADMIN_IDENTIFY_CMD   0x06
 
#define NVME_ADMIN_ABORT_CMD   0x08
 
#define NVME_ADMIN_SET_FEATURES_CMD   0x09
 
#define NVME_ADMIN_GET_FEATURES_CMD   0x0A
 
#define NVME_ADMIN_ASYNC_EVENT_REQUEST_CMD   0x0C
 
#define NVME_ADMIN_NAMESACE_MANAGEMENT_CMD   0x0D
 
#define NVME_ADMIN_FW_COMMIT_CMD   0x10
 
#define NVME_ADMIN_FW_IAMGE_DOWNLOAD_CMD   0x11
 
#define NVME_ADMIN_NAMESACE_ATTACHMENT_CMD   0x15
 
#define NVME_ADMIN_FORMAT_NVM_CMD   0x80
 
#define NVME_ADMIN_SECURITY_SEND_CMD   0x81
 
#define NVME_ADMIN_SECURITY_RECEIVE_CMD   0x82
 
#define NVME_ADMIN_SANITIZE_CMD   0x84
 
#define NVME_IO_FLUSH_OPC   0
 
#define NVME_IO_WRITE_OPC   1
 
#define NVME_IO_READ_OPC   2
 

Enumerations

enum  NVME_ADMIN_COMMAND_OPCODE {
  DeleteIOSubmissionQueueOpcode = NVME_ADMIN_DEIOSQ_CMD , CreateIOSubmissionQueueOpcode = NVME_ADMIN_CRIOSQ_CMD , GetLogPageOpcode = NVME_ADMIN_GET_LOG_PAGE_CMD , DeleteIOCompletionQueueOpcode = NVME_ADMIN_DEIOCQ_CMD ,
  CreateIOCompletionQueueOpcode = NVME_ADMIN_CRIOCQ_CMD , IdentifyOpcode = NVME_ADMIN_IDENTIFY_CMD , AbortOpcode = NVME_ADMIN_ABORT_CMD , SetFeaturesOpcode = NVME_ADMIN_SET_FEATURES_CMD ,
  GetFeaturesOpcode = NVME_ADMIN_GET_FEATURES_CMD , AsyncEventRequestOpcode = NVME_ADMIN_ASYNC_EVENT_REQUEST_CMD , NamespaceManagementOpcode = NVME_ADMIN_NAMESACE_MANAGEMENT_CMD , FirmwareCommitOpcode = NVME_ADMIN_FW_COMMIT_CMD ,
  FirmwareImageDownloadOpcode = NVME_ADMIN_FW_IAMGE_DOWNLOAD_CMD , NamespaceAttachmentOpcode = NVME_ADMIN_NAMESACE_ATTACHMENT_CMD , FormatNvmOpcode = NVME_ADMIN_FORMAT_NVM_CMD , SecuritySendOpcode = NVME_ADMIN_SECURITY_SEND_CMD ,
  SecurityReceiveOpcode = NVME_ADMIN_SECURITY_RECEIVE_CMD , SanitizeOpcode = NVME_ADMIN_SANITIZE_CMD
}
 
enum  NVME_ADMIN_IDENTIFY_CNS { IdentifyNamespaceCns = 0x0 , IdentifyControllerCns = 0x1 , IdentifyActiveNsListCns = 0x2 }
 
enum  NVME_FW_ACTIVATE_ACTION { ActivateActionReplace = 0x0 , ActivateActionReplaceActivate = 0x1 , ActivateActionActivate = 0x2 }
 
enum  NVME_FW_ACTIVATE_SLOT {
  FirmwareSlotCtrlChooses = 0x0 , FirmwareSlot1 = 0x1 , FirmwareSlot2 = 0x2 , FirmwareSlot3 = 0x3 ,
  FirmwareSlot4 = 0x4 , FirmwareSlot5 = 0x5 , FirmwareSlot6 = 0x6 , FirmwareSlot7 = 0x7
}
 
enum  NVME_LOG_ID {
  ErrorInfoLogID = LID_ERROR_INFO , SmartHealthInfoLogID = LID_SMART_INFO , FirmwareSlotInfoLogID = LID_FW_SLOT_INFO , BootPartitionInfoLogID = LID_BP_INFO ,
  SanitizeStatusInfoLogID = LID_SANITIZE_STATUS_INFO
}
 

Detailed Description

Definitions based on NVMe spec. version 2.0c.

(C) Copyright 2016 Hewlett Packard Enterprise Development LP
Copyright (c) 2017 - 2023, Intel Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent

Specification Reference:
NVMe Specification 1.1 NVMe Specification 1.4 NVMe Specification 2.0 NVMe Specification 2.0c

Definition in file Nvme.h.

Macro Definition Documentation

◆ FORMAT_NVM_SUPPORTED

#define FORMAT_NVM_SUPPORTED   BIT1

Definition at line 409 of file Nvme.h.

◆ FW_DOWNLOAD_ACTIVATE_SUPPORTED

#define FW_DOWNLOAD_ACTIVATE_SUPPORTED   BIT2

Definition at line 408 of file Nvme.h.

◆ LBAF_RP_BEST

#define LBAF_RP_BEST   00b

Definition at line 483 of file Nvme.h.

◆ LBAF_RP_BETTER

#define LBAF_RP_BETTER   01b

Definition at line 484 of file Nvme.h.

◆ LBAF_RP_DEGRADED

#define LBAF_RP_DEGRADED   11b

Definition at line 486 of file Nvme.h.

◆ LBAF_RP_GOOD

#define LBAF_RP_GOOD   10b

Definition at line 485 of file Nvme.h.

◆ LID_BP_INFO

#define LID_BP_INFO   0x15

Definition at line 734 of file Nvme.h.

◆ LID_ERROR_INFO

#define LID_ERROR_INFO   0x1

Definition at line 731 of file Nvme.h.

◆ LID_FW_SLOT_INFO

#define LID_FW_SLOT_INFO   0x3

Definition at line 733 of file Nvme.h.

◆ LID_SANITIZE_STATUS_INFO

#define LID_SANITIZE_STATUS_INFO   0x81

Definition at line 735 of file Nvme.h.

◆ LID_SMART_INFO

#define LID_SMART_INFO   0x2

Definition at line 732 of file Nvme.h.

◆ NAMESPACE_MANAGEMENT_SUPPORTED

#define NAMESPACE_MANAGEMENT_SUPPORTED   BIT3

Definition at line 407 of file Nvme.h.

◆ NVME_ACQ

#define NVME_ACQ   UINT64

Definition at line 127 of file Nvme.h.

◆ NVME_ACQ_OFFSET

#define NVME_ACQ_OFFSET   0x0030

Definition at line 34 of file Nvme.h.

◆ NVME_ADMIN_ABORT_CMD

#define NVME_ADMIN_ABORT_CMD   0x08

Definition at line 936 of file Nvme.h.

◆ NVME_ADMIN_ASYNC_EVENT_REQUEST_CMD

#define NVME_ADMIN_ASYNC_EVENT_REQUEST_CMD   0x0C

Definition at line 939 of file Nvme.h.

◆ NVME_ADMIN_CRIOCQ_CMD

#define NVME_ADMIN_CRIOCQ_CMD   0x05

Definition at line 934 of file Nvme.h.

◆ NVME_ADMIN_CRIOSQ_CMD

#define NVME_ADMIN_CRIOSQ_CMD   0x01

Definition at line 931 of file Nvme.h.

◆ NVME_ADMIN_DEIOCQ_CMD

#define NVME_ADMIN_DEIOCQ_CMD   0x04

Definition at line 933 of file Nvme.h.

◆ NVME_ADMIN_DEIOSQ_CMD

#define NVME_ADMIN_DEIOSQ_CMD   0x00

Definition at line 930 of file Nvme.h.

◆ NVME_ADMIN_FORMAT_NVM_CMD

#define NVME_ADMIN_FORMAT_NVM_CMD   0x80

Definition at line 944 of file Nvme.h.

◆ NVME_ADMIN_FW_COMMIT_CMD

#define NVME_ADMIN_FW_COMMIT_CMD   0x10

Definition at line 941 of file Nvme.h.

◆ NVME_ADMIN_FW_IAMGE_DOWNLOAD_CMD

#define NVME_ADMIN_FW_IAMGE_DOWNLOAD_CMD   0x11

Definition at line 942 of file Nvme.h.

◆ NVME_ADMIN_GET_FEATURES_CMD

#define NVME_ADMIN_GET_FEATURES_CMD   0x0A

Definition at line 938 of file Nvme.h.

◆ NVME_ADMIN_GET_LOG_PAGE_CMD

#define NVME_ADMIN_GET_LOG_PAGE_CMD   0x02

Definition at line 932 of file Nvme.h.

◆ NVME_ADMIN_IDENTIFY_CMD

#define NVME_ADMIN_IDENTIFY_CMD   0x06

Definition at line 935 of file Nvme.h.

◆ NVME_ADMIN_NAMESACE_ATTACHMENT_CMD

#define NVME_ADMIN_NAMESACE_ATTACHMENT_CMD   0x15

Definition at line 943 of file Nvme.h.

◆ NVME_ADMIN_NAMESACE_MANAGEMENT_CMD

#define NVME_ADMIN_NAMESACE_MANAGEMENT_CMD   0x0D

Definition at line 940 of file Nvme.h.

◆ NVME_ADMIN_SANITIZE_CMD

#define NVME_ADMIN_SANITIZE_CMD   0x84

Definition at line 947 of file Nvme.h.

◆ NVME_ADMIN_SECURITY_RECEIVE_CMD

#define NVME_ADMIN_SECURITY_RECEIVE_CMD   0x82

Definition at line 946 of file Nvme.h.

◆ NVME_ADMIN_SECURITY_SEND_CMD

#define NVME_ADMIN_SECURITY_SEND_CMD   0x81

Definition at line 945 of file Nvme.h.

◆ NVME_ADMIN_SET_FEATURES_CMD

#define NVME_ADMIN_SET_FEATURES_CMD   0x09

Definition at line 937 of file Nvme.h.

◆ NVME_AQA_OFFSET

#define NVME_AQA_OFFSET   0x0024

Definition at line 32 of file Nvme.h.

◆ NVME_ASQ

#define NVME_ASQ   UINT64

Definition at line 123 of file Nvme.h.

◆ NVME_ASQ_OFFSET

#define NVME_ASQ_OFFSET   0x0028

Definition at line 33 of file Nvme.h.

◆ NVME_BPINFO_OFFSET

#define NVME_BPINFO_OFFSET   0x0040

Definition at line 37 of file Nvme.h.

◆ NVME_BPMBL_OFFSET

#define NVME_BPMBL_OFFSET   0x0048

Definition at line 39 of file Nvme.h.

◆ NVME_BPRSEL_OFFSET

#define NVME_BPRSEL_OFFSET   0x0044

Definition at line 38 of file Nvme.h.

◆ NVME_CAP_OFFSET

#define NVME_CAP_OFFSET   0x0000

Definition at line 25 of file Nvme.h.

◆ NVME_CC_OFFSET

#define NVME_CC_OFFSET   0x0014

Definition at line 29 of file Nvme.h.

◆ NVME_CC_SHN_ABRUPT_SHUTDOWN

#define NVME_CC_SHN_ABRUPT_SHUTDOWN   2

Definition at line 96 of file Nvme.h.

◆ NVME_CC_SHN_NORMAL_SHUTDOWN

#define NVME_CC_SHN_NORMAL_SHUTDOWN   1

Definition at line 95 of file Nvme.h.

◆ NVME_CMBLOC_OFFSET

#define NVME_CMBLOC_OFFSET   0x0038

Definition at line 35 of file Nvme.h.

◆ NVME_CMBSZ_OFFSET

#define NVME_CMBSZ_OFFSET   0x003C

Definition at line 36 of file Nvme.h.

◆ NVME_CQ0_OFFSET

#define NVME_CQ0_OFFSET   0x1004

Definition at line 41 of file Nvme.h.

◆ NVME_CQHDBL_OFFSET

#define NVME_CQHDBL_OFFSET (   QID,
  DSTRD 
)    0x1000 + (((2 * (QID)) + 1) * (4 << (DSTRD)))

Definition at line 48 of file Nvme.h.

◆ NVME_CSTS_OFFSET

#define NVME_CSTS_OFFSET   0x001c

Definition at line 30 of file Nvme.h.

◆ NVME_CSTS_SHST_SHUTDOWN_COMPLETED

#define NVME_CSTS_SHST_SHUTDOWN_COMPLETED   2

Definition at line 109 of file Nvme.h.

◆ NVME_CSTS_SHST_SHUTDOWN_OCCURRING

#define NVME_CSTS_SHST_SHUTDOWN_OCCURRING   1

Definition at line 108 of file Nvme.h.

◆ NVME_INTMC_OFFSET

#define NVME_INTMC_OFFSET   0x0010

Definition at line 28 of file Nvme.h.

◆ NVME_INTMS_OFFSET

#define NVME_INTMS_OFFSET   0x000c

Definition at line 27 of file Nvme.h.

◆ NVME_IO_FLUSH_OPC

#define NVME_IO_FLUSH_OPC   0

Definition at line 949 of file Nvme.h.

◆ NVME_IO_READ_OPC

#define NVME_IO_READ_OPC   2

Definition at line 951 of file Nvme.h.

◆ NVME_IO_WRITE_OPC

#define NVME_IO_WRITE_OPC   1

Definition at line 950 of file Nvme.h.

◆ NVME_NSSR_OFFSET

#define NVME_NSSR_OFFSET   0x0020

Definition at line 31 of file Nvme.h.

◆ NVME_RPMB_AUTHDATA_READ

#define NVME_RPMB_AUTHDATA_READ   0x0004

Definition at line 565 of file Nvme.h.

◆ NVME_RPMB_AUTHDATA_READ_RESPONSE

#define NVME_RPMB_AUTHDATA_READ_RESPONSE   0x0400

Definition at line 572 of file Nvme.h.

◆ NVME_RPMB_AUTHDATA_WRITE

#define NVME_RPMB_AUTHDATA_WRITE   0x0003

Definition at line 564 of file Nvme.h.

◆ NVME_RPMB_AUTHDATA_WRITE_RESPONSE

#define NVME_RPMB_AUTHDATA_WRITE_RESPONSE   0x0300

Definition at line 571 of file Nvme.h.

◆ NVME_RPMB_AUTHKEY_PROGRAM

#define NVME_RPMB_AUTHKEY_PROGRAM   0x0001

Definition at line 562 of file Nvme.h.

◆ NVME_RPMB_AUTHKEY_PROGRAM_RESPONSE

#define NVME_RPMB_AUTHKEY_PROGRAM_RESPONSE   0x0100

Definition at line 569 of file Nvme.h.

◆ NVME_RPMB_COUNTER_READ

#define NVME_RPMB_COUNTER_READ   0x0002

Definition at line 563 of file Nvme.h.

◆ NVME_RPMB_COUNTER_READ_RESPONSE

#define NVME_RPMB_COUNTER_READ_RESPONSE   0x0200

Definition at line 570 of file Nvme.h.

◆ NVME_RPMB_DCB_READ

#define NVME_RPMB_DCB_READ   0x0007

Definition at line 568 of file Nvme.h.

◆ NVME_RPMB_DCB_READ_RESPONSE

#define NVME_RPMB_DCB_READ_RESPONSE   0x0700

Definition at line 574 of file Nvme.h.

◆ NVME_RPMB_DCB_WRITE

#define NVME_RPMB_DCB_WRITE   0x0006

Definition at line 567 of file Nvme.h.

◆ NVME_RPMB_DCB_WRITE_RESPONSE

#define NVME_RPMB_DCB_WRITE_RESPONSE   0x0600

Definition at line 573 of file Nvme.h.

◆ NVME_RPMB_RESULT_ADDRESS_FAILURE

#define NVME_RPMB_RESULT_ADDRESS_FAILURE   0x04

Definition at line 584 of file Nvme.h.

◆ NVME_RPMB_RESULT_AHTHENTICATION_FAILURE

#define NVME_RPMB_RESULT_AHTHENTICATION_FAILURE   0x02

Definition at line 582 of file Nvme.h.

◆ NVME_RPMB_RESULT_AUTHKEY_NOT_PROGRAMMED

#define NVME_RPMB_RESULT_AUTHKEY_NOT_PROGRAMMED   0x07

Definition at line 587 of file Nvme.h.

◆ NVME_RPMB_RESULT_COUNTER_FAILURE

#define NVME_RPMB_RESULT_COUNTER_FAILURE   0x03

Definition at line 583 of file Nvme.h.

◆ NVME_RPMB_RESULT_GENERAL_FAILURE

#define NVME_RPMB_RESULT_GENERAL_FAILURE   0x01

Definition at line 581 of file Nvme.h.

◆ NVME_RPMB_RESULT_INVALID_DCB

#define NVME_RPMB_RESULT_INVALID_DCB   0x08

Definition at line 588 of file Nvme.h.

◆ NVME_RPMB_RESULT_READ

#define NVME_RPMB_RESULT_READ   0x0005

Definition at line 566 of file Nvme.h.

◆ NVME_RPMB_RESULT_READ_FAILURE

#define NVME_RPMB_RESULT_READ_FAILURE   0x06

Definition at line 586 of file Nvme.h.

◆ NVME_RPMB_RESULT_SUCCESS

#define NVME_RPMB_RESULT_SUCCESS   0x00

Definition at line 580 of file Nvme.h.

◆ NVME_RPMB_RESULT_WRITE_FAILURE

#define NVME_RPMB_RESULT_WRITE_FAILURE   0x05

Definition at line 585 of file Nvme.h.

◆ NVME_SQ0_OFFSET

#define NVME_SQ0_OFFSET   0x1000

Definition at line 40 of file Nvme.h.

◆ NVME_SQTDBL_OFFSET

#define NVME_SQTDBL_OFFSET (   QID,
  DSTRD 
)    0x1000 + ((2 * (QID)) * (4 << (DSTRD)))

Definition at line 47 of file Nvme.h.

◆ NVME_VER_OFFSET

#define NVME_VER_OFFSET   0x0008

Definition at line 26 of file Nvme.h.

◆ RPMB_FRAME_STUFF_BYTES

#define RPMB_FRAME_STUFF_BYTES   223

Definition at line 529 of file Nvme.h.

◆ SANITIZE_ACTION_BLOCK_ERASE

#define SANITIZE_ACTION_BLOCK_ERASE   0x2

Definition at line 774 of file Nvme.h.

◆ SANITIZE_ACTION_CRYPTO_ERASE

#define SANITIZE_ACTION_CRYPTO_ERASE   0x4

Definition at line 776 of file Nvme.h.

◆ SANITIZE_ACTION_EXIT_FAILURE_MODE

#define SANITIZE_ACTION_EXIT_FAILURE_MODE   0x1

Definition at line 773 of file Nvme.h.

◆ SANITIZE_ACTION_NO_ACTION

#define SANITIZE_ACTION_NO_ACTION   0x0

Definition at line 772 of file Nvme.h.

◆ SANITIZE_ACTION_OVERWRITE

#define SANITIZE_ACTION_OVERWRITE   0x3

Definition at line 775 of file Nvme.h.

◆ SECURITY_SEND_RECEIVE_SUPPORTED

#define SECURITY_SEND_RECEIVE_SUPPORTED   BIT0

Definition at line 410 of file Nvme.h.

◆ SES_CRYPTO_ERASE

#define SES_CRYPTO_ERASE   0x2

Definition at line 795 of file Nvme.h.

◆ SES_NO_SECURE_ERASE

#define SES_NO_SECURE_ERASE   0x0

Definition at line 793 of file Nvme.h.

◆ SES_USER_DATA_ERASE

#define SES_USER_DATA_ERASE   0x1

Definition at line 794 of file Nvme.h.

Enumeration Type Documentation

◆ NVME_ADMIN_COMMAND_OPCODE

enum NVME_ADMIN_COMMAND_OPCODE

Definition at line 953 of file Nvme.h.

◆ NVME_ADMIN_IDENTIFY_CNS

enum NVME_ADMIN_IDENTIFY_CNS

Definition at line 978 of file Nvme.h.

◆ NVME_FW_ACTIVATE_ACTION

enum NVME_FW_ACTIVATE_ACTION

Definition at line 988 of file Nvme.h.

◆ NVME_FW_ACTIVATE_SLOT

enum NVME_FW_ACTIVATE_SLOT

Definition at line 998 of file Nvme.h.

◆ NVME_LOG_ID

enum NVME_LOG_ID

Definition at line 1013 of file Nvme.h.