Update to fix minor coding style issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5256 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,9 +1,8 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Support functions for managing debug image info table when loading and unloading
|
Support functions for managing debug image info table when loading and unloading
|
||||||
images.
|
images.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -37,8 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
VOID
|
VOID
|
||||||
CoreInitializeDebugImageInfoTable (
|
CoreInitializeDebugImageInfoTable (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -52,8 +50,7 @@ CoreInitializeDebugImageInfoTable (
|
|||||||
VOID
|
VOID
|
||||||
CoreUpdateDebugTableCrc32 (
|
CoreUpdateDebugTableCrc32 (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,11 +65,10 @@ CoreUpdateDebugTableCrc32 (
|
|||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
CoreNewDebugImageInfoEntry (
|
CoreNewDebugImageInfoEntry (
|
||||||
UINT32 ImageInfoType,
|
IN UINT32 ImageInfoType,
|
||||||
EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,
|
IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,
|
||||||
EFI_HANDLE ImageHandle
|
IN EFI_HANDLE ImageHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,7 +80,6 @@ CoreNewDebugImageInfoEntry (
|
|||||||
VOID
|
VOID
|
||||||
CoreRemoveDebugImageInfoEntry (
|
CoreRemoveDebugImageInfoEntry (
|
||||||
EFI_HANDLE ImageHandle
|
EFI_HANDLE ImageHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
DXE Dispatcher Dependency Evaluator
|
DXE Dispatcher Dependency Evaluator
|
||||||
|
|
||||||
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine
|
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine
|
||||||
if a driver can be scheduled for execution. The criteria for
|
if a driver can be scheduled for execution. The criteria for
|
||||||
schedulability is that the dependency expression is satisfied.
|
schedulability is that the dependency expression is satisfied.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -39,7 +38,6 @@ BOOLEAN *mDepexEvaluationStackPointer = NULL;
|
|||||||
stack.
|
stack.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
GrowDepexStack (
|
GrowDepexStack (
|
||||||
VOID
|
VOID
|
||||||
@ -96,7 +94,6 @@ GrowDepexStack (
|
|||||||
stack.
|
stack.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PushBool (
|
PushBool (
|
||||||
IN BOOLEAN Value
|
IN BOOLEAN Value
|
||||||
@ -137,7 +134,6 @@ PushBool (
|
|||||||
@retval EFI_ACCESS_DENIED The pop operation underflowed the stack
|
@retval EFI_ACCESS_DENIED The pop operation underflowed the stack
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
PopBool (
|
PopBool (
|
||||||
OUT BOOLEAN *Value
|
OUT BOOLEAN *Value
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
Depex - Dependency Expresion.
|
Depex - Dependency Expresion.
|
||||||
SOR - Schedule On Request - Don't schedule if this bit is set.
|
SOR - Schedule On Request - Don't schedule if this bit is set.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -105,7 +105,6 @@ FV_FILEPATH_DEVICE_PATH mFvDevicePath;
|
|||||||
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue
|
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
|
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
|
||||||
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry
|
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry
|
||||||
@ -128,7 +127,6 @@ CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
|
|||||||
@param Context Event Context, not used.
|
@param Context Event Context, not used.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreFwVolEventProtocolNotify (
|
CoreFwVolEventProtocolNotify (
|
||||||
@ -149,7 +147,6 @@ CoreFwVolEventProtocolNotify (
|
|||||||
@return Pointer to device path constructed from FvHandle and DriverName
|
@return Pointer to device path constructed from FvHandle and DriverName
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_DEVICE_PATH_PROTOCOL *
|
EFI_DEVICE_PATH_PROTOCOL *
|
||||||
CoreFvToDevicePath (
|
CoreFvToDevicePath (
|
||||||
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
||||||
@ -177,12 +174,11 @@ CoreFvToDevicePath (
|
|||||||
time.
|
time.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreAddToDriverList (
|
CoreAddToDriverList (
|
||||||
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
||||||
IN EFI_HANDLE FvHandle,
|
IN EFI_HANDLE FvHandle,
|
||||||
IN EFI_GUID *DriverName
|
IN EFI_GUID *DriverName
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -197,7 +193,6 @@ CoreAddToDriverList (
|
|||||||
@retval EFI_SUCCESS Function successfully returned.
|
@retval EFI_SUCCESS Function successfully returned.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreProcessFvImageFile (
|
CoreProcessFvImageFile (
|
||||||
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
||||||
@ -210,7 +205,6 @@ CoreProcessFvImageFile (
|
|||||||
Enter critical section by gaining lock on mDispatcherLock.
|
Enter critical section by gaining lock on mDispatcherLock.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreAcquireDispatcherLock (
|
CoreAcquireDispatcherLock (
|
||||||
VOID
|
VOID
|
||||||
@ -224,7 +218,6 @@ CoreAcquireDispatcherLock (
|
|||||||
Exit critical section by releasing lock on mDispatcherLock.
|
Exit critical section by releasing lock on mDispatcherLock.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreReleaseDispatcherLock (
|
CoreReleaseDispatcherLock (
|
||||||
VOID
|
VOID
|
||||||
@ -246,7 +239,6 @@ CoreReleaseDispatcherLock (
|
|||||||
@retval Error DEPEX not found.
|
@retval Error DEPEX not found.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreGetDepexSectionAndPreProccess (
|
CoreGetDepexSectionAndPreProccess (
|
||||||
IN EFI_CORE_DRIVER_ENTRY *DriverEntry
|
IN EFI_CORE_DRIVER_ENTRY *DriverEntry
|
||||||
@ -314,7 +306,6 @@ CoreGetDepexSectionAndPreProccess (
|
|||||||
not set.
|
not set.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_DXESERVICE
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreSchedule (
|
CoreSchedule (
|
||||||
@ -361,7 +352,6 @@ CoreSchedule (
|
|||||||
@retval EFI_NOT_FOUND The file was not found in the untrusted state.
|
@retval EFI_NOT_FOUND The file was not found in the untrusted state.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_DXESERVICE
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreTrust (
|
CoreTrust (
|
||||||
@ -413,7 +403,6 @@ CoreTrust (
|
|||||||
@retval EFI_SUCCESS One or more DXE Drivers were dispatched
|
@retval EFI_SUCCESS One or more DXE Drivers were dispatched
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_DXESERVICE
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreDispatcher (
|
CoreDispatcher (
|
||||||
@ -558,7 +547,6 @@ CoreDispatcher (
|
|||||||
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue
|
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
|
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
|
||||||
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry
|
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry
|
||||||
@ -620,7 +608,6 @@ CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
|
|||||||
processed
|
processed
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
FvHasBeenProcessed (
|
FvHasBeenProcessed (
|
||||||
IN EFI_HANDLE FvHandle
|
IN EFI_HANDLE FvHandle
|
||||||
@ -647,7 +634,6 @@ FvHasBeenProcessed (
|
|||||||
@param FvHandle The handle of a FV that has been processed
|
@param FvHandle The handle of a FV that has been processed
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
FvIsBeingProcesssed (
|
FvIsBeingProcesssed (
|
||||||
IN EFI_HANDLE FvHandle
|
IN EFI_HANDLE FvHandle
|
||||||
@ -679,7 +665,6 @@ FvIsBeingProcesssed (
|
|||||||
@return Pointer to device path constructed from FvHandle and DriverName
|
@return Pointer to device path constructed from FvHandle and DriverName
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_DEVICE_PATH_PROTOCOL *
|
EFI_DEVICE_PATH_PROTOCOL *
|
||||||
CoreFvToDevicePath (
|
CoreFvToDevicePath (
|
||||||
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
|
||||||
@ -785,7 +770,6 @@ CoreAddToDriverList (
|
|||||||
@retval FALSE Not found.
|
@retval FALSE Not found.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
FvFoundInHobFv2 (
|
FvFoundInHobFv2 (
|
||||||
IN EFI_HANDLE FvHandle,
|
IN EFI_HANDLE FvHandle,
|
||||||
@ -922,7 +906,6 @@ CoreProcessFvImageFile (
|
|||||||
@param Context Event Context, not used.
|
@param Context Event Context, not used.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreFwVolEventProtocolNotify (
|
CoreFwVolEventProtocolNotify (
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,17 +1,17 @@
|
|||||||
#/** @file
|
#/** @file
|
||||||
# Component description file for DxeMain module.
|
|
||||||
#
|
#
|
||||||
# This module provide an DXE CIS compliant implementation of DXE Core.
|
# Component description file for DxeMain module.
|
||||||
# Copyright (c) 2006 - 2007, Intel Corporation
|
|
||||||
#
|
#
|
||||||
|
# This module provide an DXE CIS compliant implementation of DXE Core.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
# 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
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
# 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.
|
|
||||||
#
|
#
|
||||||
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#
|
#
|
||||||
#**/
|
#**/
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
DXE Core Main Entry Point
|
DXE Core Main Entry Point
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
|
||||||
|
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
|
||||||
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
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
This file deals with Architecture Protocol (AP) registration in
|
This file deals with Architecture Protocol (AP) registration in
|
||||||
the Dxe Core. The mArchProtocols[] array represents a list of
|
the Dxe Core. The mArchProtocols[] array represents a list of
|
||||||
events that represent the Architectural Protocols.
|
events that represent the Architectural Protocols.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -82,7 +81,6 @@ CoreAllEfiServicesAvailable (
|
|||||||
@param Context Event Context, not used.
|
@param Context Event Context, not used.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
GenericArchProtocolNotify (
|
GenericArchProtocolNotify (
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI Event support functions implemented in this file.
|
UEFI Event support functions implemented in this file.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -67,7 +66,6 @@ UINT32 mEventTable[] = {
|
|||||||
Enter critical section by acquiring the lock on gEventQueueLock.
|
Enter critical section by acquiring the lock on gEventQueueLock.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreAcquireEventLock (
|
CoreAcquireEventLock (
|
||||||
VOID
|
VOID
|
||||||
@ -81,7 +79,6 @@ CoreAcquireEventLock (
|
|||||||
Exit critical section by releasing the lock on gEventQueueLock.
|
Exit critical section by releasing the lock on gEventQueueLock.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreReleaseEventLock (
|
CoreReleaseEventLock (
|
||||||
VOID
|
VOID
|
||||||
@ -180,7 +177,6 @@ CoreDispatchEventNotifies (
|
|||||||
@param Event The Event to notify
|
@param Event The Event to notify
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreNotifyEvent (
|
CoreNotifyEvent (
|
||||||
IN IEVENT *Event
|
IN IEVENT *Event
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Event data is declared in this file.
|
Event data is declared in this file.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Core Timer Services
|
Core Timer Services
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -25,7 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
@return The current system time
|
@return The current system time
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
CoreCurrentSystemTime (
|
CoreCurrentSystemTime (
|
||||||
VOID
|
VOID
|
||||||
@ -39,12 +37,11 @@ CoreCurrentSystemTime (
|
|||||||
@param Context Not used
|
@param Context Not used
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreCheckTimers (
|
CoreCheckTimers (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT CheckEvent,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -54,10 +51,9 @@ CoreCheckTimers (
|
|||||||
to be installed
|
to be installed
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreInsertEventTimer (
|
CoreInsertEventTimer (
|
||||||
IN IEVENT *Event
|
IN IEVENT *Event
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -104,7 +100,6 @@ CoreInitializeTimer (
|
|||||||
@return The current system time
|
@return The current system time
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
CoreCurrentSystemTime (
|
CoreCurrentSystemTime (
|
||||||
VOID
|
VOID
|
||||||
@ -171,7 +166,6 @@ CoreTimerTick (
|
|||||||
@param Context Not used
|
@param Context Not used
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreCheckTimers (
|
CoreCheckTimers (
|
||||||
@ -250,7 +244,6 @@ CoreCheckTimers (
|
|||||||
to be installed
|
to be installed
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreInsertEventTimer (
|
CoreInsertEventTimer (
|
||||||
IN IEVENT *Event
|
IN IEVENT *Event
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Task priority (TPL) function
|
Task priority (TPL) function
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -22,7 +21,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
@param Enable The state of enable or disable interrupt
|
@param Enable The state of enable or disable interrupt
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreSetInterruptState (
|
CoreSetInterruptState (
|
||||||
IN BOOLEAN Enable
|
IN BOOLEAN Enable
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI Event support functions and structure.
|
UEFI Event support functions and structure.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -84,8 +83,7 @@ typedef struct {
|
|||||||
VOID
|
VOID
|
||||||
CoreDispatchEventNotifies (
|
CoreDispatchEventNotifies (
|
||||||
IN EFI_TPL Priority
|
IN EFI_TPL Priority
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -99,9 +97,8 @@ CoreDispatchEventNotifies (
|
|||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
CoreHighestSetBit (
|
CoreHighestSetBit (
|
||||||
IN UINTN Number
|
IN UINTN Number
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -115,8 +112,7 @@ CoreHighestSetBit (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
GetInterruptState (
|
GetInterruptState (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Exported functions
|
// Exported functions
|
||||||
@ -130,8 +126,7 @@ GetInterruptState (
|
|||||||
VOID
|
VOID
|
||||||
CoreEventVirtualAddressFixup (
|
CoreEventVirtualAddressFixup (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -142,8 +137,7 @@ CoreEventVirtualAddressFixup (
|
|||||||
VOID
|
VOID
|
||||||
CoreInitializeTimer (
|
CoreInitializeTimer (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// extern data declarations
|
// extern data declarations
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
FFS file access utilities.
|
FFS file access utilities.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -137,7 +136,6 @@ VerifyFvHeaderChecksum (
|
|||||||
@retval FALSE Checksum verification failed
|
@retval FALSE Checksum verification failed
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
VerifyHeaderChecksum (
|
VerifyHeaderChecksum (
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader
|
IN EFI_FFS_FILE_HEADER *FfsHeader
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Layers on top of Firmware Block protocol to produce a file abstraction
|
Layers on top of Firmware Block protocol to produce a file abstraction
|
||||||
of FV based files.
|
of FV based files.
|
||||||
|
|
||||||
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
|
||||||
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
|
||||||
@ -125,7 +125,6 @@ GetFwVolHeader (
|
|||||||
@return None.
|
@return None.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
FreeFvDeviceResource (
|
FreeFvDeviceResource (
|
||||||
IN FV_DEVICE *FvDevice
|
IN FV_DEVICE *FvDevice
|
||||||
@ -382,7 +381,6 @@ Done:
|
|||||||
@param Context For EFI compatiblity. Not used.
|
@param Context For EFI compatiblity. Not used.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
NotifyFwVolBlock (
|
NotifyFwVolBlock (
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Implements get/set firmware volume attributes
|
Implements get/set firmware volume attributes
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Implements functions to read firmware file
|
Implements functions to read firmware file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -45,7 +44,6 @@ UINT8 mFvAttributes[] = {0, 4, 7, 9, 10, 12, 15, 16};
|
|||||||
@return The attributes of EFI_FV_FILE_ATTRIBUTES
|
@return The attributes of EFI_FV_FILE_ATTRIBUTES
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_FV_FILE_ATTRIBUTES
|
EFI_FV_FILE_ATTRIBUTES
|
||||||
FfsAttributes2FvFileAttributes (
|
FfsAttributes2FvFileAttributes (
|
||||||
IN EFI_FFS_FILE_ATTRIBUTES FfsAttributes
|
IN EFI_FFS_FILE_ATTRIBUTES FfsAttributes
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Implements functions to write firmware file
|
Implements functions to write firmware file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Firmware Volume Block protocol functions.
|
Firmware Volume Block protocol functions.
|
||||||
Consumes FV hobs and creates appropriate block protocols.
|
Consumes FV hobs and creates appropriate block protocols.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -62,10 +61,9 @@ typedef struct {
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FwVolBlockDriverInit (
|
FwVolBlockDriverInit (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -83,8 +81,7 @@ EFIAPI
|
|||||||
FwVolBlockGetAttributes (
|
FwVolBlockGetAttributes (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
OUT EFI_FVB_ATTRIBUTES *Attributes
|
OUT EFI_FVB_ATTRIBUTES *Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -106,8 +103,7 @@ EFIAPI
|
|||||||
FwVolBlockSetAttributes (
|
FwVolBlockSetAttributes (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
IN CONST EFI_FVB_ATTRIBUTES *Attributes
|
IN CONST EFI_FVB_ATTRIBUTES *Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -139,8 +135,7 @@ EFIAPI
|
|||||||
FwVolBlockEraseBlock (
|
FwVolBlockEraseBlock (
|
||||||
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
...
|
...
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -172,8 +167,7 @@ FwVolBlockReadBlock (
|
|||||||
IN CONST UINTN Offset,
|
IN CONST UINTN Offset,
|
||||||
IN OUT UINTN *NumBytes,
|
IN OUT UINTN *NumBytes,
|
||||||
IN OUT UINT8 *Buffer
|
IN OUT UINT8 *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -204,13 +198,12 @@ FwVolBlockReadBlock (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FwVolBlockWriteBlock (
|
FwVolBlockWriteBlock (
|
||||||
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
IN EFI_LBA Lba,
|
IN EFI_LBA Lba,
|
||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN OUT UINTN *NumBytes,
|
IN OUT UINTN *NumBytes,
|
||||||
IN UINT8 *Buffer
|
IN UINT8 *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -227,10 +220,9 @@ FwVolBlockWriteBlock (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FwVolBlockGetPhysicalAddress (
|
FwVolBlockGetPhysicalAddress (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *Address
|
OUT EFI_PHYSICAL_ADDRESS *Address
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -256,10 +248,9 @@ EFIAPI
|
|||||||
FwVolBlockGetBlockSize (
|
FwVolBlockGetBlockSize (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
|
||||||
IN CONST EFI_LBA Lba,
|
IN CONST EFI_LBA Lba,
|
||||||
OUT UINTN *BlockSize,
|
IN OUT UINTN *BlockSize,
|
||||||
OUT UINTN *NumberOfBlocks
|
IN OUT UINTN *NumberOfBlocks
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine is the driver initialization entry point. It initializes the
|
This routine is the driver initialization entry point. It initializes the
|
||||||
@ -274,11 +265,11 @@ FwVolBlockGetBlockSize (
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
FwVolBlockDriverInit (
|
FwVolBlockDriverInit (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -304,7 +295,6 @@ ProduceFVBProtocolOnBuffer (
|
|||||||
IN UINT64 Length,
|
IN UINT64 Length,
|
||||||
IN EFI_HANDLE ParentHandle,
|
IN EFI_HANDLE ParentHandle,
|
||||||
OUT EFI_HANDLE *FvProtocol OPTIONAL
|
OUT EFI_HANDLE *FvProtocol OPTIONAL
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Also consumes NT_NON_MM_FV envinronment variable and produces appropriate
|
Also consumes NT_NON_MM_FV envinronment variable and produces appropriate
|
||||||
block protocols fro them also... (this is TBD)
|
block protocols fro them also... (this is TBD)
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Firmware File System protocol. Layers on top of Firmware
|
Firmware File System protocol. Layers on top of Firmware
|
||||||
Block protocol to produce a file abstraction of FV based files.
|
Block protocol to produce a file abstraction of FV based files.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -61,10 +60,9 @@ typedef struct {
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvGetVolumeAttributes (
|
FvGetVolumeAttributes (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
OUT EFI_FV_ATTRIBUTES *Attributes
|
OUT EFI_FV_ATTRIBUTES *Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -80,10 +78,9 @@ FvGetVolumeAttributes (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvSetVolumeAttributes (
|
FvSetVolumeAttributes (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
IN OUT EFI_FV_ATTRIBUTES *Attributes
|
IN OUT EFI_FV_ATTRIBUTES *Attributes
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -135,14 +132,13 @@ FvSetVolumeAttributes (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvGetNextFile (
|
FvGetNextFile (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
IN OUT VOID *Key,
|
IN OUT VOID *Key,
|
||||||
IN OUT EFI_FV_FILETYPE *FileType,
|
IN OUT EFI_FV_FILETYPE *FileType,
|
||||||
OUT EFI_GUID *NameGuid,
|
OUT EFI_GUID *NameGuid,
|
||||||
OUT EFI_FV_FILE_ATTRIBUTES *Attributes,
|
OUT EFI_FV_FILE_ATTRIBUTES *Attributes,
|
||||||
OUT UINTN *Size
|
OUT UINTN *Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -189,15 +185,14 @@ FvGetNextFile (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvReadFile (
|
FvReadFile (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
IN CONST EFI_GUID *NameGuid,
|
IN CONST EFI_GUID *NameGuid,
|
||||||
IN OUT VOID **Buffer,
|
IN OUT VOID **Buffer,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT EFI_FV_FILETYPE *FoundType,
|
OUT EFI_FV_FILETYPE *FoundType,
|
||||||
OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,
|
OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,
|
||||||
OUT UINT32 *AuthenticationStatus
|
OUT UINT32 *AuthenticationStatus
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -231,15 +226,14 @@ FvReadFile (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvReadFileSection (
|
FvReadFileSection (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
IN CONST EFI_GUID *NameGuid,
|
IN CONST EFI_GUID *NameGuid,
|
||||||
IN EFI_SECTION_TYPE SectionType,
|
IN EFI_SECTION_TYPE SectionType,
|
||||||
IN UINTN SectionInstance,
|
IN UINTN SectionInstance,
|
||||||
IN OUT VOID **Buffer,
|
IN OUT VOID **Buffer,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT UINT32 *AuthenticationStatus
|
OUT UINT32 *AuthenticationStatus
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -266,12 +260,11 @@ FvReadFileSection (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
FvWriteFile (
|
FvWriteFile (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
IN UINT32 NumberOfFiles,
|
IN UINT32 NumberOfFiles,
|
||||||
IN EFI_FV_WRITE_POLICY WritePolicy,
|
IN EFI_FV_WRITE_POLICY WritePolicy,
|
||||||
IN EFI_FV_WRITE_FILE_DATA *FileData
|
IN EFI_FV_WRITE_FILE_DATA *FileData
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -292,10 +285,9 @@ EFIAPI
|
|||||||
FvGetVolumeInfo (
|
FvGetVolumeInfo (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
IN CONST EFI_GUID *InformationType,
|
IN CONST EFI_GUID *InformationType,
|
||||||
IN OUT UINTN *BufferSize,
|
IN OUT UINTN *BufferSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -317,10 +309,9 @@ EFIAPI
|
|||||||
FvSetVolumeInfo (
|
FvSetVolumeInfo (
|
||||||
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
|
||||||
IN CONST EFI_GUID *InformationType,
|
IN CONST EFI_GUID *InformationType,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST VOID *Buffer
|
IN CONST VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//Internal functions
|
//Internal functions
|
||||||
@ -349,10 +340,9 @@ typedef enum {
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsBufferErased (
|
IsBufferErased (
|
||||||
IN UINT8 ErasePolarity,
|
IN UINT8 ErasePolarity,
|
||||||
IN VOID *Buffer,
|
IN VOID *InBuffer,
|
||||||
IN UINTN BufferSize
|
IN UINTN BufferSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -368,8 +358,7 @@ EFI_FFS_FILE_STATE
|
|||||||
GetFileState (
|
GetFileState (
|
||||||
IN UINT8 ErasePolarity,
|
IN UINT8 ErasePolarity,
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader
|
IN EFI_FFS_FILE_HEADER *FfsHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -385,8 +374,7 @@ VOID
|
|||||||
SetFileState (
|
SetFileState (
|
||||||
IN UINT8 State,
|
IN UINT8 State,
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader
|
IN EFI_FFS_FILE_HEADER *FfsHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -401,8 +389,7 @@ SetFileState (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
VerifyFvHeaderChecksum (
|
VerifyFvHeaderChecksum (
|
||||||
IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader
|
IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -418,11 +405,10 @@ VerifyFvHeaderChecksum (
|
|||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsValidFfsHeader (
|
IsValidFfsHeader (
|
||||||
IN UINT8 ErasePolarity,
|
IN UINT8 ErasePolarity,
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
||||||
OUT EFI_FFS_FILE_STATE *FileState
|
OUT EFI_FFS_FILE_STATE *FileState
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -440,8 +426,7 @@ BOOLEAN
|
|||||||
IsValidFfsFile (
|
IsValidFfsFile (
|
||||||
IN UINT8 ErasePolarity,
|
IN UINT8 ErasePolarity,
|
||||||
IN EFI_FFS_FILE_HEADER *FfsHeader
|
IN EFI_FFS_FILE_HEADER *FfsHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -460,10 +445,9 @@ IsValidFfsFile (
|
|||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
GetFwVolHeader (
|
GetFwVolHeader (
|
||||||
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb,
|
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb,
|
||||||
OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader
|
OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -480,7 +464,6 @@ GetFwVolHeader (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FvCheck (
|
FvCheck (
|
||||||
IN OUT FV_DEVICE *FvDevice
|
IN OUT FV_DEVICE *FvDevice
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
GCD Operations and data structure used to
|
GCD Operations and data structure used to
|
||||||
convert from GCD attributes to EFI Memory Map attributes.
|
convert from GCD attributes to EFI Memory Map attributes.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
The file contains the GCD related services in the EFI Boot Services Table.
|
||||||
The file contains the GCD related services in the EFI Boot Services Table.
|
|
||||||
The GCD services are used to manage the memory and I/O regions that
|
The GCD services are used to manage the memory and I/O regions that
|
||||||
are accessible to the CPU that is executing the DXE core.
|
are accessible to the CPU that is executing the DXE core.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -122,7 +121,6 @@ CoreReleaseGcdMemoryLock (
|
|||||||
Acquire memory lock on mGcdIoSpaceLock.
|
Acquire memory lock on mGcdIoSpaceLock.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreAcquireGcdIoLock (
|
CoreAcquireGcdIoLock (
|
||||||
VOID
|
VOID
|
||||||
@ -136,7 +134,6 @@ CoreAcquireGcdIoLock (
|
|||||||
Release memory lock on mGcdIoSpaceLock.
|
Release memory lock on mGcdIoSpaceLock.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreReleaseGcdIoLock (
|
CoreReleaseGcdIoLock (
|
||||||
VOID
|
VOID
|
||||||
@ -163,7 +160,6 @@ CoreReleaseGcdIoLock (
|
|||||||
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.
|
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
AlignValue (
|
AlignValue (
|
||||||
IN UINT64 Value,
|
IN UINT64 Value,
|
||||||
@ -189,7 +185,6 @@ AlignValue (
|
|||||||
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.
|
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
PageAlignAddress (
|
PageAlignAddress (
|
||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
@ -207,7 +202,6 @@ PageAlignAddress (
|
|||||||
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.
|
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
PageAlignLength (
|
PageAlignLength (
|
||||||
IN UINT64 Value
|
IN UINT64 Value
|
||||||
@ -230,7 +224,6 @@ PageAlignLength (
|
|||||||
@retval EFI_SUCCESS Both entries successfully allocated.
|
@retval EFI_SUCCESS Both entries successfully allocated.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreAllocateGcdMapEntry (
|
CoreAllocateGcdMapEntry (
|
||||||
IN OUT EFI_GCD_MAP_ENTRY **TopEntry,
|
IN OUT EFI_GCD_MAP_ENTRY **TopEntry,
|
||||||
@ -266,7 +259,6 @@ CoreAllocateGcdMapEntry (
|
|||||||
@retval EFI_SUCCESS The new range was inserted into the linked list
|
@retval EFI_SUCCESS The new range was inserted into the linked list
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreInsertGcdMapEntry (
|
CoreInsertGcdMapEntry (
|
||||||
IN LIST_ENTRY *Link,
|
IN LIST_ENTRY *Link,
|
||||||
@ -311,7 +303,6 @@ CoreInsertGcdMapEntry (
|
|||||||
@retval EFI_UNSUPPORTED These adjacent regions could not merge.
|
@retval EFI_UNSUPPORTED These adjacent regions could not merge.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreMergeGcdMapEntry (
|
CoreMergeGcdMapEntry (
|
||||||
IN LIST_ENTRY *Link,
|
IN LIST_ENTRY *Link,
|
||||||
@ -385,7 +376,6 @@ CoreMergeGcdMapEntry (
|
|||||||
@retval EFI_SUCCESS GCD map successfully cleaned up.
|
@retval EFI_SUCCESS GCD map successfully cleaned up.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreCleanupGcdMapEntry (
|
CoreCleanupGcdMapEntry (
|
||||||
IN EFI_GCD_MAP_ENTRY *TopEntry,
|
IN EFI_GCD_MAP_ENTRY *TopEntry,
|
||||||
@ -430,7 +420,6 @@ CoreCleanupGcdMapEntry (
|
|||||||
@retval EFI_NOT_FOUND Not found.
|
@retval EFI_NOT_FOUND Not found.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreSearchGcdMapEntry (
|
CoreSearchGcdMapEntry (
|
||||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||||
@ -475,7 +464,6 @@ CoreSearchGcdMapEntry (
|
|||||||
@return The count.
|
@return The count.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINTN
|
UINTN
|
||||||
CoreCountGcdMapEntry (
|
CoreCountGcdMapEntry (
|
||||||
IN LIST_ENTRY *Map
|
IN LIST_ENTRY *Map
|
||||||
@ -503,7 +491,6 @@ CoreCountGcdMapEntry (
|
|||||||
@return The enum value of memory attribute.
|
@return The enum value of memory attribute.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
ConverToCpuArchAttributes (
|
ConverToCpuArchAttributes (
|
||||||
UINT64 Attributes
|
UINT64 Attributes
|
||||||
@ -557,7 +544,6 @@ ConverToCpuArchAttributes (
|
|||||||
@retval EFI_OUT_OF_RESOURCES No buffer could be allocated.
|
@retval EFI_OUT_OF_RESOURCES No buffer could be allocated.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreConvertSpace (
|
CoreConvertSpace (
|
||||||
IN UINTN Operation,
|
IN UINTN Operation,
|
||||||
@ -801,7 +787,6 @@ Done:
|
|||||||
space.
|
space.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreAllocateSpaceCheckEntry (
|
CoreAllocateSpaceCheckEntry (
|
||||||
IN UINTN Operation,
|
IN UINTN Operation,
|
||||||
@ -849,7 +834,6 @@ CoreAllocateSpaceCheckEntry (
|
|||||||
@retval EFI_SUCCESS Space successfully allocated.
|
@retval EFI_SUCCESS Space successfully allocated.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreAllocateSpace (
|
CoreAllocateSpace (
|
||||||
IN UINTN Operation,
|
IN UINTN Operation,
|
||||||
@ -1096,7 +1080,6 @@ Done:
|
|||||||
@retval EFI_SUCCESS Successfully add a segment of memory space.
|
@retval EFI_SUCCESS Successfully add a segment of memory space.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreInternalAddMemorySpace (
|
CoreInternalAddMemorySpace (
|
||||||
IN EFI_GCD_MEMORY_TYPE GcdMemoryType,
|
IN EFI_GCD_MEMORY_TYPE GcdMemoryType,
|
||||||
@ -1283,7 +1266,6 @@ CoreRemoveMemorySpace (
|
|||||||
@param Entry According to this entry
|
@param Entry According to this entry
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
BuildMemoryDescriptor (
|
BuildMemoryDescriptor (
|
||||||
IN OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor,
|
IN OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor,
|
||||||
@ -1558,7 +1540,6 @@ CoreRemoveIoSpace (
|
|||||||
@param Entry According to this entry
|
@param Entry According to this entry
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
BuildIoDescriptor (
|
BuildIoDescriptor (
|
||||||
IN EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor,
|
IN EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor,
|
||||||
@ -1701,7 +1682,6 @@ Done:
|
|||||||
@return The capabilities mask for an EFI Memory Descriptor.
|
@return The capabilities mask for an EFI Memory Descriptor.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
CoreConvertResourceDescriptorHobAttributesToCapabilities (
|
CoreConvertResourceDescriptorHobAttributesToCapabilities (
|
||||||
EFI_GCD_MEMORY_TYPE GcdMemoryType,
|
EFI_GCD_MEMORY_TYPE GcdMemoryType,
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Support functions for managing protocol.
|
Support functions for managing protocol.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -113,10 +112,9 @@ typedef struct {
|
|||||||
**/
|
**/
|
||||||
PROTOCOL_ENTRY *
|
PROTOCOL_ENTRY *
|
||||||
CoreFindProtocolEntry (
|
CoreFindProtocolEntry (
|
||||||
IN EFI_GUID *Protocol,
|
IN EFI_GUID *Protocol,
|
||||||
IN BOOLEAN Create
|
IN BOOLEAN Create
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -127,9 +125,8 @@ CoreFindProtocolEntry (
|
|||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
CoreNotifyProtocolEntry (
|
CoreNotifyProtocolEntry (
|
||||||
IN PROTOCOL_ENTRY *ProtEntry
|
IN PROTOCOL_ENTRY *ProtEntry
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -146,11 +143,10 @@ CoreNotifyProtocolEntry (
|
|||||||
**/
|
**/
|
||||||
PROTOCOL_INTERFACE *
|
PROTOCOL_INTERFACE *
|
||||||
CoreFindProtocolInterface (
|
CoreFindProtocolInterface (
|
||||||
IN IHANDLE *Handle,
|
IN IHANDLE *Handle,
|
||||||
IN EFI_GUID *Protocol,
|
IN EFI_GUID *Protocol,
|
||||||
IN VOID *Interface
|
IN VOID *Interface
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -165,11 +161,10 @@ CoreFindProtocolInterface (
|
|||||||
**/
|
**/
|
||||||
PROTOCOL_INTERFACE *
|
PROTOCOL_INTERFACE *
|
||||||
CoreRemoveInterfaceFromProtocol (
|
CoreRemoveInterfaceFromProtocol (
|
||||||
IN IHANDLE *Handle,
|
IN IHANDLE *Handle,
|
||||||
IN EFI_GUID *Protocol,
|
IN EFI_GUID *Protocol,
|
||||||
IN VOID *Interface
|
IN VOID *Interface
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -183,9 +178,8 @@ CoreRemoveInterfaceFromProtocol (
|
|||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreUnregisterProtocolNotify (
|
CoreUnregisterProtocolNotify (
|
||||||
IN EFI_EVENT Event
|
IN EFI_EVENT Event
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -206,8 +200,7 @@ EFI_STATUS
|
|||||||
CoreDisconnectControllersUsingProtocolInterface (
|
CoreDisconnectControllersUsingProtocolInterface (
|
||||||
IN EFI_HANDLE UserHandle,
|
IN EFI_HANDLE UserHandle,
|
||||||
IN PROTOCOL_INTERFACE *Prot
|
IN PROTOCOL_INTERFACE *Prot
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -217,8 +210,7 @@ CoreDisconnectControllersUsingProtocolInterface (
|
|||||||
VOID
|
VOID
|
||||||
CoreAcquireProtocolLock (
|
CoreAcquireProtocolLock (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -228,8 +220,7 @@ CoreAcquireProtocolLock (
|
|||||||
VOID
|
VOID
|
||||||
CoreReleaseProtocolLock (
|
CoreReleaseProtocolLock (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -244,8 +235,7 @@ CoreReleaseProtocolLock (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreValidateHandle (
|
CoreValidateHandle (
|
||||||
IN EFI_HANDLE UserHandle
|
IN EFI_HANDLE UserHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Externs
|
// Externs
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Support functions to connect/disconnect UEFI Driver model Protocol
|
Support functions to connect/disconnect UEFI Driver model Protocol
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -42,8 +41,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreConnectSingleController (
|
CoreConnectSingleController (
|
||||||
IN EFI_HANDLE ControllerHandle,
|
IN EFI_HANDLE ControllerHandle,
|
||||||
IN EFI_HANDLE *DriverImageHandle OPTIONAL,
|
IN EFI_HANDLE *ContextDriverImageHandles OPTIONAL,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
|
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI handle & protocol handling.
|
UEFI handle & protocol handling.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -22,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
// gProtocolDatabaseLock - Lock to protect the mProtocolDatabase
|
// gProtocolDatabaseLock - Lock to protect the mProtocolDatabase
|
||||||
// gHandleDatabaseKey - The Key to show that the handle has been created/modified
|
// gHandleDatabaseKey - The Key to show that the handle has been created/modified
|
||||||
//
|
//
|
||||||
static LIST_ENTRY mProtocolDatabase = INITIALIZE_LIST_HEAD_VARIABLE (mProtocolDatabase);
|
STATIC LIST_ENTRY mProtocolDatabase = INITIALIZE_LIST_HEAD_VARIABLE (mProtocolDatabase);
|
||||||
LIST_ENTRY gHandleList = INITIALIZE_LIST_HEAD_VARIABLE (gHandleList);
|
LIST_ENTRY gHandleList = INITIALIZE_LIST_HEAD_VARIABLE (gHandleList);
|
||||||
EFI_LOCK gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
EFI_LOCK gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
||||||
UINT64 gHandleDatabaseKey = 0;
|
UINT64 gHandleDatabaseKey = 0;
|
||||||
@ -220,7 +219,6 @@ CoreFindProtocolInterface (
|
|||||||
@return EFI_NOT_FOUND if the event was not found in the protocl database.
|
@return EFI_NOT_FOUND if the event was not found in the protocl database.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreUnregisterProtocolNotifyEvent (
|
CoreUnregisterProtocolNotifyEvent (
|
||||||
IN EFI_EVENT Event
|
IN EFI_EVENT Event
|
||||||
@ -878,7 +876,6 @@ CoreUninstallMultipleProtocolInterfaces (
|
|||||||
@return The requested protocol interface for the handle
|
@return The requested protocol interface for the handle
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
PROTOCOL_INTERFACE *
|
PROTOCOL_INTERFACE *
|
||||||
CoreGetProtocolInterface (
|
CoreGetProtocolInterface (
|
||||||
IN EFI_HANDLE UserHandle,
|
IN EFI_HANDLE UserHandle,
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Locate handle functions
|
Locate handle functions
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -50,7 +49,6 @@ IHANDLE *
|
|||||||
returned if it's the end of the list.
|
returned if it's the end of the list.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
IHANDLE *
|
IHANDLE *
|
||||||
CoreGetNextLocateAllHandles (
|
CoreGetNextLocateAllHandles (
|
||||||
IN OUT LOCATE_POSITION *Position,
|
IN OUT LOCATE_POSITION *Position,
|
||||||
@ -70,7 +68,6 @@ CoreGetNextLocateAllHandles (
|
|||||||
returned if it's the end of the list.
|
returned if it's the end of the list.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
IHANDLE *
|
IHANDLE *
|
||||||
CoreGetNextLocateByRegisterNotify (
|
CoreGetNextLocateByRegisterNotify (
|
||||||
IN OUT LOCATE_POSITION *Position,
|
IN OUT LOCATE_POSITION *Position,
|
||||||
@ -89,7 +86,6 @@ CoreGetNextLocateByRegisterNotify (
|
|||||||
returned if it's the end of the list.
|
returned if it's the end of the list.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
IHANDLE *
|
IHANDLE *
|
||||||
CoreGetNextLocateByProtocol (
|
CoreGetNextLocateByProtocol (
|
||||||
IN OUT LOCATE_POSITION *Position,
|
IN OUT LOCATE_POSITION *Position,
|
||||||
@ -276,7 +272,6 @@ CoreLocateHandle (
|
|||||||
returned if it's the end of the list.
|
returned if it's the end of the list.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
IHANDLE *
|
IHANDLE *
|
||||||
CoreGetNextLocateAllHandles (
|
CoreGetNextLocateAllHandles (
|
||||||
IN OUT LOCATE_POSITION *Position,
|
IN OUT LOCATE_POSITION *Position,
|
||||||
@ -317,7 +312,6 @@ CoreGetNextLocateAllHandles (
|
|||||||
returned if it's the end of the list.
|
returned if it's the end of the list.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
IHANDLE *
|
IHANDLE *
|
||||||
CoreGetNextLocateByRegisterNotify (
|
CoreGetNextLocateByRegisterNotify (
|
||||||
IN OUT LOCATE_POSITION *Position,
|
IN OUT LOCATE_POSITION *Position,
|
||||||
@ -368,7 +362,6 @@ CoreGetNextLocateByRegisterNotify (
|
|||||||
returned if it's the end of the list.
|
returned if it's the end of the list.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
IHANDLE *
|
IHANDLE *
|
||||||
CoreGetNextLocateByProtocol (
|
CoreGetNextLocateByProtocol (
|
||||||
IN OUT LOCATE_POSITION *Position,
|
IN OUT LOCATE_POSITION *Position,
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI notify infrastructure
|
UEFI notify infrastructure
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Data structure and functions to load and unload PeImage.
|
Data structure and functions to load and unload PeImage.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -122,8 +121,7 @@ CoreOpenImageFile (
|
|||||||
OUT EFI_HANDLE *DeviceHandle,
|
OUT EFI_HANDLE *DeviceHandle,
|
||||||
IN IMAGE_FILE_HANDLE *ImageFileHandle,
|
IN IMAGE_FILE_HANDLE *ImageFileHandle,
|
||||||
OUT UINT32 *AuthenticationStatus
|
OUT UINT32 *AuthenticationStatus
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -144,12 +142,11 @@ CoreOpenImageFile (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreReadImageFile (
|
CoreReadImageFile (
|
||||||
IN VOID *UserHandle,
|
IN VOID *UserHandle,
|
||||||
IN UINTN Offset,
|
IN UINTN Offset,
|
||||||
IN OUT UINTN *ReadSize,
|
IN OUT UINTN *ReadSize,
|
||||||
OUT VOID *Buffer
|
OUT VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -162,8 +159,7 @@ VOID
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
CoreCloseImageFile (
|
CoreCloseImageFile (
|
||||||
IN IMAGE_FILE_HANDLE *ImageFileHandle
|
IN IMAGE_FILE_HANDLE *ImageFileHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Image processing worker functions
|
// Image processing worker functions
|
||||||
@ -185,11 +181,10 @@ CoreCloseImageFile (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreDevicePathToInterface (
|
CoreDevicePathToInterface (
|
||||||
IN EFI_GUID *Protocol,
|
IN EFI_GUID *Protocol,
|
||||||
IN OUT EFI_DEVICE_PATH_PROTOCOL **FilePath,
|
IN EFI_DEVICE_PATH_PROTOCOL **FilePath,
|
||||||
OUT VOID **Interface,
|
OUT VOID **Interface,
|
||||||
OUT EFI_HANDLE *Handle
|
OUT EFI_HANDLE *Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -215,14 +210,13 @@ CoreDevicePathToInterface (
|
|||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreLoadPeImage (
|
CoreLoadPeImage (
|
||||||
IN BOOLEAN BootPolicy,
|
IN BOOLEAN BootPolicy,
|
||||||
IN VOID *Pe32Handle,
|
IN VOID *Pe32Handle,
|
||||||
IN LOADED_IMAGE_PRIVATE_DATA *Image,
|
IN LOADED_IMAGE_PRIVATE_DATA *Image,
|
||||||
IN EFI_PHYSICAL_ADDRESS DstBuffer OPTIONAL,
|
IN EFI_PHYSICAL_ADDRESS DstBuffer OPTIONAL,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,
|
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,
|
||||||
IN UINT32 Attribute
|
IN UINT32 Attribute
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -236,8 +230,7 @@ CoreLoadPeImage (
|
|||||||
LOADED_IMAGE_PRIVATE_DATA *
|
LOADED_IMAGE_PRIVATE_DATA *
|
||||||
CoreLoadedImageInfo (
|
CoreLoadedImageInfo (
|
||||||
IN EFI_HANDLE ImageHandle
|
IN EFI_HANDLE ImageHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -251,8 +244,7 @@ VOID
|
|||||||
CoreUnloadAndCloseImage (
|
CoreUnloadAndCloseImage (
|
||||||
IN LOADED_IMAGE_PRIVATE_DATA *Image,
|
IN LOADED_IMAGE_PRIVATE_DATA *Image,
|
||||||
IN BOOLEAN FreePage
|
IN BOOLEAN FreePage
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -292,7 +284,7 @@ CoreUnloadAndCloseImage (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreLoadImageEx (
|
CoreLoadImageEx (
|
||||||
IN EFI_PE32_IMAGE_PROTOCOL *This,
|
IN EFI_PE32_IMAGE_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ParentImageHandle,
|
IN EFI_HANDLE ParentImageHandle,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *FilePath,
|
IN EFI_DEVICE_PATH_PROTOCOL *FilePath,
|
||||||
IN VOID *SourceBuffer OPTIONAL,
|
IN VOID *SourceBuffer OPTIONAL,
|
||||||
@ -302,8 +294,7 @@ CoreLoadImageEx (
|
|||||||
OUT EFI_HANDLE *ImageHandle,
|
OUT EFI_HANDLE *ImageHandle,
|
||||||
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,
|
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,
|
||||||
IN UINT32 Attribute
|
IN UINT32 Attribute
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -320,8 +311,7 @@ CoreLoadImageEx (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CoreUnloadImageEx (
|
CoreUnloadImageEx (
|
||||||
IN EFI_PE32_IMAGE_PROTOCOL *This,
|
IN EFI_PE32_IMAGE_PROTOCOL *This,
|
||||||
IN EFI_HANDLE ImageHandle
|
IN EFI_HANDLE ImageHandle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Core image handling services to load and unload PeImage.
|
Core image handling services to load and unload PeImage.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -603,7 +602,6 @@ CoreLoadedImageInfo (
|
|||||||
resources.
|
resources.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreLoadImageCommon (
|
CoreLoadImageCommon (
|
||||||
IN BOOLEAN BootPolicy,
|
IN BOOLEAN BootPolicy,
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Handle services to image file.
|
Handle services to image file.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Data structure and functions to allocate and free memory space.
|
Data structure and functions to allocate and free memory space.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -11,7 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _IMEM_H_
|
#ifndef _IMEM_H_
|
||||||
@ -70,11 +68,10 @@ typedef struct {
|
|||||||
**/
|
**/
|
||||||
VOID *
|
VOID *
|
||||||
CoreAllocatePoolPages (
|
CoreAllocatePoolPages (
|
||||||
IN EFI_MEMORY_TYPE PoolType,
|
IN EFI_MEMORY_TYPE PoolType,
|
||||||
IN UINTN NumberOfPages,
|
IN UINTN NumberOfPages,
|
||||||
IN UINTN Alignment
|
IN UINTN Alignment
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -89,8 +86,7 @@ VOID
|
|||||||
CoreFreePoolPages (
|
CoreFreePoolPages (
|
||||||
IN EFI_PHYSICAL_ADDRESS Memory,
|
IN EFI_PHYSICAL_ADDRESS Memory,
|
||||||
IN UINTN NumberOfPages
|
IN UINTN NumberOfPages
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -108,8 +104,7 @@ VOID *
|
|||||||
CoreAllocatePoolI (
|
CoreAllocatePoolI (
|
||||||
IN EFI_MEMORY_TYPE PoolType,
|
IN EFI_MEMORY_TYPE PoolType,
|
||||||
IN UINTN Size
|
IN UINTN Size
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -125,9 +120,8 @@ CoreAllocatePoolI (
|
|||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreFreePoolI (
|
CoreFreePoolI (
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -138,8 +132,7 @@ CoreFreePoolI (
|
|||||||
VOID
|
VOID
|
||||||
CoreAcquireMemoryLock (
|
CoreAcquireMemoryLock (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -149,8 +142,7 @@ CoreAcquireMemoryLock (
|
|||||||
VOID
|
VOID
|
||||||
CoreReleaseMemoryLock (
|
CoreReleaseMemoryLock (
|
||||||
VOID
|
VOID
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Internal functions shared in DxeCore module.
|
Internal functions shared in DxeCore module.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -11,7 +10,6 @@ http://opensource.org/licenses/bsd-license.php
|
|||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _DXE_LIBRARY_H_
|
#ifndef _DXE_LIBRARY_H_
|
||||||
@ -30,8 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
VOID
|
VOID
|
||||||
CoreReportProgressCode (
|
CoreReportProgressCode (
|
||||||
IN EFI_STATUS_CODE_VALUE Value
|
IN EFI_STATUS_CODE_VALUE Value
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -48,8 +45,7 @@ VOID
|
|||||||
CoreReportProgressCodeSpecific (
|
CoreReportProgressCodeSpecific (
|
||||||
IN EFI_STATUS_CODE_VALUE Value,
|
IN EFI_STATUS_CODE_VALUE Value,
|
||||||
IN EFI_HANDLE Handle
|
IN EFI_HANDLE Handle
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,9 +59,8 @@ CoreReportProgressCodeSpecific (
|
|||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
CoreAcquireLock (
|
CoreAcquireLock (
|
||||||
IN EFI_LOCK *Lock
|
IN EFI_LOCK *Lock
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -84,8 +79,7 @@ CoreAcquireLock (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreAcquireLockOrFail (
|
CoreAcquireLockOrFail (
|
||||||
IN EFI_LOCK *Lock
|
IN EFI_LOCK *Lock
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -99,9 +93,8 @@ CoreAcquireLockOrFail (
|
|||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
CoreReleaseLock (
|
CoreReleaseLock (
|
||||||
IN EFI_LOCK *Lock
|
IN EFI_LOCK *Lock
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Device Path functions
|
// Device Path functions
|
||||||
@ -119,8 +112,7 @@ CoreReleaseLock (
|
|||||||
UINTN
|
UINTN
|
||||||
CoreDevicePathSize (
|
CoreDevicePathSize (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -135,8 +127,7 @@ CoreDevicePathSize (
|
|||||||
BOOLEAN
|
BOOLEAN
|
||||||
CoreIsDevicePathMultiInstance (
|
CoreIsDevicePathMultiInstance (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -152,8 +143,7 @@ CoreIsDevicePathMultiInstance (
|
|||||||
EFI_DEVICE_PATH_PROTOCOL *
|
EFI_DEVICE_PATH_PROTOCOL *
|
||||||
CoreDuplicateDevicePath (
|
CoreDuplicateDevicePath (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -171,8 +161,7 @@ EFI_DEVICE_PATH_PROTOCOL *
|
|||||||
CoreAppendDevicePath (
|
CoreAppendDevicePath (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *Src1,
|
IN EFI_DEVICE_PATH_PROTOCOL *Src1,
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *Src2
|
IN EFI_DEVICE_PATH_PROTOCOL *Src2
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -186,8 +175,7 @@ CoreAppendDevicePath (
|
|||||||
VOID *
|
VOID *
|
||||||
CoreAllocateBootServicesPool (
|
CoreAllocateBootServicesPool (
|
||||||
IN UINTN AllocationSize
|
IN UINTN AllocationSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -201,8 +189,7 @@ CoreAllocateBootServicesPool (
|
|||||||
VOID *
|
VOID *
|
||||||
CoreAllocateZeroBootServicesPool (
|
CoreAllocateZeroBootServicesPool (
|
||||||
IN UINTN AllocationSize
|
IN UINTN AllocationSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -219,9 +206,8 @@ CoreAllocateZeroBootServicesPool (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreGetConfigTable (
|
CoreGetConfigTable (
|
||||||
IN EFI_GUID *Guid,
|
IN EFI_GUID *Guid,
|
||||||
IN OUT VOID **Table
|
OUT VOID **Table
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -238,8 +224,7 @@ VOID *
|
|||||||
CoreAllocateRuntimeCopyPool (
|
CoreAllocateRuntimeCopyPool (
|
||||||
IN UINTN AllocationSize,
|
IN UINTN AllocationSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -253,8 +238,7 @@ CoreAllocateRuntimeCopyPool (
|
|||||||
VOID *
|
VOID *
|
||||||
CoreAllocateRuntimePool (
|
CoreAllocateRuntimePool (
|
||||||
IN UINTN AllocationSize
|
IN UINTN AllocationSize
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -271,8 +255,7 @@ VOID *
|
|||||||
CoreAllocateCopyPool (
|
CoreAllocateCopyPool (
|
||||||
IN UINTN AllocationSize,
|
IN UINTN AllocationSize,
|
||||||
IN VOID *Buffer
|
IN VOID *Buffer
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -299,7 +282,6 @@ CoreCreateProtocolNotifyEvent (
|
|||||||
IN VOID *NotifyContext,
|
IN VOID *NotifyContext,
|
||||||
OUT VOID **Registration,
|
OUT VOID **Registration,
|
||||||
IN BOOLEAN SignalFlag
|
IN BOOLEAN SignalFlag
|
||||||
)
|
);
|
||||||
;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
DXE Core library services.
|
DXE Core library services.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Global data used in memory service
|
Global data used in memory service
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI Memory page management functions.
|
UEFI Memory page management functions.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2008, Intel Corporation
|
Copyright (c) 2007 - 2008, Intel Corporation. <BR>
|
||||||
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
|
||||||
@ -95,7 +94,6 @@ EFI_MEMORY_TYPE_INFORMATION gMemoryTypeInformation[EfiMaxMemoryType + 1] = {
|
|||||||
Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.
|
Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
PromoteMemoryResource (
|
PromoteMemoryResource (
|
||||||
VOID
|
VOID
|
||||||
@ -115,7 +113,6 @@ PromoteMemoryResource (
|
|||||||
@return None. The range is added to the memory map
|
@return None. The range is added to the memory map
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreAddRange (
|
CoreAddRange (
|
||||||
IN EFI_MEMORY_TYPE Type,
|
IN EFI_MEMORY_TYPE Type,
|
||||||
@ -129,7 +126,6 @@ CoreAddRange (
|
|||||||
temporary descriptor stack to heap.
|
temporary descriptor stack to heap.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreFreeMemoryMapStack (
|
CoreFreeMemoryMapStack (
|
||||||
VOID
|
VOID
|
||||||
@ -151,7 +147,6 @@ CoreFreeMemoryMapStack (
|
|||||||
specified type.
|
specified type.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreConvertPages (
|
CoreConvertPages (
|
||||||
IN UINT64 Start,
|
IN UINT64 Start,
|
||||||
@ -165,7 +160,6 @@ CoreConvertPages (
|
|||||||
@param Entry The entry to remove
|
@param Entry The entry to remove
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
RemoveMemoryMapEntry (
|
RemoveMemoryMapEntry (
|
||||||
MEMORY_MAP *Entry
|
MEMORY_MAP *Entry
|
||||||
@ -184,7 +178,6 @@ RemoveMemoryMapEntry (
|
|||||||
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList
|
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
MEMORY_MAP *
|
MEMORY_MAP *
|
||||||
AllocateMemoryMapEntry (
|
AllocateMemoryMapEntry (
|
||||||
VOID
|
VOID
|
||||||
@ -222,7 +215,6 @@ CoreReleaseMemoryLock (
|
|||||||
Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.
|
Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
PromoteMemoryResource (
|
PromoteMemoryResource (
|
||||||
VOID
|
VOID
|
||||||
@ -449,7 +441,6 @@ CoreAddMemoryDescriptor (
|
|||||||
@return None. The range is added to the memory map
|
@return None. The range is added to the memory map
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreAddRange (
|
CoreAddRange (
|
||||||
IN EFI_MEMORY_TYPE Type,
|
IN EFI_MEMORY_TYPE Type,
|
||||||
@ -542,7 +533,6 @@ CoreAddRange (
|
|||||||
temporary descriptor stack to heap.
|
temporary descriptor stack to heap.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CoreFreeMemoryMapStack (
|
CoreFreeMemoryMapStack (
|
||||||
VOID
|
VOID
|
||||||
@ -621,7 +611,6 @@ CoreFreeMemoryMapStack (
|
|||||||
@param Entry The entry to remove
|
@param Entry The entry to remove
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
RemoveMemoryMapEntry (
|
RemoveMemoryMapEntry (
|
||||||
MEMORY_MAP *Entry
|
MEMORY_MAP *Entry
|
||||||
@ -652,7 +641,6 @@ RemoveMemoryMapEntry (
|
|||||||
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList
|
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
MEMORY_MAP *
|
MEMORY_MAP *
|
||||||
AllocateMemoryMapEntry (
|
AllocateMemoryMapEntry (
|
||||||
VOID
|
VOID
|
||||||
@ -705,7 +693,6 @@ AllocateMemoryMapEntry (
|
|||||||
specified type.
|
specified type.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CoreConvertPages (
|
CoreConvertPages (
|
||||||
IN UINT64 Start,
|
IN UINT64 Start,
|
||||||
@ -898,7 +885,6 @@ CoreConvertPages (
|
|||||||
@return The base address of the range, or 0 if the range was not found
|
@return The base address of the range, or 0 if the range was not found
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
CoreFindFreePagesI (
|
CoreFindFreePagesI (
|
||||||
IN UINT64 MaxAddress,
|
IN UINT64 MaxAddress,
|
||||||
@ -1019,7 +1005,6 @@ CoreFindFreePagesI (
|
|||||||
@return The base address of the range, or 0 if the range was not found.
|
@return The base address of the range, or 0 if the range was not found.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
UINT64
|
UINT64
|
||||||
FindFreePages (
|
FindFreePages (
|
||||||
IN UINT64 MaxAddress,
|
IN UINT64 MaxAddress,
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI Memory pool management functions.
|
UEFI Memory pool management functions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -110,7 +109,6 @@ CoreInitializePool (
|
|||||||
@return Pointer of Corresponding pool head.
|
@return Pointer of Corresponding pool head.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
POOL *
|
POOL *
|
||||||
LookupPoolHead (
|
LookupPoolHead (
|
||||||
IN EFI_MEMORY_TYPE MemoryType
|
IN EFI_MEMORY_TYPE MemoryType
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Support functions for managing debug image info table when loading and unloading
|
Support functions for managing debug image info table when loading and unloading
|
||||||
images.
|
images.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI Miscellaneous boot Services InstallConfigurationTable service
|
UEFI Miscellaneous boot Services InstallConfigurationTable service
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI Miscellaneous boot Services SetWatchdogTimer service implementation
|
UEFI Miscellaneous boot Services SetWatchdogTimer service implementation
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
UEFI Miscellaneous boot Services Stall service implementation
|
UEFI Miscellaneous boot Services Stall service implementation
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
3) A support protocol is not found, and the data is not available to be read
|
3) A support protocol is not found, and the data is not available to be read
|
||||||
without it. This results in EFI_PROTOCOL_ERROR.
|
without it. This results in EFI_PROTOCOL_ERROR.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
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
|
||||||
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
|
||||||
@ -115,13 +115,12 @@ typedef struct {
|
|||||||
@retval FALSE The child doesn't match
|
@retval FALSE The child doesn't match
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
ChildIsType (
|
ChildIsType (
|
||||||
IN CORE_SECTION_STREAM_NODE *Stream,
|
IN CORE_SECTION_STREAM_NODE *Stream,
|
||||||
IN CORE_SECTION_CHILD_NODE *Child,
|
IN CORE_SECTION_CHILD_NODE *Child,
|
||||||
IN EFI_SECTION_TYPE SearchType,
|
IN EFI_SECTION_TYPE SearchType,
|
||||||
IN EFI_GUID *SectionDefinitionGuid
|
IN EFI_GUID *SectionDefinitionGuid
|
||||||
);
|
);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@ -134,19 +133,18 @@ ChildIsType (
|
|||||||
identify the relevent encapsulation...
|
identify the relevent encapsulation...
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
NotifyGuidedExtraction (
|
NotifyGuidedExtraction (
|
||||||
IN EFI_EVENT Event,
|
IN EFI_EVENT Event,
|
||||||
IN VOID *RpnContext
|
IN VOID *RpnContext
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/**
|
/**
|
||||||
Worker function. Constructor for RPN event if needed to keep AuthenticationStatus
|
Worker function. Constructor for RPN event if needed to keep AuthenticationStatus
|
||||||
cache correct when a missing GUIDED_SECTION_EXTRACTION_PROTOCOL appears.
|
cache correct when a missing GUIDED_SECTION_EXTRACTION_PROTOCOL appears...
|
||||||
|
|
||||||
@param ParentStream Indicates the parent of the ecnapsulation
|
@param ParentStream Indicates the parent of the ecnapsulation
|
||||||
section (child)
|
section (child)
|
||||||
@ -154,11 +152,10 @@ NotifyGuidedExtraction (
|
|||||||
encapsulation section.
|
encapsulation section.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CreateGuidedExtractionRpnEvent (
|
CreateGuidedExtractionRpnEvent (
|
||||||
IN CORE_SECTION_STREAM_NODE *ParentStream,
|
IN CORE_SECTION_STREAM_NODE *ParentStream,
|
||||||
IN CORE_SECTION_CHILD_NODE *ChildNode
|
IN CORE_SECTION_CHILD_NODE *ChildNode
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -174,11 +171,10 @@ CreateGuidedExtractionRpnEvent (
|
|||||||
database.
|
database.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FindStreamNode (
|
FindStreamNode (
|
||||||
IN UINTN SearchHandle,
|
IN UINTN SearchHandle,
|
||||||
OUT CORE_SECTION_STREAM_NODE **FoundStream
|
OUT CORE_SECTION_STREAM_NODE **FoundStream
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -207,16 +203,15 @@ FindStreamNode (
|
|||||||
does not exist
|
does not exist
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FindChildNode (
|
FindChildNode (
|
||||||
IN CORE_SECTION_STREAM_NODE *SourceStream,
|
IN CORE_SECTION_STREAM_NODE *SourceStream,
|
||||||
IN EFI_SECTION_TYPE SearchType,
|
IN EFI_SECTION_TYPE SearchType,
|
||||||
IN UINTN *SectionInstance,
|
IN OUT UINTN *SectionInstance,
|
||||||
IN EFI_GUID *SectionDefinitionGuid,
|
IN EFI_GUID *SectionDefinitionGuid,
|
||||||
OUT CORE_SECTION_CHILD_NODE **FoundChild,
|
OUT CORE_SECTION_CHILD_NODE **FoundChild,
|
||||||
OUT CORE_SECTION_STREAM_NODE **FoundStream,
|
OUT CORE_SECTION_STREAM_NODE **FoundStream,
|
||||||
OUT UINT32 *AuthenticationStatus
|
OUT UINT32 *AuthenticationStatus
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -240,12 +235,11 @@ FindChildNode (
|
|||||||
returned by OpenSectionStreamEx.
|
returned by OpenSectionStreamEx.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CreateChildNode (
|
CreateChildNode (
|
||||||
IN CORE_SECTION_STREAM_NODE *Stream,
|
IN CORE_SECTION_STREAM_NODE *Stream,
|
||||||
IN UINT32 ChildOffset,
|
IN UINT32 ChildOffset,
|
||||||
OUT CORE_SECTION_CHILD_NODE **ChildNode
|
OUT CORE_SECTION_CHILD_NODE **ChildNode
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -254,10 +248,9 @@ CreateChildNode (
|
|||||||
@param ChildNode Indicates the node to destroy
|
@param ChildNode Indicates the node to destroy
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
FreeChildNode (
|
FreeChildNode (
|
||||||
IN CORE_SECTION_CHILD_NODE *ChildNode
|
IN CORE_SECTION_CHILD_NODE *ChildNode
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -293,14 +286,13 @@ FreeChildNode (
|
|||||||
@retval EFI_OUT_OF_RESOURCES memory allocation failed.
|
@retval EFI_OUT_OF_RESOURCES memory allocation failed.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
OpenSectionStreamEx (
|
OpenSectionStreamEx (
|
||||||
IN UINTN SectionStreamLength,
|
IN UINTN SectionStreamLength,
|
||||||
IN VOID *SectionStream,
|
IN VOID *SectionStream,
|
||||||
IN BOOLEAN AllocateBuffer,
|
IN BOOLEAN AllocateBuffer,
|
||||||
IN UINT32 AuthenticationStatus,
|
IN UINT32 AuthenticationStatus,
|
||||||
OUT UINTN *SectionStreamHandle
|
OUT UINTN *SectionStreamHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -312,11 +304,10 @@ OpenSectionStreamEx (
|
|||||||
@return A boolean value indicating the validness of the section stream.
|
@return A boolean value indicating the validness of the section stream.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsValidSectionStream (
|
IsValidSectionStream (
|
||||||
IN VOID *SectionStream,
|
IN VOID *SectionStream,
|
||||||
IN UINTN SectionStreamLength
|
IN UINTN SectionStreamLength
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -406,7 +397,7 @@ IsValidSectionStream (
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CustomGuidedSectionExtract (
|
CustomGuidedSectionExtract (
|
||||||
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
|
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
|
||||||
IN CONST VOID *InputSection,
|
IN CONST VOID *InputSection,
|
||||||
OUT VOID **OutputBuffer,
|
OUT VOID **OutputBuffer,
|
||||||
OUT UINTN *OutputSize,
|
OUT UINTN *OutputSize,
|
||||||
@ -729,7 +720,6 @@ CloseSectionStream (
|
|||||||
@retval FALSE The child doesn't match
|
@retval FALSE The child doesn't match
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
ChildIsType (
|
ChildIsType (
|
||||||
IN CORE_SECTION_STREAM_NODE *Stream,
|
IN CORE_SECTION_STREAM_NODE *Stream,
|
||||||
@ -781,7 +771,6 @@ ChildIsType (
|
|||||||
does not exist
|
does not exist
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FindChildNode (
|
FindChildNode (
|
||||||
IN CORE_SECTION_STREAM_NODE *SourceStream,
|
IN CORE_SECTION_STREAM_NODE *SourceStream,
|
||||||
@ -933,7 +922,6 @@ FindChildNode (
|
|||||||
returned by OpenSectionStreamEx.
|
returned by OpenSectionStreamEx.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
CreateChildNode (
|
CreateChildNode (
|
||||||
IN CORE_SECTION_STREAM_NODE *Stream,
|
IN CORE_SECTION_STREAM_NODE *Stream,
|
||||||
@ -1176,7 +1164,6 @@ CreateChildNode (
|
|||||||
encapsulation section.
|
encapsulation section.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
CreateGuidedExtractionRpnEvent (
|
CreateGuidedExtractionRpnEvent (
|
||||||
IN CORE_SECTION_STREAM_NODE *ParentStream,
|
IN CORE_SECTION_STREAM_NODE *ParentStream,
|
||||||
@ -1216,7 +1203,6 @@ CreateGuidedExtractionRpnEvent (
|
|||||||
identify the relevent encapsulation...
|
identify the relevent encapsulation...
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
NotifyGuidedExtraction (
|
NotifyGuidedExtraction (
|
||||||
@ -1287,7 +1273,6 @@ NotifyGuidedExtraction (
|
|||||||
@param ChildNode Indicates the node to destroy
|
@param ChildNode Indicates the node to destroy
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
VOID
|
VOID
|
||||||
FreeChildNode (
|
FreeChildNode (
|
||||||
IN CORE_SECTION_CHILD_NODE *ChildNode
|
IN CORE_SECTION_CHILD_NODE *ChildNode
|
||||||
@ -1347,7 +1332,6 @@ FreeChildNode (
|
|||||||
@retval EFI_OUT_OF_RESOURCES memory allocation failed.
|
@retval EFI_OUT_OF_RESOURCES memory allocation failed.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
OpenSectionStreamEx (
|
OpenSectionStreamEx (
|
||||||
IN UINTN SectionStreamLength,
|
IN UINTN SectionStreamLength,
|
||||||
@ -1433,7 +1417,6 @@ OpenSectionStreamEx (
|
|||||||
database.
|
database.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
FindStreamNode (
|
FindStreamNode (
|
||||||
IN UINTN SearchHandle,
|
IN UINTN SearchHandle,
|
||||||
@ -1470,7 +1453,6 @@ FindStreamNode (
|
|||||||
@return A boolean value indicating the validness of the section stream.
|
@return A boolean value indicating the validness of the section stream.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
STATIC
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsValidSectionStream (
|
IsValidSectionStream (
|
||||||
IN VOID *SectionStream,
|
IN VOID *SectionStream,
|
||||||
|
Reference in New Issue
Block a user