Change library class PlatDriOverLib to PlatformDriOverrideLib

Move Application Platform Override Manager into Application directory.
Add comments in Network library class to say they are only intended to be used by UEFI network stack modules.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7641 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2009-02-24 08:26:40 +00:00
parent 4986c56135
commit e4b99ad979
16 changed files with 44 additions and 21 deletions

View File

@ -43,7 +43,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiLib.h> #include <Library/UefiLib.h>
#include <Library/UefiApplicationEntryPoint.h> #include <Library/UefiApplicationEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/PlatDriOverLib.h> #include <Library/PlatformDriverOverrideLib.h>
#include <Library/HiiLib.h> #include <Library/HiiLib.h>
#include <Library/IfrSupportLib.h> #include <Library/IfrSupportLib.h>
#include <Library/ExtendedHiiLib.h> #include <Library/ExtendedHiiLib.h>

View File

@ -12,7 +12,7 @@
# 4. The UI application save all the mapping info in NV variables for the following boot, # 4. The UI application save all the mapping info in NV variables for the following boot,
# which will be consumed by platform override protocol driver to publish the platform override protocol. # which will be consumed by platform override protocol driver to publish the platform override protocol.
# #
# Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved. # Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -55,7 +55,7 @@
UefiLib UefiLib
UefiApplicationEntryPoint UefiApplicationEntryPoint
UefiBootServicesTableLib UefiBootServicesTableLib
PlatDriOverLib PlatformDriverOverrideLib
HiiLib HiiLib
IfrSupportLib IfrSupportLib
ExtendedHiiLib ExtendedHiiLib

View File

