freebsd-dev/stand/efi/libefi
Toomas Soome f2b3bf5c4d libefi: add efi_devpath_next_instance()
UEFI device path may be path to one device, or concatenated list of instances
to different devices (textually represented as comma separated list).

Provide generic function to get next instance from device path.
Returns next instance or end node.

The use case is like:

EFI_DEVICE_PATH *node = (EFI_DEVICE_PATH *)buf;
while (!IsDevicePathEnd(node)) {
	process(node);
	node = efi_devpath_next_instance(node);
}

Where buf is pointing to either single device path or
concatenated list of device paths (such as from ConIn or ConOut).

Reviewers: imp
Differential Revision: https://reviews.freebsd.org/D40081
2023-05-13 15:16:10 +03:00
..
delay.c loader.efi: fix panic() after BS off 2022-06-19 17:46:35 +03:00
devicename.c stand: Create common gen_setcurrdev and replace code 2023-01-11 15:15:14 -07:00
devpath.c libefi: add efi_devpath_next_instance() 2023-05-13 15:16:10 +03:00
efi_console.c loader.efi: fix panic() after BS off 2022-06-19 17:46:35 +03:00
efi_driver_utils.c connect_controllers() is missing NULL pointer check 2020-02-20 08:55:18 +00:00
efichar.c utf8_to_ucs2() should check for malloc failure 2018-01-16 20:35:54 +00:00
eficom.c stand: eficom: Only set baudrate when it changes 2023-05-11 14:06:03 -06:00
efienv.c Add efi_freebsd_delenv 2019-04-25 20:09:49 +00:00
efihttp.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
efinet.c stand: Make sure nobody has a NULL pointer for dv_cleanup 2022-07-27 09:04:13 -06:00
efipart.c stand: For all disk drivers, connect dv_parsedev to disk_parsedev 2022-11-30 15:30:32 -07:00
efizfs.c stand/zfs: Add a third argument to zfs_probe_dev: part_too 2023-01-08 09:45:11 -07:00
env.c Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
errno.c
handles.c efi_register_handles() is missing NULL pointer check 2020-02-20 09:02:59 +00:00
libefi.c loader.efi: efilib.h and libefi.c were left out of 350654 2019-08-06 20:13:28 +00:00
Makefile stand/efi: Retire i386 support 2023-05-11 14:06:03 -06:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
time_arm64.c Use the arm virtual counter in the arm64 loader 2021-06-02 10:58:20 +00:00
time_event.c Update the EFI timer to be called once a second 2021-05-12 14:12:34 +00:00
time.c
wchar.c stand: s/libstand/libsa/g to catch up with rename 2022-04-30 07:34:19 -06:00