-/** @file \r
-\r
+/** @file\r
Support functions for managing debug image info table when loading and unloading\r
images.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
VOID\r
CoreInitializeDebugImageInfoTable (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreUpdateDebugTableCrc32 (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
VOID\r
CoreNewDebugImageInfoEntry (\r
- UINT32 ImageInfoType,\r
- EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,\r
- EFI_HANDLE ImageHandle\r
- )\r
-;\r
+ IN UINT32 ImageInfoType,\r
+ IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,\r
+ IN EFI_HANDLE ImageHandle\r
+ );\r
\r
\r
/**\r
VOID\r
CoreRemoveDebugImageInfoEntry (\r
EFI_HANDLE ImageHandle\r
- )\r
-;\r
+ );\r
\r
#endif\r
/** @file\r
-\r
DXE Dispatcher Dependency Evaluator\r
\r
This routine evaluates a dependency expression (DEPENDENCY_EXPRESSION) to determine\r
if a driver can be scheduled for execution. The criteria for\r
schedulability is that the dependency expression is satisfied.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
stack.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
GrowDepexStack (\r
VOID\r
stack.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
PushBool (\r
IN BOOLEAN Value\r
@retval EFI_ACCESS_DENIED The pop operation underflowed the stack\r
\r
**/\r
-STATIC\r
EFI_STATUS \r
PopBool (\r
OUT BOOLEAN *Value\r
Depex - Dependency Expresion.\r
SOR - Schedule On Request - Don't schedule if this bit is set.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue\r
\r
**/\r
-STATIC\r
VOID\r
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (\r
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry\r
@param Context Event Context, not used.\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
CoreFwVolEventProtocolNotify (\r
@return Pointer to device path constructed from FvHandle and DriverName\r
\r
**/\r
-STATIC\r
EFI_DEVICE_PATH_PROTOCOL *\r
CoreFvToDevicePath (\r
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,\r
time.\r
\r
**/\r
-STATIC \r
EFI_STATUS\r
CoreAddToDriverList (\r
- IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,\r
- IN EFI_HANDLE FvHandle,\r
- IN EFI_GUID *DriverName\r
+ IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,\r
+ IN EFI_HANDLE FvHandle,\r
+ IN EFI_GUID *DriverName\r
);\r
\r
/**\r
@retval EFI_SUCCESS Function successfully returned.\r
\r
**/\r
-STATIC\r
EFI_STATUS \r
CoreProcessFvImageFile (\r
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,\r
Enter critical section by gaining lock on mDispatcherLock.\r
\r
**/\r
-STATIC\r
VOID\r
CoreAcquireDispatcherLock (\r
VOID\r
Exit critical section by releasing lock on mDispatcherLock.\r
\r
**/\r
-STATIC\r
VOID\r
CoreReleaseDispatcherLock (\r
VOID\r
@retval Error DEPEX not found.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreGetDepexSectionAndPreProccess (\r
IN EFI_CORE_DRIVER_ENTRY *DriverEntry\r
not set. \r
\r
**/\r
-EFI_DXESERVICE\r
EFI_STATUS\r
EFIAPI\r
CoreSchedule (\r
@retval EFI_NOT_FOUND The file was not found in the untrusted state. \r
\r
**/\r
-EFI_DXESERVICE\r
EFI_STATUS\r
EFIAPI\r
CoreTrust (\r
@retval EFI_SUCCESS One or more DXE Drivers were dispatched \r
\r
**/\r
-EFI_DXESERVICE\r
EFI_STATUS\r
EFIAPI\r
CoreDispatcher (\r
@param InsertedDriverEntry The driver to insert on the ScheduledLink Queue\r
\r
**/\r
-STATIC\r
VOID\r
CoreInsertOnScheduledQueueWhileProcessingBeforeAndAfter (\r
IN EFI_CORE_DRIVER_ENTRY *InsertedDriverEntry\r
processed\r
\r
**/\r
-STATIC\r
BOOLEAN\r
FvHasBeenProcessed (\r
IN EFI_HANDLE FvHandle\r
@param FvHandle The handle of a FV that has been processed\r
\r
**/\r
-STATIC\r
VOID\r
FvIsBeingProcesssed (\r
IN EFI_HANDLE FvHandle\r
@return Pointer to device path constructed from FvHandle and DriverName\r
\r
**/\r
-STATIC\r
EFI_DEVICE_PATH_PROTOCOL *\r
CoreFvToDevicePath (\r
IN EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv,\r
@retval FALSE Not found.\r
\r
**/\r
-STATIC\r
BOOLEAN\r
FvFoundInHobFv2 (\r
IN EFI_HANDLE FvHandle,\r
@param Context Event Context, not used.\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
CoreFwVolEventProtocolNotify (\r
/** @file\r
-\r
The internal header file includes the common header files, defines\r
internal structure and functions used by DxeCore module.\r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
VOID\r
CoreInitializePool (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN EFI_PHYSICAL_ADDRESS Start,\r
IN UINT64 NumberOfPages,\r
IN UINT64 Attribute\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreReleaseGcdMemoryLock (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreAcquireGcdMemoryLock (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
EFI_STATUS\r
CoreInitializeMemoryServices (\r
- IN VOID **HobStart,\r
- IN EFI_PHYSICAL_ADDRESS *MemoryBaseAddress,\r
- IN UINT64 *MemoryLength\r
- )\r
-;\r
+ IN VOID **HobStart,\r
+ OUT EFI_PHYSICAL_ADDRESS *MemoryBaseAddress,\r
+ OUT UINT64 *MemoryLength\r
+ );\r
\r
\r
\r
IN OUT VOID **HobStart,\r
IN EFI_PHYSICAL_ADDRESS MemoryBaseAddress,\r
IN UINT64 MemoryLength\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
CoreInitializeEventServices (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
CoreInitializeImageServices (\r
IN VOID *HobStart\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreNotifyOnArchProtocolInstallation (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
CoreAllEfiServicesAvailable (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CalculateEfiHdrCrc (\r
IN OUT EFI_TABLE_HEADER *Hdr\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
EFIAPI\r
CoreTimerTick (\r
- IN UINT64 Duration\r
- )\r
-;\r
+ IN UINT64 Duration\r
+ );\r
\r
\r
/**\r
VOID\r
CoreInitializeDispatcher (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
BOOLEAN\r
CoreIsSchedulable (\r
IN EFI_CORE_DRIVER_ENTRY *DriverEntry \r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
CorePreProcessDepex (\r
IN EFI_CORE_DRIVER_ENTRY *DriverEntry \r
- )\r
-;\r
+ );\r
\r
\r
\r
CoreExitBootServices (\r
IN EFI_HANDLE ImageHandle,\r
IN UINTN MapKey\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
EFI_STATUS\r
CoreTerminateMemoryMap (\r
- IN UINTN MapKey\r
- )\r
-;\r
+ IN UINTN MapKey\r
+ );\r
\r
\r
/**\r
VOID\r
CoreNotifySignalList (\r
IN EFI_GUID *EventGroup\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreInstallConfigurationTable (\r
- IN EFI_GUID *Guid,\r
- IN VOID *Table\r
- )\r
-;\r
+ IN EFI_GUID *Guid,\r
+ IN VOID *Table\r
+ );\r
\r
\r
\r
EFI_TPL\r
EFIAPI\r
CoreRaiseTpl (\r
- IN EFI_TPL NewTpl\r
- )\r
-;\r
+ IN EFI_TPL NewTpl\r
+ );\r
\r
\r
\r
VOID\r
EFIAPI\r
CoreRestoreTpl (\r
- IN EFI_TPL NewTpl\r
- )\r
-;\r
+ IN EFI_TPL NewTpl\r
+ );\r
\r
\r
\r
EFIAPI\r
CoreStall (\r
IN UINTN Microseconds\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreSetWatchdogTimer (\r
- IN UINTN Timeout,\r
- IN UINT64 WatchdogCode,\r
- IN UINTN DataSize,\r
- IN CHAR16 *WatchdogData OPTIONAL\r
- )\r
-;\r
+ IN UINTN Timeout,\r
+ IN UINT64 WatchdogCode,\r
+ IN UINTN DataSize,\r
+ IN CHAR16 *WatchdogData OPTIONAL\r
+ );\r
\r
\r
\r
IN EFI_GUID *Protocol,\r
IN EFI_INTERFACE_TYPE InterfaceType,\r
IN VOID *Interface\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN EFI_INTERFACE_TYPE InterfaceType,\r
IN VOID *Interface,\r
IN BOOLEAN Notify\r
- )\r
-;\r
+ );\r
\r
\r
\r
CoreInstallMultipleProtocolInterfaces (\r
IN OUT EFI_HANDLE *Handle,\r
...\r
- )\r
-;\r
+ );\r
\r
\r
\r
CoreUninstallMultipleProtocolInterfaces (\r
IN EFI_HANDLE Handle,\r
...\r
- )\r
-;\r
+ );\r
\r
\r
\r
IN EFI_GUID *Protocol,\r
IN VOID *OldInterface,\r
IN VOID *NewInterface\r
- )\r
-;\r
+ );\r
\r
\r
\r
IN EFI_HANDLE UserHandle,\r
IN EFI_GUID *Protocol,\r
IN VOID *Interface\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreHandleProtocol (\r
- IN EFI_HANDLE UserHandle,\r
- IN EFI_GUID *Protocol,\r
- OUT VOID **Interface\r
- )\r
-;\r
+ IN EFI_HANDLE UserHandle,\r
+ IN EFI_GUID *Protocol,\r
+ OUT VOID **Interface\r
+ );\r
\r
\r
\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_HANDLE ControllerHandle,\r
IN UINT32 Attributes\r
- )\r
-;\r
+ );\r
\r
\r
\r
IN EFI_GUID *Protocol,\r
OUT EFI_OPEN_PROTOCOL_INFORMATION_ENTRY **EntryBuffer,\r
OUT UINTN *EntryCount\r
- )\r
-;\r
+ );\r
\r
\r
\r
IN EFI_HANDLE UserHandle,\r
IN EFI_GUID *Protocol,\r
IN EFI_HANDLE AgentHandle,\r
- IN EFI_HANDLE ControllerHandle\r
- )\r
-;\r
+ IN EFI_HANDLE ControllerHandle \r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreProtocolsPerHandle (\r
- IN EFI_HANDLE UserHandle,\r
- OUT EFI_GUID ***ProtocolBuffer,\r
- OUT UINTN *ProtocolBufferCount\r
- )\r
-;\r
+ IN EFI_HANDLE UserHandle,\r
+ OUT EFI_GUID ***ProtocolBuffer,\r
+ OUT UINTN *ProtocolBufferCount\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreRegisterProtocolNotify (\r
- IN EFI_GUID *Protocol,\r
- IN EFI_EVENT Event,\r
- OUT VOID **Registration\r
- )\r
-;\r
+ IN EFI_GUID *Protocol,\r
+ IN EFI_EVENT Event,\r
+ OUT VOID **Registration\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreLocateHandle (\r
- IN EFI_LOCATE_SEARCH_TYPE SearchType,\r
- IN EFI_GUID *Protocol OPTIONAL,\r
- IN VOID *SearchKey OPTIONAL,\r
- IN OUT UINTN *BufferSize,\r
- OUT EFI_HANDLE *Buffer\r
- )\r
-;\r
+ IN EFI_LOCATE_SEARCH_TYPE SearchType,\r
+ IN EFI_GUID *Protocol OPTIONAL,\r
+ IN VOID *SearchKey OPTIONAL,\r
+ IN OUT UINTN *BufferSize,\r
+ OUT EFI_HANDLE *Buffer\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreLocateDevicePath (\r
- IN EFI_GUID *Protocol,\r
- IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath,\r
- OUT EFI_HANDLE *Device\r
- )\r
-;\r
+ IN EFI_GUID *Protocol,\r
+ IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath,\r
+ OUT EFI_HANDLE *Device\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreLocateHandleBuffer (\r
- IN EFI_LOCATE_SEARCH_TYPE SearchType,\r
- IN EFI_GUID *Protocol OPTIONAL,\r
- IN VOID *SearchKey OPTIONAL,\r
- IN OUT UINTN *NumberHandles,\r
- OUT EFI_HANDLE **Buffer\r
- )\r
-;\r
+ IN EFI_LOCATE_SEARCH_TYPE SearchType,\r
+ IN EFI_GUID *Protocol OPTIONAL,\r
+ IN VOID *SearchKey OPTIONAL,\r
+ IN OUT UINTN *NumberHandles,\r
+ OUT EFI_HANDLE **Buffer\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreLocateProtocol (\r
- IN EFI_GUID *Protocol,\r
- IN VOID *Registration OPTIONAL,\r
- OUT VOID **Interface\r
- )\r
-;\r
+ IN EFI_GUID *Protocol,\r
+ IN VOID *Registration OPTIONAL,\r
+ OUT VOID **Interface\r
+ );\r
\r
\r
/**\r
UINT64\r
CoreGetHandleDatabaseKey (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreConnectHandlesByKey (\r
UINT64 Key\r
- )\r
-;\r
+ );\r
\r
\r
\r
IN EFI_HANDLE *DriverImageHandle OPTIONAL,\r
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL,\r
IN BOOLEAN Recursive\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS \r
EFIAPI\r
CoreDisconnectController (\r
- IN EFI_HANDLE ControllerHandle,\r
- IN EFI_HANDLE DriverImageHandle OPTIONAL,\r
- IN EFI_HANDLE ChildHandle OPTIONAL\r
- )\r
-;\r
+ IN EFI_HANDLE ControllerHandle,\r
+ IN EFI_HANDLE DriverImageHandle OPTIONAL,\r
+ IN EFI_HANDLE ChildHandle OPTIONAL\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreAllocatePages (\r
- IN EFI_ALLOCATE_TYPE Type,\r
- IN EFI_MEMORY_TYPE MemoryType,\r
- IN UINTN NumberOfPages,\r
- IN OUT EFI_PHYSICAL_ADDRESS *Memory\r
- )\r
-;\r
+ IN EFI_ALLOCATE_TYPE Type,\r
+ IN EFI_MEMORY_TYPE MemoryType,\r
+ IN UINTN NumberOfPages,\r
+ IN OUT EFI_PHYSICAL_ADDRESS *Memory\r
+ );\r
\r
\r
\r
CoreFreePages (\r
IN EFI_PHYSICAL_ADDRESS Memory,\r
IN UINTN NumberOfPages\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreGetMemoryMap (\r
- IN OUT UINTN *MemoryMapSize,\r
- IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,\r
- OUT UINTN *MapKey,\r
- OUT UINTN *DescriptorSize,\r
- OUT UINT32 *DescriptorVersion\r
- )\r
-;\r
+ IN OUT UINTN *MemoryMapSize,\r
+ IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,\r
+ OUT UINTN *MapKey,\r
+ OUT UINTN *DescriptorSize,\r
+ OUT UINT32 *DescriptorVersion\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreAllocatePool (\r
- IN EFI_MEMORY_TYPE PoolType,\r
- IN UINTN Size,\r
- OUT VOID **Buffer\r
- )\r
-;\r
+ IN EFI_MEMORY_TYPE PoolType,\r
+ IN UINTN Size,\r
+ OUT VOID **Buffer\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreFreePool (\r
- IN VOID *Buffer\r
- )\r
-;\r
+ IN VOID *Buffer\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreLoadImage (\r
- IN BOOLEAN BootPolicy,\r
- IN EFI_HANDLE ParentImageHandle,\r
- IN EFI_DEVICE_PATH_PROTOCOL *FilePath,\r
- IN VOID *SourceBuffer OPTIONAL,\r
- IN UINTN SourceSize,\r
- OUT EFI_HANDLE *ImageHandle\r
- )\r
-;\r
+ IN BOOLEAN BootPolicy,\r
+ IN EFI_HANDLE ParentImageHandle,\r
+ IN EFI_DEVICE_PATH_PROTOCOL *FilePath,\r
+ IN VOID *SourceBuffer OPTIONAL,\r
+ IN UINTN SourceSize,\r
+ OUT EFI_HANDLE *ImageHandle\r
+ );\r
\r
\r
\r
EFIAPI\r
CoreUnloadImage (\r
IN EFI_HANDLE ImageHandle\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreStartImage (\r
- IN EFI_HANDLE ImageHandle,\r
- OUT UINTN *ExitDataSize,\r
- OUT CHAR16 **ExitData OPTIONAL\r
- )\r
-;\r
+ IN EFI_HANDLE ImageHandle,\r
+ OUT UINTN *ExitDataSize,\r
+ OUT CHAR16 **ExitData OPTIONAL\r
+ );\r
\r
\r
\r
IN EFI_STATUS Status,\r
IN UINTN ExitDataSize,\r
IN CHAR16 *ExitData OPTIONAL\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreCreateEvent (\r
- IN UINT32 Type,\r
- IN EFI_TPL NotifyTpl,\r
- IN EFI_EVENT_NOTIFY NotifyFunction,\r
- IN VOID *NotifyContext,\r
- OUT EFI_EVENT *Event\r
- )\r
-;\r
+ IN UINT32 Type,\r
+ IN EFI_TPL NotifyTpl,\r
+ IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL\r
+ IN VOID *NotifyContext, OPTIONAL\r
+ OUT EFI_EVENT *Event\r
+ );\r
\r
\r
\r
IN CONST VOID *NotifyContext, OPTIONAL\r
IN CONST EFI_GUID *EventGroup, OPTIONAL\r
OUT EFI_EVENT *Event\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreSetTimer (\r
- IN EFI_EVENT Event,\r
+ IN EFI_EVENT UserEvent,\r
IN EFI_TIMER_DELAY Type,\r
IN UINT64 TriggerTime\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreSignalEvent (\r
- IN EFI_EVENT Event\r
- )\r
-;\r
+ IN EFI_EVENT UserEvent\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreWaitForEvent (\r
- IN UINTN NumberOfEvents,\r
- IN EFI_EVENT *UserEvents,\r
- OUT UINTN *UserIndex\r
- )\r
-;\r
+ IN UINTN NumberOfEvents,\r
+ IN EFI_EVENT *UserEvents,\r
+ OUT UINTN *UserIndex\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreCloseEvent (\r
- IN EFI_EVENT Event\r
- )\r
-;\r
+ IN EFI_EVENT UserEvent\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreCheckEvent (\r
- IN EFI_EVENT Event\r
- )\r
-;\r
+ IN EFI_EVENT UserEvent\r
+ );\r
\r
\r
/**\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length,\r
IN UINT64 Capabilities\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress,\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_HANDLE DeviceHandle OPTIONAL\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreFreeMemorySpace (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreRemoveMemorySpace (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreGetMemorySpaceDescriptor (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length,\r
IN UINT64 Attributes\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreGetMemorySpaceMap (\r
OUT UINTN *NumberOfDescriptors,\r
OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR **MemorySpaceMap\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN EFI_GCD_IO_TYPE GcdIoType,\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN OUT EFI_PHYSICAL_ADDRESS *BaseAddress,\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_HANDLE DeviceHandle OPTIONAL\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreFreeIoSpace (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreRemoveIoSpace (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
IN UINT64 Length\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreGetIoSpaceDescriptor (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
OUT EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreGetIoSpaceMap (\r
OUT UINTN *NumberOfDescriptors,\r
OUT EFI_GCD_IO_SPACE_DESCRIPTOR **IoSpaceMap\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
\r
**/\r
EFI_DXESERVICE\r
+/**\r
+\r
+**/\r
EFI_STATUS\r
EFIAPI\r
CoreDispatcher (\r
VOID\r
- )\r
-;\r
+ );\r
\r
/**\r
Check every driver and locate a matching one. If the driver is found, the Unrequested\r
\r
**/\r
EFI_DXESERVICE\r
+/**\r
+\r
+**/\r
EFI_STATUS\r
EFIAPI\r
CoreSchedule (\r
IN EFI_HANDLE FirmwareVolumeHandle,\r
IN EFI_GUID *DriverName\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
\r
**/\r
EFI_DXESERVICE\r
+/**\r
+\r
+**/\r
EFI_STATUS\r
EFIAPI\r
CoreTrust (\r
IN EFI_HANDLE FirmwareVolumeHandle,\r
IN EFI_GUID *DriverName\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
BOOLEAN\r
CoreGrowBuffer (\r
- IN OUT EFI_STATUS *Status,\r
- IN OUT VOID **Buffer,\r
- IN UINTN BufferSize\r
- )\r
-;\r
+ IN OUT EFI_STATUS *Status,\r
+ IN OUT VOID **Buffer,\r
+ IN UINTN BufferSize\r
+ );\r
\r
\r
/**\r
FwVolDriverInit (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
InitializeSectionExtraction (\r
IN EFI_HANDLE ImageHandle,\r
IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
EFI_STATUS\r
CoreProcessFirmwareVolume (\r
- IN VOID *FvHeader,\r
- IN UINTN Size, \r
- OUT EFI_HANDLE *FVProtocolHandle\r
- )\r
-;\r
+ IN VOID *FvHeader,\r
+ IN UINTN Size, \r
+ OUT EFI_HANDLE *FVProtocolHandle\r
+ );\r
\r
//\r
//Functions used during debug buils\r
\r
/**\r
Displays Architectural protocols that were not loaded and are required for DXE\r
- core to function Only used in Debug Builds.\r
+ core to function. Only used in Debug Builds.\r
\r
**/\r
VOID\r
CoreDisplayMissingArchProtocols (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreDisplayDiscoveredNotDispatched (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
- Place holder function until all the Boot Services and Runtime Services are available.\r
-\r
+ Place holder function until all the Boot Services and Runtime Services are\r
+ available.\r
\r
@return EFI_NOT_AVAILABLE_YET\r
\r
EFIAPI\r
CoreEfiNotAvailableYetArg0 (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
- Place holder function until all the Boot Services and Runtime Services are available.\r
+ Place holder function until all the Boot Services and Runtime Services are\r
+ available.\r
\r
@param Arg1 Undefined \r
\r
EFIAPI\r
CoreEfiNotAvailableYetArg1 (\r
UINTN Arg1\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreEfiNotAvailableYetArg2 (\r
UINTN Arg1,\r
UINTN Arg2\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
UINTN Arg1,\r
UINTN Arg2,\r
UINTN Arg3\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
UINTN Arg2,\r
UINTN Arg3,\r
UINTN Arg4\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
UINTN Arg3,\r
UINTN Arg4,\r
UINTN Arg5\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreGetPeiProtocol (\r
IN EFI_GUID *ProtocolGuid,\r
IN VOID **Interface\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
DxeMainUefiDecompressGetInfo (\r
IN EFI_DECOMPRESS_PROTOCOL *This,\r
IN VOID *Source,\r
EFI_STATUS\r
EFIAPI\r
CloseSectionStream (\r
- IN UINTN StreamHandleToClose\r
+ IN UINTN StreamHandleToClose\r
);\r
\r
#endif\r
#/** @file\r
-# Component description file for DxeMain module.\r
-#\r
-# This module provide an DXE CIS compliant implementation of DXE Core.\r
-# Copyright (c) 2006 - 2007, Intel Corporation\r
-#\r
+# \r
+# Component description file for DxeMain module.\r
+# \r
+# This module provide an DXE CIS compliant implementation of DXE Core.\r
+# \r
+# Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
# All rights reserved. This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution. The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php\r
+# \r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# \r
#**/\r
\r
[Defines]\r
/** @file\r
-\r
DXE Core Main Entry Point\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
-/** @file \r
-\r
+/** @file\r
This file deals with Architecture Protocol (AP) registration in\r
the Dxe Core. The mArchProtocols[] array represents a list of\r
events that represent the Architectural Protocols.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
@param Context Event Context, not used.\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
GenericArchProtocolNotify (\r
-/** @file \r
-\r
+/** @file\r
UEFI Event support functions implemented in this file.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
Enter critical section by acquiring the lock on gEventQueueLock.\r
\r
**/\r
-STATIC\r
VOID\r
CoreAcquireEventLock (\r
VOID\r
Exit critical section by releasing the lock on gEventQueueLock.\r
\r
**/\r
-STATIC\r
VOID\r
CoreReleaseEventLock (\r
VOID\r
@param Event The Event to notify\r
\r
**/\r
-STATIC\r
VOID\r
CoreNotifyEvent (\r
IN IEVENT *Event\r
-/** @file \r
-\r
- Event data is declared in this file. \r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+/** @file\r
+ Event data is declared in this file.\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
-\r
+/** @file\r
Core Timer Services\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
@return The current system time\r
\r
**/\r
-STATIC\r
UINT64\r
CoreCurrentSystemTime (\r
VOID\r
@param Context Not used\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
CoreCheckTimers (\r
- IN EFI_EVENT Event,\r
- IN VOID *Context\r
+ IN EFI_EVENT CheckEvent,\r
+ IN VOID *Context\r
);\r
\r
/**\r
to be installed\r
\r
**/\r
-STATIC\r
VOID\r
CoreInsertEventTimer (\r
- IN IEVENT *Event\r
+ IN IEVENT *Event\r
);\r
\r
//\r
@return The current system time\r
\r
**/\r
-STATIC\r
UINT64\r
CoreCurrentSystemTime (\r
VOID\r
@param Context Not used\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
CoreCheckTimers (\r
to be installed\r
\r
**/\r
-STATIC\r
VOID\r
CoreInsertEventTimer (\r
IN IEVENT *Event\r
-/** @file \r
+/** @file\r
+ Task priority (TPL) function\r
\r
- Task priority (TPL) function \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
@param Enable The state of enable or disable interrupt\r
\r
**/\r
-STATIC\r
VOID\r
CoreSetInterruptState (\r
IN BOOLEAN Enable\r
-/** @file \r
-\r
+/** @file\r
UEFI Event support functions and structure.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
VOID\r
CoreDispatchEventNotifies (\r
IN EFI_TPL Priority\r
- )\r
-;\r
+ );\r
\r
\r
\r
**/\r
UINTN\r
CoreHighestSetBit (\r
- IN UINTN Number\r
- )\r
-;\r
+ IN UINTN Number\r
+ );\r
\r
\r
\r
BOOLEAN\r
GetInterruptState (\r
VOID \r
- )\r
-;\r
+ );\r
\r
//\r
// Exported functions\r
VOID\r
CoreEventVirtualAddressFixup (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
\r
VOID\r
CoreInitializeTimer (\r
VOID\r
- )\r
-;\r
+ );\r
\r
//\r
// extern data declarations\r
-/** @file \r
-\r
+/** @file\r
FFS file access utilities.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
@retval FALSE Checksum verification failed\r
\r
**/\r
-STATIC\r
BOOLEAN\r
VerifyHeaderChecksum (\r
IN EFI_FFS_FILE_HEADER *FfsHeader\r
Firmware File System driver that produce Firmware Volume protocol.\r
Layers on top of Firmware Block protocol to produce a file abstraction \r
of FV based files.\r
- \r
-Copyright (c) 2006 - 2008 Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
@return None.\r
\r
**/\r
-STATIC\r
VOID\r
FreeFvDeviceResource (\r
IN FV_DEVICE *FvDevice\r
@param Context For EFI compatiblity. Not used.\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
NotifyFwVolBlock (\r
-/** @file \r
-\r
+/** @file\r
Implements get/set firmware volume attributes\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
-\r
+/** @file\r
Implements functions to read firmware file\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
@return The attributes of EFI_FV_FILE_ATTRIBUTES\r
\r
**/\r
-STATIC\r
EFI_FV_FILE_ATTRIBUTES\r
FfsAttributes2FvFileAttributes (\r
IN EFI_FFS_FILE_ATTRIBUTES FfsAttributes\r
-/** @file \r
-\r
+/** @file\r
Implements functions to write firmware file\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
-\r
+/** @file\r
Firmware Volume Block protocol functions. \r
- Consumes FV hobs and creates appropriate block protocols. \r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+ Consumes FV hobs and creates appropriate block protocols.\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
EFI_STATUS\r
EFIAPI\r
FwVolBlockDriverInit (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-;\r
+ IN EFI_HANDLE ImageHandle,\r
+ IN EFI_SYSTEM_TABLE *SystemTable\r
+ );\r
\r
\r
\r
FwVolBlockGetAttributes (\r
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
OUT EFI_FVB_ATTRIBUTES *Attributes\r
- )\r
-;\r
+ );\r
\r
\r
\r
FwVolBlockSetAttributes (\r
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
IN CONST EFI_FVB_ATTRIBUTES *Attributes\r
- )\r
-;\r
+ );\r
\r
\r
\r
FwVolBlockEraseBlock (\r
IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
...\r
- )\r
-;\r
+ );\r
\r
\r
\r
IN CONST UINTN Offset,\r
IN OUT UINTN *NumBytes,\r
IN OUT UINT8 *Buffer\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
FwVolBlockWriteBlock (\r
- IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
- IN EFI_LBA Lba,\r
- IN UINTN Offset,\r
- IN OUT UINTN *NumBytes,\r
- IN UINT8 *Buffer\r
- )\r
-;\r
+ IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
+ IN EFI_LBA Lba,\r
+ IN UINTN Offset,\r
+ IN OUT UINTN *NumBytes,\r
+ IN UINT8 *Buffer\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
FwVolBlockGetPhysicalAddress (\r
- IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
- OUT EFI_PHYSICAL_ADDRESS *Address\r
- )\r
-;\r
+ IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
+ OUT EFI_PHYSICAL_ADDRESS *Address\r
+ );\r
\r
\r
\r
FwVolBlockGetBlockSize (\r
IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This,\r
IN CONST EFI_LBA Lba,\r
- OUT UINTN *BlockSize,\r
- OUT UINTN *NumberOfBlocks\r
- )\r
-;\r
+ IN OUT UINTN *BlockSize,\r
+ IN OUT UINTN *NumberOfBlocks\r
+ );\r
\r
/**\r
This routine is the driver initialization entry point. It initializes the\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
FwVolBlockDriverInit (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-;\r
+ IN EFI_HANDLE ImageHandle,\r
+ IN EFI_SYSTEM_TABLE *SystemTable\r
+ );\r
\r
\r
/**\r
IN UINT64 Length,\r
IN EFI_HANDLE ParentHandle,\r
OUT EFI_HANDLE *FvProtocol OPTIONAL\r
- )\r
-;\r
+ );\r
\r
#endif\r
\r
Also consumes NT_NON_MM_FV envinronment variable and produces appropriate\r
block protocols fro them also... (this is TBD)\r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
/** @file\r
-\r
Firmware File System protocol. Layers on top of Firmware\r
Block protocol to produce a file abstraction of FV based files.\r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
EFI_STATUS\r
EFIAPI\r
FvGetVolumeAttributes (\r
- IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
- OUT EFI_FV_ATTRIBUTES *Attributes\r
- )\r
-;\r
+ IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
+ OUT EFI_FV_ATTRIBUTES *Attributes\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
FvSetVolumeAttributes (\r
- IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
- IN OUT EFI_FV_ATTRIBUTES *Attributes\r
- )\r
-;\r
+ IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
+ IN OUT EFI_FV_ATTRIBUTES *Attributes\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
FvGetNextFile (\r
- IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
- IN OUT VOID *Key,\r
- IN OUT EFI_FV_FILETYPE *FileType,\r
- OUT EFI_GUID *NameGuid,\r
- OUT EFI_FV_FILE_ATTRIBUTES *Attributes,\r
- OUT UINTN *Size\r
- )\r
-;\r
+ IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
+ IN OUT VOID *Key,\r
+ IN OUT EFI_FV_FILETYPE *FileType,\r
+ OUT EFI_GUID *NameGuid,\r
+ OUT EFI_FV_FILE_ATTRIBUTES *Attributes,\r
+ OUT UINTN *Size\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
FvReadFile (\r
- IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
- IN CONST EFI_GUID *NameGuid,\r
- IN OUT VOID **Buffer,\r
- IN OUT UINTN *BufferSize,\r
- OUT EFI_FV_FILETYPE *FoundType,\r
- OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,\r
- OUT UINT32 *AuthenticationStatus\r
- )\r
-;\r
+ IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
+ IN CONST EFI_GUID *NameGuid,\r
+ IN OUT VOID **Buffer,\r
+ IN OUT UINTN *BufferSize,\r
+ OUT EFI_FV_FILETYPE *FoundType,\r
+ OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,\r
+ OUT UINT32 *AuthenticationStatus\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
FvReadFileSection (\r
- IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
+ IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
IN CONST EFI_GUID *NameGuid,\r
IN EFI_SECTION_TYPE SectionType,\r
IN UINTN SectionInstance,\r
IN OUT VOID **Buffer,\r
IN OUT UINTN *BufferSize,\r
OUT UINT32 *AuthenticationStatus\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
FvWriteFile (\r
- IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
- IN UINT32 NumberOfFiles,\r
- IN EFI_FV_WRITE_POLICY WritePolicy,\r
- IN EFI_FV_WRITE_FILE_DATA *FileData\r
- )\r
-;\r
+ IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
+ IN UINT32 NumberOfFiles,\r
+ IN EFI_FV_WRITE_POLICY WritePolicy,\r
+ IN EFI_FV_WRITE_FILE_DATA *FileData\r
+ );\r
\r
\r
/**\r
FvGetVolumeInfo (\r
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
IN CONST EFI_GUID *InformationType,\r
- IN OUT UINTN *BufferSize,\r
- OUT VOID *Buffer\r
- )\r
-;\r
+ IN OUT UINTN *BufferSize,\r
+ OUT VOID *Buffer\r
+ );\r
\r
\r
\r
FvSetVolumeInfo (\r
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
IN CONST EFI_GUID *InformationType,\r
- IN UINTN BufferSize,\r
- IN CONST VOID *Buffer\r
- )\r
-;\r
+ IN UINTN BufferSize,\r
+ IN CONST VOID *Buffer\r
+ );\r
\r
//\r
//Internal functions\r
BOOLEAN\r
IsBufferErased (\r
IN UINT8 ErasePolarity,\r
- IN VOID *Buffer,\r
+ IN VOID *InBuffer,\r
IN UINTN BufferSize\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
@return FFS File state\r
\r
**/\r
-EFI_FFS_FILE_STATE \r
+EFI_FFS_FILE_STATE\r
GetFileState (\r
IN UINT8 ErasePolarity,\r
IN EFI_FFS_FILE_HEADER *FfsHeader\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
SetFileState (\r
IN UINT8 State,\r
IN EFI_FFS_FILE_HEADER *FfsHeader\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
BOOLEAN\r
VerifyFvHeaderChecksum (\r
IN EFI_FIRMWARE_VOLUME_HEADER *FvHeader\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
BOOLEAN\r
IsValidFfsHeader (\r
- IN UINT8 ErasePolarity,\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- OUT EFI_FFS_FILE_STATE *FileState\r
- )\r
-;\r
+ IN UINT8 ErasePolarity,\r
+ IN EFI_FFS_FILE_HEADER *FfsHeader,\r
+ OUT EFI_FFS_FILE_STATE *FileState\r
+ );\r
\r
\r
/**\r
IsValidFfsFile (\r
IN UINT8 ErasePolarity,\r
IN EFI_FFS_FILE_HEADER *FfsHeader\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
EFI_STATUS\r
GetFwVolHeader (\r
- IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb,\r
- OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader\r
- )\r
-;\r
+ IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *Fvb,\r
+ OUT EFI_FIRMWARE_VOLUME_HEADER **FwVolHeader\r
+ );\r
\r
\r
\r
EFI_STATUS\r
FvCheck (\r
IN OUT FV_DEVICE *FvDevice\r
- )\r
-;\r
+ );\r
\r
#endif\r
-/** @file \r
-\r
+/** @file\r
GCD Operations and data structure used to \r
convert from GCD attributes to EFI Memory Map attributes.\r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
-\r
- The file contains the GCD related services in the EFI Boot Services Table.\r
+/** @file\r
+ The file contains the GCD related services in the EFI Boot Services Table.\r
The GCD services are used to manage the memory and I/O regions that \r
are accessible to the CPU that is executing the DXE core.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
Acquire memory lock on mGcdIoSpaceLock.\r
\r
**/\r
-STATIC\r
VOID\r
CoreAcquireGcdIoLock (\r
VOID\r
Release memory lock on mGcdIoSpaceLock.\r
\r
**/\r
-STATIC\r
VOID\r
CoreReleaseGcdIoLock (\r
VOID\r
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.\r
\r
**/\r
-STATIC\r
UINT64\r
AlignValue (\r
IN UINT64 Value,\r
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.\r
\r
**/\r
-STATIC\r
UINT64\r
PageAlignAddress (\r
IN UINT64 Value\r
@return A 64 bit value is the aligned to the value nearest Value with an alignment by Alignment.\r
\r
**/\r
-STATIC\r
UINT64\r
PageAlignLength (\r
IN UINT64 Value\r
@retval EFI_SUCCESS Both entries successfully allocated.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreAllocateGcdMapEntry (\r
IN OUT EFI_GCD_MAP_ENTRY **TopEntry,\r
@retval EFI_SUCCESS The new range was inserted into the linked list\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreInsertGcdMapEntry (\r
IN LIST_ENTRY *Link,\r
@retval EFI_UNSUPPORTED These adjacent regions could not merge.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreMergeGcdMapEntry (\r
IN LIST_ENTRY *Link,\r
@retval EFI_SUCCESS GCD map successfully cleaned up.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreCleanupGcdMapEntry (\r
IN EFI_GCD_MAP_ENTRY *TopEntry,\r
@retval EFI_NOT_FOUND Not found.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreSearchGcdMapEntry (\r
IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
@return The count.\r
\r
**/\r
-STATIC\r
UINTN\r
CoreCountGcdMapEntry (\r
IN LIST_ENTRY *Map\r
@return The enum value of memory attribute.\r
\r
**/\r
-STATIC\r
UINT64\r
ConverToCpuArchAttributes (\r
UINT64 Attributes\r
- ) \r
+ )\r
{\r
if ( (Attributes & EFI_MEMORY_UC) == EFI_MEMORY_UC) {\r
return EFI_MEMORY_UC;\r
@retval EFI_OUT_OF_RESOURCES No buffer could be allocated.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreConvertSpace (\r
IN UINTN Operation,\r
space.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreAllocateSpaceCheckEntry (\r
IN UINTN Operation,\r
@retval EFI_SUCCESS Space successfully allocated.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreAllocateSpace (\r
IN UINTN Operation,\r
@retval EFI_SUCCESS Successfully add a segment of memory space.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreInternalAddMemorySpace (\r
IN EFI_GCD_MEMORY_TYPE GcdMemoryType,\r
@param Entry According to this entry\r
\r
**/\r
-STATIC\r
VOID\r
BuildMemoryDescriptor (\r
IN OUT EFI_GCD_MEMORY_SPACE_DESCRIPTOR *Descriptor,\r
@param Entry According to this entry\r
\r
**/\r
-STATIC\r
VOID\r
BuildIoDescriptor (\r
IN EFI_GCD_IO_SPACE_DESCRIPTOR *Descriptor,\r
@return The capabilities mask for an EFI Memory Descriptor.\r
\r
**/\r
-STATIC\r
UINT64\r
CoreConvertResourceDescriptorHobAttributesToCapabilities (\r
EFI_GCD_MEMORY_TYPE GcdMemoryType,\r
-/** @file \r
-\r
+/** @file\r
Support functions for managing protocol.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
**/\r
PROTOCOL_ENTRY *\r
CoreFindProtocolEntry (\r
- IN EFI_GUID *Protocol,\r
- IN BOOLEAN Create\r
- )\r
-;\r
+ IN EFI_GUID *Protocol,\r
+ IN BOOLEAN Create\r
+ );\r
\r
\r
/**\r
**/\r
VOID\r
CoreNotifyProtocolEntry (\r
- IN PROTOCOL_ENTRY *ProtEntry\r
- )\r
-;\r
+ IN PROTOCOL_ENTRY *ProtEntry\r
+ );\r
\r
\r
/**\r
**/\r
PROTOCOL_INTERFACE *\r
CoreFindProtocolInterface (\r
- IN IHANDLE *Handle,\r
- IN EFI_GUID *Protocol,\r
- IN VOID *Interface\r
- )\r
-;\r
+ IN IHANDLE *Handle,\r
+ IN EFI_GUID *Protocol,\r
+ IN VOID *Interface\r
+ );\r
\r
\r
/**\r
**/\r
PROTOCOL_INTERFACE *\r
CoreRemoveInterfaceFromProtocol (\r
- IN IHANDLE *Handle,\r
- IN EFI_GUID *Protocol,\r
- IN VOID *Interface\r
- )\r
-;\r
+ IN IHANDLE *Handle,\r
+ IN EFI_GUID *Protocol,\r
+ IN VOID *Interface\r
+ );\r
\r
\r
/**\r
**/\r
EFI_STATUS\r
CoreUnregisterProtocolNotify (\r
- IN EFI_EVENT Event\r
- )\r
-;\r
+ IN EFI_EVENT Event\r
+ );\r
\r
\r
/**\r
CoreDisconnectControllersUsingProtocolInterface (\r
IN EFI_HANDLE UserHandle,\r
IN PROTOCOL_INTERFACE *Prot\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreAcquireProtocolLock (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreReleaseProtocolLock (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
CoreValidateHandle (\r
IN EFI_HANDLE UserHandle\r
- )\r
-;\r
+ );\r
\r
//\r
// Externs\r
-/** @file \r
-\r
+/** @file\r
Support functions to connect/disconnect UEFI Driver model Protocol\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
EFI_STATUS \r
CoreConnectSingleController (\r
IN EFI_HANDLE ControllerHandle,\r
- IN EFI_HANDLE *DriverImageHandle OPTIONAL,\r
- IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL\r
+ IN EFI_HANDLE *ContextDriverImageHandles OPTIONAL,\r
+ IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL \r
);\r
\r
//\r
-/** @file \r
-\r
+/** @file\r
UEFI handle & protocol handling.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
// gProtocolDatabaseLock - Lock to protect the mProtocolDatabase\r
// gHandleDatabaseKey - The Key to show that the handle has been created/modified\r
//\r
-static LIST_ENTRY mProtocolDatabase = INITIALIZE_LIST_HEAD_VARIABLE (mProtocolDatabase);\r
+STATIC LIST_ENTRY mProtocolDatabase = INITIALIZE_LIST_HEAD_VARIABLE (mProtocolDatabase);\r
LIST_ENTRY gHandleList = INITIALIZE_LIST_HEAD_VARIABLE (gHandleList);\r
EFI_LOCK gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);\r
UINT64 gHandleDatabaseKey = 0;\r
@return EFI_NOT_FOUND if the event was not found in the protocl database.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreUnregisterProtocolNotifyEvent (\r
IN EFI_EVENT Event\r
@return The requested protocol interface for the handle\r
\r
**/\r
-STATIC\r
PROTOCOL_INTERFACE *\r
CoreGetProtocolInterface (\r
IN EFI_HANDLE UserHandle,\r
-/** @file \r
+/** @file\r
+ Locate handle functions\r
\r
- Locate handle functions \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
returned if it's the end of the list.\r
\r
**/\r
-STATIC\r
IHANDLE *\r
CoreGetNextLocateAllHandles (\r
IN OUT LOCATE_POSITION *Position,\r
returned if it's the end of the list.\r
\r
**/\r
-STATIC\r
IHANDLE *\r
CoreGetNextLocateByRegisterNotify (\r
IN OUT LOCATE_POSITION *Position,\r
returned if it's the end of the list.\r
\r
**/\r
-STATIC\r
IHANDLE *\r
CoreGetNextLocateByProtocol (\r
IN OUT LOCATE_POSITION *Position,\r
returned if it's the end of the list.\r
\r
**/\r
-STATIC\r
IHANDLE *\r
CoreGetNextLocateAllHandles (\r
IN OUT LOCATE_POSITION *Position,\r
returned if it's the end of the list.\r
\r
**/\r
-STATIC\r
IHANDLE *\r
CoreGetNextLocateByRegisterNotify (\r
IN OUT LOCATE_POSITION *Position,\r
returned if it's the end of the list.\r
\r
**/\r
-STATIC\r
IHANDLE *\r
CoreGetNextLocateByProtocol (\r
IN OUT LOCATE_POSITION *Position,\r
-/** @file \r
-\r
+/** @file\r
UEFI notify infrastructure\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
- \r
+/** @file\r
Data structure and functions to load and unload PeImage.\r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
OUT EFI_HANDLE *DeviceHandle,\r
IN IMAGE_FILE_HANDLE *ImageFileHandle,\r
OUT UINT32 *AuthenticationStatus\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_STATUS\r
EFIAPI\r
CoreReadImageFile (\r
- IN VOID *UserHandle,\r
- IN UINTN Offset,\r
- IN OUT UINTN *ReadSize,\r
- OUT VOID *Buffer\r
- )\r
-;\r
+ IN VOID *UserHandle,\r
+ IN UINTN Offset,\r
+ IN OUT UINTN *ReadSize,\r
+ OUT VOID *Buffer\r
+ );\r
\r
\r
/**\r
EFIAPI\r
CoreCloseImageFile (\r
IN IMAGE_FILE_HANDLE *ImageFileHandle\r
- )\r
-;\r
+ );\r
\r
//\r
// Image processing worker functions\r
EFI_STATUS\r
CoreDevicePathToInterface (\r
IN EFI_GUID *Protocol,\r
- IN OUT EFI_DEVICE_PATH_PROTOCOL **FilePath,\r
+ IN EFI_DEVICE_PATH_PROTOCOL **FilePath,\r
OUT VOID **Interface,\r
OUT EFI_HANDLE *Handle\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
EFI_STATUS\r
CoreLoadPeImage (\r
- IN BOOLEAN BootPolicy,\r
- IN VOID *Pe32Handle,\r
- IN LOADED_IMAGE_PRIVATE_DATA *Image,\r
- IN EFI_PHYSICAL_ADDRESS DstBuffer OPTIONAL,\r
+ IN BOOLEAN BootPolicy, \r
+ IN VOID *Pe32Handle,\r
+ IN LOADED_IMAGE_PRIVATE_DATA *Image,\r
+ IN EFI_PHYSICAL_ADDRESS DstBuffer OPTIONAL,\r
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,\r
IN UINT32 Attribute\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
LOADED_IMAGE_PRIVATE_DATA *\r
CoreLoadedImageInfo (\r
IN EFI_HANDLE ImageHandle\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreUnloadAndCloseImage (\r
IN LOADED_IMAGE_PRIVATE_DATA *Image,\r
IN BOOLEAN FreePage\r
- )\r
-;\r
+ );\r
\r
\r
//\r
EFI_STATUS\r
EFIAPI\r
CoreLoadImageEx (\r
- IN EFI_PE32_IMAGE_PROTOCOL *This,\r
+ IN EFI_PE32_IMAGE_PROTOCOL *This,\r
IN EFI_HANDLE ParentImageHandle,\r
IN EFI_DEVICE_PATH_PROTOCOL *FilePath,\r
IN VOID *SourceBuffer OPTIONAL,\r
OUT EFI_HANDLE *ImageHandle,\r
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OPTIONAL,\r
IN UINT32 Attribute\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
CoreUnloadImageEx (\r
- IN EFI_PE32_IMAGE_PROTOCOL *This,\r
+ IN EFI_PE32_IMAGE_PROTOCOL *This,\r
IN EFI_HANDLE ImageHandle\r
- )\r
-;\r
+ );\r
#endif\r
-/** @file \r
-\r
+/** @file\r
Core image handling services to load and unload PeImage.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
resources.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreLoadImageCommon (\r
IN BOOLEAN BootPolicy,\r
/** @file\r
- \r
- Handle services to image file. \r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+ Handle services to image file.\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
-/** @file \r
- \r
+/** @file\r
Data structure and functions to allocate and free memory space.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
**/\r
VOID *\r
CoreAllocatePoolPages (\r
- IN EFI_MEMORY_TYPE PoolType,\r
- IN UINTN NumberOfPages,\r
- IN UINTN Alignment\r
- )\r
-;\r
+ IN EFI_MEMORY_TYPE PoolType,\r
+ IN UINTN NumberOfPages,\r
+ IN UINTN Alignment\r
+ );\r
\r
\r
\r
CoreFreePoolPages (\r
IN EFI_PHYSICAL_ADDRESS Memory,\r
IN UINTN NumberOfPages\r
- )\r
-;\r
+ );\r
\r
\r
\r
CoreAllocatePoolI (\r
IN EFI_MEMORY_TYPE PoolType,\r
IN UINTN Size\r
- )\r
-;\r
+ );\r
\r
\r
\r
**/\r
EFI_STATUS\r
CoreFreePoolI (\r
- IN VOID *Buffer\r
- )\r
-;\r
+ IN VOID *Buffer\r
+ );\r
\r
\r
\r
VOID\r
CoreAcquireMemoryLock (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID\r
CoreReleaseMemoryLock (\r
VOID\r
- )\r
-;\r
+ );\r
\r
\r
//\r
-/** @file \r
-\r
+/** @file\r
Internal functions shared in DxeCore module.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
VOID\r
CoreReportProgressCode (\r
IN EFI_STATUS_CODE_VALUE Value\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreReportProgressCodeSpecific (\r
IN EFI_STATUS_CODE_VALUE Value,\r
IN EFI_HANDLE Handle\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
VOID\r
CoreAcquireLock (\r
- IN EFI_LOCK *Lock\r
- )\r
-;\r
+ IN EFI_LOCK *Lock\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
CoreAcquireLockOrFail (\r
IN EFI_LOCK *Lock\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
**/\r
VOID\r
CoreReleaseLock (\r
- IN EFI_LOCK *Lock\r
- )\r
-;\r
+ IN EFI_LOCK *Lock\r
+ );\r
\r
//\r
// Device Path functions\r
UINTN\r
CoreDevicePathSize (\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
BOOLEAN\r
CoreIsDevicePathMultiInstance (\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
- )\r
-;\r
+ );\r
\r
\r
\r
EFI_DEVICE_PATH_PROTOCOL *\r
CoreDuplicateDevicePath (\r
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreAppendDevicePath (\r
IN EFI_DEVICE_PATH_PROTOCOL *Src1,\r
IN EFI_DEVICE_PATH_PROTOCOL *Src2\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID *\r
CoreAllocateBootServicesPool (\r
IN UINTN AllocationSize\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID *\r
CoreAllocateZeroBootServicesPool (\r
IN UINTN AllocationSize\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
EFI_STATUS\r
CoreGetConfigTable (\r
IN EFI_GUID *Guid,\r
- IN OUT VOID **Table\r
- )\r
-;\r
+ OUT VOID **Table\r
+ );\r
\r
\r
/**\r
CoreAllocateRuntimeCopyPool (\r
IN UINTN AllocationSize,\r
IN VOID *Buffer\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
VOID *\r
CoreAllocateRuntimePool (\r
IN UINTN AllocationSize\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
CoreAllocateCopyPool (\r
IN UINTN AllocationSize,\r
IN VOID *Buffer\r
- )\r
-;\r
+ );\r
\r
\r
/**\r
IN VOID *NotifyContext,\r
OUT VOID **Registration,\r
IN BOOLEAN SignalFlag\r
- )\r
-;\r
+ );\r
\r
#endif\r
/** @file\r
DXE Core library services.\r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
-/** @file \r
-\r
+/** @file\r
Global data used in memory service\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
/** @file\r
-\r
UEFI Memory page management functions.\r
\r
-Copyright (c) 2007 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2007 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.\r
\r
**/\r
-STATIC\r
-VOID \r
+VOID\r
PromoteMemoryResource (\r
VOID\r
);\r
@return None. The range is added to the memory map\r
\r
**/\r
-STATIC\r
VOID\r
CoreAddRange (\r
IN EFI_MEMORY_TYPE Type,\r
temporary descriptor stack to heap.\r
\r
**/\r
-STATIC\r
VOID\r
CoreFreeMemoryMapStack (\r
VOID\r
specified type.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreConvertPages (\r
IN UINT64 Start,\r
@param Entry The entry to remove\r
\r
**/\r
-STATIC\r
VOID\r
RemoveMemoryMapEntry (\r
MEMORY_MAP *Entry\r
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList\r
\r
**/\r
-STATIC\r
MEMORY_MAP *\r
AllocateMemoryMapEntry (\r
VOID\r
Find untested but initialized memory regions in GCD map and convert them to be DXE allocatable.\r
\r
**/\r
-STATIC\r
VOID\r
PromoteMemoryResource (\r
VOID\r
@return None. The range is added to the memory map\r
\r
**/\r
-STATIC\r
VOID\r
CoreAddRange (\r
IN EFI_MEMORY_TYPE Type,\r
temporary descriptor stack to heap.\r
\r
**/\r
-STATIC\r
VOID\r
CoreFreeMemoryMapStack (\r
VOID\r
@param Entry The entry to remove\r
\r
**/\r
-STATIC\r
VOID\r
RemoveMemoryMapEntry (\r
MEMORY_MAP *Entry\r
@return The Memory map descriptor dequed from the mFreeMemoryMapEntryList\r
\r
**/\r
-STATIC\r
MEMORY_MAP *\r
AllocateMemoryMapEntry (\r
VOID\r
specified type.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CoreConvertPages (\r
IN UINT64 Start,\r
@return The base address of the range, or 0 if the range was not found\r
\r
**/\r
-STATIC\r
UINT64\r
CoreFindFreePagesI (\r
IN UINT64 MaxAddress,\r
@return The base address of the range, or 0 if the range was not found.\r
\r
**/\r
-STATIC\r
UINT64\r
FindFreePages (\r
IN UINT64 MaxAddress,\r
-/** @file \r
-\r
+/** @file\r
UEFI Memory pool management functions.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
@return Pointer of Corresponding pool head.\r
\r
**/\r
-STATIC\r
POOL *\r
LookupPoolHead (\r
IN EFI_MEMORY_TYPE MemoryType\r
-/** @file \r
-\r
+/** @file\r
Support functions for managing debug image info table when loading and unloading\r
images.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
-\r
+/** @file\r
UEFI Miscellaneous boot Services InstallConfigurationTable service\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
-\r
+/** @file\r
UEFI Miscellaneous boot Services SetWatchdogTimer service implementation\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
-/** @file \r
-\r
+/** @file\r
UEFI Miscellaneous boot Services Stall service implementation\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
3) A support protocol is not found, and the data is not available to be read\r
without it. This results in EFI_PROTOCOL_ERROR.\r
- \r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
@retval FALSE The child doesn't match\r
\r
**/\r
-STATIC\r
BOOLEAN\r
ChildIsType (\r
- IN CORE_SECTION_STREAM_NODE *Stream,\r
- IN CORE_SECTION_CHILD_NODE *Child,\r
- IN EFI_SECTION_TYPE SearchType,\r
- IN EFI_GUID *SectionDefinitionGuid\r
+ IN CORE_SECTION_STREAM_NODE *Stream,\r
+ IN CORE_SECTION_CHILD_NODE *Child,\r
+ IN EFI_SECTION_TYPE SearchType,\r
+ IN EFI_GUID *SectionDefinitionGuid\r
);\r
\r
#if 0\r
identify the relevent encapsulation...\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
NotifyGuidedExtraction (\r
- IN EFI_EVENT Event,\r
- IN VOID *RpnContext\r
+ IN EFI_EVENT Event,\r
+ IN VOID *RpnContext\r
);\r
#endif\r
\r
#if 0\r
/**\r
Worker function. Constructor for RPN event if needed to keep AuthenticationStatus\r
- cache correct when a missing GUIDED_SECTION_EXTRACTION_PROTOCOL appears.\r
+ cache correct when a missing GUIDED_SECTION_EXTRACTION_PROTOCOL appears...\r
\r
@param ParentStream Indicates the parent of the ecnapsulation \r
section (child) \r
encapsulation section.\r
\r
**/\r
-STATIC\r
VOID\r
CreateGuidedExtractionRpnEvent (\r
- IN CORE_SECTION_STREAM_NODE *ParentStream,\r
- IN CORE_SECTION_CHILD_NODE *ChildNode\r
+ IN CORE_SECTION_STREAM_NODE *ParentStream,\r
+ IN CORE_SECTION_CHILD_NODE *ChildNode\r
);\r
#endif\r
\r
database.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
FindStreamNode (\r
- IN UINTN SearchHandle,\r
- OUT CORE_SECTION_STREAM_NODE **FoundStream\r
+ IN UINTN SearchHandle,\r
+ OUT CORE_SECTION_STREAM_NODE **FoundStream\r
);\r
\r
/**\r
does not exist\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
FindChildNode (\r
- IN CORE_SECTION_STREAM_NODE *SourceStream,\r
- IN EFI_SECTION_TYPE SearchType,\r
- IN UINTN *SectionInstance,\r
- IN EFI_GUID *SectionDefinitionGuid,\r
- OUT CORE_SECTION_CHILD_NODE **FoundChild,\r
- OUT CORE_SECTION_STREAM_NODE **FoundStream,\r
- OUT UINT32 *AuthenticationStatus\r
+ IN CORE_SECTION_STREAM_NODE *SourceStream,\r
+ IN EFI_SECTION_TYPE SearchType,\r
+ IN OUT UINTN *SectionInstance,\r
+ IN EFI_GUID *SectionDefinitionGuid,\r
+ OUT CORE_SECTION_CHILD_NODE **FoundChild,\r
+ OUT CORE_SECTION_STREAM_NODE **FoundStream,\r
+ OUT UINT32 *AuthenticationStatus\r
);\r
\r
/**\r
returned by OpenSectionStreamEx.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CreateChildNode (\r
- IN CORE_SECTION_STREAM_NODE *Stream,\r
- IN UINT32 ChildOffset,\r
- OUT CORE_SECTION_CHILD_NODE **ChildNode\r
+ IN CORE_SECTION_STREAM_NODE *Stream,\r
+ IN UINT32 ChildOffset,\r
+ OUT CORE_SECTION_CHILD_NODE **ChildNode\r
);\r
\r
/**\r
@param ChildNode Indicates the node to destroy\r
\r
**/\r
-STATIC\r
VOID\r
FreeChildNode (\r
- IN CORE_SECTION_CHILD_NODE *ChildNode\r
+ IN CORE_SECTION_CHILD_NODE *ChildNode\r
);\r
\r
/**\r
@retval EFI_OUT_OF_RESOURCES memory allocation failed.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
OpenSectionStreamEx (\r
- IN UINTN SectionStreamLength,\r
- IN VOID *SectionStream,\r
- IN BOOLEAN AllocateBuffer,\r
- IN UINT32 AuthenticationStatus, \r
- OUT UINTN *SectionStreamHandle\r
+ IN UINTN SectionStreamLength,\r
+ IN VOID *SectionStream,\r
+ IN BOOLEAN AllocateBuffer,\r
+ IN UINT32 AuthenticationStatus, \r
+ OUT UINTN *SectionStreamHandle\r
);\r
\r
/**\r
@return A boolean value indicating the validness of the section stream.\r
\r
**/\r
-STATIC\r
BOOLEAN\r
IsValidSectionStream (\r
- IN VOID *SectionStream,\r
- IN UINTN SectionStreamLength\r
+ IN VOID *SectionStream,\r
+ IN UINTN SectionStreamLength\r
);\r
\r
/**\r
EFI_STATUS\r
EFIAPI\r
CustomGuidedSectionExtract (\r
- IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,\r
+ IN CONST EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL *This,\r
IN CONST VOID *InputSection,\r
OUT VOID **OutputBuffer,\r
OUT UINTN *OutputSize,\r
@retval FALSE The child doesn't match\r
\r
**/\r
-STATIC\r
BOOLEAN\r
ChildIsType (\r
IN CORE_SECTION_STREAM_NODE *Stream,\r
does not exist\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
FindChildNode (\r
IN CORE_SECTION_STREAM_NODE *SourceStream,\r
returned by OpenSectionStreamEx.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
CreateChildNode (\r
IN CORE_SECTION_STREAM_NODE *Stream,\r
encapsulation section.\r
\r
**/\r
-STATIC\r
VOID\r
CreateGuidedExtractionRpnEvent (\r
IN CORE_SECTION_STREAM_NODE *ParentStream,\r
identify the relevent encapsulation...\r
\r
**/\r
-STATIC\r
VOID\r
EFIAPI\r
NotifyGuidedExtraction (\r
@param ChildNode Indicates the node to destroy\r
\r
**/\r
-STATIC\r
VOID\r
FreeChildNode (\r
IN CORE_SECTION_CHILD_NODE *ChildNode\r
@retval EFI_OUT_OF_RESOURCES memory allocation failed.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
OpenSectionStreamEx (\r
IN UINTN SectionStreamLength,\r
database.\r
\r
**/\r
-STATIC\r
EFI_STATUS\r
FindStreamNode (\r
IN UINTN SearchHandle,\r
@return A boolean value indicating the validness of the section stream.\r
\r
**/\r
-STATIC\r
BOOLEAN\r
IsValidSectionStream (\r
IN VOID *SectionStream,\r