1, Add <Library/DevicePathLib.h> for all source that use device path utility macros

2, Add DevicePathLib library class to module's INF that use device path utility macros

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6458 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2008-11-11 15:44:41 +00:00
parent 2067710de0
commit a6d5e5f7f3
4 changed files with 7 additions and 5 deletions

View File

@ -24,7 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiDriverEntryPoint.h> #include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
/** /**
This function returns the size, in bytes, This function returns the size, in bytes,
@ -52,8 +52,8 @@ SmmGetDevicePathSize (
// Search for the end of the device path structure // Search for the end of the device path structure
// //
Start = DevicePath; Start = DevicePath;
while (!EfiIsDevicePathEnd (DevicePath)) { while (!IsDevicePathEnd (DevicePath)) {
DevicePath = EfiNextDevicePathNode (DevicePath); DevicePath = NextDevicePathNode (DevicePath);
} }
// //

View File

@ -43,7 +43,7 @@
[LibraryClasses] [LibraryClasses]
DebugLib DebugLib
UefiBootServicesTableLib UefiBootServicesTableLib
DevicePathLib
[Protocols] [Protocols]
gEfiLoadedImageProtocolGuid # PROTOCOL ALWAYS_CONSUMED gEfiLoadedImageProtocolGuid # PROTOCOL ALWAYS_CONSUMED

View File

@ -38,5 +38,6 @@
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h> #include <Library/PcdLib.h>
#include <Library/PrintLib.h> #include <Library/PrintLib.h>
#include <Library/DevicePathLib.h>
#endif #endif

View File

@ -55,6 +55,7 @@
BaseMemoryLib BaseMemoryLib
BaseLib BaseLib
UefiBootServicesTableLib UefiBootServicesTableLib
DevicePathLib
[Protocols] [Protocols]
gEfiDriverBindingProtocolGuid # ALWAYS_CONSUMED gEfiDriverBindingProtocolGuid # ALWAYS_CONSUMED