You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

efi_block.h 537B

123456789101112131415161718192021222324252627
  1. #ifndef _IPXE_EFI_BLOCK_H
  2. #define _IPXE_EFI_BLOCK_H
  3. /** @block
  4. *
  5. * EFI block device protocols
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #ifdef SANBOOT_EFI
  10. #define SANBOOT_PREFIX_efi
  11. #else
  12. #define SANBOOT_PREFIX_efi __efi_
  13. #endif
  14. static inline __always_inline unsigned int
  15. SANBOOT_INLINE ( efi, san_default_drive ) ( void ) {
  16. /* Drive numbers don't exist as a concept under EFI. We
  17. * arbitarily choose to use drive 0x80 to minimise differences
  18. * with a standard BIOS.
  19. */
  20. return 0x80;
  21. }
  22. #endif /* _IPXE_EFI_BLOCK_H */