TianoCore EDK2 master
Loading...
Searching...
No Matches
UnitTestUefiBootServicesTableLibMisc.c
Go to the documentation of this file.
1
10
22EFIAPI
24 OUT UINT64 *Count
25 )
26{
27 STATIC UINT64 StaticCount = 0;
28
29 *Count = StaticCount++;
30
31 return EFI_SUCCESS;
32}
33
45EFIAPI
47 IN UINTN Microseconds
48 )
49{
51}
52
76EFIAPI
78 IN UINTN Timeout,
79 IN UINT64 WatchdogCode,
80 IN UINTN DataSize,
81 IN CHAR16 *WatchdogData OPTIONAL
82 )
83{
85}
86
114EFIAPI
116 IN EFI_HANDLE ControllerHandle,
117 IN EFI_HANDLE *DriverImageHandle OPTIONAL,
118 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL,
119 IN BOOLEAN Recursive
120 )
121{
122 return EFI_SUCCESS; // Return success for now
123}
124
158EFIAPI
160 IN EFI_HANDLE ControllerHandle,
161 IN EFI_HANDLE DriverImageHandle OPTIONAL,
162 IN EFI_HANDLE ChildHandle OPTIONAL
163 )
164{
165 return EFI_SUCCESS; // Return success for now
166}
167
184EFIAPI
186 IN VOID *Data,
187 IN UINTN DataSize,
188 OUT UINT32 *Crc32
189 )
190{
191 if ((Data == NULL) || (Crc32 == NULL) || (DataSize == 0)) {
192 return EFI_INVALID_PARAMETER;
193 }
194
195 *Crc32 = CalculateCrc32 (Data, DataSize);
196
197 return EFI_SUCCESS;
198}
UINT64 UINTN
UINT32 EFIAPI CalculateCrc32(IN VOID *Buffer, IN UINTN Length)
Definition: CheckSum.c:600
#define NULL
Definition: Base.h:319
#define STATIC
Definition: Base.h:264
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define EFI_NOT_AVAILABLE_YET
Definition: PiMultiPhase.h:54
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
EFI_STATUS EFIAPI UnitTestCalculateCrc32(IN VOID *Data, IN UINTN DataSize, OUT UINT32 *Crc32)
EFI_STATUS EFIAPI UnitTestSetWatchdogTimer(IN UINTN Timeout, IN UINT64 WatchdogCode, IN UINTN DataSize, IN CHAR16 *WatchdogData OPTIONAL)
EFI_STATUS EFIAPI UnitTestStall(IN UINTN Microseconds)
EFI_STATUS EFIAPI UnitTestDisconnectController(IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE DriverImageHandle OPTIONAL, IN EFI_HANDLE ChildHandle OPTIONAL)
EFI_STATUS EFIAPI UnitTestGetNextMonotonicCount(OUT UINT64 *Count)
EFI_STATUS EFIAPI UnitTestConnectController(IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE *DriverImageHandle OPTIONAL, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL, IN BOOLEAN Recursive)