IN NVME_CQ *Cq\r
)\r
{\r
- DEBUG ((EFI_D_VERBOSE, "Dump NVMe Completion Entry Status from [0x%x]:\n", Cq));\r
+ DEBUG ((DEBUG_VERBOSE, "Dump NVMe Completion Entry Status from [0x%x]:\n", Cq));\r
\r
- DEBUG ((EFI_D_VERBOSE, " SQ Identifier : [0x%x], Phase Tag : [%d], Cmd Identifier : [0x%x]\n", Cq->Sqid, Cq->Pt, Cq->Cid));\r
+ DEBUG ((DEBUG_VERBOSE, " SQ Identifier : [0x%x], Phase Tag : [%d], Cmd Identifier : [0x%x]\n", Cq->Sqid, Cq->Pt, Cq->Cid));\r
\r
- DEBUG ((EFI_D_VERBOSE, " NVMe Cmd Execution Result - "));\r
+ DEBUG ((DEBUG_VERBOSE, " NVMe Cmd Execution Result - "));\r
\r
switch (Cq->Sct) {\r
case 0x0:\r
switch (Cq->Sc) {\r
case 0x0:\r
- DEBUG ((EFI_D_VERBOSE, "Successful Completion\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Successful Completion\n"));\r
break;\r
case 0x1:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Command Opcode\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Command Opcode\n"));\r
break;\r
case 0x2:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Field in Command\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Field in Command\n"));\r
break;\r
case 0x3:\r
- DEBUG ((EFI_D_VERBOSE, "Command ID Conflict\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Command ID Conflict\n"));\r
break;\r
case 0x4:\r
- DEBUG ((EFI_D_VERBOSE, "Data Transfer Error\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Data Transfer Error\n"));\r
break;\r
case 0x5:\r
- DEBUG ((EFI_D_VERBOSE, "Commands Aborted due to Power Loss Notification\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Commands Aborted due to Power Loss Notification\n"));\r
break;\r
case 0x6:\r
- DEBUG ((EFI_D_VERBOSE, "Internal Device Error\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Internal Device Error\n"));\r
break;\r
case 0x7:\r
- DEBUG ((EFI_D_VERBOSE, "Command Abort Requested\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Command Abort Requested\n"));\r
break;\r
case 0x8:\r
- DEBUG ((EFI_D_VERBOSE, "Command Aborted due to SQ Deletion\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Command Aborted due to SQ Deletion\n"));\r
break;\r
case 0x9:\r
- DEBUG ((EFI_D_VERBOSE, "Command Aborted due to Failed Fused Command\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Command Aborted due to Failed Fused Command\n"));\r
break;\r
case 0xA:\r
- DEBUG ((EFI_D_VERBOSE, "Command Aborted due to Missing Fused Command\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Command Aborted due to Missing Fused Command\n"));\r
break;\r
case 0xB:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Namespace or Format\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Namespace or Format\n"));\r
break;\r
case 0xC:\r
- DEBUG ((EFI_D_VERBOSE, "Command Sequence Error\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Command Sequence Error\n"));\r
break;\r
case 0xD:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid SGL Last Segment Descriptor\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid SGL Last Segment Descriptor\n"));\r
break;\r
case 0xE:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Number of SGL Descriptors\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Number of SGL Descriptors\n"));\r
break;\r
case 0xF:\r
- DEBUG ((EFI_D_VERBOSE, "Data SGL Length Invalid\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Data SGL Length Invalid\n"));\r
break;\r
case 0x10:\r
- DEBUG ((EFI_D_VERBOSE, "Metadata SGL Length Invalid\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Metadata SGL Length Invalid\n"));\r
break;\r
case 0x11:\r
- DEBUG ((EFI_D_VERBOSE, "SGL Descriptor Type Invalid\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "SGL Descriptor Type Invalid\n"));\r
break;\r
case 0x80:\r
- DEBUG ((EFI_D_VERBOSE, "LBA Out of Range\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "LBA Out of Range\n"));\r
break;\r
case 0x81:\r
- DEBUG ((EFI_D_VERBOSE, "Capacity Exceeded\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Capacity Exceeded\n"));\r
break;\r
case 0x82:\r
- DEBUG ((EFI_D_VERBOSE, "Namespace Not Ready\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Namespace Not Ready\n"));\r
break;\r
case 0x83:\r
- DEBUG ((EFI_D_VERBOSE, "Reservation Conflict\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Reservation Conflict\n"));\r
break;\r
}\r
break;\r
case 0x1:\r
switch (Cq->Sc) {\r
case 0x0:\r
- DEBUG ((EFI_D_VERBOSE, "Completion Queue Invalid\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Completion Queue Invalid\n"));\r
break;\r
case 0x1:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Queue Identifier\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Queue Identifier\n"));\r
break;\r
case 0x2:\r
- DEBUG ((EFI_D_VERBOSE, "Maximum Queue Size Exceeded\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Maximum Queue Size Exceeded\n"));\r
break;\r
case 0x3:\r
- DEBUG ((EFI_D_VERBOSE, "Abort Command Limit Exceeded\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Abort Command Limit Exceeded\n"));\r
break;\r
case 0x5:\r
- DEBUG ((EFI_D_VERBOSE, "Asynchronous Event Request Limit Exceeded\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Asynchronous Event Request Limit Exceeded\n"));\r
break;\r
case 0x6:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Firmware Slot\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Firmware Slot\n"));\r
break;\r
case 0x7:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Firmware Image\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Firmware Image\n"));\r
break;\r
case 0x8:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Interrupt Vector\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Interrupt Vector\n"));\r
break;\r
case 0x9:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Log Page\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Log Page\n"));\r
break;\r
case 0xA:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Format\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Format\n"));\r
break;\r
case 0xB:\r
- DEBUG ((EFI_D_VERBOSE, "Firmware Application Requires Conventional Reset\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Firmware Application Requires Conventional Reset\n"));\r
break;\r
case 0xC:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Queue Deletion\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Queue Deletion\n"));\r
break;\r
case 0xD:\r
- DEBUG ((EFI_D_VERBOSE, "Feature Identifier Not Saveable\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Feature Identifier Not Saveable\n"));\r
break;\r
case 0xE:\r
- DEBUG ((EFI_D_VERBOSE, "Feature Not Changeable\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Feature Not Changeable\n"));\r
break;\r
case 0xF:\r
- DEBUG ((EFI_D_VERBOSE, "Feature Not Namespace Specific\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Feature Not Namespace Specific\n"));\r
break;\r
case 0x10:\r
- DEBUG ((EFI_D_VERBOSE, "Firmware Application Requires NVM Subsystem Reset\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Firmware Application Requires NVM Subsystem Reset\n"));\r
break;\r
case 0x80:\r
- DEBUG ((EFI_D_VERBOSE, "Conflicting Attributes\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Conflicting Attributes\n"));\r
break;\r
case 0x81:\r
- DEBUG ((EFI_D_VERBOSE, "Invalid Protection Information\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Invalid Protection Information\n"));\r
break;\r
case 0x82:\r
- DEBUG ((EFI_D_VERBOSE, "Attempted Write to Read Only Range\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Attempted Write to Read Only Range\n"));\r
break;\r
}\r
break;\r
case 0x2:\r
switch (Cq->Sc) {\r
case 0x80:\r
- DEBUG ((EFI_D_VERBOSE, "Write Fault\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Write Fault\n"));\r
break;\r
case 0x81:\r
- DEBUG ((EFI_D_VERBOSE, "Unrecovered Read Error\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Unrecovered Read Error\n"));\r
break;\r
case 0x82:\r
- DEBUG ((EFI_D_VERBOSE, "End-to-end Guard Check Error\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "End-to-end Guard Check Error\n"));\r
break;\r
case 0x83:\r
- DEBUG ((EFI_D_VERBOSE, "End-to-end Application Tag Check Error\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "End-to-end Application Tag Check Error\n"));\r
break;\r
case 0x84:\r
- DEBUG ((EFI_D_VERBOSE, "End-to-end Reference Tag Check Error\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "End-to-end Reference Tag Check Error\n"));\r
break;\r
case 0x85:\r
- DEBUG ((EFI_D_VERBOSE, "Compare Failure\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Compare Failure\n"));\r
break;\r
case 0x86:\r
- DEBUG ((EFI_D_VERBOSE, "Access Denied\n"));\r
+ DEBUG ((DEBUG_VERBOSE, "Access Denied\n"));\r
break;\r
}\r
break;\r
);\r
\r
if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (*PrpListNo))) {\r
- DEBUG ((EFI_D_ERROR, "NvmeCreatePrpList: create PrpList failure!\n"));\r
+ DEBUG ((DEBUG_ERROR, "NvmeCreatePrpList: create PrpList failure!\n"));\r
goto EXIT;\r
}\r
//\r
//\r
ASSERT (Sq->Psdt == 0);\r
if (Sq->Psdt != 0) {\r
- DEBUG ((EFI_D_ERROR, "NvmExpressPassThru: doesn't support SGL mechanism\n"));\r
+ DEBUG ((DEBUG_ERROR, "NvmExpressPassThru: doesn't support SGL mechanism\n"));\r
return EFI_UNSUPPORTED;\r
}\r
\r
\r
return Status;\r
}\r
-\r