diff options
author | gikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-03 08:18:43 +0000 |
---|---|---|
committer | gikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-03 08:18:43 +0000 |
commit | 8e6b0dcb504ded3dbdfd6d4128469a6e683e1c83 (patch) | |
tree | c46013c9af833ddeec8cbacff9984757bafabe15 /IntelFrameworkModulePkg/Library | |
parent | deb7f094d4b01c1df4778b17439f5aede3d57766 (diff) | |
download | edk2-platforms-8e6b0dcb504ded3dbdfd6d4128469a6e683e1c83.tar.xz |
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
Diffstat (limited to 'IntelFrameworkModulePkg/Library')
-rw-r--r-- | IntelFrameworkModulePkg/Library/GenericBdsLib/DevicePath.c | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ -1134,6 +1134,33 @@ DevPathFvFilePath ( **/
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.
+
+ @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
DevPathBssBss (
IN OUT POOL_PRINT *Str,
IN VOID *DevPath
@@ -1400,6 +1427,11 @@ DEVICE_PATH_STRING_TABLE DevPathTable[] = { DevPathFvFilePath
},
{
+ MEDIA_DEVICE_PATH,
+ MEDIA_RELATIVE_OFFSET_RANGE_DP,
+ DevPathRelativeOffsetRange,
+ },
+ {
BBS_DEVICE_PATH,
BBS_BBS_DP,
DevPathBssBss
|