PcdStatus = PcdSet64S (PcdGicRedistributorsBase, RedistBase);\r
ASSERT_RETURN_ERROR (PcdStatus);\r
\r
- DEBUG ((EFI_D_INFO, "Found GIC v3 (re)distributor @ 0x%Lx (0x%Lx)\n",\r
+ DEBUG ((DEBUG_INFO, "Found GIC v3 (re)distributor @ 0x%Lx (0x%Lx)\n",\r
DistBase, RedistBase));\r
\r
//\r
PcdStatus = PcdSet64S (PcdGicInterruptInterfaceBase, CpuBase);\r
ASSERT_RETURN_ERROR (PcdStatus);\r
\r
- DEBUG ((EFI_D_INFO, "Found GIC @ 0x%Lx/0x%Lx\n", DistBase, CpuBase));\r
+ DEBUG ((DEBUG_INFO, "Found GIC @ 0x%Lx/0x%Lx\n", DistBase, CpuBase));\r
\r
mGicArchRevision = ARM_GIC_ARCH_REVISION_2;\r
break;\r
\r
default:\r
- DEBUG ((EFI_D_ERROR, "%a: No GIC revision specified!\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_ERROR, "%a: No GIC revision specified!\n", __FUNCTION__));\r
return RETURN_NOT_FOUND;\r
}\r
return RETURN_SUCCESS;\r
// DRAM (even at the top of DRAM as it is the first permanent memory allocation)\r
Status = ArmConfigureMmu (MemoryTable, &TranslationTableBase, &TranslationTableSize);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "Error: Failed to enable MMU\n"));\r
+ DEBUG ((DEBUG_ERROR, "Error: Failed to enable MMU\n"));\r
}\r
}\r
\r
\r
Status = FdtClient->FindCompatibleNode (FdtClient, "arm,pl031", &Node);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "%a: No 'arm,pl031' compatible DT node found\n",\r
+ DEBUG ((DEBUG_WARN, "%a: No 'arm,pl031' compatible DT node found\n",\r
__FUNCTION__));\r
return EFI_SUCCESS;\r
}\r
Status = FdtClient->GetNodeProperty (FdtClient, Node, "reg",\r
(CONST VOID **)&Reg, &RegSize);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN,\r
+ DEBUG ((DEBUG_WARN,\r
"%a: No 'reg' property found in 'arm,pl031' compatible DT node\n",\r
__FUNCTION__));\r
return EFI_SUCCESS;\r
PcdStatus = PcdSet32S (PcdPL031RtcBase, (UINT32)RegBase);\r
ASSERT_RETURN_ERROR (PcdStatus);\r
\r
- DEBUG ((EFI_D_INFO, "Found PL031 RTC @ 0x%Lx\n", RegBase));\r
+ DEBUG ((DEBUG_INFO, "Found PL031 RTC @ 0x%Lx\n", RegBase));\r
\r
//\r
// UEFI takes ownership of the RTC hardware, and exposes its functionality\r
Status = FdtClient->SetNodeProperty (FdtClient, Node, "status",\r
"disabled", sizeof ("disabled"));\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "Failed to set PL031 status to 'disabled'\n"));\r
+ DEBUG ((DEBUG_WARN, "Failed to set PL031 status to 'disabled'\n"));\r
}\r
\r
return EFI_SUCCESS;\r
} else if (AsciiStrnCmp (Prop, "smc", 3) == 0) {\r
mArmPsciMethod = 2;\r
} else {\r
- DEBUG ((EFI_D_ERROR, "%a: Unknown PSCI method \"%a\"\n", __FUNCTION__,\r
+ DEBUG ((DEBUG_ERROR, "%a: Unknown PSCI method \"%a\"\n", __FUNCTION__,\r
Prop));\r
return EFI_NOT_FOUND;\r
}\r
break;\r
\r
default:\r
- DEBUG ((EFI_D_ERROR, "%a: no PSCI method defined\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_ERROR, "%a: no PSCI method defined\n", __FUNCTION__));\r
}\r
}\r
\r
break;\r
\r
default:\r
- DEBUG ((EFI_D_ERROR, "%a: no PSCI method defined\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_ERROR, "%a: no PSCI method defined\n", __FUNCTION__));\r
}\r
}\r
\r
HypIntrNum = PropSize < 48 ? 0 : SwapBytes32 (InterruptProp[3].Number)\r
+ (InterruptProp[3].Type ? 16 : 0);\r
\r
- DEBUG ((EFI_D_INFO, "Found Timer interrupts %d, %d, %d, %d\n",\r
+ DEBUG ((DEBUG_INFO, "Found Timer interrupts %d, %d, %d, %d\n",\r
SecIntrNum, IntrNum, VirtIntrNum, HypIntrNum));\r
\r
PcdStatus = PcdSet32S (PcdArmArchTimerSecIntrNum, SecIntrNum);\r
//\r
// This is not an error, just an informative condition.\r
//\r
- DEBUG ((EFI_D_VERBOSE, "%a: %g: %r\n", __FUNCTION__, ProtocolGuid,\r
+ DEBUG ((DEBUG_VERBOSE, "%a: %g: %r\n", __FUNCTION__, ProtocolGuid,\r
Status));\r
return;\r
}\r
Status = PciIo->Pci.Read (PciIo, EfiPciIoWidthUint32, 0 /* Offset */,\r
sizeof Pci / sizeof (UINT32), &Pci);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: %s: %r\n", __FUNCTION__, ReportText, Status));\r
+ DEBUG ((DEBUG_ERROR, "%a: %s: %r\n", __FUNCTION__, ReportText, Status));\r
return FALSE;\r
}\r
\r
NULL, // RemainingDevicePath -- produce all children\r
FALSE // Recursive\r
);\r
- DEBUG ((EFI_ERROR (Status) ? EFI_D_ERROR : EFI_D_VERBOSE, "%a: %s: %r\n",\r
+ DEBUG ((EFI_ERROR (Status) ? DEBUG_ERROR : DEBUG_VERBOSE, "%a: %s: %r\n",\r
__FUNCTION__, ReportText, Status));\r
}\r
\r
\r
DevicePath = DevicePathFromHandle (Handle);\r
if (DevicePath == NULL) {\r
- DEBUG ((EFI_D_ERROR, "%a: %s: handle %p: device path not found\n",\r
+ DEBUG ((DEBUG_ERROR, "%a: %s: handle %p: device path not found\n",\r
__FUNCTION__, ReportText, Handle));\r
return;\r
}\r
\r
Status = EfiBootManagerUpdateConsoleVariable (ConOut, DevicePath, NULL);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: %s: adding to ConOut: %r\n", __FUNCTION__,\r
+ DEBUG ((DEBUG_ERROR, "%a: %s: adding to ConOut: %r\n", __FUNCTION__,\r
ReportText, Status));\r
return;\r
}\r
\r
Status = EfiBootManagerUpdateConsoleVariable (ErrOut, DevicePath, NULL);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: %s: adding to ErrOut: %r\n", __FUNCTION__,\r
+ DEBUG ((DEBUG_ERROR, "%a: %s: adding to ErrOut: %r\n", __FUNCTION__,\r
ReportText, Status));\r
return;\r
}\r
\r
- DEBUG ((EFI_D_VERBOSE, "%a: %s: added to ConOut and ErrOut\n", __FUNCTION__,\r
+ DEBUG ((DEBUG_VERBOSE, "%a: %s: added to ConOut and ErrOut\n", __FUNCTION__,\r
ReportText));\r
}\r
\r
DevicePathString = ConvertDevicePathToText(BootOptions[Index].FilePath,\r
FALSE, FALSE);\r
DEBUG ((\r
- EFI_ERROR (Status) ? EFI_D_WARN : EFI_D_VERBOSE,\r
+ EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,\r
"%a: removing stale Boot#%04x %s: %r\n",\r
__FUNCTION__,\r
(UINT32)BootOptions[Index].OptionNumber,\r
\r
UartBase = fdt64_to_cpu (ReadUnaligned64 (RegProp));\r
\r
- DEBUG ((EFI_D_INFO, "%a: PL011 UART @ 0x%lx\n", __FUNCTION__, UartBase));\r
+ DEBUG ((DEBUG_INFO, "%a: PL011 UART @ 0x%lx\n", __FUNCTION__, UartBase));\r
\r
*UartHobData = UartBase;\r
break;\r
(CONST VOID **)&Reg, &AddressCells, &SizeCells,\r
&RegSize);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "%a: No 'xen,guest-acpi' compatible DT node found\n",\r
+ DEBUG ((DEBUG_WARN, "%a: No 'xen,guest-acpi' compatible DT node found\n",\r
__FUNCTION__));\r
return EFI_NOT_FOUND;\r
}\r
//\r
Status = GetXenArmAcpiRsdp (&XenAcpiRsdpStructurePtr);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_INFO, "%a: No RSDP table found\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_INFO, "%a: No RSDP table found\n", __FUNCTION__));\r
return Status;\r
}\r
\r
(CONST VOID **)&Reg, &AddressCells, &SizeCells,\r
&RegSize);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_WARN, "%a: No 'xen,xen' compatible DT node found\n",\r
+ DEBUG ((DEBUG_WARN, "%a: No 'xen,xen' compatible DT node found\n",\r
__FUNCTION__));\r
return EFI_UNSUPPORTED;\r
}\r
Handle = NULL;\r
Status = XenIoMmioInstall (&Handle, RegBase);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: XenIoMmioInstall () failed on a new handle "\r
+ DEBUG ((DEBUG_ERROR, "%a: XenIoMmioInstall () failed on a new handle "\r
"(Status == %r)\n", __FUNCTION__, Status));\r
return Status;\r
}\r
\r
- DEBUG ((EFI_D_INFO, "Found Xen node with Grant table @ 0x%Lx\n", RegBase));\r
+ DEBUG ((DEBUG_INFO, "Found Xen node with Grant table @ 0x%Lx\n", RegBase));\r
\r
return EFI_SUCCESS;\r
}\r