TianoCore EDK2 master
Loading...
Searching...
No Matches
QemuFwCfgSimpleParserLib.h
Go to the documentation of this file.
1
9#ifndef QEMU_FW_CFG_SIMPLE_PARSER_LIB_H_
10#define QEMU_FW_CFG_SIMPLE_PARSER_LIB_H_
11
12#include <Base.h>
13
41RETURN_STATUS
42EFIAPI
44 IN CONST CHAR8 *FileName,
45 OUT BOOLEAN *Value
46 );
47
82RETURN_STATUS
83EFIAPI
85 IN CONST CHAR8 *FileName,
86 IN BOOLEAN ParseAsHex,
87 OUT UINT8 *Value
88 );
89
90//
91// The following functions behave identically to QemuFwCfgParseUint8(),
92// only their range checks use MAX_UINT16, MAX_UINT32, MAX_UINT64, MAX_UINTN,
93// respectively.
94//
95
96RETURN_STATUS
97EFIAPI
98QemuFwCfgParseUint16 (
99 IN CONST CHAR8 *FileName,
100 IN BOOLEAN ParseAsHex,
101 OUT UINT16 *Value
102 );
103
104RETURN_STATUS
105EFIAPI
106QemuFwCfgParseUint32 (
107 IN CONST CHAR8 *FileName,
108 IN BOOLEAN ParseAsHex,
109 OUT UINT32 *Value
110 );
111
112RETURN_STATUS
113EFIAPI
114QemuFwCfgParseUint64 (
115 IN CONST CHAR8 *FileName,
116 IN BOOLEAN ParseAsHex,
117 OUT UINT64 *Value
118 );
119
120RETURN_STATUS
121EFIAPI
122QemuFwCfgParseUintn (
123 IN CONST CHAR8 *FileName,
124 IN BOOLEAN ParseAsHex,
125 OUT UINTN *Value
126 );
127
128#endif // QEMU_FW_CFG_SIMPLE_PARSER_LIB_H_
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFIAPI QemuFwCfgParseUint8(IN CONST CHAR8 *FileName, IN BOOLEAN ParseAsHex, OUT UINT8 *Value)
RETURN_STATUS EFIAPI QemuFwCfgParseBool(IN CONST CHAR8 *FileName, OUT BOOLEAN *Value)