Module Name: src Committed By: jmcneill Date: Sun Oct 10 13:03:10 UTC 2021
Modified Files: src/distrib/sets/lists/comp: mi src/etc: MAKEDEV.tmpl src/etc/etc.evbarm: MAKEDEV.conf src/sys/arch/arm/arm: efi_runtime.c efi_runtime.h src/sys/arch/arm/fdt: arm_fdt.c src/sys/arch/evbarm/conf: GENERIC64 src/sys/conf: majors src/sys/dev: files.dev src/sys/sys: Makefile Added Files: src/sys/dev: efi.c efivar.h src/sys/sys: efiio.h Log Message: efi: Add /dev/efi character device Introduce a /dev/efi character device that provides a means for accessing UEFI RT variable services from userland. Compatible with the FreeBSD ioctl interface for ease of porting their libefivar and associated tools. The ioctl interface is defined in sys/efiio.h. To enable support for this on an arch, the kernel needs `pseudo-device efi` and the MD EFI implementation needs to register its backend by calling efi_ops_register(). This commit includes an implementation for Arm. To generate a diff of this commit: cvs rdiff -u -r1.2395 -r1.2396 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.224 -r1.225 src/etc/MAKEDEV.tmpl cvs rdiff -u -r1.21 -r1.22 src/etc/etc.evbarm/MAKEDEV.conf cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/arm/efi_runtime.c cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/arm/efi_runtime.h cvs rdiff -u -r1.19 -r1.20 src/sys/arch/arm/fdt/arm_fdt.c cvs rdiff -u -r1.186 -r1.187 src/sys/arch/evbarm/conf/GENERIC64 cvs rdiff -u -r1.98 -r1.99 src/sys/conf/majors cvs rdiff -u -r0 -r1.1 src/sys/dev/efi.c src/sys/dev/efivar.h cvs rdiff -u -r1.7 -r1.8 src/sys/dev/files.dev cvs rdiff -u -r1.179 -r1.180 src/sys/sys/Makefile cvs rdiff -u -r0 -r1.1 src/sys/sys/efiio.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.