]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Ia32EfiRuntimeDriverLib.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / Include / Ia32EfiRuntimeDriverLib.h
diff --git a/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Ia32EfiRuntimeDriverLib.h b/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/Ia32EfiRuntimeDriverLib.h
new file mode 100644 (file)
index 0000000..976d3dc
--- /dev/null
@@ -0,0 +1,111 @@
+/*++\r
+\r
+Copyright (c) 2004, 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
+Module Name:\r
+\r
+  Ia32EfiRuntimeDriverLib.h\r
+\r
+Abstract:\r
+\r
+  Light weight lib to support IA32 EFI Libraries.\r
+\r
+--*/\r
+\r
+#ifndef _IA32_EFI_RUNTIME_LIB_H_\r
+#define _IA32_EFI_RUNTIME_LIB_H_\r
+\r
+#include "Tiano.h"\r
+#include "EfiRuntimeLib.h"\r
+#include EFI_PROTOCOL_DEFINITION (ExtendedSalGuid)\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *COMMON_PROC_ENTRY) (\r
+  IN  UINTN                      FunctionId,\r
+  IN  UINTN                      Arg2,\r
+  IN  UINTN                      Arg3,\r
+  IN  UINTN                      Arg4,\r
+  IN  UINTN                      Arg5,\r
+  IN  UINTN                      Arg6,\r
+  IN  UINTN                      Arg7,\r
+  IN  UINTN                      Arg8\r
+  );\r
+\r
+typedef struct {\r
+  COMMON_PROC_ENTRY CommonProcEntry;\r
+} COMMON_PROC_ENTRY_STRUCT;\r
+\r
+EFI_STATUS\r
+InstallPlatformRuntimeLib (\r
+  IN  EFI_GUID                      *Guid,\r
+  IN  COMMON_PROC_ENTRY_STRUCT      *CommonEntry\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Install platform runtime lib.\r
+\r
+Arguments:\r
+\r
+  Guid                  - Guid for runtime lib\r
+  CommonEntry           - Common entry\r
+\r
+Returns: \r
+\r
+  Status code\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+GetPlatformRuntimeLib (\r
+  IN EFI_SYSTEM_TABLE     *SystemTable\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Get platform runtime lib.\r
+\r
+Arguments:\r
+\r
+  SystemTable           - Pointer to system table\r
+\r
+Returns: \r
+\r
+  Status code\r
+\r
+--*/\r
+;\r
+\r
+EFI_STATUS\r
+ConvertPlatformRuntimeLibPtr (\r
+  IN EFI_RUNTIME_SERVICES  *mRT\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  Convert platform runtime lib pointer.  \r
+\r
+Arguments:\r
+\r
+  mRT                   - Pointer to runtime service table.\r
+\r
+Returns: \r
+\r
+  Status code\r
+\r
+--*/\r
+;\r
+\r
+#endif\r