diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-03-29 12:43:24 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-03-29 14:46:13 +0000 |
commit | b52b4a46d9ee854130db7a8927f33391fc6ba1fe (patch) | |
tree | c368cac28dc284799b8405d2a867e3b179d879bc /src/include/ipxe/efi | |
parent | 764e34f15af89cc7c5e46694ac15c5266f13b3d3 (diff) | |
download | ipxe-b52b4a46d9ee854130db7a8927f33391fc6ba1fe.zip ipxe-b52b4a46d9ee854130db7a8927f33391fc6ba1fe.tar.gz ipxe-b52b4a46d9ee854130db7a8927f33391fc6ba1fe.tar.bz2 |
[efi] Allow for allocating EFI devices from arbitrary handles
Split out the code that allocates our internal struct efi_device
representations, to allow for the creation of temporary MNP devices in
order to download the autoexec.ipxe script.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r-- | src/include/ipxe/efi/efi_driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_driver.h b/src/include/ipxe/efi/efi_driver.h index 411e936..7b64e1e 100644 --- a/src/include/ipxe/efi/efi_driver.h +++ b/src/include/ipxe/efi/efi_driver.h @@ -86,6 +86,8 @@ static inline void * efidev_get_drvdata ( struct efi_device *efidev ) { return efidev->priv; } +extern struct efi_device * efidev_alloc ( EFI_HANDLE device ); +extern void efidev_free ( struct efi_device *efidev ); extern struct efi_device * efidev_parent ( struct device *dev ); extern int efi_driver_install ( void ); extern void efi_driver_uninstall ( void ); |