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:
qhuang8 2008-05-21 01:40:12 +00:00
parent 3b1d9fd579
commit 23c98c9417
41 changed files with 693 additions and 976 deletions

View File

@ -1,9 +1,8 @@
/** @file
Support functions for managing debug image info table when loading and unloading
images.
Copyright (c) 2006 - 2008, Intel Corporation
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -37,8 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
VOID
CoreInitializeDebugImageInfoTable (
VOID
)
;
);
/**
@ -52,8 +50,7 @@ CoreInitializeDebugImageInfoTable (
VOID
CoreUpdateDebugTableCrc32 (
VOID
)
;
);
/**
@ -68,11 +65,10 @@ CoreUpdateDebugTableCrc32 (
**/
VOID
CoreNewDebugImageInfoEntry (
UINT32 ImageInfoType,
EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,
EFI_HANDLE ImageHandle
)
;
IN UINT32 ImageInfoType,
IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,
IN EFI_HANDLE ImageHandle
);
/**
@ -84,7 +80,6 @@ CoreNewDebugImageInfoEntry (
VOID
CoreRemoveDebugImageInfoEntry (
EFI_HANDLE ImageHandle
)
;
);
#endif

View File

@ -1,12 +1,11 @@
/** @file
DXE Dispatcher Dependency Evaluator
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine
if a driver can be scheduled for execution. The criteria for
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
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
@ -39,7 +38,6 @@ BOOLEAN *mDepexEvaluationStackPointer = NULL;
stack.
**/
STATIC
EFI_STATUS
GrowDepexStack (
VOID
@ -96,7 +94,6 @@ GrowDepexStack (
stack.
**/
STATIC
EFI_STATUS
PushBool (
IN BOOLEAN Value
@ -137,7 +134,6 @@ PushBool (
@retval EFI_ACCESS_DENIED The pop operation underflowed the stack
**/
STATIC
EFI_STATUS
PopBool (
OUT BOOLEAN *Value

View File

@ -26,7 +26,7 @@
Depex - Dependency Expresion.
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
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
@ -105,7 +105,6 @@ FV_FILEPATH_DEVICE_PATH mFvDevicePath;
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue
**/
STATIC
VOID
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry
@ -128,7 +127,6 @@ CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
@param Context Event Context, not used.
**/
STATIC
VOID
EFIAPI
CoreFwVolEventProtocolNotify (
@ -149,7 +147,6 @@ CoreFwVolEventProtocolNotify (
@return Pointer to device path constructed from FvHandle and DriverName
**/
STATIC
EFI_DEVICE_PATH_PROTOCOL *
CoreFvToDevicePath (
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
@ -177,12 +174,11 @@ CoreFvToDevicePath (
time.
**/
STATIC
EFI_STATUS
CoreAddToDriverList (
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
IN EFI_HANDLE FvHandle,
IN EFI_GUID *DriverName
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
IN EFI_HANDLE FvHandle,
IN EFI_GUID *DriverName
);
/**
@ -197,7 +193,6 @@ CoreAddToDriverList (
@retval EFI_SUCCESS Function successfully returned.
**/
STATIC
EFI_STATUS
CoreProcessFvImageFile (
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
@ -210,7 +205,6 @@ CoreProcessFvImageFile (
Enter critical section by gaining lock on mDispatcherLock.
**/
STATIC
VOID
CoreAcquireDispatcherLock (
VOID
@ -224,7 +218,6 @@ CoreAcquireDispatcherLock (
Exit critical section by releasing lock on mDispatcherLock.
**/
STATIC
VOID
CoreReleaseDispatcherLock (
VOID
@ -246,7 +239,6 @@ CoreReleaseDispatcherLock (
@retval Error DEPEX not found.
**/
STATIC
EFI_STATUS
CoreGetDepexSectionAndPreProccess (
IN EFI_CORE_DRIVER_ENTRY *DriverEntry
@ -314,7 +306,6 @@ CoreGetDepexSectionAndPreProccess (
not set.
**/
EFI_DXESERVICE
EFI_STATUS
EFIAPI
CoreSchedule (
@ -361,7 +352,6 @@ CoreSchedule (
@retval EFI_NOT_FOUND The file was not found in the untrusted state.
**/
EFI_DXESERVICE
EFI_STATUS
EFIAPI
CoreTrust (
@ -413,7 +403,6 @@ CoreTrust (
@retval EFI_SUCCESS One or more DXE Drivers were dispatched
**/
EFI_DXESERVICE
EFI_STATUS
EFIAPI
CoreDispatcher (
@ -558,7 +547,6 @@ CoreDispatcher (
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue
**/
STATIC
VOID
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry
@ -620,7 +608,6 @@ CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (
processed
**/
STATIC
BOOLEAN
FvHasBeenProcessed (
IN EFI_HANDLE FvHandle
@ -647,7 +634,6 @@ FvHasBeenProcessed (
@param FvHandle The handle of a FV that has been processed
**/
STATIC
VOID
FvIsBeingProcesssed (
IN EFI_HANDLE FvHandle
@ -679,7 +665,6 @@ FvIsBeingProcesssed (
@return Pointer to device path constructed from FvHandle and DriverName
**/
STATIC
EFI_DEVICE_PATH_PROTOCOL *
CoreFvToDevicePath (
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,
@ -785,7 +770,6 @@ CoreAddToDriverList (
@retval FALSE Not found.
**/
STATIC
BOOLEAN
FvFoundInHobFv2 (
IN EFI_HANDLE FvHandle,
@ -922,7 +906,6 @@ CoreProcessFvImageFile (
@param Context Event Context, not used.
**/
STATIC
VOID
EFIAPI
CoreFwVolEventProtocolNotify (

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +1,17 @@
#/** @file
# Component description file for DxeMain module.
#
# This module provide an DXE CIS compliant implementation of DXE Core.
# Copyright (c) 2006 - 2007, Intel Corporation
# Component description file for DxeMain module.
#
# 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
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
#**/

View File

@ -1,7 +1,7 @@
/** @file
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
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

View File

@ -1,10 +1,9 @@
/** @file
This file deals with Architecture Protocol (AP) registration in
the Dxe Core. The mArchProtocols[] array represents a list of
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
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
@ -82,7 +81,6 @@ CoreAllEfiServicesAvailable (
@param Context Event Context, not used.
**/
STATIC
VOID
EFIAPI
GenericArchProtocolNotify (

View File

@ -1,8 +1,7 @@
/** @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
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
@ -67,7 +66,6 @@ UINT32 mEventTable[] = {
Enter critical section by acquiring the lock on gEventQueueLock.
**/
STATIC
VOID
CoreAcquireEventLock (
VOID
@ -81,7 +79,6 @@ CoreAcquireEventLock (
Exit critical section by releasing the lock on gEventQueueLock.
**/
STATIC
VOID
CoreReleaseEventLock (
VOID
@ -180,7 +177,6 @@ CoreDispatchEventNotifies (
@param Event The Event to notify
**/
STATIC
VOID
CoreNotifyEvent (
IN IEVENT *Event

View File

@ -1,8 +1,7 @@
/** @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
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

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -25,7 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@return The current system time
**/
STATIC
UINT64
CoreCurrentSystemTime (
VOID
@ -39,12 +37,11 @@ CoreCurrentSystemTime (
@param Context Not used
**/
STATIC
VOID
EFIAPI
CoreCheckTimers (
IN EFI_EVENT Event,
IN VOID *Context
IN EFI_EVENT CheckEvent,
IN VOID *Context
);
/**
@ -54,10 +51,9 @@ CoreCheckTimers (
to be installed
**/
STATIC
VOID
CoreInsertEventTimer (
IN IEVENT *Event
IN IEVENT *Event
);
//
@ -104,7 +100,6 @@ CoreInitializeTimer (
@return The current system time
**/
STATIC
UINT64
CoreCurrentSystemTime (
VOID
@ -171,7 +166,6 @@ CoreTimerTick (
@param Context Not used
**/
STATIC
VOID
EFIAPI
CoreCheckTimers (
@ -250,7 +244,6 @@ CoreCheckTimers (
to be installed
**/
STATIC
VOID
CoreInsertEventTimer (
IN IEVENT *Event

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -22,7 +21,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@param Enable The state of enable or disable interrupt
**/
STATIC
VOID
CoreSetInterruptState (
IN BOOLEAN Enable

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -84,8 +83,7 @@ typedef struct {
VOID
CoreDispatchEventNotifies (
IN EFI_TPL Priority
)
;
);
@ -99,9 +97,8 @@ CoreDispatchEventNotifies (
**/
UINTN
CoreHighestSetBit (
IN UINTN Number
)
;
IN UINTN Number
);
@ -115,8 +112,7 @@ CoreHighestSetBit (
BOOLEAN
GetInterruptState (
VOID
)
;
);
//
// Exported functions
@ -130,8 +126,7 @@ GetInterruptState (
VOID
CoreEventVirtualAddressFixup (
VOID
)
;
);
@ -142,8 +137,7 @@ CoreEventVirtualAddressFixup (
VOID
CoreInitializeTimer (
VOID
)
;
);
//
// extern data declarations

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -137,7 +136,6 @@ VerifyFvHeaderChecksum (
@retval FALSE Checksum verification failed
**/
STATIC
BOOLEAN
VerifyHeaderChecksum (
IN EFI_FFS_FILE_HEADER *FfsHeader

View File

@ -3,7 +3,7 @@
Layers on top of Firmware Block protocol to produce a file abstraction
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
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
@ -125,7 +125,6 @@ GetFwVolHeader (
@return None.
**/
STATIC
VOID
FreeFvDeviceResource (
IN FV_DEVICE *FvDevice
@ -382,7 +381,6 @@ Done:
@param Context For EFI compatiblity. Not used.
**/
STATIC
VOID
EFIAPI
NotifyFwVolBlock (

View File

@ -1,8 +1,7 @@
/** @file
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
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

View File

@ -1,8 +1,7 @@
/** @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
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
@ -45,7 +44,6 @@ UINT8 mFvAttributes[] = {0, 4, 7, 9, 10, 12, 15, 16};
@return The attributes of EFI_FV_FILE_ATTRIBUTES
**/
STATIC
EFI_FV_FILE_ATTRIBUTES
FfsAttributes2FvFileAttributes (
IN EFI_FFS_FILE_ATTRIBUTES FfsAttributes

View File

@ -1,8 +1,7 @@
/** @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
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

View File

@ -1,9 +1,8 @@
/** @file
Firmware Volume Block protocol functions.
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
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
@ -62,10 +61,9 @@ typedef struct {
EFI_STATUS
EFIAPI
FwVolBlockDriverInit (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
;
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
);
@ -83,8 +81,7 @@ EFIAPI
FwVolBlockGetAttributes (
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
OUT EFI_FVB_ATTRIBUTES *Attributes
)
;
);
@ -106,8 +103,7 @@ EFIAPI
FwVolBlockSetAttributes (
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
IN CONST EFI_FVB_ATTRIBUTES *Attributes
)
;
);
@ -139,8 +135,7 @@ EFIAPI
FwVolBlockEraseBlock (
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
...
)
;
);
@ -172,8 +167,7 @@ FwVolBlockReadBlock (
IN CONST UINTN Offset,
IN OUT UINTN *NumBytes,
IN OUT UINT8 *Buffer
)
;
);
@ -204,13 +198,12 @@ FwVolBlockReadBlock (
EFI_STATUS
EFIAPI
FwVolBlockWriteBlock (
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
IN EFI_LBA Lba,
IN UINTN Offset,
IN OUT UINTN *NumBytes,
IN UINT8 *Buffer
)
;
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
IN EFI_LBA Lba,
IN UINTN Offset,
IN OUT UINTN *NumBytes,
IN UINT8 *Buffer
);
@ -227,10 +220,9 @@ FwVolBlockWriteBlock (
EFI_STATUS
EFIAPI
FwVolBlockGetPhysicalAddress (
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
OUT EFI_PHYSICAL_ADDRESS *Address
)
;
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
OUT EFI_PHYSICAL_ADDRESS *Address
);
@ -256,10 +248,9 @@ EFIAPI
FwVolBlockGetBlockSize (
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,
IN CONST EFI_LBA Lba,
OUT UINTN *BlockSize,
OUT UINTN *NumberOfBlocks
)
;
IN OUT UINTN *BlockSize,
IN OUT UINTN *NumberOfBlocks
);
/**
This routine is the driver initialization entry point. It initializes the
@ -274,11 +265,11 @@ FwVolBlockGetBlockSize (
**/
EFI_STATUS
EFIAPI
FwVolBlockDriverInit (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
;
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
);
/**
@ -304,7 +295,6 @@ ProduceFVBProtocolOnBuffer (
IN UINT64 Length,
IN EFI_HANDLE ParentHandle,
OUT EFI_HANDLE *FvProtocol OPTIONAL
)
;
);
#endif

View File

@ -5,7 +5,7 @@
Also consumes NT_NON_MM_FV envinronment variable and produces appropriate
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
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

View File

@ -1,9 +1,8 @@
/** @file
Firmware File System protocol. Layers on top of Firmware
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
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
@ -61,10 +60,9 @@ typedef struct {
EFI_STATUS
EFIAPI
FvGetVolumeAttributes (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
OUT EFI_FV_ATTRIBUTES *Attributes
)
;
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
OUT EFI_FV_ATTRIBUTES *Attributes
);
/**
@ -80,10 +78,9 @@ FvGetVolumeAttributes (
EFI_STATUS
EFIAPI
FvSetVolumeAttributes (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN OUT EFI_FV_ATTRIBUTES *Attributes
)
;
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN OUT EFI_FV_ATTRIBUTES *Attributes
);
/**
@ -135,14 +132,13 @@ FvSetVolumeAttributes (
EFI_STATUS
EFIAPI
FvGetNextFile (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN OUT VOID *Key,
IN OUT EFI_FV_FILETYPE *FileType,
OUT EFI_GUID *NameGuid,
OUT EFI_FV_FILE_ATTRIBUTES *Attributes,
OUT UINTN *Size
)
;
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN OUT VOID *Key,
IN OUT EFI_FV_FILETYPE *FileType,
OUT EFI_GUID *NameGuid,
OUT EFI_FV_FILE_ATTRIBUTES *Attributes,
OUT UINTN *Size
);
@ -189,15 +185,14 @@ FvGetNextFile (
EFI_STATUS
EFIAPI
FvReadFile (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_GUID *NameGuid,
IN OUT VOID **Buffer,
IN OUT UINTN *BufferSize,
OUT EFI_FV_FILETYPE *FoundType,
OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,
OUT UINT32 *AuthenticationStatus
)
;
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_GUID *NameGuid,
IN OUT VOID **Buffer,
IN OUT UINTN *BufferSize,
OUT EFI_FV_FILETYPE *FoundType,
OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,
OUT UINT32 *AuthenticationStatus
);
/**
@ -231,15 +226,14 @@ FvReadFile (
EFI_STATUS
EFIAPI
FvReadFileSection (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_GUID *NameGuid,
IN EFI_SECTION_TYPE SectionType,
IN UINTN SectionInstance,
IN OUT VOID **Buffer,
IN OUT UINTN *BufferSize,
OUT UINT32 *AuthenticationStatus
)
;
);
/**
@ -266,12 +260,11 @@ FvReadFileSection (
EFI_STATUS
EFIAPI
FvWriteFile (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN UINT32 NumberOfFiles,
IN EFI_FV_WRITE_POLICY WritePolicy,
IN EFI_FV_WRITE_FILE_DATA *FileData
)
;
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN UINT32 NumberOfFiles,
IN EFI_FV_WRITE_POLICY WritePolicy,
IN EFI_FV_WRITE_FILE_DATA *FileData
);
/**
@ -292,10 +285,9 @@ EFIAPI
FvGetVolumeInfo (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_GUID *InformationType,
IN OUT UINTN *BufferSize,
OUT VOID *Buffer
)
;
IN OUT UINTN *BufferSize,
OUT VOID *Buffer
);
@ -317,10 +309,9 @@ EFIAPI
FvSetVolumeInfo (
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_GUID *InformationType,
IN UINTN BufferSize,
IN CONST VOID *Buffer
)
;
IN UINTN BufferSize,
IN CONST VOID *Buffer
);
//
//Internal functions
@ -349,10 +340,9 @@ typedef enum {
BOOLEAN
IsBufferErased (
IN UINT8 ErasePolarity,
IN VOID *Buffer,
IN VOID *InBuffer,
IN UINTN BufferSize
)
;
);
/**
@ -368,8 +358,7 @@ EFI_FFS_FILE_STATE
GetFileState (
IN UINT8 ErasePolarity,
IN EFI_FFS_FILE_HEADER *FfsHeader
)
;
);
/**
@ -385,8 +374,7 @@ VOID
SetFileState (
IN UINT8 State,
IN EFI_FFS_FILE_HEADER *FfsHeader
)
;
);
/**
@ -401,8 +389,7 @@ SetFileState (
BOOLEAN
VerifyFvHeaderChecksum (
IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader
)
;
);
/**
@ -418,11 +405,10 @@ VerifyFvHeaderChecksum (
**/
BOOLEAN
IsValidFfsHeader (
IN UINT8 ErasePolarity,
IN EFI_FFS_FILE_HEADER *FfsHeader,
OUT EFI_FFS_FILE_STATE *FileState
)
;
IN UINT8 ErasePolarity,
IN EFI_FFS_FILE_HEADER *FfsHeader,
OUT EFI_FFS_FILE_STATE *FileState
);
/**
@ -440,8 +426,7 @@ BOOLEAN
IsValidFfsFile (
IN UINT8 ErasePolarity,
IN EFI_FFS_FILE_HEADER *FfsHeader
)
;
);
/**
@ -460,10 +445,9 @@ IsValidFfsFile (
**/
EFI_STATUS
GetFwVolHeader (
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb,
OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader
)
;
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb,
OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader
);
@ -480,7 +464,6 @@ GetFwVolHeader (
EFI_STATUS
FvCheck (
IN OUT FV_DEVICE *FvDevice
)
;
);
#endif

View File

@ -1,9 +1,8 @@
/** @file
GCD Operations and data structure used to
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
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

View File

@ -1,10 +1,9 @@
/** @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
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
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
@ -122,7 +121,6 @@ CoreReleaseGcdMemoryLock (
Acquire memory lock on mGcdIoSpaceLock.
**/
STATIC
VOID
CoreAcquireGcdIoLock (
VOID
@ -136,7 +134,6 @@ CoreAcquireGcdIoLock (
Release memory lock on mGcdIoSpaceLock.
**/
STATIC
VOID
CoreReleaseGcdIoLock (
VOID
@ -163,7 +160,6 @@ CoreReleaseGcdIoLock (
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.
**/
STATIC
UINT64
AlignValue (
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.
**/
STATIC
UINT64
PageAlignAddress (
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.
**/
STATIC
UINT64
PageAlignLength (
IN UINT64 Value
@ -230,7 +224,6 @@ PageAlignLength (
@retval EFI_SUCCESS Both entries successfully allocated.
**/
STATIC
EFI_STATUS
CoreAllocateGcdMapEntry (
IN OUT EFI_GCD_MAP_ENTRY **TopEntry,
@ -266,7 +259,6 @@ CoreAllocateGcdMapEntry (
@retval EFI_SUCCESS The new range was inserted into the linked list
**/
STATIC
EFI_STATUS
CoreInsertGcdMapEntry (
IN LIST_ENTRY *Link,
@ -311,7 +303,6 @@ CoreInsertGcdMapEntry (
@retval EFI_UNSUPPORTED These adjacent regions could not merge.
**/
STATIC
EFI_STATUS
CoreMergeGcdMapEntry (
IN LIST_ENTRY *Link,
@ -385,7 +376,6 @@ CoreMergeGcdMapEntry (
@retval EFI_SUCCESS GCD map successfully cleaned up.
**/
STATIC
EFI_STATUS
CoreCleanupGcdMapEntry (
IN EFI_GCD_MAP_ENTRY *TopEntry,
@ -430,7 +420,6 @@ CoreCleanupGcdMapEntry (
@retval EFI_NOT_FOUND Not found.
**/
STATIC
EFI_STATUS
CoreSearchGcdMapEntry (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
@ -475,7 +464,6 @@ CoreSearchGcdMapEntry (
@return The count.
**/
STATIC
UINTN
CoreCountGcdMapEntry (
IN LIST_ENTRY *Map
@ -503,7 +491,6 @@ CoreCountGcdMapEntry (
@return The enum value of memory attribute.
**/
STATIC
UINT64
ConverToCpuArchAttributes (
UINT64 Attributes
@ -557,7 +544,6 @@ ConverToCpuArchAttributes (
@retval EFI_OUT_OF_RESOURCES No buffer could be allocated.
**/
STATIC
EFI_STATUS
CoreConvertSpace (
IN UINTN Operation,
@ -801,7 +787,6 @@ Done:
space.
**/
STATIC
EFI_STATUS
CoreAllocateSpaceCheckEntry (
IN UINTN Operation,
@ -849,7 +834,6 @@ CoreAllocateSpaceCheckEntry (
@retval EFI_SUCCESS Space successfully allocated.
**/
STATIC
EFI_STATUS
CoreAllocateSpace (
IN UINTN Operation,
@ -1096,7 +1080,6 @@ Done:
@retval EFI_SUCCESS Successfully add a segment of memory space.
**/
STATIC
EFI_STATUS
CoreInternalAddMemorySpace (
IN EFI_GCD_MEMORY_TYPE GcdMemoryType,
@ -1283,7 +1266,6 @@ CoreRemoveMemorySpace (
@param Entry According to this entry
**/
STATIC
VOID
BuildMemoryDescriptor (
IN OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor,
@ -1558,7 +1540,6 @@ CoreRemoveIoSpace (
@param Entry According to this entry
**/
STATIC
VOID
BuildIoDescriptor (
IN EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor,
@ -1701,7 +1682,6 @@ Done:
@return The capabilities mask for an EFI Memory Descriptor.
**/
STATIC
UINT64
CoreConvertResourceDescriptorHobAttributesToCapabilities (
EFI_GCD_MEMORY_TYPE GcdMemoryType,

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -113,10 +112,9 @@ typedef struct {
**/
PROTOCOL_ENTRY *
CoreFindProtocolEntry (
IN EFI_GUID *Protocol,
IN BOOLEAN Create
)
;
IN EFI_GUID *Protocol,
IN BOOLEAN Create
);
/**
@ -127,9 +125,8 @@ CoreFindProtocolEntry (
**/
VOID
CoreNotifyProtocolEntry (
IN PROTOCOL_ENTRY *ProtEntry
)
;
IN PROTOCOL_ENTRY *ProtEntry
);
/**
@ -146,11 +143,10 @@ CoreNotifyProtocolEntry (
**/
PROTOCOL_INTERFACE *
CoreFindProtocolInterface (
IN IHANDLE *Handle,
IN EFI_GUID *Protocol,
IN VOID *Interface
)
;
IN IHANDLE *Handle,
IN EFI_GUID *Protocol,
IN VOID *Interface
);
/**
@ -165,11 +161,10 @@ CoreFindProtocolInterface (
**/
PROTOCOL_INTERFACE *
CoreRemoveInterfaceFromProtocol (
IN IHANDLE *Handle,
IN EFI_GUID *Protocol,
IN VOID *Interface
)
;
IN IHANDLE *Handle,
IN EFI_GUID *Protocol,
IN VOID *Interface
);
/**
@ -183,9 +178,8 @@ CoreRemoveInterfaceFromProtocol (
**/
EFI_STATUS
CoreUnregisterProtocolNotify (
IN EFI_EVENT Event
)
;
IN EFI_EVENT Event
);
/**
@ -206,8 +200,7 @@ EFI_STATUS
CoreDisconnectControllersUsingProtocolInterface (
IN EFI_HANDLE UserHandle,
IN PROTOCOL_INTERFACE *Prot
)
;
);
/**
@ -217,8 +210,7 @@ CoreDisconnectControllersUsingProtocolInterface (
VOID
CoreAcquireProtocolLock (
VOID
)
;
);
/**
@ -228,8 +220,7 @@ CoreAcquireProtocolLock (
VOID
CoreReleaseProtocolLock (
VOID
)
;
);
/**
@ -244,8 +235,7 @@ CoreReleaseProtocolLock (
EFI_STATUS
CoreValidateHandle (
IN EFI_HANDLE UserHandle
)
;
);
//
// Externs

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -42,8 +41,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS
CoreConnectSingleController (
IN EFI_HANDLE ControllerHandle,
IN EFI_HANDLE *DriverImageHandle OPTIONAL,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
IN EFI_HANDLE *ContextDriverImageHandles OPTIONAL,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL
);
//

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -22,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
// gProtocolDatabaseLock - Lock to protect the mProtocolDatabase
// 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);
EFI_LOCK gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
UINT64 gHandleDatabaseKey = 0;
@ -220,7 +219,6 @@ CoreFindProtocolInterface (
@return EFI_NOT_FOUND if the event was not found in the protocl database.
**/
STATIC
EFI_STATUS
CoreUnregisterProtocolNotifyEvent (
IN EFI_EVENT Event
@ -878,7 +876,6 @@ CoreUninstallMultipleProtocolInterfaces (
@return The requested protocol interface for the handle
**/
STATIC
PROTOCOL_INTERFACE *
CoreGetProtocolInterface (
IN EFI_HANDLE UserHandle,

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -50,7 +49,6 @@ IHANDLE *
returned if it's the end of the list.
**/
STATIC
IHANDLE *
CoreGetNextLocateAllHandles (
IN OUT LOCATE_POSITION *Position,
@ -70,7 +68,6 @@ CoreGetNextLocateAllHandles (
returned if it's the end of the list.
**/
STATIC
IHANDLE *
CoreGetNextLocateByRegisterNotify (
IN OUT LOCATE_POSITION *Position,
@ -89,7 +86,6 @@ CoreGetNextLocateByRegisterNotify (
returned if it's the end of the list.
**/
STATIC
IHANDLE *
CoreGetNextLocateByProtocol (
IN OUT LOCATE_POSITION *Position,
@ -276,7 +272,6 @@ CoreLocateHandle (
returned if it's the end of the list.
**/
STATIC
IHANDLE *
CoreGetNextLocateAllHandles (
IN OUT LOCATE_POSITION *Position,
@ -317,7 +312,6 @@ CoreGetNextLocateAllHandles (
returned if it's the end of the list.
**/
STATIC
IHANDLE *
CoreGetNextLocateByRegisterNotify (
IN OUT LOCATE_POSITION *Position,
@ -368,7 +362,6 @@ CoreGetNextLocateByRegisterNotify (
returned if it's the end of the list.
**/
STATIC
IHANDLE *
CoreGetNextLocateByProtocol (
IN OUT LOCATE_POSITION *Position,

View File

@ -1,8 +1,7 @@
/** @file
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
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

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -122,8 +121,7 @@ CoreOpenImageFile (
OUT EFI_HANDLE *DeviceHandle,
IN IMAGE_FILE_HANDLE *ImageFileHandle,
OUT UINT32 *AuthenticationStatus
)
;
);
@ -144,12 +142,11 @@ CoreOpenImageFile (
EFI_STATUS
EFIAPI
CoreReadImageFile (
IN VOID *UserHandle,
IN UINTN Offset,
IN OUT UINTN *ReadSize,
OUT VOID *Buffer
)
;
IN VOID *UserHandle,
IN UINTN Offset,
IN OUT UINTN *ReadSize,
OUT VOID *Buffer
);
/**
@ -162,8 +159,7 @@ VOID
EFIAPI
CoreCloseImageFile (
IN IMAGE_FILE_HANDLE *ImageFileHandle
)
;
);
//
// Image processing worker functions
@ -185,11 +181,10 @@ CoreCloseImageFile (
EFI_STATUS
CoreDevicePathToInterface (
IN EFI_GUID *Protocol,
IN OUT EFI_DEVICE_PATH_PROTOCOL **FilePath,
IN EFI_DEVICE_PATH_PROTOCOL **FilePath,
OUT VOID **Interface,
OUT EFI_HANDLE *Handle
)
;
);
/**
@ -215,14 +210,13 @@ CoreDevicePathToInterface (
**/
EFI_STATUS
CoreLoadPeImage (
IN BOOLEAN BootPolicy,
IN VOID *Pe32Handle,
IN LOADED_IMAGE_PRIVATE_DATA *Image,
IN EFI_PHYSICAL_ADDRESS DstBuffer OPTIONAL,
IN BOOLEAN BootPolicy,
IN VOID *Pe32Handle,
IN LOADED_IMAGE_PRIVATE_DATA *Image,
IN EFI_PHYSICAL_ADDRESS DstBuffer OPTIONAL,
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,
IN UINT32 Attribute
)
;
);
/**
@ -236,8 +230,7 @@ CoreLoadPeImage (
LOADED_IMAGE_PRIVATE_DATA *
CoreLoadedImageInfo (
IN EFI_HANDLE ImageHandle
)
;
);
/**
@ -251,8 +244,7 @@ VOID
CoreUnloadAndCloseImage (
IN LOADED_IMAGE_PRIVATE_DATA *Image,
IN BOOLEAN FreePage
)
;
);
//
@ -292,7 +284,7 @@ CoreUnloadAndCloseImage (
EFI_STATUS
EFIAPI
CoreLoadImageEx (
IN EFI_PE32_IMAGE_PROTOCOL *This,
IN EFI_PE32_IMAGE_PROTOCOL *This,
IN EFI_HANDLE ParentImageHandle,
IN EFI_DEVICE_PATH_PROTOCOL *FilePath,
IN VOID *SourceBuffer OPTIONAL,
@ -302,8 +294,7 @@ CoreLoadImageEx (
OUT EFI_HANDLE *ImageHandle,
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,
IN UINT32 Attribute
)
;
);
/**
@ -320,8 +311,7 @@ CoreLoadImageEx (
EFI_STATUS
EFIAPI
CoreUnloadImageEx (
IN EFI_PE32_IMAGE_PROTOCOL *This,
IN EFI_PE32_IMAGE_PROTOCOL *This,
IN EFI_HANDLE ImageHandle
)
;
);
#endif

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -603,7 +602,6 @@ CoreLoadedImageInfo (
resources.
**/
STATIC
EFI_STATUS
CoreLoadImageCommon (
IN BOOLEAN BootPolicy,

View File

@ -1,8 +1,7 @@
/** @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
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

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -11,7 +10,6 @@ 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.
**/
#ifndef _IMEM_H_
@ -70,11 +68,10 @@ typedef struct {
**/
VOID *
CoreAllocatePoolPages (
IN EFI_MEMORY_TYPE PoolType,
IN UINTN NumberOfPages,
IN UINTN Alignment
)
;
IN EFI_MEMORY_TYPE PoolType,
IN UINTN NumberOfPages,
IN UINTN Alignment
);
@ -89,8 +86,7 @@ VOID
CoreFreePoolPages (
IN EFI_PHYSICAL_ADDRESS Memory,
IN UINTN NumberOfPages
)
;
);
@ -108,8 +104,7 @@ VOID *
CoreAllocatePoolI (
IN EFI_MEMORY_TYPE PoolType,
IN UINTN Size
)
;
);
@ -125,9 +120,8 @@ CoreAllocatePoolI (
**/
EFI_STATUS
CoreFreePoolI (
IN VOID *Buffer
)
;
IN VOID *Buffer
);
@ -138,8 +132,7 @@ CoreFreePoolI (
VOID
CoreAcquireMemoryLock (
VOID
)
;
);
/**
@ -149,8 +142,7 @@ CoreAcquireMemoryLock (
VOID
CoreReleaseMemoryLock (
VOID
)
;
);
//

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -11,7 +10,6 @@ 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.
**/
#ifndef _DXE_LIBRARY_H_
@ -30,8 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
VOID
CoreReportProgressCode (
IN EFI_STATUS_CODE_VALUE Value
)
;
);
/**
@ -48,8 +45,7 @@ VOID
CoreReportProgressCodeSpecific (
IN EFI_STATUS_CODE_VALUE Value,
IN EFI_HANDLE Handle
)
;
);
/**
@ -63,9 +59,8 @@ CoreReportProgressCodeSpecific (
**/
VOID
CoreAcquireLock (
IN EFI_LOCK *Lock
)
;
IN EFI_LOCK *Lock
);
/**
@ -84,8 +79,7 @@ CoreAcquireLock (
EFI_STATUS
CoreAcquireLockOrFail (
IN EFI_LOCK *Lock
)
;
);
/**
@ -99,9 +93,8 @@ CoreAcquireLockOrFail (
**/
VOID
CoreReleaseLock (
IN EFI_LOCK *Lock
)
;
IN EFI_LOCK *Lock
);
//
// Device Path functions
@ -119,8 +112,7 @@ CoreReleaseLock (
UINTN
CoreDevicePathSize (
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
)
;
);
/**
@ -135,8 +127,7 @@ CoreDevicePathSize (
BOOLEAN
CoreIsDevicePathMultiInstance (
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
)
;
);
@ -152,8 +143,7 @@ CoreIsDevicePathMultiInstance (
EFI_DEVICE_PATH_PROTOCOL *
CoreDuplicateDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
)
;
);
/**
@ -171,8 +161,7 @@ EFI_DEVICE_PATH_PROTOCOL *
CoreAppendDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *Src1,
IN EFI_DEVICE_PATH_PROTOCOL *Src2
)
;
);
/**
@ -186,8 +175,7 @@ CoreAppendDevicePath (
VOID *
CoreAllocateBootServicesPool (
IN UINTN AllocationSize
)
;
);
/**
@ -201,8 +189,7 @@ CoreAllocateBootServicesPool (
VOID *
CoreAllocateZeroBootServicesPool (
IN UINTN AllocationSize
)
;
);
/**
@ -219,9 +206,8 @@ CoreAllocateZeroBootServicesPool (
EFI_STATUS
CoreGetConfigTable (
IN EFI_GUID *Guid,
IN OUT VOID **Table
)
;
OUT VOID **Table
);
/**
@ -238,8 +224,7 @@ VOID *
CoreAllocateRuntimeCopyPool (
IN UINTN AllocationSize,
IN VOID *Buffer
)
;
);
/**
@ -253,8 +238,7 @@ CoreAllocateRuntimeCopyPool (
VOID *
CoreAllocateRuntimePool (
IN UINTN AllocationSize
)
;
);
/**
@ -271,8 +255,7 @@ VOID *
CoreAllocateCopyPool (
IN UINTN AllocationSize,
IN VOID *Buffer
)
;
);
/**
@ -299,7 +282,6 @@ CoreCreateProtocolNotifyEvent (
IN VOID *NotifyContext,
OUT VOID **Registration,
IN BOOLEAN SignalFlag
)
;
);
#endif

View File

@ -1,7 +1,7 @@
/** @file
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
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

View File

@ -1,8 +1,7 @@
/** @file
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
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

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -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.
**/
STATIC
VOID
PromoteMemoryResource (
VOID
@ -115,7 +113,6 @@ PromoteMemoryResource (
@return None. The range is added to the memory map
**/
STATIC
VOID
CoreAddRange (
IN EFI_MEMORY_TYPE Type,
@ -129,7 +126,6 @@ CoreAddRange (
temporary descriptor stack to heap.
**/
STATIC
VOID
CoreFreeMemoryMapStack (
VOID
@ -151,7 +147,6 @@ CoreFreeMemoryMapStack (
specified type.
**/
STATIC
EFI_STATUS
CoreConvertPages (
IN UINT64 Start,
@ -165,7 +160,6 @@ CoreConvertPages (
@param Entry The entry to remove
**/
STATIC
VOID
RemoveMemoryMapEntry (
MEMORY_MAP *Entry
@ -184,7 +178,6 @@ RemoveMemoryMapEntry (
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList
**/
STATIC
MEMORY_MAP *
AllocateMemoryMapEntry (
VOID
@ -222,7 +215,6 @@ CoreReleaseMemoryLock (
Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.
**/
STATIC
VOID
PromoteMemoryResource (
VOID
@ -449,7 +441,6 @@ CoreAddMemoryDescriptor (
@return None. The range is added to the memory map
**/
STATIC
VOID
CoreAddRange (
IN EFI_MEMORY_TYPE Type,
@ -542,7 +533,6 @@ CoreAddRange (
temporary descriptor stack to heap.
**/
STATIC
VOID
CoreFreeMemoryMapStack (
VOID
@ -621,7 +611,6 @@ CoreFreeMemoryMapStack (
@param Entry The entry to remove
**/
STATIC
VOID
RemoveMemoryMapEntry (
MEMORY_MAP *Entry
@ -652,7 +641,6 @@ RemoveMemoryMapEntry (
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList
**/
STATIC
MEMORY_MAP *
AllocateMemoryMapEntry (
VOID
@ -705,7 +693,6 @@ AllocateMemoryMapEntry (
specified type.
**/
STATIC
EFI_STATUS
CoreConvertPages (
IN UINT64 Start,
@ -898,7 +885,6 @@ CoreConvertPages (
@return The base address of the range, or 0 if the range was not found
**/
STATIC
UINT64
CoreFindFreePagesI (
IN UINT64 MaxAddress,
@ -1019,7 +1005,6 @@ CoreFindFreePagesI (
@return The base address of the range, or 0 if the range was not found.
**/
STATIC
UINT64
FindFreePages (
IN UINT64 MaxAddress,

View File

@ -1,8 +1,7 @@
/** @file
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
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
@ -110,7 +109,6 @@ CoreInitializePool (
@return Pointer of Corresponding pool head.
**/
STATIC
POOL *
LookupPoolHead (
IN EFI_MEMORY_TYPE MemoryType

View File

@ -1,9 +1,8 @@
/** @file
Support functions for managing debug image info table when loading and unloading
images.
Copyright (c) 2006 - 2008, Intel Corporation
Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at

View File

@ -1,8 +1,7 @@
/** @file
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
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

View File

@ -1,8 +1,7 @@
/** @file
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
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

View File

@ -1,8 +1,7 @@
/** @file
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
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

View File

@ -27,7 +27,7 @@
3) A support protocol is not found, and the data is not available to be read
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
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
@ -115,13 +115,12 @@ typedef struct {
@retval FALSE The child doesn't match
**/
STATIC
BOOLEAN
ChildIsType (
IN CORE_SECTION_STREAM_NODE *Stream,
IN CORE_SECTION_CHILD_NODE *Child,
IN EFI_SECTION_TYPE SearchType,
IN EFI_GUID *SectionDefinitionGuid
IN CORE_SECTION_STREAM_NODE *Stream,
IN CORE_SECTION_CHILD_NODE *Child,
IN EFI_SECTION_TYPE SearchType,
IN EFI_GUID *SectionDefinitionGuid
);
#if 0
@ -134,19 +133,18 @@ ChildIsType (
identify the relevent encapsulation...
**/
STATIC
VOID
EFIAPI
NotifyGuidedExtraction (
IN EFI_EVENT Event,
IN VOID *RpnContext
IN EFI_EVENT Event,
IN VOID *RpnContext
);
#endif
#if 0
/**
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
section (child)
@ -154,11 +152,10 @@ NotifyGuidedExtraction (
encapsulation section.
**/
STATIC
VOID
CreateGuidedExtractionRpnEvent (
IN CORE_SECTION_STREAM_NODE *ParentStream,
IN CORE_SECTION_CHILD_NODE *ChildNode
IN CORE_SECTION_STREAM_NODE *ParentStream,
IN CORE_SECTION_CHILD_NODE *ChildNode
);
#endif
@ -174,11 +171,10 @@ CreateGuidedExtractionRpnEvent (
database.
**/
STATIC
EFI_STATUS
FindStreamNode (
IN UINTN SearchHandle,
OUT CORE_SECTION_STREAM_NODE **FoundStream
IN UINTN SearchHandle,
OUT CORE_SECTION_STREAM_NODE **FoundStream
);
/**
@ -207,16 +203,15 @@ FindStreamNode (
does not exist
**/
STATIC
EFI_STATUS
FindChildNode (
IN CORE_SECTION_STREAM_NODE *SourceStream,
IN EFI_SECTION_TYPE SearchType,
IN UINTN *SectionInstance,
IN EFI_GUID *SectionDefinitionGuid,
OUT CORE_SECTION_CHILD_NODE **FoundChild,
OUT CORE_SECTION_STREAM_NODE **FoundStream,
OUT UINT32 *AuthenticationStatus
IN CORE_SECTION_STREAM_NODE *SourceStream,
IN EFI_SECTION_TYPE SearchType,
IN OUT UINTN *SectionInstance,
IN EFI_GUID *SectionDefinitionGuid,
OUT CORE_SECTION_CHILD_NODE **FoundChild,
OUT CORE_SECTION_STREAM_NODE **FoundStream,
OUT UINT32 *AuthenticationStatus
);
/**
@ -240,12 +235,11 @@ FindChildNode (
returned by OpenSectionStreamEx.
**/
STATIC
EFI_STATUS
CreateChildNode (
IN CORE_SECTION_STREAM_NODE *Stream,
IN UINT32 ChildOffset,
OUT CORE_SECTION_CHILD_NODE **ChildNode
IN CORE_SECTION_STREAM_NODE *Stream,
IN UINT32 ChildOffset,
OUT CORE_SECTION_CHILD_NODE **ChildNode
);
/**
@ -254,10 +248,9 @@ CreateChildNode (
@param ChildNode Indicates the node to destroy
**/
STATIC
VOID
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.
**/
STATIC
EFI_STATUS
OpenSectionStreamEx (
IN UINTN SectionStreamLength,
IN VOID *SectionStream,
IN BOOLEAN AllocateBuffer,
IN UINT32 AuthenticationStatus,
OUT UINTN *SectionStreamHandle
IN UINTN SectionStreamLength,
IN VOID *SectionStream,
IN BOOLEAN AllocateBuffer,
IN UINT32 AuthenticationStatus,
OUT UINTN *SectionStreamHandle
);
/**
@ -312,11 +304,10 @@ OpenSectionStreamEx (
@return A boolean value indicating the validness of the section stream.
**/
STATIC
BOOLEAN
IsValidSectionStream (
IN VOID *SectionStream,
IN UINTN SectionStreamLength
IN VOID *SectionStream,
IN UINTN SectionStreamLength
);
/**
@ -406,7 +397,7 @@ IsValidSectionStream (
EFI_STATUS
EFIAPI
CustomGuidedSectionExtract (
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,
IN CONST VOID *InputSection,
OUT VOID **OutputBuffer,
OUT UINTN *OutputSize,
@ -729,7 +720,6 @@ CloseSectionStream (
@retval FALSE The child doesn't match
**/
STATIC
BOOLEAN
ChildIsType (
IN CORE_SECTION_STREAM_NODE *Stream,
@ -781,7 +771,6 @@ ChildIsType (
does not exist
**/
STATIC
EFI_STATUS
FindChildNode (
IN CORE_SECTION_STREAM_NODE *SourceStream,
@ -933,7 +922,6 @@ FindChildNode (
returned by OpenSectionStreamEx.
**/
STATIC
EFI_STATUS
CreateChildNode (
IN CORE_SECTION_STREAM_NODE *Stream,
@ -1176,7 +1164,6 @@ CreateChildNode (
encapsulation section.
**/
STATIC
VOID
CreateGuidedExtractionRpnEvent (
IN CORE_SECTION_STREAM_NODE *ParentStream,
@ -1216,7 +1203,6 @@ CreateGuidedExtractionRpnEvent (
identify the relevent encapsulation...
**/
STATIC
VOID
EFIAPI
NotifyGuidedExtraction (
@ -1287,7 +1273,6 @@ NotifyGuidedExtraction (
@param ChildNode Indicates the node to destroy
**/
STATIC
VOID
FreeChildNode (
IN CORE_SECTION_CHILD_NODE *ChildNode
@ -1347,7 +1332,6 @@ FreeChildNode (
@retval EFI_OUT_OF_RESOURCES memory allocation failed.
**/
STATIC
EFI_STATUS
OpenSectionStreamEx (
IN UINTN SectionStreamLength,
@ -1433,7 +1417,6 @@ OpenSectionStreamEx (
database.
**/
STATIC
EFI_STATUS
FindStreamNode (
IN UINTN SearchHandle,
@ -1470,7 +1453,6 @@ FindStreamNode (
@return A boolean value indicating the validness of the section stream.
**/
STATIC
BOOLEAN
IsValidSectionStream (
IN VOID *SectionStream,