efi.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. efi.h
  5. Abstract:
  6. Public EFI header files
  7. Revision History
  8. --*/
  9. // Add a predefined macro to detect usage of the library
  10. #ifndef _GNU_EFI
  11. #define _GNU_EFI
  12. #endif
  13. //
  14. // Build flags on input
  15. // EFI32
  16. // EFI_DEBUG - Enable debugging code
  17. // EFI_NT_EMULATOR - Building for running under NT
  18. //
  19. #ifndef _EFI_INCLUDE_
  20. #define _EFI_INCLUDE_
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #define EFI_FIRMWARE_VENDOR L"INTEL"
  25. #define EFI_FIRMWARE_MAJOR_REVISION 12
  26. #define EFI_FIRMWARE_MINOR_REVISION 33
  27. #define EFI_FIRMWARE_REVISION ((EFI_FIRMWARE_MAJOR_REVISION <<16) | (EFI_FIRMWARE_MINOR_REVISION))
  28. #if defined(_M_X64) || defined(__x86_64__) || defined(__amd64__)
  29. #include "x86_64/efibind.h"
  30. #elif defined(_M_IX86) || defined(__i386__)
  31. #include "ia32/efibind.h"
  32. #elif defined(_M_IA64) || defined(__ia64__)
  33. #include "ia64/efibind.h"
  34. #elif defined (_M_ARM64) || defined(__aarch64__)
  35. #include "aarch64/efibind.h"
  36. #elif defined (_M_ARM) || defined(__arm__)
  37. #include "arm/efibind.h"
  38. #elif defined (_M_MIPS64) || defined(__mips64__) || defined(__mips64)
  39. #include "mips64el/efibind.h"
  40. #elif defined (__riscv) && __riscv_xlen == 64
  41. #include "riscv64/efibind.h"
  42. #elif defined (__loongarch64)
  43. #include "loongarch64/efibind.h"
  44. #else
  45. #error Usupported architecture
  46. #endif
  47. #include "eficompiler.h"
  48. #include "efidef.h"
  49. #include "efidevp.h"
  50. #include "efipciio.h"
  51. #include "efiprot.h"
  52. #include "eficon.h"
  53. #include "eficonex.h"
  54. #include "efiser.h"
  55. #include "efi_nii.h"
  56. #include "efipxebc.h"
  57. #include "efinet.h"
  58. #include "efiapi.h"
  59. #include "efifs.h"
  60. #include "efierr.h"
  61. #include "efiui.h"
  62. #include "efiip.h"
  63. #include "efiudp.h"
  64. #include "efitcp.h"
  65. #include "efipoint.h"
  66. #include "efishell.h"
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif