TianoCore EDK2 master
Loading...
Searching...
No Matches
S3BootScriptLib.h
Go to the documentation of this file.
1
14#ifndef _S3_BOOT_SCRIPT_LIB_H_
15#define _S3_BOOT_SCRIPT_LIB_H_
16
17#include <Library/BaseLib.h>
19
33#define S3_BOOT_SCRIPT_LIB_PCI_ADDRESS(Bus, Device, Function, Register) \
34 (UINT64) ( \
35 (((UINTN) Bus) << 24) | \
36 (((UINTN) Device) << 16) | \
37 (((UINTN) Function) << 8) | \
38 (((UINTN) (Register)) < 256 ? ((UINTN) (Register)) : (UINT64) (LShiftU64 ((UINT64) (Register), 32))))
39
43typedef enum {
56 S3BootScriptWidthMaximum
58
72RETURN_STATUS
73EFIAPI
76 IN UINT64 Address,
77 IN UINTN Count,
78 IN VOID *Buffer
79 );
80
95RETURN_STATUS
96EFIAPI
99 IN UINT64 Address,
100 IN VOID *Data,
101 IN VOID *DataMask
102 );
103
116RETURN_STATUS
117EFIAPI
120 IN UINT64 Address,
121 IN UINTN Count,
122 IN VOID *Buffer
123 );
124
139RETURN_STATUS
140EFIAPI
143 IN UINT64 Address,
144 IN VOID *Data,
145 IN VOID *DataMask
146 );
147
160RETURN_STATUS
161EFIAPI
164 IN UINT64 Address,
165 IN UINTN Count,
166 IN VOID *Buffer
167 );
168
181RETURN_STATUS
182EFIAPI
185 IN UINT64 Address,
186 IN VOID *Data,
187 IN VOID *DataMask
188 );
189
203RETURN_STATUS
204EFIAPI
207 IN UINT16 Segment,
208 IN UINT64 Address,
209 IN UINTN Count,
210 IN VOID *Buffer
211 );
212
226RETURN_STATUS
227EFIAPI
230 IN UINT16 Segment,
231 IN UINT64 Address,
232 IN VOID *Data,
233 IN VOID *DataMask
234 );
235
252RETURN_STATUS
253EFIAPI
255 IN UINTN SmBusAddress,
256 IN EFI_SMBUS_OPERATION Operation,
257 IN UINTN *Length,
258 IN VOID *Buffer
259 );
260
270RETURN_STATUS
271EFIAPI
273 IN UINTN Duration
274 );
275
287RETURN_STATUS
288EFIAPI
290 IN VOID *EntryPoint,
291 IN VOID *Context
292 );
293
303RETURN_STATUS
304EFIAPI
306 IN VOID *EntryPoint
307 );
308
331RETURN_STATUS
332EFIAPI
335 IN UINT64 Address,
336 IN VOID *BitMask,
337 IN VOID *BitValue,
338 IN UINTN Duration,
339 IN UINT64 LoopTimes
340 );
341
354RETURN_STATUS
355EFIAPI
357 IN UINT32 InformationLength,
358 IN VOID *Information
359 );
360
380RETURN_STATUS
381EFIAPI
384 IN UINT64 Address,
385 IN VOID *Data,
386 IN VOID *DataMask,
387 IN UINT64 Delay
388 );
389
410RETURN_STATUS
411EFIAPI
414 IN UINT64 Address,
415 IN VOID *Data,
416 IN VOID *DataMask,
417 IN UINT64 Delay
418 );
419
446RETURN_STATUS
447EFIAPI
450 IN UINT16 Segment,
451 IN UINT64 Address,
452 IN VOID *Data,
453 IN VOID *DataMask,
454 IN UINT64 Delay
455 );
456
469RETURN_STATUS
470EFIAPI
472 IN CONST CHAR8 *String
473 );
474
499UINT8 *
500EFIAPI
502 VOID
503 );
504
512RETURN_STATUS
513EFIAPI
515 VOID
516 );
517
539RETURN_STATUS
540EFIAPI
542 IN BOOLEAN BeforeOrAfter,
543 IN OUT VOID **Position OPTIONAL
544 );
545
570RETURN_STATUS
571EFIAPI
573 IN BOOLEAN BeforeOrAfter,
574 IN BOOLEAN CreateIfNotFound,
575 IN OUT VOID **Position OPTIONAL,
576 IN CONST CHAR8 *Label
577 );
578
593RETURN_STATUS
594EFIAPI
596 IN UINT8 *Position1,
597 IN UINT8 *Position2,
598 OUT UINTN *RelativePosition
599 );
600
601#endif
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFIAPI S3BootScriptSaveInformation(IN UINT32 InformationLength, IN VOID *Information)
RETURN_STATUS EFIAPI S3BootScriptExecute(VOID)
RETURN_STATUS EFIAPI S3BootScriptSaveIoPoll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask, IN UINT64 Delay)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfg2ReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT16 Segment, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSavePci2Poll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT16 Segment, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask, IN UINT64 Delay)
RETURN_STATUS EFIAPI S3BootScriptSaveDispatch2(IN VOID *EntryPoint, IN VOID *Context)
RETURN_STATUS EFIAPI S3BootScriptSaveIoReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSaveIoWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfgWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptSaveInformationAsciiString(IN CONST CHAR8 *String)
RETURN_STATUS EFIAPI S3BootScriptCompare(IN UINT8 *Position1, IN UINT8 *Position2, OUT UINTN *RelativePosition)
RETURN_STATUS EFIAPI S3BootScriptSaveStall(IN UINTN Duration)
RETURN_STATUS EFIAPI S3BootScriptSaveSmbusExecute(IN UINTN SmBusAddress, IN EFI_SMBUS_OPERATION Operation, IN UINTN *Length, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptSaveMemPoll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *BitMask, IN VOID *BitValue, IN UINTN Duration, IN UINT64 LoopTimes)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfg2Write(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT16 Segment, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
RETURN_STATUS EFIAPI S3BootScriptSaveDispatch(IN VOID *EntryPoint)
RETURN_STATUS EFIAPI S3BootScriptMoveLastOpcode(IN BOOLEAN BeforeOrAfter, IN OUT VOID **Position OPTIONAL)
RETURN_STATUS EFIAPI S3BootScriptSavePciCfgReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSaveMemWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
UINT8 *EFIAPI S3BootScriptCloseTable(VOID)
S3_BOOT_SCRIPT_LIB_WIDTH
@ S3BootScriptWidthFillUint16
16-bit Fill operation.
@ S3BootScriptWidthFifoUint64
64-bit FIFO operation.
@ S3BootScriptWidthUint16
16-bit operation.
@ S3BootScriptWidthFillUint32
32-bit Fill operation.
@ S3BootScriptWidthFillUint8
8-bit Fill operation.
@ S3BootScriptWidthFifoUint8
8-bit FIFO operation.
@ S3BootScriptWidthUint64
64-bit operation.
@ S3BootScriptWidthFifoUint16
16-bit FIFO operation.
@ S3BootScriptWidthFifoUint32
32-bit FIFO operation.
@ S3BootScriptWidthFillUint64
64-bit Fill operation.
@ S3BootScriptWidthUint32
32-bit operation.
@ S3BootScriptWidthUint8
8-bit operation.
RETURN_STATUS EFIAPI S3BootScriptLabel(IN BOOLEAN BeforeOrAfter, IN BOOLEAN CreateIfNotFound, IN OUT VOID **Position OPTIONAL, IN CONST CHAR8 *Label)
RETURN_STATUS EFIAPI S3BootScriptSaveMemReadWrite(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask)
RETURN_STATUS EFIAPI S3BootScriptSavePciPoll(IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN VOID *Data, IN VOID *DataMask, IN UINT64 Delay)
enum _EFI_SMBUS_OPERATION EFI_SMBUS_OPERATION