summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/efi_driver.h
diff options
context:
space:
mode:
authorMichael Brown2024-03-29 13:43:24 +0100
committerMichael Brown2024-03-29 15:46:13 +0100
commitb52b4a46d9ee854130db7a8927f33391fc6ba1fe (patch)
treec368cac28dc284799b8405d2a867e3b179d879bc /src/include/ipxe/efi/efi_driver.h
parent[http] Add error table entry for HTTP 404 Not Found error (diff)
downloadipxe-b52b4a46d9ee854130db7a8927f33391fc6ba1fe.tar.gz
ipxe-b52b4a46d9ee854130db7a8927f33391fc6ba1fe.tar.xz
ipxe-b52b4a46d9ee854130db7a8927f33391fc6ba1fe.zip
[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/efi_driver.h')
-rw-r--r--src/include/ipxe/efi/efi_driver.h2
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 411e9364..7b64e1e0 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 );