From 8e6b0dcb504ded3dbdfd6d4128469a6e683e1c83 Mon Sep 17 00:00:00 2001 From: gikidy Date: Fri, 3 Apr 2009 08:18:43 +0000 Subject: 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 --- .../Library/GenericBdsLib/DevicePath.c | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'IntelFrameworkModulePkg/Library') diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c index 1ec682262c..c51137f57a 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c @@ -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, -- cgit v1.2.3