ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
fwutil.c
Go to the documentation of this file.
1
/*
2
* COPYRIGHT: See COPYING.ARM in the top level directory
3
* PROJECT: ReactOS UEFI Boot Library
4
* FILE: boot/environ/lib/firmware/fwutil.c
5
* PURPOSE: Boot Library Firmware Utility Functions
6
* PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org)
7
*/
8
9
/* INCLUDES ******************************************************************/
10
11
#include "
bl.h
"
12
13
VOID
14
BlFwReboot
(
15
VOID
16
)
17
{
18
#ifdef BL_KD_SUPPORTED
19
/* Stop the boot debugger*/
20
BlBdStop();
21
#endif
22
23
/* Reset the machine */
24
EfiResetSystem
(
EfiResetCold
);
25
}
26
27
NTSTATUS
28
MmFwFreePages
(
29
_In_
ULONG
BasePage,
30
_In_
ULONG
PageCount
31
)
32
{
33
/* Free the pages */
34
return
EfiFreePages
(PageCount, BasePage <<
PAGE_SHIFT
);
35
}
EfiResetCold
@ EfiResetCold
Definition:
UefiSpec.h:975
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
bl.h
EfiResetSystem
VOID EfiResetSystem(_In_ EFI_RESET_TYPE ResetType)
Definition:
firmware.c:1509
EfiFreePages
NTSTATUS EfiFreePages(_In_ ULONG Pages, _In_ EFI_PHYSICAL_ADDRESS PhysicalAddress)
Definition:
firmware.c:973
PAGE_SHIFT
#define PAGE_SHIFT
Definition:
env_spec_w32.h:45
MmFwFreePages
NTSTATUS MmFwFreePages(_In_ ULONG BasePage, _In_ ULONG PageCount)
Definition:
fwutil.c:28
BlFwReboot
VOID BlFwReboot(VOID)
Definition:
fwutil.c:14
void
Definition:
nsiface.idl:2307
_In_
#define _In_
Definition:
no_sal2.h:158
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
boot
environ
lib
firmware
fwutil.c
Generated on Wed Nov 27 2024 06:02:38 for ReactOS by
1.9.6