You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

efi_utils.h 733B

1234567891011121314151617181920212223242526
  1. #ifndef _IPXE_EFI_UTILS_H
  2. #define _IPXE_EFI_UTILS_H
  3. /** @file
  4. *
  5. * EFI utilities
  6. */
  7. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  8. #include <ipxe/efi/efi.h>
  9. #include <ipxe/efi/Protocol/DevicePath.h>
  10. struct device;
  11. extern EFI_DEVICE_PATH_PROTOCOL *
  12. efi_devpath_end ( EFI_DEVICE_PATH_PROTOCOL *path );
  13. extern size_t efi_devpath_len ( EFI_DEVICE_PATH_PROTOCOL *path );
  14. extern int efi_locate_device ( EFI_HANDLE device, EFI_GUID *protocol,
  15. EFI_HANDLE *parent );
  16. extern int efi_child_add ( EFI_HANDLE parent, EFI_HANDLE child );
  17. extern void efi_child_del ( EFI_HANDLE parent, EFI_HANDLE child );
  18. extern void efi_device_info ( EFI_HANDLE device, const char *prefix,
  19. struct device *dev );
  20. #endif /* _IPXE_EFI_UTILS_H */