summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0ca9ea4)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8429
6f19259b-4bc3-4df7-8a09-
765794883524
//\r
// Local variables declaration for StatusCode reporting\r
//\r
//\r
// Local variables declaration for StatusCode reporting\r
//\r
- EFI_RESOURCE_ALLOC_FAILURE_ERROR_DATA AllocFailExtendedData;\r
EFI_DEVICE_PATH_PROTOCOL *DevicePathData;\r
\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
//\r
// Open Device Path Protocol\r
//\r
ParentDevicePath,\r
ResourceList,\r
&DevicePathData\r
ParentDevicePath,\r
ResourceList,\r
&DevicePathData\r
- //&AllocFailExtendedData.DevicePath\r
);\r
\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (EFI_ERROR (Status)) {\r
//\r
// It's hard to tell which resource conflicts\r
//\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
REPORT_STATUS_CODE_WITH_DEVICE_PATH (\r
EFI_ERROR_CODE,\r
(EFI_IO_BUS_LPC | EFI_IOB_EC_RESOURCE_CONFLICT),\r
UefiDriverEntryPoint\r
DebugLib\r
\r
UefiDriverEntryPoint\r
DebugLib\r
\r
-[Guids]\r
- gEfiStatusCodeSpecificDataGuid # ALWAYS_CONSUMED\r
-\r
[Protocols]\r
gEfiIsaIoProtocolGuid # PROTOCOL BY_START\r
gEfiIsaAcpiProtocolGuid # PROTOCOL TO_START\r
[Protocols]\r
gEfiIsaIoProtocolGuid # PROTOCOL BY_START\r
gEfiIsaAcpiProtocolGuid # PROTOCOL TO_START\r