freebsd-dev/sys/boot/efi/libefi
John Baldwin 3e5a19be71 Add some routines for working with EFI DEVICE_PATH objects.
- efi_lookup_devpath() uses the DEVICE_PATH_PROTOCOL to obtain the
  DEVICE_PATH for a given EFI handle.
- efi_lookup_image_devpath() uses the LOADED_IMAGE_DEVICE_PATH_PROTOCOL
  to lookup the device path of the device used to load a loaded image.
- efi_devpath_name() uses the DEVICE_PATH_TO_TEXT_PROTOCOL to generate
  a string description of a device path.  The returned string is a CHAR16
  string that can be printed via the recently added '%S' format in
  libstand's printf().  Note that the returned string is returned in
  allocated storage that should be freed by calling
  efi_free_devpath_name().
- efi_devpath_last_node() walks a DEVICE_PATH returning a pointer to the
  final node in the path (not counting the terminating node).  That is,
  it returns a pointer to the last meaninful node in a DEVICE_PATH.
- efi_devpath_trim() generates a new DEVICE_PATH from an existing
  DEVICE_PATH.  The new DEVICE_PATH does not include the last
  non-terminating node in the original path.  If the original DEVICE_PATH
  only contains the terminating node, this function returns NULL.
  The caller is responsible for freeing the returned DEVICE_PATH via
  free().
- efi_devpath_handle() attempts to find a handle that corresponds to a
  given device path.  However, if nodes at the end of the device path do
  not have valid handles associated with them, this function will return
  a handle that matches a node earlier in the device path.  In particular,
  this function returns a handle for the node closest to the end of the
  device path which has a valid handle.

Sponsored by:	Cisco Systems
2016-05-26 21:43:22 +00:00
..
delay.c
devpath.c Add some routines for working with EFI DEVICE_PATH objects. 2016-05-26 21:43:22 +00:00
efi_console.c It sure would be nice to use printf with wide strings. Implement %S to 2016-05-17 14:10:45 +00:00
efinet.c Fix several instances where the boot loader ignored pager_output 2016-05-18 05:59:05 +00:00
efipart.c Fix several instances where the boot loader ignored pager_output 2016-05-18 05:59:05 +00:00
env.c Implement UEFI set environment variable, as well as exporting the EFI 2016-05-17 21:25:20 +00:00
errno.c
handles.c Add EFI ZFS boot support 2016-01-15 02:33:47 +00:00
libefi.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
Makefile Add some routines for working with EFI DEVICE_PATH objects. 2016-05-26 21:43:22 +00:00
Makefile.depend META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
time.c Make efi_time and EFI_GetTimeOfDay static, neither are used by other parts 2016-02-21 21:20:23 +00:00