iPXE
efi_utils.h
Go to the documentation of this file.
00001 #ifndef _IPXE_EFI_UTILS_H
00002 #define _IPXE_EFI_UTILS_H
00003 
00004 /** @file
00005  *
00006  * EFI utilities
00007  */
00008 
00009 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00010 
00011 #include <ipxe/efi/efi.h>
00012 #include <ipxe/efi/Protocol/DevicePath.h>
00013 
00014 struct device;
00015 
00016 extern EFI_DEVICE_PATH_PROTOCOL *
00017 efi_devpath_end ( EFI_DEVICE_PATH_PROTOCOL *path );
00018 extern size_t efi_devpath_len ( EFI_DEVICE_PATH_PROTOCOL *path );
00019 extern int efi_locate_device ( EFI_HANDLE device, EFI_GUID *protocol,
00020                                EFI_HANDLE *parent );
00021 extern int efi_child_add ( EFI_HANDLE parent, EFI_HANDLE child );
00022 extern void efi_child_del ( EFI_HANDLE parent, EFI_HANDLE child );
00023 extern void efi_device_info ( EFI_HANDLE device, const char *prefix,
00024                               struct device *dev );
00025 
00026 #endif /* _IPXE_EFI_UTILS_H */