1 /*++ 2 3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> 4 This program and the accompanying materials 5 are licensed and made available under the terms and conditions of the BSD License 6 which accompanies this distribution. The full text of the license may be found at 7 http://opensource.org/licenses/bsd-license.php 8 9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 11 12 Module Name: 13 14 Ia32EfiRuntimeDriverLib.h 15 16 Abstract: 17 18 Light weight lib to support IA32 EFI Libraries. 19 20 --*/ 21 22 #ifndef _IA32_EFI_RUNTIME_LIB_H_ 23 #define _IA32_EFI_RUNTIME_LIB_H_ 24 25 #include "Tiano.h" 26 #include "EfiRuntimeLib.h" 27 #include EFI_PROTOCOL_DEFINITION (ExtendedSalGuid) 28 29 typedef 30 EFI_STATUS 31 (EFIAPI *COMMON_PROC_ENTRY) ( 32 IN UINTN FunctionId, 33 IN UINTN Arg2, 34 IN UINTN Arg3, 35 IN UINTN Arg4, 36 IN UINTN Arg5, 37 IN UINTN Arg6, 38 IN UINTN Arg7, 39 IN UINTN Arg8 40 ); 41 42 typedef struct { 43 COMMON_PROC_ENTRY CommonProcEntry; 44 } COMMON_PROC_ENTRY_STRUCT; 45 46 EFI_STATUS 47 InstallPlatformRuntimeLib ( 48 IN EFI_GUID *Guid, 49 IN COMMON_PROC_ENTRY_STRUCT *CommonEntry 50 ) 51 /*++ 52 53 Routine Description: 54 55 Install platform runtime lib. 56 57 Arguments: 58 59 Guid - Guid for runtime lib 60 CommonEntry - Common entry 61 62 Returns: 63 64 Status code 65 66 --*/ 67 ; 68 69 EFI_STATUS 70 GetPlatformRuntimeLib ( 71 IN EFI_SYSTEM_TABLE *SystemTable 72 ) 73 /*++ 74 75 Routine Description: 76 77 Get platform runtime lib. 78 79 Arguments: 80 81 SystemTable - Pointer to system table 82 83 Returns: 84 85 Status code 86 87 --*/ 88 ; 89 90 EFI_STATUS 91 ConvertPlatformRuntimeLibPtr ( 92 IN EFI_RUNTIME_SERVICES *mRT 93 ) 94 /*++ 95 96 Routine Description: 97 98 Convert platform runtime lib pointer. 99 100 Arguments: 101 102 mRT - Pointer to runtime service table. 103 104 Returns: 105 106 Status code 107 108 --*/ 109 ; 110 111 #endif 112