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 ProcDep.h 15 16 Abstract: 17 18 IPF specific Runtime Lib code. IPF has a SAL API that does not 19 exit on IA-32. Thus 20 21 --*/ 22 23 #ifndef _PROC_DEP_H_ 24 #define _PROC_DEP_H_ 25 26 #include EFI_PROTOCOL_DEFINITION (ExtendedSalGuid) 27 #include EFI_PROTOCOL_DEFINITION (ExtendedSalBootService) 28 #include "SalApi.h" 29 30 EFI_STATUS 31 RegisterEsalFunction ( 32 IN UINT64 FunctionId, 33 IN EFI_GUID *ClassGuid, 34 IN SAL_INTERNAL_EXTENDED_SAL_PROC Function, 35 IN VOID *ModuleGlobal 36 ) 37 /*++ 38 39 Routine Description: 40 41 Register ESAL Class Function and it's asociated global. 42 This function is boot service only! 43 44 Arguments: 45 FunctionId - ID of function to register 46 ClassGuid - GUID of function class 47 Function - Function to register under ClassGuid/FunctionId pair 48 ModuleGlobal - Module global for Function. 49 50 Returns: 51 EFI_SUCCESS - If ClassGuid/FunctionId Function was registered. 52 53 --*/ 54 ; 55 56 EFI_STATUS 57 RegisterEsalClass ( 58 IN EFI_GUID *ClassGuid, 59 IN VOID *ModuleGlobal, 60 ... 61 ) 62 /*++ 63 64 Routine Description: 65 66 Register ESAL Class and it's asociated global. 67 This function is boot service only! 68 69 Arguments: 70 ClassGuid - GUID of function class 71 ModuleGlobal - Module global for Function. 72 .. - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL 73 indicates the end of the list. 74 75 Returns: 76 EFI_SUCCESS - All members of ClassGuid registered 77 78 --*/ 79 ; 80 81 SAL_RETURN_REGS 82 EfiCallEsalService ( 83 IN EFI_GUID *ClassGuid, 84 IN UINT64 FunctionId, 85 IN UINT64 Arg2, 86 IN UINT64 Arg3, 87 IN UINT64 Arg4, 88 IN UINT64 Arg5, 89 IN UINT64 Arg6, 90 IN UINT64 Arg7, 91 IN UINT64 Arg8 92 ) 93 /*++ 94 95 Routine Description: 96 97 Call module that is not linked direclty to this module. This code is IP 98 relative and hides the binding issues of virtual or physical calling. The 99 function that gets dispatched has extra arguments that include the registered 100 module global and a boolean flag to indicate if the system is in virutal mode. 101 102 Arguments: 103 ClassGuid - GUID of function 104 FunctionId - Function in ClassGuid to call 105 Arg2 - Argument 2 ClassGuid/FunctionId defined 106 Arg3 - Argument 3 ClassGuid/FunctionId defined 107 Arg4 - Argument 4 ClassGuid/FunctionId defined 108 Arg5 - Argument 5 ClassGuid/FunctionId defined 109 Arg6 - Argument 6 ClassGuid/FunctionId defined 110 Arg7 - Argument 7 ClassGuid/FunctionId defined 111 Arg8 - Argument 8 ClassGuid/FunctionId defined 112 113 Returns: 114 Status of ClassGuid/FuncitonId 115 116 --*/ 117 ; 118 119 #endif 120