@ -1,5 +1,6 @@
/** @file /** @file
This library provides IpIo layer upon EFI IP4 Protocol. Ihis library is only intended to be used by UEFI network stack modules.
It provides IpIo layer upon EFI IP4 Protocol.
Copyright (c) 2005 - 2008, Intel Corporation.<BR> Copyright (c) 2005 - 2008, Intel Corporation.<BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,5 +1,6 @@
/** @file /** @file
This library provides basic function for UEFI network stack. Ihis library is only intended to be used by UEFI network stack modules.
It provides basic function for UEFI network stack.
Copyright (c) 2005 - 2008, Intel Corporation Copyright (c) 2005 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials

View File

@ -1,8 +1,8 @@
/** @file /** @file
Ihis library is only intended to be used by Platform Driver Override Dxe Driver and Application.
It provides basic platform driver override functions.
This library provides basic platform driver override functions. Copyright (c) 2007 - 2009, Intel Corporation
Copyright (c) 2007 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
#ifndef _PLAT_DRI_OVER_LIB_H_ #ifndef _PLATFORM_DRIVER_OVERRIDE_LIB_H_
#define _PLAT_DRI_OVER_LIB_H_ #define _PLATFORM_DRIVER_OVERRIDE_LIB_H_
#include <Protocol/DevicePath.h> #include <Protocol/DevicePath.h>

View File

@ -1,6 +1,6 @@
/** @file /** @file
The helper routines to access UDP service. It is used by both Ihis library is only intended to be used by UEFI network stack modules.
DHCP and MTFTP. It provides the helper routines to access UDP service. It is used by both DHCP and MTFTP.
Copyright (c) 2006 - 2008, Intel Corporation.<BR> Copyright (c) 2006 - 2008, Intel Corporation.<BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
@ -169,6 +169,26 @@ BOOLEAN
IN VOID *Context IN VOID *Context
); );
/**
Cancel all the sent datagram that pass the selection criteria of ToCancel.
If ToCancel is NULL, all the datagrams are cancelled.
@param[in] UdpIo The UDP_IO_PORT to cancel packet.
@param[in] IoStatus The IoStatus to return to the packet owners.
@param[in] ToCancel The select funtion to test whether to cancel this
packet or not.
@param[in] Context The opaque parameter to the ToCancel.
**/
VOID
EFIAPI
UdpIoCancelDgrams (
IN UDP_IO_PORT *UdpIo,
IN EFI_STATUS IoStatus,
IN UDP_IO_TO_CANCEL ToCancel, OPTIONAL
IN VOID *Context
);
/** /**
Create a UDP_IO_PORT to access the UDP service. It will create and configure Create a UDP_IO_PORT to access the UDP service. It will create and configure
a UDP child. a UDP child.

View File

@ -24,7 +24,7 @@
FILE_GUID = 8bd8d711-2736-46d7-8c81-5de68e0a9e88 FILE_GUID = 8bd8d711-2736-46d7-8c81-5de68e0a9e88
MODULE_TYPE = DXE_DRIVER MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.0 VERSION_STRING = 1.0
LIBRARY_CLASS = PlatDriOverLib|DXE_DRIVER UEFI_DRIVER UEFI_APPLICATION LIBRARY_CLASS = PlatformDriverOverrideLib|DXE_DRIVER UEFI_DRIVER UEFI_APPLICATION
# #
# The following information is for reference only and not required by the build tools. # The following information is for reference only and not required by the build tools.

View File

@ -32,7 +32,7 @@
#include <Library/DevicePathLib.h> #include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Library/DxeServicesTableLib.h> #include <Library/DxeServicesTableLib.h>
#include <Library/PlatDriOverLib.h> #include <Library/PlatformDriverOverrideLib.h>
#include <Guid/OverrideVariable.h> #include <Guid/OverrideVariable.h>
#include <VariableFormat.h> #include <VariableFormat.h>

View File

@ -482,6 +482,7 @@ FREE_MEM:
**/ **/
VOID VOID
EFIAPI
UdpIoCancelDgrams ( UdpIoCancelDgrams (
IN UDP_IO_PORT *UdpIo, IN UDP_IO_PORT *UdpIo,
IN EFI_STATUS IoStatus, IN EFI_STATUS IoStatus,

View File

@ -48,7 +48,7 @@
RecoveryLib|Include/Library/RecoveryLib.h RecoveryLib|Include/Library/RecoveryLib.h
## @libraryclass Basic platform driver override functions. ## @libraryclass Basic platform driver override functions.
PlatDriOverLib|Include/Library/PlatDriOverLib.h PlatformDriverOverrideLib|Include/Library/PlatformDriverOverrideLib.h
## @libraryclass Provides HII related functions. ## @libraryclass Provides HII related functions.
HiiLib|Include/Library/HiiLib.h HiiLib|Include/Library/HiiLib.h

View File

@ -76,7 +76,7 @@
PlatformBdsLib|MdeModulePkg/Library/PlatformBdsLibNull/PlatformBdsLibNull.inf PlatformBdsLib|MdeModulePkg/Library/PlatformBdsLibNull/PlatformBdsLibNull.inf
DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
PlatformBdsLib|MdeModulePkg/Library/PlatformBdsLibNull/PlatformBdsLibNull.inf PlatformBdsLib|MdeModulePkg/Library/PlatformBdsLibNull/PlatformBdsLibNull.inf
PlatDriOverLib|MdeModulePkg/Library/DxePlatDriOverLib/DxePlatDriOverLib.inf PlatformDriverOverrideLib|MdeModulePkg/Library/DxePlatDriOverLib/DxePlatDriOverLib.inf
OemHookStatusCodeLib|IntelFrameworkModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf OemHookStatusCodeLib|IntelFrameworkModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
@ -339,7 +339,7 @@
MdeModulePkg/Universal/PCD/Dxe/Pcd.inf MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
MdeModulePkg/Universal/PCD/Pei/Pcd.inf MdeModulePkg/Universal/PCD/Pei/Pcd.inf
MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.inf MdeModulePkg/Application/PlatOverMngr/PlatOverMngr.inf
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
MdeModulePkg/Universal/Variable/Application/VariableInfo.inf MdeModulePkg/Universal/Variable/Application/VariableInfo.inf

View File

@ -1,6 +1,6 @@
/** @file /** @file
Copyright (c) 2007 - 2008, Intel Corporation Copyright (c) 2007 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/DebugLib.h> #include <Library/DebugLib.h>
#include <Library/UefiDriverEntryPoint.h> #include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/PlatDriOverLib.h> #include <Library/PlatformDriverOverrideLib.h>
#include <Protocol/PlatformDriverOverride.h> #include <Protocol/PlatformDriverOverride.h>
LIST_ENTRY mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase); LIST_ENTRY mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase);

View File

@ -4,7 +4,7 @@
# It only implements one interface GetDriver of PLATFORM_DRIVER_OVERRIDE_PROTOCOL protocol # It only implements one interface GetDriver of PLATFORM_DRIVER_OVERRIDE_PROTOCOL protocol
# and doesn't support other two interfaces GetDriverPath, DriverLoaded. # and doesn't support other two interfaces GetDriverPath, DriverLoaded.
# #
# Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved. # Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.
# #
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
@ -41,7 +41,7 @@
BaseLib BaseLib
UefiDriverEntryPoint UefiDriverEntryPoint
DebugLib DebugLib
PlatDriOverLib PlatformDriverOverrideLib
UefiBootServicesTableLib UefiBootServicesTableLib
[Protocols] [Protocols]