]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueEdkDxeSalLib.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Library / EdkIIGlueEdkDxeSalLib.h
CommitLineData
3eb9473e 1/*++\r
2\r
2c7e5c2f
HT
3Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 EdkIIGlueEdkDxeSalLib.h\r
16 \r
17Abstract: \r
18\r
19--*/\r
20\r
21\r
22#ifndef __EDKII_GLUE_ESAL_SERVICE_LIB_H__\r
23#define __EDKII_GLUE_ESAL_SERVICE_LIB_H__\r
24\r
25#include EFI_PROTOCOL_DEFINITION (ExtendedSalGuid)\r
26#include EFI_PROTOCOL_DEFINITION (ExtendedSalBootService)\r
27\r
28EFI_STATUS\r
29EFIAPI\r
30RegisterEsalFunction (\r
31 IN UINT64 FunctionId,\r
32 IN EFI_GUID *ClassGuid,\r
33 IN SAL_INTERNAL_EXTENDED_SAL_PROC Function,\r
34 IN VOID *ModuleGlobal\r
35 )\r
36/*++\r
37\r
38Routine Description:\r
39\r
40 Register ESAL Class Function and it's asociated global.\r
41 This function is boot service only!\r
42\r
43Arguments:\r
44 FunctionId - ID of function to register\r
45 ClassGuid - GUID of function class \r
46 Function - Function to register under ClassGuid/FunctionId pair\r
47 ModuleGlobal - Module global for Function.\r
48\r
49Returns: \r
50 EFI_SUCCESS - If ClassGuid/FunctionId Function was registered.\r
51\r
52--*/\r
53;\r
54\r
55EFI_STATUS\r
56EFIAPI\r
57RegisterEsalClass (\r
58 IN EFI_GUID *ClassGuid,\r
59 IN VOID *ModuleGlobal,\r
60 ...\r
61 )\r
62/*++\r
63\r
64Routine Description:\r
65\r
66 Register ESAL Class and it's asociated global.\r
67 This function is boot service only!\r
68\r
69Arguments:\r
70 ClassGuid - GUID of function class \r
71 ModuleGlobal - Module global for Function.\r
72 .. - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL \r
73 indicates the end of the list.\r
74\r
75Returns: \r
76 EFI_SUCCESS - All members of ClassGuid registered\r
77\r
78--*/\r
79;\r
80\r
81SAL_RETURN_REGS\r
82EFIAPI\r
83EfiCallEsalService (\r
84 IN EFI_GUID *ClassGuid,\r
85 IN UINT64 FunctionId,\r
86 IN UINT64 Arg2,\r
87 IN UINT64 Arg3,\r
88 IN UINT64 Arg4,\r
89 IN UINT64 Arg5,\r
90 IN UINT64 Arg6,\r
91 IN UINT64 Arg7,\r
92 IN UINT64 Arg8\r
93 )\r
94/*++\r
95\r
96Routine Description:\r
97\r
98 Call module that is not linked direclty to this module. This code is IP \r
99 relative and hides the binding issues of virtual or physical calling. The\r
100 function that gets dispatched has extra arguments that include the registered\r
101 module global and a boolean flag to indicate if the system is in virutal mode.\r
102\r
103Arguments:\r
104 ClassGuid - GUID of function\r
105 FunctionId - Function in ClassGuid to call\r
106 Arg2 - Argument 2 ClassGuid/FunctionId defined\r
107 Arg3 - Argument 3 ClassGuid/FunctionId defined\r
108 Arg4 - Argument 4 ClassGuid/FunctionId defined\r
109 Arg5 - Argument 5 ClassGuid/FunctionId defined\r
110 Arg6 - Argument 6 ClassGuid/FunctionId defined\r
111 Arg7 - Argument 7 ClassGuid/FunctionId defined\r
112 Arg8 - Argument 8 ClassGuid/FunctionId defined\r
113\r
114Returns: \r
115 Status of ClassGuid/FuncitonId\r
116\r
117--*/\r
118;\r
119\r
120SAL_RETURN_REGS\r
121EFIAPI\r
122SetEsalVirtualEntryPoint (\r
123 IN UINT64 EntryPoint,\r
124 IN UINT64 Gp\r
e00e1d46 125 );\r
3eb9473e 126\r
127SAL_RETURN_REGS\r
128EFIAPI\r
129SetEsalPhysicalEntryPoint (\r
130 IN UINT64 EntryPoint,\r
131 IN UINT64 Gp\r
e00e1d46 132 );\r
3eb9473e 133\r
134SAL_RETURN_REGS\r
135EFIAPI\r
136GetEsalEntryPoint (\r
137 VOID\r
e00e1d46 138 );\r
3eb9473e 139\r
140\r
141#endif\r