3 Copyright (c) 2004 - 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.
15 EdkIIGlueEdkDxeSalLib.h
22 #ifndef __EDKII_GLUE_ESAL_SERVICE_LIB_H__
23 #define __EDKII_GLUE_ESAL_SERVICE_LIB_H__
25 #include EFI_PROTOCOL_DEFINITION (ExtendedSalGuid)
26 #include EFI_PROTOCOL_DEFINITION (ExtendedSalBootService)
30 RegisterEsalFunction (
32 IN EFI_GUID
*ClassGuid
,
33 IN SAL_INTERNAL_EXTENDED_SAL_PROC Function
,
40 Register ESAL Class Function and it's asociated global.
41 This function is boot service only!
44 FunctionId - ID of function to register
45 ClassGuid - GUID of function class
46 Function - Function to register under ClassGuid/FunctionId pair
47 ModuleGlobal - Module global for Function.
50 EFI_SUCCESS - If ClassGuid/FunctionId Function was registered.
58 IN EFI_GUID
*ClassGuid
,
59 IN VOID
*ModuleGlobal
,
66 Register ESAL Class and it's asociated global.
67 This function is boot service only!
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.
76 EFI_SUCCESS - All members of ClassGuid registered
84 IN EFI_GUID
*ClassGuid
,
98 Call module that is not linked direclty to this module. This code is IP
99 relative and hides the binding issues of virtual or physical calling. The
100 function that gets dispatched has extra arguments that include the registered
101 module global and a boolean flag to indicate if the system is in virutal mode.
104 ClassGuid - GUID of function
105 FunctionId - Function in ClassGuid to call
106 Arg2 - Argument 2 ClassGuid/FunctionId defined
107 Arg3 - Argument 3 ClassGuid/FunctionId defined
108 Arg4 - Argument 4 ClassGuid/FunctionId defined
109 Arg5 - Argument 5 ClassGuid/FunctionId defined
110 Arg6 - Argument 6 ClassGuid/FunctionId defined
111 Arg7 - Argument 7 ClassGuid/FunctionId defined
112 Arg8 - Argument 8 ClassGuid/FunctionId defined
115 Status of ClassGuid/FuncitonId
122 SetEsalVirtualEntryPoint (
123 IN UINT64 EntryPoint
,
130 SetEsalPhysicalEntryPoint (
131 IN UINT64 EntryPoint
,