TianoCore EDK2 master
Loading...
Searching...
No Matches
PxeBcPcd.c
Go to the documentation of this file.
1
10#include <Library/PcdLib.h>
12
13RETURN_STATUS
14EFIAPI
15SetPxeBcPcds (
16 VOID
17 )
18{
19 BOOLEAN FwCfgBool;
20 RETURN_STATUS PcdStatus;
21
22 if (!RETURN_ERROR (
24 "opt/org.tianocore/IPv4PXESupport",
25 &FwCfgBool
26 )
27 ))
28 {
29 PcdStatus = PcdSet8S (PcdIPv4PXESupport, FwCfgBool);
30 if (RETURN_ERROR (PcdStatus)) {
31 return PcdStatus;
32 }
33 }
34
35 if (!RETURN_ERROR (
37 "opt/org.tianocore/IPv6PXESupport",
38 &FwCfgBool
39 )
40 ))
41 {
42 PcdStatus = PcdSet8S (PcdIPv6PXESupport, FwCfgBool);
43 if (RETURN_ERROR (PcdStatus)) {
44 return PcdStatus;
45 }
46 }
47
48 return RETURN_SUCCESS;
49}
#define RETURN_ERROR(StatusCode)
Definition: Base.h:1061
#define RETURN_SUCCESS
Definition: Base.h:1066
#define PcdSet8S(TokenName, Value)
Definition: PcdLib.h:469
RETURN_STATUS EFIAPI QemuFwCfgParseBool(IN CONST CHAR8 *FileName, OUT BOOLEAN *Value)