TianoCore EDK2 master
Loading...
Searching...
No Matches
BaseSmbusLibNull.c
Go to the documentation of this file.
1
9#include <Base.h>
10#include <Library/SmbusLib.h>
11#include <Library/DebugLib.h>
12
37VOID
38EFIAPI
40 IN UINTN SmBusAddress,
41 OUT RETURN_STATUS *Status OPTIONAL
42 )
43{
44 ASSERT (!SMBUS_LIB_PEC (SmBusAddress));
45 ASSERT (SMBUS_LIB_COMMAND (SmBusAddress) == 0);
46 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
47 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
48 if (Status != NULL) {
49 *Status = RETURN_UNSUPPORTED;
50 }
51}
52
77VOID
78EFIAPI
80 IN UINTN SmBusAddress,
81 OUT RETURN_STATUS *Status OPTIONAL
82 )
83{
84 ASSERT (!SMBUS_LIB_PEC (SmBusAddress));
85 ASSERT (SMBUS_LIB_COMMAND (SmBusAddress) == 0);
86 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
87 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
88 if (Status != NULL) {
89 *Status = RETURN_UNSUPPORTED;
90 }
91}
92
120UINT8
121EFIAPI
123 IN UINTN SmBusAddress,
124 OUT RETURN_STATUS *Status OPTIONAL
125 )
126{
127 ASSERT (SMBUS_LIB_COMMAND (SmBusAddress) == 0);
128 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
129 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
130 if (Status != NULL) {
131 *Status = RETURN_UNSUPPORTED;
132 }
133
134 return 0;
135}
136
165UINT8
166EFIAPI
168 IN UINTN SmBusAddress,
169 IN UINT8 Value,
170 OUT RETURN_STATUS *Status OPTIONAL
171 )
172{
173 ASSERT (SMBUS_LIB_COMMAND (SmBusAddress) == 0);
174 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
175 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
176 if (Status != NULL) {
177 *Status = RETURN_UNSUPPORTED;
178 }
179
180 return 0;
181}
182
209UINT8
210EFIAPI
212 IN UINTN SmBusAddress,
213 OUT RETURN_STATUS *Status OPTIONAL
214 )
215{
216 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
217 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
218 if (Status != NULL) {
219 *Status = RETURN_UNSUPPORTED;
220 }
221
222 return 0;
223}
224
253UINT8
254EFIAPI
256 IN UINTN SmBusAddress,
257 IN UINT8 Value,
258 OUT RETURN_STATUS *Status OPTIONAL
259 )
260{
261 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
262 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
263 if (Status != NULL) {
264 *Status = RETURN_UNSUPPORTED;
265 }
266
267 return 0;
268}
269
296UINT16
297EFIAPI
299 IN UINTN SmBusAddress,
300 OUT RETURN_STATUS *Status OPTIONAL
301 )
302{
303 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
304 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
305 if (Status != NULL) {
306 *Status = RETURN_UNSUPPORTED;
307 }
308
309 return 0;
310}
311
340UINT16
341EFIAPI
343 IN UINTN SmBusAddress,
344 IN UINT16 Value,
345 OUT RETURN_STATUS *Status OPTIONAL
346 )
347{
348 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
349 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
350 if (Status != NULL) {
351 *Status = RETURN_UNSUPPORTED;
352 }
353
354 return 0;
355}
356
385UINT16
386EFIAPI
388 IN UINTN SmBusAddress,
389 IN UINT16 Value,
390 OUT RETURN_STATUS *Status OPTIONAL
391 )
392{
393 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
394 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
395 if (Status != NULL) {
396 *Status = RETURN_UNSUPPORTED;
397 }
398
399 return 0;
400}
401
433UINTN
434EFIAPI
436 IN UINTN SmBusAddress,
437 OUT VOID *Buffer,
438 OUT RETURN_STATUS *Status OPTIONAL
439 )
440{
441 ASSERT (Buffer != NULL);
442 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) == 0);
443 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
444 if (Status != NULL) {
445 *Status = RETURN_UNSUPPORTED;
446 }
447
448 return 0;
449}
450
479UINTN
480EFIAPI
482 IN UINTN SmBusAddress,
483 OUT VOID *Buffer,
484 OUT RETURN_STATUS *Status OPTIONAL
485 )
486{
487 ASSERT (Buffer != NULL);
488 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) >= 1);
489 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) <= 32);
490 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
491 if (Status != NULL) {
492 *Status = RETURN_UNSUPPORTED;
493 }
494
495 return 0;
496}
497
529UINTN
530EFIAPI
532 IN UINTN SmBusAddress,
533 IN VOID *WriteBuffer,
534 OUT VOID *ReadBuffer,
535 OUT RETURN_STATUS *Status OPTIONAL
536 )
537{
538 ASSERT (WriteBuffer != NULL);
539 ASSERT (ReadBuffer != NULL);
540 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) >= 1);
541 ASSERT (SMBUS_LIB_LENGTH (SmBusAddress) <= 32);
542 ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
543 if (Status != NULL) {
544 *Status = RETURN_UNSUPPORTED;
545 }
546
547 return 0;
548}
UINT64 UINTN
UINT16 EFIAPI SmBusReadDataWord(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusWriteDataByte(IN UINTN SmBusAddress, IN UINT8 Value, OUT RETURN_STATUS *Status OPTIONAL)
UINTN EFIAPI SmBusWriteBlock(IN UINTN SmBusAddress, OUT VOID *Buffer, OUT RETURN_STATUS *Status OPTIONAL)
UINT16 EFIAPI SmBusProcessCall(IN UINTN SmBusAddress, IN UINT16 Value, OUT RETURN_STATUS *Status OPTIONAL)
VOID EFIAPI SmBusQuickWrite(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
UINTN EFIAPI SmBusReadBlock(IN UINTN SmBusAddress, OUT VOID *Buffer, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusReceiveByte(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
VOID EFIAPI SmBusQuickRead(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
UINT16 EFIAPI SmBusWriteDataWord(IN UINTN SmBusAddress, IN UINT16 Value, OUT RETURN_STATUS *Status OPTIONAL)
UINTN EFIAPI SmBusBlockProcessCall(IN UINTN SmBusAddress, IN VOID *WriteBuffer, OUT VOID *ReadBuffer, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusSendByte(IN UINTN SmBusAddress, IN UINT8 Value, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusReadDataByte(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
#define NULL
Definition: Base.h:319
#define RETURN_UNSUPPORTED
Definition: Base.h:1081
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define SMBUS_LIB_LENGTH(SmBusAddress)
Definition: SmbusLib.h:53
#define SMBUS_LIB_RESERVED(SmBusAddress)
Definition: SmbusLib.h:67
#define SMBUS_LIB_COMMAND(SmBusAddress)
Definition: SmbusLib.h:46
#define SMBUS_LIB_PEC(SmBusAddress)
Definition: SmbusLib.h:60