#define _EFI_EHCI_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/Usb2HostController.h>\r
#include <Protocol/PciIo.h>\r
#define _EFI_UHCI_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/Usb2HostController.h>\r
#include <Protocol/UsbHostController.h>\r
#ifndef _UNDI_32_H_\r
#define _UNDI_32_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Guid/EventGroup.h>\r
#include <Protocol/PciIo.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Protocol/ScsiPassThru.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Protocol/ScsiPassThru.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Protocol/ScsiIo.h>\r
\r
**/\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Protocol/ScsiIo.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Library/UefiLib.h>\r
#define _EFI_USB_BUS_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/Usb2HostController.h>\r
#include <Protocol/UsbHostController.h>\r
#define _EFI_USB_KB_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/SimpleTextIn.h>\r
#include <Protocol/SimpleTextInEx.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Library/UefiLib.h>\r
#define _EFI_USBMASS_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/BlockIo.h>\r
#include <Protocol/UsbIo.h>\r
#define _USB_MOUSE_ABSOLUTE_POINTER_H\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/AbsolutePointer.h>\r
#include <Protocol/UsbIo.h>\r
#define _EFI_USB_MOUSE_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/SimplePointer.h>\r
#include <Protocol/UsbIo.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
UINT32 mCrcTable[256];\r
\r
#ifndef _RUNTIME_H_\r
#define _RUNTIME_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Protocol/LoadedImage.h>\r
#include <Protocol/Runtime.h>\r
#include <Library/BaseLib.h>\r
} EFI_IFR_GUID_SUBCLASS;\r
\r
//\r
-// GUIDed opcodes defined for Tiano\r
+// GUIDed opcodes defined for framework vfr.\r
//\r
#define EFI_IFR_FRAMEWORK_GUID \\r
{ 0x31ca5d1a, 0xd511, 0x4931, { 0xb7, 0x82, 0xae, 0x6b, 0x2b, 0x17, 0x8c, 0xd7 } }\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Library/CapsuleLib.h>\r
\r
/**\r
\r
**/\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/Print.h>\r
\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/DevicePath.h>\r
\r
#define _IFRLIBRARY_INTERNAL_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Guid/GlobalVariable.h>\r
#include <Protocol/DevicePath.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/SimpleTextOut.h>\r
#include <Protocol/OEMBadging.h>\r
#define _CAPSULE_RUNTIME_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/Capsule.h>\r
#include <Guid/CapsuleVendor.h>\r
#ifndef _CON_PLATFORM_H_\r
#define _CON_PLATFORM_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/SimpleTextOut.h>\r
#include <Protocol/DevicePath.h>\r
#ifndef _CON_SPLITTER_H_\r
#define _CON_SPLITTER_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Guid/PrimaryStandardErrorDevice.h>\r
#include <Guid/PrimaryConsoleOutDevice.h>\r
#include <Protocol/GraphicsOutput.h>\r
#ifndef _GRAPHICS_CONSOLE_H_\r
#define _GRAPHICS_CONSOLE_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Protocol/SimpleTextOut.h>\r
#include <Protocol/GraphicsOutput.h>\r
#include <Protocol/UgaDraw.h>\r
#define _TERMINAL_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Protocol/SimpleTextOut.h>\r
#include <Protocol/SerialIo.h>\r
#include <Guid/GlobalVariable.h>\r
#define _PLDEBUG_SUPPORT_H\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/DebugSupport.h>\r
#include <Protocol/LoadedImage.h>\r
#define _PLDEBUG_SUPPORT_H\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/DebugSupport.h>\r
#include <Protocol/LoadedImage.h>\r
#define _PLDEBUG_SUPPORT_H\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/DebugSupport.h>\r
#include <Protocol/LoadedImage.h>\r
#ifndef _DEVICE_PATH_DRIVER_H_\r
#define _DEVICE_PATH_DRIVER_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Protocol/DevicePathUtilities.h>\r
#include <Protocol/DebugPort.h>\r
#include <Protocol/DevicePathToText.h>\r
#ifndef _DRIVER_SAMPLE_H
#define _DRIVER_SAMPLE_H
-#include <PiDxe.h>
+#include <Uefi.h>
#include <Protocol/HiiConfigRouting.h>
#include <Protocol/FormBrowser2.h>
#define _EBC_INT_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/DebugSupport.h>\r
#include <Protocol/Ebc.h>\r
#ifndef __HII_DATABASE_PRIVATE_H__\r
#define __HII_DATABASE_PRIVATE_H__\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/ConsoleControl.h>\r
#include <Protocol/DevicePath.h>\r
#define _NULL_MEMORY_TEST_H\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Protocol/GenericMemoryTest.h>\r
#define _MONOTONIC_COUNTER_DRIVER_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/MonotonicCounter.h>\r
\r
#define _RTC_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/RealTimeClock.h>\r
#include <Guid/GenericPlatformVariable.h>\r
#ifndef _PLAT_OVER_MNGR_H_\r
#define _PLAT_OVER_MNGR_H_\r
\r
-#include <Uefi.h>\r
-\r
#include <PiDxe.h>\r
\r
#include <Protocol/HiiConfigAccess.h>\r
#ifndef PLATFORM_DRI_OVERRIDE_H_
#define PLATFORM_DRI_OVERRIDE_H_
-#include <PiDxe.h>
+#include <Uefi.h>
\r
#include <Library/DebugLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
//\r
// Common header files for this module.\r
//\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Protocol/Security.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#define _SETUP_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/Print.h>\r
#include <Protocol/SimpleTextOut.h>\r
// Statements that include other header files\r
//\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/VariableWrite.h>\r
#include <Protocol/Variable.h>\r
#ifndef _VARIABLE_H\r
#define _VARIABLE_H\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Protocol/VariableWrite.h>\r
#include <Protocol/FaultTolerantWriteLite.h>\r
#include <Protocol/FirmwareVolumeBlock.h>\r
\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/ReportStatusCodeLib.h>\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
\r
#include <Library/MemoryAllocationLib.h>\r
#ifndef __INTERNAL_HII_LIB_H__\r
#define __INTERNAL_HII_LIB_H__\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/HiiDatabase.h>\r
#include <Protocol/HiiString.h>\r
#define _IFRLIBRARY_INTERNAL_H_
-#include <PiDxe.h>
+#include <Uefi.h>
#include <Protocol/DevicePath.h>
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/DebugLib.h>\r
#define __UEFI_LIB_INTERNAL_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Protocol/DriverBinding.h>\r
#include <Protocol/ComponentName.h>\r
#include <Protocol/ComponentName2.h>\r
/** @file\r
- Library utility functions for Runtime driver.\r
+ UEFI Runtime Library implementation for non IPF processor types.\r
\r
-Copyright (c) 2006 Intel Corporation. <BR>\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
/**\r
Intialize runtime Driver Lib if it has not yet been initialized.\r
+ It will ASSERT() if gRT is NULL or gBS is NULL.\r
+ It will ASSERT() if that operation fails.\r
\r
@param[in] ImageHandle The firmware allocated handle for the EFI image.\r
@param[in] SystemTable A pointer to the EFI System Table.\r
{\r
EFI_STATUS Status;\r
\r
+ ASSERT (gRT != NULL);\r
+ ASSERT (gBS != NULL);\r
+\r
mRT = gRT;\r
- ASSERT (mRT != NULL);\r
- \r
//\r
// Register SetVirtualAddressMap () notify function\r
//\r
- ASSERT (gBS != NULL);\r
Status = gBS->CreateEvent (\r
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
TPL_NOTIFY,\r
}\r
\r
/**\r
- This routine will free some resources which have been allocated in\r
- EfiInitializeRuntimeDriverLib(). If a runtime driver exits with an error,\r
- it must call this routine to free the allocated resource before the exiting.\r
+ If a runtime driver exits with an error, it must call this routine \r
+ to free the allocated resource before the exiting.\r
+ It will ASSERT() if gBS is NULL.\r
+ It will ASSERT() if that operation fails.\r
\r
@param[in] ImageHandle The firmware allocated handle for the EFI image.\r
@param[in] SystemTable A pointer to the EFI System Table.\r
#ifndef __RUNTIMELIBINTERNAL_H__\r
#define __RUNTIMELIBINTERNAL_H__\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Library/UefiRuntimeLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
OS virtual address space. All pointer values are different for a virtual \r
mapping than from the normal physical mapping at boot services time.\r
\r
- Copyright (c) 2006 - 2007, Intel Corporation.<BR>\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
**/\r
\r
-#include <PiDxe.h>\r
-\r
-#include <RuntimeLibInternal.h>\r
+#include "RuntimeLibInternal.h"\r
\r
\r
/**\r
capabilities.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
@param Time Current alarm clock setting.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
@param Time Point to alarm clock setting.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
@param Data Point to return Data-Buffer.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
As output, returns the VendorGuid of the current variable.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
@param Data Point to the content of the variable.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
@param HighCount Pointer to returned value.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
applied.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
@param ListHead Head of linked list to convert.\r
\r
@retval EFI_SUCCESS Success to execute the function.\r
- @retval !EFI_SUCCESS Failed to e3xecute the function.\r
+ @retval !EFI_SUCCESS Failed to execute the function.\r
\r
**/\r
EFI_STATUS\r
{\r
LIST_ENTRY *Link;\r
LIST_ENTRY *NextLink;\r
+ \r
+ //\r
+ // For NULL List, return EFI_SUCCESS\r
+ //\r
+ if (ListHead == NULL) {\r
+ return EFI_SUCCESS;\r
+ }\r
\r
//\r
// Convert all the ForwardLink & BackLink pointers in the list\r
# Runtime driver library\r
#\r
# Instance of runtime driver library, Hook VitualAddressChange and\r
-# BooterviceExit event and provide runtime service.\r
+# BooterviceExit event and provide runtime service for non IPF processor types.\r
# Copyright (c) 2006 - 2007, Intel Corporation.\r
#\r
# All rights reserved. This program and the accompanying materials\r
DESTRUCTOR = RuntimeDriverLibDeconstruct\r
\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
\r
\r
**/\r
\r
-\r
-#include <PiDxe.h>\r
-\r
-\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
+#include <Uefi.h>\r
#include <Library/DebugLib.h>\r
\r
-#include "UefiRuntimeServicesTableLibInternal.h"\r
-\r
EFI_RUNTIME_SERVICES *gRT = NULL;\r
\r
/**\r
+++ /dev/null
-/** @file\r
- Internal Header file for UEFI Runtime Services Table Library.\r
-\r
- Copyright (c) 2006, 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
-#ifndef _UEFI_RUNTIME_SERVICES_TABLE_LIB_INTERNAL_H_\r
-#define _UEFI_RUNTIME_SERVICES_TABLE_LIB_INTERNAL_H_\r
-/**\r
- The constructor function caches the pointer of Runtime Services Table.\r
-\r
- The constructor function caches the pointer of Runtime Services Table.\r
- It will ASSERT() if the pointer of Runtime Services Table is NULL.\r
- It will always return EFI_SUCCESS.\r
-\r
- @param ImageHandle The firmware allocated handle for the EFI image.\r
- @param SystemTable A pointer to the EFI System Table.\r
-\r
- @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-UefiRuntimeServicesTableLibConstructor (\r
- IN EFI_HANDLE ImageHandle,\r
- IN EFI_SYSTEM_TABLE *SystemTable\r
- )\r
-;\r
-#endif\r
-\r
**/\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Library/DebugLib.h>\r
#include <Library/ScsiLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#ifndef __UEFI_USB_LIB_INTERNAL_H_\r
#define __UEFI_USB_LIB_INTERNAL_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <Library/UsbLib.h>\r
#include <Library/BaseMemoryLib.h>\r
\r
#ifndef _NT_THUNK_METRONOME_H_\r
#define _NT_THUNK_METRONOME_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <WinNtDxe.h>\r
#include <Protocol/Metronome.h>\r
#include <Library/BaseLib.h>\r
\r
**/\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <WinNtDxe.h>\r
#include <Protocol/RealTimeClock.h>\r
#include <Library/DebugLib.h>\r
\r
**/\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <WinNtDxe.h>\r
#include <Protocol/Reset.h>\r
#include <Library/DebugLib.h>\r
#ifndef _SNP_NT32_H_\r
#define _SNP_NT32_H_\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
\r
#include <Protocol/SimpleNetwork.h>\r
#include <Protocol/DevicePath.h>\r
#define _TIMER_H_\r
\r
\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <WinNtDxe.h>\r
#include <Protocol/Timer.h>\r
#include <Protocol/Cpu.h>\r
//\r
// The package level header files this module uses\r
//\r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
#include <WinNtDxe.h>\r
//\r
// The protocols, PPI and GUID defintions for this module\r