[block] Centralise "san-drive" setting
authorMichael Brown <mcb30@ipxe.org>
Mon, 6 Mar 2017 12:25:20 +0000 (12:25 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 7 Mar 2017 13:40:35 +0000 (13:40 +0000)
commite7ee2eda4badef6ee361f089768064ae737169ed
tree8e74668d89bc04e707143f0045ea7e67401a1f9a
parent4adc7b029013bf93c0e5f79eddb9231ba2b50292
[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>
src/arch/x86/interface/pcbios/int13.c
src/core/null_sanboot.c
src/core/sanboot.c
src/include/ipxe/efi/efi_block.h
src/include/ipxe/null_sanboot.h
src/include/ipxe/sanboot.h
src/interface/efi/efi_block.c