freebsd-dev/stand/efi/include
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
..
amd64
arm
arm64
Guid
i386
Protocol loader: add HTTP support using UEFI 2019-06-24 23:18:42 +00:00
riscv RISC-V boot1.efi and loader.efi support 2020-07-06 18:19:42 +00:00
efi_driver_utils.h
efi_drivers.h
efi_nii.h
efi.h efi: switch boot_services_gone to boot_services_active 2021-11-04 10:07:54 -06:00
efiapi.h loader.efi: fix panic() after BS off 2022-06-19 17:46:35 +03:00
efichar.h
eficon.h stand: Fix a common typo in source code comments 2022-03-28 19:34:30 +02:00
eficonsctl.h
efidebug.h
efidef.h Add define for CONST. 2019-04-19 19:44:59 +00:00
efidevp.h loader.efi: efipart needs better support detecting nested partitions 2019-11-30 09:11:28 +00:00
efierr.h
efifpswa.h
efifs.h Fix some common typos in comments 2021-03-13 18:26:15 +01:00
efigop.h
efigpt.h
efiip.h
efilib.h libefi: add efi_devpath_next_instance() 2023-05-13 15:16:10 +03:00
efinet.h
efipart.h Revert r362466 2020-06-22 07:46:24 +00:00
efipciio.h
efipoint.h
efiprot.h
efipxebc.h
efirng.h Add support for getting early entropy from UEFI 2022-02-17 13:01:11 -08:00
efiser.h
efistdarg.h
efitcp.h
efiudp.h
efiuga.h efi(8): Fix a typo in a source code comment 2021-11-07 14:07:24 +01:00
efizfs.h Create boot_img as a global variable 2019-04-22 18:40:24 +00:00
README

/* $FreeBSD$ */
/*-

Files in this directory and subdirectories are subject to the following
copyright unless superceded or supplemented by additional specific license
terms found in the file headers of individual files.

Copyright (c) 1998-2000 Intel Corporation

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL INTEL BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE. THE EFI SPECIFICATION AND ALL
OTHER INFORMATION ON THIS WEB SITE ARE PROVIDED "AS IS" WITH NO
WARRANTIES, AND ARE SUBJECT TO CHANGE WITHOUT NOTICE.

*/