Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[efi] Add basic EFI SAN booting capability
Signed-off-by: Michael Brown <mcb30@ipxe.org>
- Loading branch information
Showing
5 changed files
with
1,097 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef _IPXE_EFI_BLOCK_H | ||
#define _IPXE_EFI_BLOCK_H | ||
|
||
/** @block | ||
* | ||
* EFI block device protocols | ||
* | ||
*/ | ||
|
||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); | ||
|
||
#ifdef SANBOOT_EFI | ||
#define SANBOOT_PREFIX_efi | ||
#else | ||
#define SANBOOT_PREFIX_efi __efi_ | ||
#endif | ||
|
||
static inline __always_inline unsigned int | ||
SANBOOT_INLINE ( efi, san_default_drive ) ( void ) { | ||
/* Drive numbers don't exist as a concept under EFI. We | ||
* arbitarily choose to use drive 0x80 to minimise differences | ||
* with a standard BIOS. | ||
*/ | ||
return 0x80; | ||
} | ||
|
||
#endif /* _IPXE_EFI_BLOCK_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.