diff options
Diffstat (limited to 'EdkModulePkg/Library')
4 files changed, 135 insertions, 135 deletions
diff --git a/EdkModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c b/EdkModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c index c94c8242ac..12a55c97d3 100644 --- a/EdkModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c +++ b/EdkModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c @@ -2,21 +2,21 @@ Firmware Volume Block Protocol Runtime Abstraction
- mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the
+ mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the
index in the mFvbEntry array. This should be the same sequence as the FVB's
- were described in the HOB. We have to remember the handle so we can tell if
+ were described in the HOB. We have to remember the handle so we can tell if
the protocol has been reinstalled and it needs updateing.
If you are using any of these lib functions.you must first call FvbInitialize ().
-
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-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
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+Copyright (c) 2006, Intel Corporation
+All rights reserved. This program and the accompanying materials
+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
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
@@ -32,9 +32,9 @@ STATIC UINTN mFvbCount; /**
Check whether an address is runtime memory or not.
-
+
@param Address The Address being checked.
-
+
@retval TRUE The address is runtime memory.
@retval FALSE The address is not runtime memory.
**/
@@ -124,10 +124,10 @@ IsRuntimeMemory ( /**
Update mFvbEntry. Add new entry, or update existing entry if Fvb protocol is
reinstalled.
-
+
@param Event The Event that is being processed
@param Context Event Context
-
+
**/
STATIC
VOID
@@ -190,15 +190,15 @@ FvbNotificationEvent ( // Get the interface pointer and if it's ours, skip it
//
Status = gBS->HandleProtocol (
- Handle,
- &gEfiFirmwareVolumeBlockProtocolGuid,
+ Handle,
+ &gEfiFirmwareVolumeBlockProtocolGuid,
(VOID **) &mFvbEntry[UpdateIndex].Fvb
);
ASSERT_EFI_ERROR (Status);
Status = gBS->HandleProtocol (
- Handle,
- &gEfiFvbExtensionProtocolGuid,
+ Handle,
+ &gEfiFvbExtensionProtocolGuid,
(VOID **) &mFvbEntry[UpdateIndex].FvbExtension
);
if (Status != EFI_SUCCESS) {
@@ -209,14 +209,14 @@ FvbNotificationEvent ( // Check the FVB can be accessed in RUNTIME, The FVBs in FVB handle list comes
// from two way:
// 1) Dxe Core. (FVB information is transferred from FV HOB).
- // 2) FVB driver.
+ // 2) FVB driver.
// The FVB produced Dxe core is used for discoverying DXE driver and dispatch. These
- // FVBs can only be accessed in boot time.
+ // FVBs can only be accessed in boot time.
// FVB driver will discovery all FV in FLASH and these FVBs can be accessed in runtime.
- // The FVB itself produced by FVB driver is allocated in runtime memory. So we can
+ // The FVB itself produced by FVB driver is allocated in runtime memory. So we can
// determine the what FVB can be accessed in RUNTIME by judging whether FVB itself is allocated
// in RUNTIME memory.
- //
+ //
mFvbEntry[UpdateIndex].IsRuntimeAccess = IsRuntimeMemory (mFvbEntry[UpdateIndex].Fvb);
}
}
@@ -226,7 +226,7 @@ FvbNotificationEvent ( @param Event The Event that is being processed
@param Context Event Context
-
+
**/
VOID
EFIAPI
@@ -265,10 +265,10 @@ FvbVirtualAddressChangeNotifyEvent ( /**
Library constructor function entry.
-
+
@param ImageHandle The handle of image who call this libary.
@param SystemTable The point of System Table.
-
+
@retval EFI_SUCESS Sucess construct this library.
@retval Others Fail to contruct this libary.
**/
@@ -296,7 +296,7 @@ FvbLibInitialize ( EfiCreateProtocolNotifyEvent (
&gEfiFirmwareVolumeBlockProtocolGuid,
- EFI_TPL_CALLBACK,
+ TPL_CALLBACK,
FvbNotificationEvent,
NULL,
&mFvbRegistration
@@ -306,8 +306,8 @@ FvbLibInitialize ( // Register SetVirtualAddressMap () notify function
//
// Status = gBS->CreateEvent (
- // EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
- // EFI_TPL_NOTIFY,
+ // EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
+ // TPL_NOTIFY,
// EfiRuntimeLibFvbVirtualNotifyEvent,
// NULL,
// &mEfiFvbVirtualNotifyEvent
@@ -326,7 +326,7 @@ FvbLibInitialize ( return EFI_SUCCESS;
}
-//
+//
// =============================================================================
// The following functions wrap Fvb protocol in the Runtime Lib functions.
// The Instance translates into Fvb instance. The Fvb order defined by HOBs and
@@ -335,7 +335,7 @@ FvbLibInitialize ( // EfiFvbInitialize () must be called before any of the following functions
// must be called.
// =============================================================================
-//
+//
/**
Reads specified number of bytes into a buffer from the specified block
@@ -348,7 +348,7 @@ FvbLibInitialize ( of bytes read
@param Buffer Pointer to a caller allocated buffer that will be
used to hold the data read
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to Read block
@retval Others Fail to read block
@@ -375,7 +375,7 @@ EfiFvbReadBlock ( /**
Writes specified number of bytes from the input buffer to the block
-
+
@param Instance The FV instance to be written to
@param Lba The starting logical block index to write to
@param Offset Offset into the block at which to begin writing
@@ -384,7 +384,7 @@ EfiFvbReadBlock ( of bytes actually written
@param Buffer Pointer to a caller allocated buffer that contains
the source for the write
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to write block
@retval Others Fail to write block
@@ -414,7 +414,7 @@ EfiFvbWriteBlock ( @param Instance The FV instance to be erased
@param Lba The logical block index to be erased
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to erase block
@retval Others Fail to erase block
@@ -439,10 +439,10 @@ EfiFvbEraseBlock ( /**
Retrieves attributes, insures positive polarity of attribute bits, returns
resulting attributes in output parameter
-
+
@param Instance The FV instance whose attributes is going to be returned
@param Attributes Output buffer which contains attributes
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to get Fv attribute
@retval Others Fail to get Fv attribute
@@ -465,16 +465,16 @@ EfiFvbGetVolumeAttributes ( }
/**
- Modifies the current settings of the firmware volume according to the
+ Modifies the current settings of the firmware volume according to the
input parameter, and returns the new setting of the volume
- @param Instance The FV instance whose attributes is going to be
+ @param Instance The FV instance whose attributes is going to be
modified
- @param Attributes On input, it is a pointer to EFI_FVB_ATTRIBUTES
+ @param Attributes On input, it is a pointer to EFI_FVB_ATTRIBUTES
containing the desired firmware volume settings.
On successful return, it contains the new settings
of the firmware volume
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to set Fv attribute
@retval Others Fail to set Fv attribute
@@ -501,10 +501,10 @@ EfiFvbSetVolumeAttributes ( @param Instance The FV instance whose base address is going to be
returned
- @param BaseAddress Pointer to a caller allocated EFI_PHYSICAL_ADDRESS
+ @param BaseAddress Pointer to a caller allocated EFI_PHYSICAL_ADDRESS
that on successful return, contains the base address
of the firmware volume.
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to get physical address
@retval Others Fail to get physical address
@@ -538,7 +538,7 @@ EfiFvbGetPhysicalAddress ( number of consecutive blocks starting with Lba is
returned. All blocks in this range have a size of
BlockSize
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to get block size
@retval Others Fail to get block size
@@ -567,11 +567,11 @@ EfiFvbGetBlockSize ( @param Instance The FV instance to be erased
@param StartLba The starting logical block index to be erased
- @param OffsetStartLba Offset into the starting block at which to
+ @param OffsetStartLba Offset into the starting block at which to
begin erasing
@param LastLba The last logical block index to be erased
@param OffsetLastLba Offset into the last block at which to end erasing
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to erase custom block range
@retval Others Fail to erase custom block range
diff --git a/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c b/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c index c94c8242ac..12a55c97d3 100644 --- a/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c +++ b/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c @@ -2,21 +2,21 @@ Firmware Volume Block Protocol Runtime Abstraction
- mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the
+ mFvbEntry is an array of Handle Fvb pairs. The Fvb Lib Instance matches the
index in the mFvbEntry array. This should be the same sequence as the FVB's
- were described in the HOB. We have to remember the handle so we can tell if
+ were described in the HOB. We have to remember the handle so we can tell if
the protocol has been reinstalled and it needs updateing.
If you are using any of these lib functions.you must first call FvbInitialize ().
-
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-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
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+Copyright (c) 2006, Intel Corporation
+All rights reserved. This program and the accompanying materials
+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
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
@@ -32,9 +32,9 @@ STATIC UINTN mFvbCount; /**
Check whether an address is runtime memory or not.
-
+
@param Address The Address being checked.
-
+
@retval TRUE The address is runtime memory.
@retval FALSE The address is not runtime memory.
**/
@@ -124,10 +124,10 @@ IsRuntimeMemory ( /**
Update mFvbEntry. Add new entry, or update existing entry if Fvb protocol is
reinstalled.
-
+
@param Event The Event that is being processed
@param Context Event Context
-
+
**/
STATIC
VOID
@@ -190,15 +190,15 @@ FvbNotificationEvent ( // Get the interface pointer and if it's ours, skip it
//
Status = gBS->HandleProtocol (
- Handle,
- &gEfiFirmwareVolumeBlockProtocolGuid,
+ Handle,
+ &gEfiFirmwareVolumeBlockProtocolGuid,
(VOID **) &mFvbEntry[UpdateIndex].Fvb
);
ASSERT_EFI_ERROR (Status);
Status = gBS->HandleProtocol (
- Handle,
- &gEfiFvbExtensionProtocolGuid,
+ Handle,
+ &gEfiFvbExtensionProtocolGuid,
(VOID **) &mFvbEntry[UpdateIndex].FvbExtension
);
if (Status != EFI_SUCCESS) {
@@ -209,14 +209,14 @@ FvbNotificationEvent ( // Check the FVB can be accessed in RUNTIME, The FVBs in FVB handle list comes
// from two way:
// 1) Dxe Core. (FVB information is transferred from FV HOB).
- // 2) FVB driver.
+ // 2) FVB driver.
// The FVB produced Dxe core is used for discoverying DXE driver and dispatch. These
- // FVBs can only be accessed in boot time.
+ // FVBs can only be accessed in boot time.
// FVB driver will discovery all FV in FLASH and these FVBs can be accessed in runtime.
- // The FVB itself produced by FVB driver is allocated in runtime memory. So we can
+ // The FVB itself produced by FVB driver is allocated in runtime memory. So we can
// determine the what FVB can be accessed in RUNTIME by judging whether FVB itself is allocated
// in RUNTIME memory.
- //
+ //
mFvbEntry[UpdateIndex].IsRuntimeAccess = IsRuntimeMemory (mFvbEntry[UpdateIndex].Fvb);
}
}
@@ -226,7 +226,7 @@ FvbNotificationEvent ( @param Event The Event that is being processed
@param Context Event Context
-
+
**/
VOID
EFIAPI
@@ -265,10 +265,10 @@ FvbVirtualAddressChangeNotifyEvent ( /**
Library constructor function entry.
-
+
@param ImageHandle The handle of image who call this libary.
@param SystemTable The point of System Table.
-
+
@retval EFI_SUCESS Sucess construct this library.
@retval Others Fail to contruct this libary.
**/
@@ -296,7 +296,7 @@ FvbLibInitialize ( EfiCreateProtocolNotifyEvent (
&gEfiFirmwareVolumeBlockProtocolGuid,
- EFI_TPL_CALLBACK,
+ TPL_CALLBACK,
FvbNotificationEvent,
NULL,
&mFvbRegistration
@@ -306,8 +306,8 @@ FvbLibInitialize ( // Register SetVirtualAddressMap () notify function
//
// Status = gBS->CreateEvent (
- // EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
- // EFI_TPL_NOTIFY,
+ // EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
+ // TPL_NOTIFY,
// EfiRuntimeLibFvbVirtualNotifyEvent,
// NULL,
// &mEfiFvbVirtualNotifyEvent
@@ -326,7 +326,7 @@ FvbLibInitialize ( return EFI_SUCCESS;
}
-//
+//
// =============================================================================
// The following functions wrap Fvb protocol in the Runtime Lib functions.
// The Instance translates into Fvb instance. The Fvb order defined by HOBs and
@@ -335,7 +335,7 @@ FvbLibInitialize ( // EfiFvbInitialize () must be called before any of the following functions
// must be called.
// =============================================================================
-//
+//
/**
Reads specified number of bytes into a buffer from the specified block
@@ -348,7 +348,7 @@ FvbLibInitialize ( of bytes read
@param Buffer Pointer to a caller allocated buffer that will be
used to hold the data read
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to Read block
@retval Others Fail to read block
@@ -375,7 +375,7 @@ EfiFvbReadBlock ( /**
Writes specified number of bytes from the input buffer to the block
-
+
@param Instance The FV instance to be written to
@param Lba The starting logical block index to write to
@param Offset Offset into the block at which to begin writing
@@ -384,7 +384,7 @@ EfiFvbReadBlock ( of bytes actually written
@param Buffer Pointer to a caller allocated buffer that contains
the source for the write
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to write block
@retval Others Fail to write block
@@ -414,7 +414,7 @@ EfiFvbWriteBlock ( @param Instance The FV instance to be erased
@param Lba The logical block index to be erased
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to erase block
@retval Others Fail to erase block
@@ -439,10 +439,10 @@ EfiFvbEraseBlock ( /**
Retrieves attributes, insures positive polarity of attribute bits, returns
resulting attributes in output parameter
-
+
@param Instance The FV instance whose attributes is going to be returned
@param Attributes Output buffer which contains attributes
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to get Fv attribute
@retval Others Fail to get Fv attribute
@@ -465,16 +465,16 @@ EfiFvbGetVolumeAttributes ( }
/**
- Modifies the current settings of the firmware volume according to the
+ Modifies the current settings of the firmware volume according to the
input parameter, and returns the new setting of the volume
- @param Instance The FV instance whose attributes is going to be
+ @param Instance The FV instance whose attributes is going to be
modified
- @param Attributes On input, it is a pointer to EFI_FVB_ATTRIBUTES
+ @param Attributes On input, it is a pointer to EFI_FVB_ATTRIBUTES
containing the desired firmware volume settings.
On successful return, it contains the new settings
of the firmware volume
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to set Fv attribute
@retval Others Fail to set Fv attribute
@@ -501,10 +501,10 @@ EfiFvbSetVolumeAttributes ( @param Instance The FV instance whose base address is going to be
returned
- @param BaseAddress Pointer to a caller allocated EFI_PHYSICAL_ADDRESS
+ @param BaseAddress Pointer to a caller allocated EFI_PHYSICAL_ADDRESS
that on successful return, contains the base address
of the firmware volume.
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to get physical address
@retval Others Fail to get physical address
@@ -538,7 +538,7 @@ EfiFvbGetPhysicalAddress ( number of consecutive blocks starting with Lba is
returned. All blocks in this range have a size of
BlockSize
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to get block size
@retval Others Fail to get block size
@@ -567,11 +567,11 @@ EfiFvbGetBlockSize ( @param Instance The FV instance to be erased
@param StartLba The starting logical block index to be erased
- @param OffsetStartLba Offset into the starting block at which to
+ @param OffsetStartLba Offset into the starting block at which to
begin erasing
@param LastLba The last logical block index to be erased
@param OffsetLastLba Offset into the last block at which to end erasing
-
+
@retval EFI_INVALID_PARAMETER Invalid parameter
@retval EFI_SUCESS Sucess to erase custom block range
@retval Others Fail to erase custom block range
diff --git a/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c b/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c index ce4efffbd7..3cb11d8924 100644 --- a/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c +++ b/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c @@ -1,14 +1,14 @@ /**@file
Library utility functions for Runtime driver.
-
+
Copyright (c) 2006 Intel Corporation. <BR>
-All rights reserved. This program and the accompanying materials
-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
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+All rights reserved. This program and the accompanying materials
+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
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
@@ -25,7 +25,7 @@ EFI_RUNTIME_SERVICES *mRT; /**
Set AtRuntime flag as TRUE after ExitBootServices
-
+
@param[in] Event The Event that is being processed
@param[in] Context Event Context
**/
@@ -46,9 +46,9 @@ RuntimeDriverExitBootServices ( /**
Fixup internal data so that EFI can be call in virtual mode.
- Call the passed in Child Notify event and convert any pointers in
+ Call the passed in Child Notify event and convert any pointers in
lib to virtual mode.
-
+
@param[in] Event The Event that is being processed
@param[in] Context Event Context
**/
@@ -63,7 +63,7 @@ RuntimeLibVirtualNotifyEvent ( UINTN Index;
EFI_EVENT_NOTIFY ChildNotifyEventHandler;
- for (Index = 0;
+ for (Index = 0;
_gDriverSetVirtualAddressMapEvent[Index] != NULL;
Index++) {
ChildNotifyEventHandler = _gDriverSetVirtualAddressMapEvent[Index];
@@ -79,11 +79,11 @@ RuntimeLibVirtualNotifyEvent ( }
/**
- Intialize runtime Driver Lib if it has not yet been initialized.
-
+ Intialize runtime Driver Lib if it has not yet been initialized.
+
@param[in] ImageHandle The firmware allocated handle for the EFI image.
@param[in] SystemTable A pointer to the EFI System Table.
-
+
@return EFI_STATUS always returns EFI_SUCCESS except EFI_ALREADY_STARTED if already started.
**/
EFI_STATUS
@@ -101,11 +101,11 @@ RuntimeDriverLibConstruct ( //
// Register SetVirtualAddressMap () notify function
- //
+ //
ASSERT (gBS != NULL);
Status = gBS->CreateEvent (
- EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
- EFI_TPL_NOTIFY,
+ EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
+ TPL_NOTIFY,
RuntimeLibVirtualNotifyEvent,
NULL,
&mEfiVirtualNotifyEvent
@@ -118,7 +118,7 @@ RuntimeDriverLibConstruct ( /**
This routine will free some resources which have been allocated in
- EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,
+ EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,
it must call this routine to free the allocated resource before the exiting.
@retval EFI_SUCCESS Shutdown the Runtime Driver Lib successfully
@@ -139,13 +139,13 @@ RuntimeDriverLibDeconstruct ( ASSERT (gBS != NULL);
Status = gBS->CloseEvent (mEfiVirtualNotifyEvent);
ASSERT_EFI_ERROR (Status);
-
+
return Status;
}
/**
Return TRUE if ExitBootServices () has been called
-
+
@retval TRUE If ExitBootServices () has been called
**/
BOOLEAN
@@ -159,7 +159,7 @@ EfiAtRuntime ( /**
Return TRUE if SetVirtualAddressMap () has been called
-
+
@retval TRUE If SetVirtualAddressMap () has been called
**/
BOOLEAN
diff --git a/EdkModulePkg/Library/EdkUefiRuntimeLib/Ipf/RuntimeLib.c b/EdkModulePkg/Library/EdkUefiRuntimeLib/Ipf/RuntimeLib.c index f6a1904143..71a7bf9b6c 100644 --- a/EdkModulePkg/Library/EdkUefiRuntimeLib/Ipf/RuntimeLib.c +++ b/EdkModulePkg/Library/EdkUefiRuntimeLib/Ipf/RuntimeLib.c @@ -1,13 +1,13 @@ /*++
-Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials
-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
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+Copyright (c) 2006, Intel Corporation
+All rights reserved. This program and the accompanying materials
+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
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
@@ -38,10 +38,10 @@ Routine Description: Arguments:
Event - The Event that is being processed
-
+
Context - Event Context
-Returns:
+Returns:
None
@@ -64,16 +64,16 @@ RuntimeLibVirtualNotifyEvent ( Routine Description:
Fixup internal data so that EFI can be call in virtual mode.
- Call the passed in Child Notify event and convert any pointers in
+ Call the passed in Child Notify event and convert any pointers in
lib to virtual mode.
Arguments:
Event - The Event that is being processed
-
+
Context - Event Context
-Returns:
+Returns:
None
@@ -103,12 +103,12 @@ RuntimeDriverLibConstruct ( Routine Description:
- Intialize runtime Driver Lib if it has not yet been initialized.
+ Intialize runtime Driver Lib if it has not yet been initialized.
Arguments:
ImageHandle - The firmware allocated handle for the EFI image.
-
+
SystemTable - A pointer to the EFI System Table.
GoVirtualChildEvent - Caller can register a virtual notification event.
@@ -128,8 +128,8 @@ Returns: //
if (_gDriverSetVirtualAddressMapEvent[0] != NULL) {
Status = gBS->CreateEvent (
- EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
- EFI_TPL_NOTIFY,
+ EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
+ TPL_NOTIFY,
RuntimeLibVirtualNotifyEvent,
NULL,
&mEfiVirtualNotifyEvent
@@ -151,14 +151,14 @@ RuntimeDriverLibDeconstruct ( Routine Description:
This routine will free some resources which have been allocated in
- EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,
+ EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,
it must call this routine to free the allocated resource before the exiting.
Arguments:
None
-Returns:
+Returns:
EFI_SUCCESS - Shotdown the Runtime Driver Lib successfully
EFI_UNSUPPORTED - Runtime Driver lib was not initialized at all
@@ -191,7 +191,7 @@ Routine Description: Arguments:
NONE
-Returns:
+Returns:
TRUE - If ExitBootService () has been called
--*/
@@ -220,7 +220,7 @@ Routine Description: Arguments:
NONE
-Returns:
+Returns:
TRUE - If SetVirtualAddressMap () has been called
--*/
|