aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2017-03-06 12:25:20 +0000
committerMichael Brown <mcb30@ipxe.org>2017-03-07 13:40:35 +0000
commite7ee2eda4badef6ee361f089768064ae737169ed (patch)
tree8e74668d89bc04e707143f0045ea7e67401a1f9a /src/include/ipxe/efi
parent4adc7b029013bf93c0e5f79eddb9231ba2b50292 (diff)
downloadipxe-e7ee2eda4badef6ee361f089768064ae737169ed.zip
ipxe-e7ee2eda4badef6ee361f089768064ae737169ed.tar.gz
ipxe-e7ee2eda4badef6ee361f089768064ae737169ed.tar.bz2
[block] Centralise "san-drive" setting
The concept of the SAN drive number is meaningful only in a BIOS environment, where it represents the INT13 drive number (0x80 for the first hard disk). We retain this concept in a UEFI environment to allow for a simple way for iPXE commands to refer to SAN drives. Centralise the concept of the default drive number, since it is shared between all supported environments. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r--src/include/ipxe/efi/efi_block.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/include/ipxe/efi/efi_block.h b/src/include/ipxe/efi/efi_block.h
index ea28230..f8cf7fc 100644
--- a/src/include/ipxe/efi/efi_block.h
+++ b/src/include/ipxe/efi/efi_block.h
@@ -15,13 +15,4 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#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 */