//\r
// Local variables declaration for StatusCode reporting\r
//\r
- EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA AllocFailExtendedData;\r
EFI_DEVICE_PATH_PROTOCOL *DevicePathData;\r
\r
- //\r
- // Initialize status code structure\r
- //\r
- AllocFailExtendedData.DataHeader.HeaderSize = sizeof (EFI_STATUS_CODE_DATA);\r
- AllocFailExtendedData.DataHeader.Size = sizeof (EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA) - sizeof (EFI_STATUS_CODE_DATA);\r
- CopyMem (\r
- &AllocFailExtendedData.DataHeader.Type,\r
- &gEfiStatusCodeSpecificDataGuid,\r
- sizeof (EFI_GUID)\r
- );\r
-\r
//\r
// Open Device Path Protocol\r
//\r
ParentDevicePath,\r
ResourceList,\r
&DevicePathData\r
- //&AllocFailExtendedData.DevicePath\r
);\r
\r
if (EFI_ERROR (Status)) {\r
//\r
// It's hard to tell which resource conflicts\r
//\r
- AllocFailExtendedData.Bar = 0;\r
- AllocFailExtendedData.ReqRes = NULL;\r
- AllocFailExtendedData.AllocRes = NULL;\r
REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
EFI_ERROR_CODE,\r
(EFI_IO_BUS_LPC | EFI_IOB_EC_RESOURCE_CONFLICT),\r