Status = FdtClient->FindCompatibleNode (FdtClient, "pci-host-ecam-generic",\r
&Node);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_INFO,\r
+ DEBUG ((DEBUG_INFO,\r
"%a: No 'pci-host-ecam-generic' compatible DT node found\n",\r
__FUNCTION__));\r
return EFI_NOT_FOUND;\r
\r
Status = FdtClient->GetNodeProperty (FdtClient, Node, "reg", &Prop, &Len);\r
if (EFI_ERROR (Status) || Len != 2 * sizeof (UINT64)) {\r
- DEBUG ((EFI_D_ERROR, "%a: 'reg' property not found or invalid\n",\r
+ DEBUG ((DEBUG_ERROR, "%a: 'reg' property not found or invalid\n",\r
__FUNCTION__));\r
return EFI_PROTOCOL_ERROR;\r
}\r
Status = FdtClient->GetNodeProperty (FdtClient, Node, "bus-range", &Prop,\r
&Len);\r
if (EFI_ERROR (Status) || Len != 2 * sizeof (UINT32)) {\r
- DEBUG ((EFI_D_ERROR, "%a: 'bus-range' not found or invalid\n",\r
+ DEBUG ((DEBUG_ERROR, "%a: 'bus-range' not found or invalid\n",\r
__FUNCTION__));\r
return EFI_PROTOCOL_ERROR;\r
}\r
//\r
if (*BusMax < *BusMin || *BusMax - *BusMin == MAX_UINT32 ||\r
DivU64x32 (ConfigSize, SIZE_4KB * 8 * 32) < *BusMax - *BusMin + 1) {\r
- DEBUG ((EFI_D_ERROR, "%a: invalid 'bus-range' and/or 'reg'\n",\r
+ DEBUG ((DEBUG_ERROR, "%a: invalid 'bus-range' and/or 'reg'\n",\r
__FUNCTION__));\r
return EFI_PROTOCOL_ERROR;\r
}\r
Status = FdtClient->GetNodeProperty (FdtClient, Node, "ranges", &Prop, &Len);\r
if (EFI_ERROR (Status) || Len == 0 ||\r
Len % sizeof (DTB_PCI_HOST_RANGE_RECORD) != 0) {\r
- DEBUG ((EFI_D_ERROR, "%a: 'ranges' not found or invalid\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_ERROR, "%a: 'ranges' not found or invalid\n", __FUNCTION__));\r
return EFI_PROTOCOL_ERROR;\r
}\r
\r
\r
if (*Mmio32Base > MAX_UINT32 || *Mmio32Size > MAX_UINT32 ||\r
*Mmio32Base + *Mmio32Size > SIZE_4GB) {\r
- DEBUG ((EFI_D_ERROR, "%a: MMIO32 space invalid\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_ERROR, "%a: MMIO32 space invalid\n", __FUNCTION__));\r
return EFI_PROTOCOL_ERROR;\r
}\r
\r
ASSERT (PcdGet64 (PcdPciMmio32Translation) == Mmio32Translation);\r
\r
if (Mmio32Translation != 0) {\r
- DEBUG ((EFI_D_ERROR, "%a: unsupported nonzero MMIO32 translation "\r
+ DEBUG ((DEBUG_ERROR, "%a: unsupported nonzero MMIO32 translation "\r
"0x%Lx\n", __FUNCTION__, Mmio32Translation));\r
return EFI_UNSUPPORTED;\r
}\r
ASSERT (PcdGet64 (PcdPciMmio64Translation) == Mmio64Translation);\r
\r
if (Mmio64Translation != 0) {\r
- DEBUG ((EFI_D_ERROR, "%a: unsupported nonzero MMIO64 translation "\r
+ DEBUG ((DEBUG_ERROR, "%a: unsupported nonzero MMIO64 translation "\r
"0x%Lx\n", __FUNCTION__, Mmio64Translation));\r
return EFI_UNSUPPORTED;\r
}\r
}\r
}\r
if (*IoSize == 0 || *Mmio32Size == 0) {\r
- DEBUG ((EFI_D_ERROR, "%a: %a space empty\n", __FUNCTION__,\r
+ DEBUG ((DEBUG_ERROR, "%a: %a space empty\n", __FUNCTION__,\r
(*IoSize == 0) ? "IO" : "MMIO32"));\r
return EFI_PROTOCOL_ERROR;\r
}\r
//\r
ASSERT (PcdGet64 (PcdPciExpressBaseAddress) == ConfigBase);\r
\r
- DEBUG ((EFI_D_INFO, "%a: Config[0x%Lx+0x%Lx) Bus[0x%x..0x%x] "\r
+ DEBUG ((DEBUG_INFO, "%a: Config[0x%Lx+0x%Lx) Bus[0x%x..0x%x] "\r
"Io[0x%Lx+0x%Lx)@0x%Lx Mem32[0x%Lx+0x%Lx)@0x0 Mem64[0x%Lx+0x%Lx)@0x0\n",\r
__FUNCTION__, ConfigBase, ConfigSize, *BusMin, *BusMax, *IoBase, *IoSize,\r
IoTranslation, *Mmio32Base, *Mmio32Size, *Mmio64Base, *Mmio64Size));\r
PCI_ROOT_BRIDGE_APERTURE PMemAbove4G;\r
\r
if (PcdGet64 (PcdPciExpressBaseAddress) == 0) {\r
- DEBUG ((EFI_D_INFO, "%a: PCI host bridge not present\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_INFO, "%a: PCI host bridge not present\n", __FUNCTION__));\r
\r
*Count = 0;\r
return NULL;\r
Status = ProcessPciHost (&IoBase, &IoSize, &Mmio32Base, &Mmio32Size,\r
&Mmio64Base, &Mmio64Size, &BusMin, &BusMax);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: failed to discover PCI host bridge: %r\n",\r
+ DEBUG ((DEBUG_ERROR, "%a: failed to discover PCI host bridge: %r\n",\r
__FUNCTION__, Status));\r
*Count = 0;\r
return NULL;\r
Status = FdtClient->GetNodeProperty (FdtClient, Node, "reg",\r
(CONST VOID **)&Reg, &RegSize);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: GetNodeProperty () failed (Status == %r)\n",\r
+ DEBUG ((DEBUG_ERROR, "%a: GetNodeProperty () failed (Status == %r)\n",\r
__FUNCTION__, Status));\r
continue;\r
}\r
HW_VENDOR_DP,\r
sizeof (VIRTIO_TRANSPORT_DEVICE_PATH));\r
if (DevicePath == NULL) {\r
- DEBUG ((EFI_D_ERROR, "%a: Out of memory\n", __FUNCTION__));\r
+ DEBUG ((DEBUG_ERROR, "%a: Out of memory\n", __FUNCTION__));\r
continue;\r
}\r
\r
&gEfiDevicePathProtocolGuid, EFI_NATIVE_INTERFACE,\r
DevicePath);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: Failed to install the EFI_DEVICE_PATH "\r
+ DEBUG ((DEBUG_ERROR, "%a: Failed to install the EFI_DEVICE_PATH "\r
"protocol on a new handle (Status == %r)\n",\r
__FUNCTION__, Status));\r
FreePool (DevicePath);\r
\r
Status = VirtioMmioInstallDevice (RegBase, Handle);\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_ERROR, "%a: Failed to install VirtIO transport @ 0x%Lx "\r
+ DEBUG ((DEBUG_ERROR, "%a: Failed to install VirtIO transport @ 0x%Lx "\r
"on handle %p (Status == %r)\n", __FUNCTION__, RegBase,\r
Handle, Status));\r
\r
}\r
\r
if (EFI_ERROR (FindNodeStatus) && FindNodeStatus != EFI_NOT_FOUND) {\r
- DEBUG ((EFI_D_ERROR, "%a: Error occurred while iterating DT nodes "\r
+ DEBUG ((DEBUG_ERROR, "%a: Error occurred while iterating DT nodes "\r
"(FindNodeStatus == %r)\n", __FUNCTION__, FindNodeStatus));\r
}\r
\r