aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/libefi/efienv.c
Commit message (Collapse)AuthorAgeFilesLines
* stand: Cut over to using the EDK2 filesWarner Losh2025-11-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | Remove the old EFI SDK files that we've been nursing along for too many years. Replace them with files from EDK2 edk2-stable202502 and tweak the interfaces we need to tweak. Mostly include different things or change the names of the protocols that no longer have old-school compat names. I gave up in the middle of env.c, too damn tedious to find all those new GUIDs. Also, many of the guids were mystery meat, most likely from the EDK2 sources, but just not the Include subdirectory. Need to investigate those. And the memory info? Is it just an oboslete thing, or embedded knowledge of EDK2. Delete the now-redundant copies of things in Guid and Protocol. I debated keeping ZeroGuid.h, but EDK2 has moved on from when I snagged it years ago (or maybe I just invented it out of whole cloth: edk2 does radically different things today and I didn't do the git deep-dive to find out). Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D53655
* libsa: Remove redundant sys/cdefs.hWarner Losh2024-02-221-1/+0
| | | | Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Add efi_freebsd_delenvWarner Losh2019-04-251-1/+7
| | | | | | | | Add a wrapper around efi_delenv akin to efi_freebsd_getenv and efi_getenv. Notes: svn path=/head/; revision=346702
* Add efi_delenvWarner Losh2019-04-181-0/+18
| | | | | | | Add an interface to remove / delete UEFI variables. Notes: svn path=/head/; revision=346346
* Add a more generic efi_setenv function.Warner Losh2019-04-181-0/+19
| | | | | | | efi_setenv allows any UEFI variable to be set. Notes: svn path=/head/; revision=346345
* Allow reading the UEFI variable sizeMarcin Wojtas2019-02-081-1/+1
| | | | | | | | | | | | | | | | | When loading bigger variables form UEFI it is necessary to know their size beforehand, so that an appropriate amount of memory can be allocated. The easiest way to do this is to try to read the variable with buffer size equal 0, expecting EFI_BUFFER_TOO_SMALL error to be returned. Allow such possible approach in efi_getenv routine. Extracted from a bigger patch as suggested by imp. Submitted by: Kornel Duleba <mindal@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Notes: svn path=/head/; revision=343911
* Regularize the Netflix copyrightWarner Losh2019-02-041-1/+0
| | | | | | | | | | | | | | | Use recent best practices for Copyright form at the top of the license: 1. Remove all the All Rights Reserved clauses on our stuff. Where we piggybacked others, use a separate line to make things clear. 2. Use "Netflix, Inc." everywhere. 3. Use a single line for the copyright for grep friendliness. 4. Use date ranges in all places for our stuff. Approved by: Netflix Legal (who gave me the form), adrian@ (pmc files) Notes: svn path=/head/; revision=343755
* libefi: UEFI_BOOT_VAR_GUID duplicates EFI_GLOBAL_VARIABLEToomas Soome2018-03-151-1/+1
| | | | | | | | | | Drop UEFI_BOOT_VAR_GUID and use EFI_GLOBAL_VARIABLE. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D14696 Notes: svn path=/head/; revision=330970
* Move the env convenience routines out of boot1.c.Warner Losh2018-03-121-0/+87
These routines are more generally useful. Even though boot1 is on its way out, it's better to make these common during the transition than copy them. Notes: svn path=/head/; revision=330813