Loaded Image device paths for EFI Drivers loaded from PCI Option ROM

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8025 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy
2009-04-03 08:18:43 +00:00
parent deb7f094d4
commit 8e6b0dcb50
13 changed files with 503 additions and 209 deletions

View File

@@ -1123,6 +1123,33 @@ DevPathFvFilePath (
CatPrint (Str, L"%g", &FvFilePath->FvFileName);
}
/**
Convert Device Path to a Unicode string for printing.
@param Str The buffer holding the output string.
This buffer contains the length of the
string and the maixmum length reserved
for the string buffer.
@param DevPath The device path.
**/
VOID
DevPathRelativeOffsetRange (
IN OUT POOL_PRINT *Str,
IN VOID *DevPath
)
{
MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *Offset;
Offset = DevPath;
CatPrint (
Str,
L"Offset(%lx,%lx)",
Offset->StartingOffset,
Offset->EndingOffset
);
}
/**
Convert Device Path to a Unicode string for printing.
@@ -1399,6 +1426,11 @@ DEVICE_PATH_STRING_TABLE DevPathTable[] = {
MEDIA_PIWG_FW_FILE_DP,
DevPathFvFilePath
},
{
MEDIA_DEVICE_PATH,
MEDIA_RELATIVE_OFFSET_RANGE_DP,
DevPathRelativeOffsetRange,
},
{
BBS_DEVICE_PATH,
BBS_BBS_DP,