iPXE
efi_utils.h
Go to the documentation of this file.
1#ifndef _IPXE_EFI_UTILS_H
2#define _IPXE_EFI_UTILS_H
3
4/** @file
5 *
6 * EFI utilities
7 */
8
9FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
10FILE_SECBOOT ( PERMITTED );
11
12#include <ipxe/efi/efi.h>
13
14struct device;
15
17 EFI_HANDLE *parent, unsigned int skip );
18extern int efi_child_add ( EFI_HANDLE parent, EFI_HANDLE child );
19extern void efi_child_del ( EFI_HANDLE parent, EFI_HANDLE child );
20extern void efi_device_info ( EFI_HANDLE device, const char *prefix,
21 struct device *dev );
22
23#endif /* _IPXE_EFI_UTILS_H */
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
void efi_child_del(EFI_HANDLE parent, EFI_HANDLE child)
Remove EFI device as child of another EFI device.
Definition efi_utils.c:138
int efi_child_add(EFI_HANDLE parent, EFI_HANDLE child)
Add EFI device as child of another EFI device.
Definition efi_utils.c:111
void efi_device_info(EFI_HANDLE device, const char *prefix, struct device *dev)
Get underlying device information.
Definition efi_utils.c:189
int efi_locate_device(EFI_HANDLE device, EFI_GUID *protocol, EFI_HANDLE *parent, unsigned int skip)
Locate parent device supporting a given protocol.
Definition efi_utils.c:46
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
EFI API.
#define EFI_HANDLE
Definition efi.h:53
uint16_t protocol
Protocol ID.
Definition stp.h:7
A hardware device.
Definition device.h:77
struct device * parent
Bus device.
Definition device.h:89
char prefix[4]
Definition vmconsole.c:53