TianoCore EDK2 master
Loading...
Searching...
No Matches
PrmInfo.h
Go to the documentation of this file.
1
9#ifndef PRM_INFO_H_
10#define PRM_INFO_H_
11
12#include <Base.h>
13#include <Prm.h>
14#include <PrmDataBuffer.h>
15#include <Uefi.h>
16
17#define APPLICATION_NAME L"PrmInfo"
18
19#define PRM_HANDLER_CONTEXT_LIST_ENTRY_SIGNATURE SIGNATURE_32('P','R','H','E')
20
21#pragma pack(push, 1)
22
23typedef struct {
24 CHAR8 *Name;
25 EFI_GUID *Guid;
26 PRM_DATA_BUFFER *StaticDataBuffer;
27 CHAR8 *ModuleName;
28 PRM_HANDLER *Handler;
30
31typedef struct {
32 UINTN Signature;
33 LIST_ENTRY Link;
34 PRM_HANDLER_CONTEXT Context;
36
37#pragma pack(pop)
38
39//
40// Iterate through the double linked list. NOT delete safe.
41//
42#define EFI_LIST_FOR_EACH(Entry, ListHead) \
43 for(Entry = (ListHead)->ForwardLink; Entry != (ListHead); Entry = Entry->ForwardLink)
44
45#define ONE_MICROSECOND (1000)
46#define ONE_MILLISECOND (1000 * ONE_MICROSECOND)
47#define ONE_SECOND (1000 * ONE_MILLISECOND)
48
49#endif
UINT64 UINTN
Definition: Base.h:213