efirt.9 (3611ec604864a7d4dcc9a3ea898c80eb35eef8a0) efirt.9 (26649bb5e8f9e14eb2f787b235dff6c2fafb8d53)
1.\"-
2.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3.\"
4.\" Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org>
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD$
28.\"
1.\"-
2.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3.\"
4.\" Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org>
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 12 unchanged lines hidden (view full) ---

21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" $FreeBSD$
28.\"
29.Dd August 12, 2018
29.Dd December 11, 2018
30.Dt EFIRT 9
31.Os
32.Sh NAME
33.Nm efirt ,
34.Nm efi_rt_ok ,
35.Nm efi_get_table ,
36.Nm efi_get_time ,
37.Nm efi_get_time_capabilities ,

--- 11 unchanged lines hidden (view full) ---

49.Fn efi_rt_ok "void"
50.Ft int
51.Fn efi_get_table "struct uuid *uuid" "void **ptr"
52.Ft int
53.Fn efi_get_time "struct efi_tm *tm"
54.Ft int
55.Fn efi_get_time_capabilities "struct efi_tmcap *tmcap"
56.Ft int
30.Dt EFIRT 9
31.Os
32.Sh NAME
33.Nm efirt ,
34.Nm efi_rt_ok ,
35.Nm efi_get_table ,
36.Nm efi_get_time ,
37.Nm efi_get_time_capabilities ,

--- 11 unchanged lines hidden (view full) ---

49.Fn efi_rt_ok "void"
50.Ft int
51.Fn efi_get_table "struct uuid *uuid" "void **ptr"
52.Ft int
53.Fn efi_get_time "struct efi_tm *tm"
54.Ft int
55.Fn efi_get_time_capabilities "struct efi_tmcap *tmcap"
56.Ft int
57.Fn efi_reset_system "void"
57.Fn efi_reset_system "enum efi_reset type"
58.Ft int
59.Fn efi_set_time "struct efi_tm *tm"
60.Ft int
61.Fn efi_var_get "uint16_t *name" "struct uuid *vendor" "uint32_t *attrib" \
62 "size_t *datasize" "void *data"
63.Ft int
64.Fn efi_var_nextname "size_t *namesize" "uint16_t *name" "struct uuid *vendor"
65.Ft int

--- 52 unchanged lines hidden (view full) ---

118is
119.Dv NULL ,
120or
121.Dv EIO
122if the time could not be retrieved due to a hardware error.
123.Pp
124The
125.Fn efi_reset_system
58.Ft int
59.Fn efi_set_time "struct efi_tm *tm"
60.Ft int
61.Fn efi_var_get "uint16_t *name" "struct uuid *vendor" "uint32_t *attrib" \
62 "size_t *datasize" "void *data"
63.Ft int
64.Fn efi_var_nextname "size_t *namesize" "uint16_t *name" "struct uuid *vendor"
65.Ft int

--- 52 unchanged lines hidden (view full) ---

118is
119.Dv NULL ,
120or
121.Dv EIO
122if the time could not be retrieved due to a hardware error.
123.Pp
124The
125.Fn efi_reset_system
126function requests a warm reset and reboot of the system.
126function requests a reset of the system.
127The
128.Fa type
129argument may be one of the
130.Vt enum efi_reset
131values:
132.Bl -tag -width ".Dv EFI_RESET_SHUTDOWN"
133.It Dv EFI_RESET_COLD
134Perform a cold reset of the system, and reboot.
135.It Dv EFI_RESET_WARM
136Perform a warm reset of the system, and reboot.
137.It Dv EFI_RESET_SHUTDOWN
138Power off the system.
139.El
127.Pp
128The
129.Fn efi_set_time
130function sets the time on the RTC to the time described by the
131.Vt struct efi_tm
132passed in.
133Returns 0 on success,
134.Dv EINVAL

--- 99 unchanged lines hidden (view full) ---

234is an empty Unicode stirng.
235.It Dv EAGAIN
236Not enough storage is available to hold the variable and its data.
237.It Dv EIO
238The variable could not be saved due to a hardware error.
239.It Dv EROFS
240The variable in question is read-only or may not be deleted.
241.It Dv EDOOFUS
140.Pp
141The
142.Fn efi_set_time
143function sets the time on the RTC to the time described by the
144.Vt struct efi_tm
145passed in.
146Returns 0 on success,
147.Dv EINVAL

--- 99 unchanged lines hidden (view full) ---

247is an empty Unicode stirng.
248.It Dv EAGAIN
249Not enough storage is available to hold the variable and its data.
250.It Dv EIO
251The variable could not be saved due to a hardware error.
252.It Dv EROFS
253The variable in question is read-only or may not be deleted.
254.It Dv EDOOFUS
242The varialbe could not be set due to an authentication failure.
255The variable could not be set due to an authentication failure.
243.It Dv ENOENT
244The variable trying to be updated or deleted was not found.
245.El
246.Sh SEE ALSO
247.Xr efidev 4
248.Sh AUTHORS
249This manual page was written by
250.An Kyle Evans Aq Mt kevans@FreeBSD.org .
256.It Dv ENOENT
257The variable trying to be updated or deleted was not found.
258.El
259.Sh SEE ALSO
260.Xr efidev 4
261.Sh AUTHORS
262This manual page was written by
263.An Kyle Evans Aq Mt kevans@FreeBSD.org .