diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-02-17 16:57:19 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-02-17 17:14:19 +0000 |
commit | e39cd79a00b1b353f47836f1144d28268c541ed6 (patch) | |
tree | 3984989fab45230766c58c74e28a995e5a8216d3 /src/include | |
parent | 057674bb1f766db8b4c6593dc238ea68e4f38028 (diff) | |
download | ipxe-e39cd79a00b1b353f47836f1144d28268c541ed6.zip ipxe-e39cd79a00b1b353f47836f1144d28268c541ed6.tar.gz ipxe-e39cd79a00b1b353f47836f1144d28268c541ed6.tar.bz2 |
[efi] Split out autoexec script portions of efi_autoboot.c
The "autoboot device" and "autoexec script" functionalities in
efi_autoboot.c are unrelated except in that they both need to be
invoked by efiprefix.c before device drivers are loaded.
Split out the autoexec script portions to a separate file to avoid
potential confusion.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/efi/efi_autoboot.h | 4 | ||||
-rw-r--r-- | src/include/ipxe/efi/efi_autoexec.h | 16 | ||||
-rw-r--r-- | src/include/ipxe/errfile.h | 1 |
3 files changed, 20 insertions, 1 deletions
diff --git a/src/include/ipxe/efi/efi_autoboot.h b/src/include/ipxe/efi/efi_autoboot.h index 1d5ddc8..706885e 100644 --- a/src/include/ipxe/efi/efi_autoboot.h +++ b/src/include/ipxe/efi/efi_autoboot.h @@ -9,6 +9,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); -extern void efi_set_autoboot ( void ); +#include <ipxe/efi/efi.h> + +extern int efi_set_autoboot_ll_addr ( EFI_HANDLE device ); #endif /* _IPXE_EFI_AUTOBOOT_H */ diff --git a/src/include/ipxe/efi/efi_autoexec.h b/src/include/ipxe/efi/efi_autoexec.h new file mode 100644 index 0000000..1f93b41 --- /dev/null +++ b/src/include/ipxe/efi/efi_autoexec.h @@ -0,0 +1,16 @@ +#ifndef _IPXE_EFI_AUTOEXEC_H +#define _IPXE_EFI_AUTOEXEC_H + +/** @file + * + * EFI autoexec script + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include <ipxe/efi/efi.h> + +extern int efi_autoexec_load ( EFI_HANDLE device ); + +#endif /* _IPXE_EFI_AUTOEXEC_H */ diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index 4c1c334..a0b7618 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -385,6 +385,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define ERRFILE_ntlm ( ERRFILE_OTHER | 0x00510000 ) #define ERRFILE_efi_veto ( ERRFILE_OTHER | 0x00520000 ) #define ERRFILE_efi_autoboot ( ERRFILE_OTHER | 0x00530000 ) +#define ERRFILE_efi_autoexec ( ERRFILE_OTHER | 0x00540000 ) /** @} */ |