1 | /** @file
|
---|
2 | IPMI Command - NetFnApp NULL instance library.
|
---|
3 |
|
---|
4 | Copyright (c) 2018 - 2021, Intel Corporation. All rights reserved.<BR>
|
---|
5 | Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
---|
6 |
|
---|
7 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | **/
|
---|
9 | #include <Uefi.h>
|
---|
10 | #include <IndustryStandard/Ipmi.h>
|
---|
11 |
|
---|
12 | /**
|
---|
13 | This function gets the IPMI Device ID.
|
---|
14 |
|
---|
15 | @param[out] DeviceId Get device ID response.
|
---|
16 |
|
---|
17 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
18 |
|
---|
19 | **/
|
---|
20 | EFI_STATUS
|
---|
21 | EFIAPI
|
---|
22 | IpmiGetDeviceId (
|
---|
23 | OUT IPMI_GET_DEVICE_ID_RESPONSE *DeviceId
|
---|
24 | )
|
---|
25 | {
|
---|
26 | return RETURN_UNSUPPORTED;
|
---|
27 | }
|
---|
28 |
|
---|
29 | /**
|
---|
30 | This function gets the self-test result.
|
---|
31 |
|
---|
32 | @param[out] SelfTestResult Self test command response.
|
---|
33 |
|
---|
34 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
35 |
|
---|
36 | **/
|
---|
37 | EFI_STATUS
|
---|
38 | EFIAPI
|
---|
39 | IpmiGetSelfTestResult (
|
---|
40 | OUT IPMI_SELF_TEST_RESULT_RESPONSE *SelfTestResult
|
---|
41 | )
|
---|
42 | {
|
---|
43 | return RETURN_UNSUPPORTED;
|
---|
44 | }
|
---|
45 |
|
---|
46 | /**
|
---|
47 | This function resets watchdog timer.
|
---|
48 |
|
---|
49 | @param[out] CompletionCode The command completion code.
|
---|
50 |
|
---|
51 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
52 |
|
---|
53 | **/
|
---|
54 | EFI_STATUS
|
---|
55 | EFIAPI
|
---|
56 | IpmiResetWatchdogTimer (
|
---|
57 | OUT UINT8 *CompletionCode
|
---|
58 | )
|
---|
59 | {
|
---|
60 | return RETURN_UNSUPPORTED;
|
---|
61 | }
|
---|
62 |
|
---|
63 | /**
|
---|
64 | This function sets watchdog timer.
|
---|
65 |
|
---|
66 | @param[in] SetWatchdogTimer Set watchdog timer request.
|
---|
67 | @param[out] CompletionCode The command completion code.
|
---|
68 |
|
---|
69 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
70 |
|
---|
71 | **/
|
---|
72 | EFI_STATUS
|
---|
73 | EFIAPI
|
---|
74 | IpmiSetWatchdogTimer (
|
---|
75 | IN IPMI_SET_WATCHDOG_TIMER_REQUEST *SetWatchdogTimer,
|
---|
76 | OUT UINT8 *CompletionCode
|
---|
77 | )
|
---|
78 | {
|
---|
79 | return RETURN_UNSUPPORTED;
|
---|
80 | }
|
---|
81 |
|
---|
82 | /**
|
---|
83 | This function gets watchdog timer.
|
---|
84 |
|
---|
85 | @param[out] GetWatchdogTimer Get watchdog timer response.
|
---|
86 |
|
---|
87 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
88 |
|
---|
89 | **/
|
---|
90 | EFI_STATUS
|
---|
91 | EFIAPI
|
---|
92 | IpmiGetWatchdogTimer (
|
---|
93 | OUT IPMI_GET_WATCHDOG_TIMER_RESPONSE *GetWatchdogTimer
|
---|
94 | )
|
---|
95 | {
|
---|
96 | return RETURN_UNSUPPORTED;
|
---|
97 | }
|
---|
98 |
|
---|
99 | /**
|
---|
100 | This function sets BMC global enables.
|
---|
101 |
|
---|
102 | @param[in] SetBmcGlobalEnables Set BMC global enables command request.
|
---|
103 | @param[out] CompletionCode The command completion code.
|
---|
104 |
|
---|
105 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
106 |
|
---|
107 | **/
|
---|
108 | EFI_STATUS
|
---|
109 | EFIAPI
|
---|
110 | IpmiSetBmcGlobalEnables (
|
---|
111 | IN IPMI_SET_BMC_GLOBAL_ENABLES_REQUEST *SetBmcGlobalEnables,
|
---|
112 | OUT UINT8 *CompletionCode
|
---|
113 | )
|
---|
114 | {
|
---|
115 | return RETURN_UNSUPPORTED;
|
---|
116 | }
|
---|
117 |
|
---|
118 | /**
|
---|
119 | This function gets BMC global enables.
|
---|
120 |
|
---|
121 | @param[out] GetBmcGlobalEnables Get BMC global enables command response.
|
---|
122 |
|
---|
123 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
124 |
|
---|
125 | **/
|
---|
126 | EFI_STATUS
|
---|
127 | EFIAPI
|
---|
128 | IpmiGetBmcGlobalEnables (
|
---|
129 | OUT IPMI_GET_BMC_GLOBAL_ENABLES_RESPONSE *GetBmcGlobalEnables
|
---|
130 | )
|
---|
131 | {
|
---|
132 | return RETURN_UNSUPPORTED;
|
---|
133 | }
|
---|
134 |
|
---|
135 | /**
|
---|
136 | This function clears message flag.
|
---|
137 |
|
---|
138 | @param[in] ClearMessageFlagsRequest Clear message flags command Request.
|
---|
139 | @param[out] CompletionCode The command completion code.
|
---|
140 |
|
---|
141 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
142 |
|
---|
143 | **/
|
---|
144 | EFI_STATUS
|
---|
145 | EFIAPI
|
---|
146 | IpmiClearMessageFlags (
|
---|
147 | IN IPMI_CLEAR_MESSAGE_FLAGS_REQUEST *ClearMessageFlagsRequest,
|
---|
148 | OUT UINT8 *CompletionCode
|
---|
149 | )
|
---|
150 | {
|
---|
151 | return RETURN_UNSUPPORTED;
|
---|
152 | }
|
---|
153 |
|
---|
154 | /**
|
---|
155 | This function gets message flags.
|
---|
156 |
|
---|
157 | @param[out] GetMessageFlagsResponse Get message flags response.
|
---|
158 |
|
---|
159 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
160 |
|
---|
161 | **/
|
---|
162 | EFI_STATUS
|
---|
163 | EFIAPI
|
---|
164 | IpmiGetMessageFlags (
|
---|
165 | OUT IPMI_GET_MESSAGE_FLAGS_RESPONSE *GetMessageFlagsResponse
|
---|
166 | )
|
---|
167 | {
|
---|
168 | return RETURN_UNSUPPORTED;
|
---|
169 | }
|
---|
170 |
|
---|
171 | /**
|
---|
172 | This function gets message.
|
---|
173 |
|
---|
174 | @param[out] GetMessageResponse Get message command response.
|
---|
175 | @param[in,out] GetMessageResponseSize The size of get message response.
|
---|
176 |
|
---|
177 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
178 |
|
---|
179 | **/
|
---|
180 | EFI_STATUS
|
---|
181 | EFIAPI
|
---|
182 | IpmiGetMessage (
|
---|
183 | OUT IPMI_GET_MESSAGE_RESPONSE *GetMessageResponse,
|
---|
184 | IN OUT UINT32 *GetMessageResponseSize
|
---|
185 | )
|
---|
186 | {
|
---|
187 | return RETURN_UNSUPPORTED;
|
---|
188 | }
|
---|
189 |
|
---|
190 | /**
|
---|
191 | This function sends message.
|
---|
192 |
|
---|
193 | @param[in] SendMessageRequest The send message command request.
|
---|
194 | @param[in] SendMessageRequestSize The size of the send message command request.
|
---|
195 | @param[out] SendMessageResponse The send message command response.
|
---|
196 | @param[in,out] SendMessageResponseSize The size of the send message command response.
|
---|
197 | When input, the expected size of response.
|
---|
198 | When output, the actual size of response.
|
---|
199 |
|
---|
200 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
201 |
|
---|
202 | **/
|
---|
203 | EFI_STATUS
|
---|
204 | EFIAPI
|
---|
205 | IpmiSendMessage (
|
---|
206 | IN IPMI_SEND_MESSAGE_REQUEST *SendMessageRequest,
|
---|
207 | IN UINT32 SendMessageRequestSize,
|
---|
208 | OUT IPMI_SEND_MESSAGE_RESPONSE *SendMessageResponse,
|
---|
209 | IN OUT UINT32 *SendMessageResponseSize
|
---|
210 | )
|
---|
211 | {
|
---|
212 | return RETURN_UNSUPPORTED;
|
---|
213 | }
|
---|
214 |
|
---|
215 | /**
|
---|
216 | This function gets the system UUID.
|
---|
217 |
|
---|
218 | @param[out] SystemGuid The pointer to retrieve system UUID.
|
---|
219 |
|
---|
220 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
221 | **/
|
---|
222 | EFI_STATUS
|
---|
223 | EFIAPI
|
---|
224 | IpmiGetSystemUuid (
|
---|
225 | OUT EFI_GUID *SystemGuid
|
---|
226 | )
|
---|
227 | {
|
---|
228 | return RETURN_UNSUPPORTED;
|
---|
229 | }
|
---|
230 |
|
---|
231 | /**
|
---|
232 | This function gets the channel information.
|
---|
233 |
|
---|
234 | @param[in] GetChannelInfoRequest The get channel information request.
|
---|
235 | @param[out] GetChannelInfoResponse The get channel information response.
|
---|
236 | @param[out] GetChannelInfoResponseSize When input, the expected size of response.
|
---|
237 | When output, the exact size of the returned
|
---|
238 | response.
|
---|
239 |
|
---|
240 | @retval EFI_UNSUPPORTED Unsupported in the NULL lib.
|
---|
241 |
|
---|
242 | **/
|
---|
243 | EFI_STATUS
|
---|
244 | EFIAPI
|
---|
245 | IpmiGetChannelInfo (
|
---|
246 | IN IPMI_GET_CHANNEL_INFO_REQUEST *GetChannelInfoRequest,
|
---|
247 | OUT IPMI_GET_CHANNEL_INFO_RESPONSE *GetChannelInfoResponse,
|
---|
248 | OUT UINT32 *GetChannelInfoResponseSize
|
---|
249 | )
|
---|
250 | {
|
---|
251 | return RETURN_UNSUPPORTED;
|
---|
252 | }
|
---|