From cbc8e878b001f73b4a0b04403f44a004ffac9f4c Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Mon, 29 Apr 2024 20:18:13 +0000 Subject: Turn efi(4/arm64) into MI efi(4), sync with reality; OK kettenis --- distrib/sets/lists/man/mi | 2 +- share/man/man4/Makefile | 4 +-- share/man/man4/efi.4 | 59 ++++++++++++++++++++++++++++++++++++++ share/man/man4/man4.arm64/Makefile | 4 +-- share/man/man4/man4.arm64/efi.4 | 44 ---------------------------- 5 files changed, 64 insertions(+), 49 deletions(-) create mode 100644 share/man/man4/efi.4 delete mode 100644 share/man/man4/man4.arm64/efi.4 diff --git a/distrib/sets/lists/man/mi b/distrib/sets/lists/man/mi index 9939ca3db98..82b0e7c7aeb 100644 --- a/distrib/sets/lists/man/mi +++ b/distrib/sets/lists/man/mi @@ -1280,7 +1280,6 @@ ./usr/share/man/man4/arm64/aplspi.4 ./usr/share/man/man4/arm64/aplspmi.4 ./usr/share/man/man4/arm64/apm.4 -./usr/share/man/man4/arm64/efi.4 ./usr/share/man/man4/arm64/intro.4 ./usr/share/man/man4/arm64/smbios.4 ./usr/share/man/man4/armv7/agtimer.4 @@ -1418,6 +1417,7 @@ ./usr/share/man/man4/ec.4 ./usr/share/man/man4/eephy.4 ./usr/share/man/man4/ef.4 +./usr/share/man/man4/efi.4 ./usr/share/man/man4/eg.4 ./usr/share/man/man4/ehci.4 ./usr/share/man/man4/eisa.4 diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index 2407c0b4245..f4f3b8317c9 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.847 2024/03/02 20:21:33 kettenis Exp $ +# $OpenBSD: Makefile,v 1.848 2024/04/29 20:18:12 kn Exp $ MAN= aac.4 abcrtc.4 abl.4 ac97.4 acphy.4 acrtc.4 \ acpi.4 acpiac.4 acpials.4 acpiasus.4 acpibat.4 \ @@ -31,7 +31,7 @@ MAN= aac.4 abcrtc.4 abl.4 ac97.4 acphy.4 acrtc.4 \ dc.4 dcphy.4 ddb.4 de.4 diskmap.4 divert.4 drm.4 dsxrtc.4 dt.4 \ dwctwo.4 dwdog.4 dwge.4 dwgpio.4 dwiic.4 dwmmc.4 dwmshc.4 dwpcie.4 \ dwqe.4 dwxe.4 \ - eap.4 ec.4 eephy.4 ef.4 eg.4 ehci.4 eisa.4 el.4 em.4 emc.4 gcu.4 \ + eap.4 ec.4 eephy.4 ef.4 efi.4 eg.4 ehci.4 eisa.4 el.4 em.4 emc.4 gcu.4 \ emu.4 enc.4 endrun.4 envy.4 eoip.4 ep.4 epic.4 esa.4 escodec.4 \ eso.4 ess.4 et.4 etherip.4 etphy.4 ex.4 exphy.4 exrtc.4 \ fanpwr.4 fd.4 fdc.4 fec.4 fido.4 fins.4 fintek.4 fms.4 fusbtc.4 \ diff --git a/share/man/man4/efi.4 b/share/man/man4/efi.4 new file mode 100644 index 00000000000..02fd5abde54 --- /dev/null +++ b/share/man/man4/efi.4 @@ -0,0 +1,59 @@ +.\" $OpenBSD: efi.4,v 1.1 2024/04/29 20:18:12 kn Exp $ +.\" +.\" Copyright (c) 2018 Mark Kettenis +.\" Copyright (c) 2024 Klemens Nanni +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd $Mdocdate: April 29 2024 $ +.Dt EFI 4 +.Os +.Sh NAME +.Nm efi +.Nd Unified Extensible Firmware Interface +.Sh SYNOPSIS +.Cd "# amd64" +.Cd "efi* at bios?" +.Pp +.Cd "# arm64" +.Cd "efi* at fdt?" +.Sh DESCRIPTION +The +.Nm +driver provides support for EFI runtime services offered by UEFI +firmware implementations. +It can read and write the Real Time Clock and provides userland applications +.Xr ioctl 2 +access to the System Resource Table and to read and write variables. +.Sh FILES +.Bl -tag -width /dev/efi -compact +.It Pa /dev/efi +.El +.Sh SEE ALSO +.Xr ioctl 2 , +.Xr intro 4 +.Sh HISTORY +The +.Nm +device driver first appeared for arm64 in +.Ox 6.3 . +Support for amd64, the ESRT and EFI variables appeard in +.Ox 7.3 . +.Sh AUTHORS +.An -nosplit +The +.Nm +driver was written by +.An Mark Kettenis Aq Mt kettenis@openbsd.org . +Support for the ESRT and EFI variables is heavily based on work done by +.An Sergii Dmytruk Aq Mt sergii.dmytruk@3meb.com . diff --git a/share/man/man4/man4.arm64/Makefile b/share/man/man4/man4.arm64/Makefile index a60135e815b..743afc108a3 100644 --- a/share/man/man4/man4.arm64/Makefile +++ b/share/man/man4/man4.arm64/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.34 2024/01/22 18:56:18 kettenis Exp $ +# $OpenBSD: Makefile,v 1.35 2024/04/29 20:18:12 kn Exp $ MAN= agintc.4 agtimer.4 ampchwm.4 ampintc.4 \ aplaudio.4 aplcpu.4 apldart.4 apldcp.4 apldma.4 apldog.4 apldrm.4 \ @@ -6,7 +6,7 @@ MAN= agintc.4 agtimer.4 ampchwm.4 ampintc.4 \ aplhidev.4 apliic.4 aplintc.4 aplmbox.4 aplmca.4 aplnco.4 aplns.4 \ aplpcie.4 aplpinctrl.4 aplpmgr.4 aplpmu.4 aplpwm.4 \ aplsart.4 aplsmc.4 aplspi.4 aplspmi.4 apm.4 \ - efi.4 intro.4 smbios.4 + intro.4 smbios.4 MANSUBDIR=arm64 diff --git a/share/man/man4/man4.arm64/efi.4 b/share/man/man4/man4.arm64/efi.4 deleted file mode 100644 index bd9e3938623..00000000000 --- a/share/man/man4/man4.arm64/efi.4 +++ /dev/null @@ -1,44 +0,0 @@ -.\" $OpenBSD: efi.4,v 1.2 2018/04/07 13:52:48 jmc Exp $ -.\" -.\" Copyright (c) 2018 Mark Kettenis -.\" -.\" Permission to use, copy, modify, and distribute this software for any -.\" purpose with or without fee is hereby granted, provided that the above -.\" copyright notice and this permission notice appear in all copies. -.\" -.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -.\" -.Dd $Mdocdate: April 7 2018 $ -.Dt EFI 4 arm64 -.Os -.Sh NAME -.Nm efi -.Nd EFI runtime services -.Sh SYNOPSIS -.Cd "efi* at fdt?" -.Sh DESCRIPTION -The -.Nm -driver provides support for EFI runtime services offered by UEFI -firmware implementations. -Support is currently limited to reading and setting the Real Time -Clock on systems that offer such functionality. -.Sh SEE ALSO -.Xr intro 4 -.Sh HISTORY -The -.Nm -device driver first appeared in -.Ox 6.3 . -.Sh AUTHORS -.An -nosplit -The -.Nm -driver was written by -.An Mark Kettenis Aq Mt kettenis@openbsd.org . -- cgit v1.2.3