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