TianoCore EDK2
master
Loading...
Searching...
No Matches
BootMode.c
Go to the documentation of this file.
1
13
#include "
PeiMain.h
"
14
25
EFI_STATUS
26
EFIAPI
27
PeiGetBootMode
(
28
IN
CONST
EFI_PEI_SERVICES
**PeiServices,
29
IN
OUT
EFI_BOOT_MODE
*BootMode
30
)
31
{
32
PEI_CORE_INSTANCE
*PrivateData;
33
EFI_HOB_HANDOFF_INFO_TABLE
*HandOffHob;
34
35
if
(BootMode ==
NULL
) {
36
return
EFI_INVALID_PARAMETER;
37
}
38
39
PrivateData =
PEI_CORE_INSTANCE_FROM_PS_THIS
(PeiServices);
40
41
HandOffHob = (PrivateData->HobList.HandoffInformationTable);
42
43
*BootMode = HandOffHob->
BootMode
;
44
45
return
EFI_SUCCESS
;
46
}
47
58
EFI_STATUS
59
EFIAPI
60
PeiSetBootMode
(
61
IN
CONST
EFI_PEI_SERVICES
**PeiServices,
62
IN
EFI_BOOT_MODE
BootMode
63
)
64
{
65
PEI_CORE_INSTANCE
*PrivateData;
66
EFI_HOB_HANDOFF_INFO_TABLE
*HandOffHob;
67
68
PrivateData =
PEI_CORE_INSTANCE_FROM_PS_THIS
(PeiServices);
69
70
HandOffHob = (PrivateData->HobList.HandoffInformationTable);
71
72
HandOffHob->
BootMode
= BootMode;
73
74
return
EFI_SUCCESS
;
75
}
PeiGetBootMode
EFI_STATUS EFIAPI PeiGetBootMode(IN CONST EFI_PEI_SERVICES **PeiServices, IN OUT EFI_BOOT_MODE *BootMode)
Definition:
BootMode.c:27
PeiSetBootMode
EFI_STATUS EFIAPI PeiSetBootMode(IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_BOOT_MODE BootMode)
Definition:
BootMode.c:60
NULL
#define NULL
Definition:
Base.h:319
CONST
#define CONST
Definition:
Base.h:259
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
PeiMain.h
PEI_CORE_INSTANCE_FROM_PS_THIS
#define PEI_CORE_INSTANCE_FROM_PS_THIS(a)
Definition:
PeiMain.h:343
EFI_BOOT_MODE
UINT32 EFI_BOOT_MODE
Definition:
PiBootMode.h:18
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_SUCCESS
#define EFI_SUCCESS
Definition:
UefiBaseType.h:112
_EFI_PEI_SERVICES
Definition:
PiPeiCis.h:877
_PEI_CORE_INSTANCE
Definition:
PeiMain.h:236
EFI_HOB_HANDOFF_INFO_TABLE
Definition:
PiHob.h:60
EFI_HOB_HANDOFF_INFO_TABLE::BootMode
EFI_BOOT_MODE BootMode
Definition:
PiHob.h:74
MdeModulePkg
Core
Pei
BootMode
BootMode.c
Generated on Fri Nov 15 2024 18:01:10 for TianoCore EDK2 by
1.9.6