lib.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. lib.h
  5. Abstract:
  6. EFI library header files
  7. Revision History
  8. --*/
  9. #ifdef __GNUC__
  10. #pragma GCC visibility push(hidden)
  11. #endif
  12. #include "efi.h"
  13. #include "efilib.h"
  14. #include "efirtlib.h"
  15. //
  16. // Include non architectural protocols
  17. //
  18. #include "protocol/efivar.h"
  19. #include "protocol/legacyboot.h"
  20. #include "protocol/intload.h"
  21. #include "protocol/vgaclass.h"
  22. #include "protocol/eficonsplit.h"
  23. #include "protocol/adapterdebug.h"
  24. #include "protocol/intload.h"
  25. #include "efigpt.h"
  26. #include "libsmbios.h"
  27. //
  28. // Prototypes
  29. //
  30. VOID
  31. InitializeGuid (
  32. VOID
  33. );
  34. INTN EFIAPI
  35. LibStubStriCmp (
  36. IN EFI_UNICODE_COLLATION_INTERFACE *This,
  37. IN CHAR16 *S1,
  38. IN CHAR16 *S2
  39. );
  40. BOOLEAN EFIAPI
  41. LibStubMetaiMatch (
  42. IN EFI_UNICODE_COLLATION_INTERFACE *This,
  43. IN CHAR16 *String,
  44. IN CHAR16 *Pattern
  45. );
  46. VOID EFIAPI
  47. LibStubStrLwrUpr (
  48. IN EFI_UNICODE_COLLATION_INTERFACE *This,
  49. IN CHAR16 *Str
  50. );
  51. BOOLEAN
  52. LibMatchDevicePaths (
  53. IN EFI_DEVICE_PATH *Multi,
  54. IN EFI_DEVICE_PATH *Single
  55. );
  56. EFI_DEVICE_PATH *
  57. LibDuplicateDevicePathInstance (
  58. IN EFI_DEVICE_PATH *DevPath
  59. );
  60. //
  61. // Globals
  62. //
  63. extern BOOLEAN LibInitialized;
  64. extern BOOLEAN LibFwInstance;
  65. extern EFI_HANDLE LibImageHandle;
  66. extern SIMPLE_TEXT_OUTPUT_INTERFACE *LibRuntimeDebugOut;
  67. extern EFI_UNICODE_COLLATION_INTERFACE *UnicodeInterface;
  68. extern EFI_UNICODE_COLLATION_INTERFACE LibStubUnicodeInterface;
  69. extern EFI_RAISE_TPL LibRuntimeRaiseTPL;
  70. extern EFI_RESTORE_TPL LibRuntimeRestoreTPL;
  71. void *memset(void *s, int c, __SIZE_TYPE__ n);
  72. void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
  73. void *memmove(void *dst, const void *src, uint64_t size);
  74. int memcmp(const void *vl, const void *vr, size_t n);
  75. void *memchr(const void *src, int c, size_t n);
  76. void *memrchr(const void *m, int c, size_t n);
  77. size_t strnlen(const char *s, size_t maxlen);
  78. char *strrchr(const char *s, int c);