SmbiosPlatformDxe.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /** @file
  2. This driver installs SMBIOS information for OVMF
  3. Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>
  4. Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>
  5. Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
  6. SPDX-License-Identifier: BSD-2-Clause-Patent
  7. **/
  8. #ifndef _SMBIOS_PLATFORM_DXE_H_
  9. #define _SMBIOS_PLATFORM_DXE_H_
  10. #include <PiDxe.h>
  11. #include <Protocol/Smbios.h>
  12. #include <IndustryStandard/SmBios.h>
  13. #include <Library/BaseLib.h>
  14. #include <Library/BaseMemoryLib.h>
  15. #include <Library/DebugLib.h>
  16. #include <Library/MemoryAllocationLib.h>
  17. #include <Library/UefiBootServicesTableLib.h>
  18. /**
  19. Locates the bhyve SMBIOS data if it exists
  20. @return SMBIOS_TABLE_ENTRY_POINT Address of bhyve SMBIOS data
  21. **/
  22. SMBIOS_TABLE_ENTRY_POINT *
  23. GetBhyveSmbiosTables (
  24. VOID
  25. );
  26. /**
  27. Validates the SMBIOS entry point structure
  28. @param EntryPointStructure SMBIOS entry point structure
  29. @retval TRUE The entry point structure is valid
  30. @retval FALSE The entry point structure is not valid
  31. **/
  32. BOOLEAN
  33. IsEntryPointStructureValid (
  34. IN SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure
  35. );
  36. #endif /* _SMBIOS_PLATFORM_DXE_H_ */