3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. 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
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.
20 #ifndef _ESAL_SERVICE_LIB_H__
21 #define _ESAL_SERVICE_LIB_H__
25 RegisterEsalFunction (
27 IN EFI_GUID
*ClassGuid
,
28 IN SAL_INTERNAL_EXTENDED_SAL_PROC Function
,
35 Register ESAL Class Function and it's asociated global.
36 This function is boot service only!
39 FunctionId - ID of function to register
40 ClassGuid - GUID of function class
41 Function - Function to register under ClassGuid/FunctionId pair
42 ModuleGlobal - Module global for Function.
45 EFI_SUCCESS - If ClassGuid/FunctionId Function was registered.
53 IN EFI_GUID
*ClassGuid
,
54 IN VOID
*ModuleGlobal
,
61 Register ESAL Class and it's asociated global.
62 This function is boot service only!
65 ClassGuid - GUID of function class
66 ModuleGlobal - Module global for Function.
67 .. - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL
68 indicates the end of the list.
71 EFI_SUCCESS - All members of ClassGuid registered
79 IN EFI_GUID
*ClassGuid
,
93 Call module that is not linked direclty to this module. This code is IP
94 relative and hides the binding issues of virtual or physical calling. The
95 function that gets dispatched has extra arguments that include the registered
96 module global and a boolean flag to indicate if the system is in virutal mode.
99 ClassGuid - GUID of function
100 FunctionId - Function in ClassGuid to call
101 Arg2 - Argument 2 ClassGuid/FunctionId defined
102 Arg3 - Argument 3 ClassGuid/FunctionId defined
103 Arg4 - Argument 4 ClassGuid/FunctionId defined
104 Arg5 - Argument 5 ClassGuid/FunctionId defined
105 Arg6 - Argument 6 ClassGuid/FunctionId defined
106 Arg7 - Argument 7 ClassGuid/FunctionId defined
107 Arg8 - Argument 8 ClassGuid/FunctionId defined
110 Status of ClassGuid/FuncitonId
117 SetEsalVirtualEntryPoint (
118 IN UINT64 EntryPoint
,
125 SetEsalPhysicalEntryPoint (
126 IN UINT64 EntryPoint
,