]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - EdkModulePkg/Include/Library/EdkDxeSalLib.h
Introduce a new Guid with CName gEfiGenericPlatformVariableGuid to pair with those...
[mirror_edk2.git] / EdkModulePkg / Include / Library / EdkDxeSalLib.h
... / ...
CommitLineData
1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
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
12Module Name:\r
13\r
14 EdkDxeSalLib.h\r
15\r
16Abstract:\r
17\r
18--*/\r
19\r
20#ifndef _ESAL_SERVICE_LIB_H__\r
21#define _ESAL_SERVICE_LIB_H__\r
22\r
23EFI_STATUS\r
24EFIAPI\r
25RegisterEsalFunction (\r
26 IN UINT64 FunctionId,\r
27 IN EFI_GUID *ClassGuid,\r
28 IN SAL_INTERNAL_EXTENDED_SAL_PROC Function,\r
29 IN VOID *ModuleGlobal\r
30 )\r
31/*++\r
32\r
33Routine Description:\r
34\r
35 Register ESAL Class Function and it's asociated global.\r
36 This function is boot service only!\r
37\r
38Arguments:\r
39 FunctionId - ID of function to register\r
40 ClassGuid - GUID of function class \r
41 Function - Function to register under ClassGuid/FunctionId pair\r
42 ModuleGlobal - Module global for Function.\r
43\r
44Returns: \r
45 EFI_SUCCESS - If ClassGuid/FunctionId Function was registered.\r
46\r
47--*/\r
48;\r
49\r
50EFI_STATUS\r
51EFIAPI\r
52RegisterEsalClass (\r
53 IN EFI_GUID *ClassGuid,\r
54 IN VOID *ModuleGlobal,\r
55 ...\r
56 )\r
57/*++\r
58\r
59Routine Description:\r
60\r
61 Register ESAL Class and it's asociated global.\r
62 This function is boot service only!\r
63\r
64Arguments:\r
65 ClassGuid - GUID of function class \r
66 ModuleGlobal - Module global for Function.\r
67 .. - SAL_INTERNAL_EXTENDED_SAL_PROC and FunctionId pairs. NULL \r
68 indicates the end of the list.\r
69\r
70Returns: \r
71 EFI_SUCCESS - All members of ClassGuid registered\r
72\r
73--*/\r
74;\r
75\r
76SAL_RETURN_REGS\r
77EFIAPI\r
78EfiCallEsalService (\r
79 IN EFI_GUID *ClassGuid,\r
80 IN UINT64 FunctionId,\r
81 IN UINT64 Arg2,\r
82 IN UINT64 Arg3,\r
83 IN UINT64 Arg4,\r
84 IN UINT64 Arg5,\r
85 IN UINT64 Arg6,\r
86 IN UINT64 Arg7,\r
87 IN UINT64 Arg8\r
88 )\r
89/*++\r
90\r
91Routine Description:\r
92\r
93 Call module that is not linked direclty to this module. This code is IP \r
94 relative and hides the binding issues of virtual or physical calling. The\r
95 function that gets dispatched has extra arguments that include the registered\r
96 module global and a boolean flag to indicate if the system is in virutal mode.\r
97\r
98Arguments:\r
99 ClassGuid - GUID of function\r
100 FunctionId - Function in ClassGuid to call\r
101 Arg2 - Argument 2 ClassGuid/FunctionId defined\r
102 Arg3 - Argument 3 ClassGuid/FunctionId defined\r
103 Arg4 - Argument 4 ClassGuid/FunctionId defined\r
104 Arg5 - Argument 5 ClassGuid/FunctionId defined\r
105 Arg6 - Argument 6 ClassGuid/FunctionId defined\r
106 Arg7 - Argument 7 ClassGuid/FunctionId defined\r
107 Arg8 - Argument 8 ClassGuid/FunctionId defined\r
108\r
109Returns: \r
110 Status of ClassGuid/FuncitonId\r
111\r
112--*/\r
113;\r
114\r
115SAL_RETURN_REGS\r
116EFIAPI\r
117SetEsalVirtualEntryPoint (\r
118 IN UINT64 EntryPoint,\r
119 IN UINT64 Gp\r
120 )\r
121;\r
122\r
123SAL_RETURN_REGS\r
124EFIAPI\r
125SetEsalPhysicalEntryPoint (\r
126 IN UINT64 EntryPoint,\r
127 IN UINT64 Gp\r
128 )\r
129;\r
130\r
131SAL_RETURN_REGS\r
132EFIAPI\r
133GetEsalEntryPoint (\r
134 VOID\r
135 )\r
136;\r
137\r
138\r
139#endif\r