]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
4ea9375a HT |
3 | Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | ProcDep.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | IPF specific Runtime Lib code. IPF has a SAL API that does not\r | |
19 | exit on IA-32. Thus\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #ifndef _PROC_DEP_H_\r | |
24 | #define _PROC_DEP_H_\r | |
25 | \r | |
26 | #include EFI_PROTOCOL_DEFINITION (ExtendedSalGuid)\r | |
27 | #include EFI_PROTOCOL_DEFINITION (ExtendedSalBootService)\r | |
28 | #include "SalApi.h"\r | |
29 | \r | |
30 | EFI_STATUS\r | |
31 | RegisterEsalFunction (\r | |
32 | IN UINT64 FunctionId,\r | |
33 | IN EFI_GUID *ClassGuid,\r | |
34 | IN SAL_INTERNAL_EXTENDED_SAL_PROC Function,\r | |
35 | IN VOID *ModuleGlobal\r | |
36 | )\r | |
37 | /*++\r | |
38 | \r | |
39 | Routine Description:\r | |
40 | \r | |
41 | Register ESAL Class Function and it's asociated global.\r | |
42 | This function is boot service only!\r | |
43 | \r | |
44 | Arguments:\r | |
45 | FunctionId - ID of function to register\r | |
46 | ClassGuid - GUID of function class \r | |
47 | Function - Function to register under ClassGuid/FunctionId pair\r | |
48 | ModuleGlobal - Module global for Function.\r | |
49 | \r | |
50 | Returns: \r | |
51 | EFI_SUCCESS - If ClassGuid/FunctionId Function was registered.\r | |
52 | \r | |
53 | --*/\r | |
54 | ;\r | |
55 | \r | |
56 | EFI_STATUS\r | |
57 | RegisterEsalClass (\r | |
58 | IN EFI_GUID *ClassGuid,\r | |
59 | IN VOID *ModuleGlobal,\r | |
60 | ...\r | |
61 | )\r | |
62 | /*++\r | |
63 | \r | |
64 | Routine Description:\r | |
65 | \r | |
66 | Register ESAL Class and it's asociated global.\r | |
67 | This function is boot service only!\r | |
68 | \r | |
69 | Arguments:\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 | |
75 | Returns: \r | |
76 | EFI_SUCCESS - All members of ClassGuid registered\r | |
77 | \r | |
78 | --*/\r | |
79 | ;\r | |
80 | \r | |
81 | SAL_RETURN_REGS\r | |
82 | EfiCallEsalService (\r | |
83 | IN EFI_GUID *ClassGuid,\r | |
84 | IN UINT64 FunctionId,\r | |
85 | IN UINT64 Arg2,\r | |
86 | IN UINT64 Arg3,\r | |
87 | IN UINT64 Arg4,\r | |
88 | IN UINT64 Arg5,\r | |
89 | IN UINT64 Arg6,\r | |
90 | IN UINT64 Arg7,\r | |
91 | IN UINT64 Arg8\r | |
92 | )\r | |
93 | /*++\r | |
94 | \r | |
95 | Routine Description:\r | |
96 | \r | |
97 | Call module that is not linked direclty to this module. This code is IP \r | |
98 | relative and hides the binding issues of virtual or physical calling. The\r | |
99 | function that gets dispatched has extra arguments that include the registered\r | |
100 | module global and a boolean flag to indicate if the system is in virutal mode.\r | |
101 | \r | |
102 | Arguments:\r | |
103 | ClassGuid - GUID of function\r | |
104 | FunctionId - Function in ClassGuid to call\r | |
105 | Arg2 - Argument 2 ClassGuid/FunctionId defined\r | |
106 | Arg3 - Argument 3 ClassGuid/FunctionId defined\r | |
107 | Arg4 - Argument 4 ClassGuid/FunctionId defined\r | |
108 | Arg5 - Argument 5 ClassGuid/FunctionId defined\r | |
109 | Arg6 - Argument 6 ClassGuid/FunctionId defined\r | |
110 | Arg7 - Argument 7 ClassGuid/FunctionId defined\r | |
111 | Arg8 - Argument 8 ClassGuid/FunctionId defined\r | |
112 | \r | |
113 | Returns: \r | |
114 | Status of ClassGuid/FuncitonId\r | |
115 | \r | |
116 | --*/\r | |
117 | ;\r | |
118 | \r | |
119 | #endif\r |