diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-27 08:50:08 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-27 08:50:08 +0000 |
commit | ffac4bcb25805baa981cf05d581b2e03d073e5a1 (patch) | |
tree | 05dbe0773493e93ead2f9d81f14add18aeb2c29a /EdkModulePkg/Universal/DevicePath/Dxe/DevicePath.c | |
parent | 778cedfb9fa24da690335a50307171afbd1607c6 (diff) | |
download | edk2-platforms-ffac4bcb25805baa981cf05d581b2e03d073e5a1.tar.xz |
Check in patch to refine DevicePath Module and USB2HostController Module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1117 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Universal/DevicePath/Dxe/DevicePath.c')
-rw-r--r-- | EdkModulePkg/Universal/DevicePath/Dxe/DevicePath.c | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/EdkModulePkg/Universal/DevicePath/Dxe/DevicePath.c b/EdkModulePkg/Universal/DevicePath/Dxe/DevicePath.c index 79741a4615..78c5defe3a 100644 --- a/EdkModulePkg/Universal/DevicePath/Dxe/DevicePath.c +++ b/EdkModulePkg/Universal/DevicePath/Dxe/DevicePath.c @@ -20,8 +20,6 @@ Abstract: --*/ -#include <Uefi/UefiSpec.h> -#include <Protocol/DevicePath.h> #include "DevicePath.h" DEVICE_PATH_DRIVER_PRIVATE_DATA mPrivateData; @@ -29,27 +27,6 @@ DEVICE_PATH_DRIVER_PRIVATE_DATA mPrivateData; EFI_GUID mEfiDevicePathMessagingUartFlowControlGuid = DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL; EFI_GUID mEfiDevicePathMessagingSASGuid = DEVICE_PATH_MESSAGING_SAS; -STATIC EFI_DEVICE_PATH_UTILITIES_PROTOCOL mDevicePathUtilitiesProtocol = { - GetDevicePathSize, - DuplicateDevicePath, - AppendDevicePath, - AppendDeviceNode, - AppendDevicePathInstance, - GetNextDevicePathInstance, - IsDevicePathMultiInstance, - CreateDeviceNode -}; - -STATIC EFI_DEVICE_PATH_TO_TEXT_PROTOCOL mDevicePathToTextProtocol = { - ConvertDeviceNodeToText, - ConvertDevicePathToText -}; - -STATIC EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL mDevicePathFromTextProtocol = { - ConvertTextToDeviceNode, - ConvertTextToDevicePath -}; - EFI_STATUS EFIAPI DevicePathEntryPoint ( @@ -75,14 +52,14 @@ DevicePathEntryPoint ( mPrivateData.Signature = DEVICE_PATH_DRIVER_SIGNATURE; - mPrivateData.DevicePathUtilities.GetDevicePathSize = GetDevicePathSize; - mPrivateData.DevicePathUtilities.DuplicateDevicePath = DuplicateDevicePath; - mPrivateData.DevicePathUtilities.AppendDevicePath = AppendDevicePath; - mPrivateData.DevicePathUtilities.AppendDeviceNode = AppendDeviceNode; - mPrivateData.DevicePathUtilities.AppendDevicePathInstance = AppendDevicePathInstance; - mPrivateData.DevicePathUtilities.GetNextDevicePathInstance = GetNextDevicePathInstance; - mPrivateData.DevicePathUtilities.IsDevicePathMultiInstance = IsDevicePathMultiInstance; - mPrivateData.DevicePathUtilities.CreateDeviceNode = CreateDeviceNode; + mPrivateData.DevicePathUtilities.GetDevicePathSize = GetDevicePathSizeProtocolInterface; + mPrivateData.DevicePathUtilities.DuplicateDevicePath = DuplicateDevicePathProtocolInterface; + mPrivateData.DevicePathUtilities.AppendDevicePath = AppendDevicePathProtocolInterface; + mPrivateData.DevicePathUtilities.AppendDeviceNode = AppendDeviceNodeProtocolInterface; + mPrivateData.DevicePathUtilities.AppendDevicePathInstance = AppendDevicePathInstanceProtocolInterface; + mPrivateData.DevicePathUtilities.GetNextDevicePathInstance = GetNextDevicePathInstanceProtocolInterface; + mPrivateData.DevicePathUtilities.IsDevicePathMultiInstance = IsDevicePathMultiInstanceProtocolInterface; + mPrivateData.DevicePathUtilities.CreateDeviceNode = CreateDeviceNodeProtocolInterface; mPrivateData.DevicePathToText.ConvertDeviceNodeToText = ConvertDeviceNodeToText; mPrivateData.DevicePathToText.ConvertDevicePathToText = ConvertDevicePathToText; |