AcpiVtd.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /** @file
  2. This file describes the contents of the VTD ACPI Support
  3. @copyright
  4. Copyright 1996 - 2021 Intel Corporation. <BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef _ACPI_VTD_H
  8. #define _ACPI_VTD_H
  9. //
  10. // Statements that include other files
  11. //
  12. #include <PiDxe.h>
  13. #include <Library/UefiLib.h>
  14. #include <Library/DxeServicesLib.h>
  15. #include <Library/PcdLib.h>
  16. #include <Library/IoLib.h>
  17. #include <Library/BaseMemoryLib.h>
  18. #include <Library/DebugLib.h>
  19. #include <Library/UefiRuntimeServicesTableLib.h>
  20. #include <Library/MemoryAllocationLib.h>
  21. #include <Library/UefiBootServicesTableLib.h>
  22. #include <Library/UefiDriverEntryPoint.h>
  23. #include <Library/DevicePathLib.h>
  24. #include <Library/HobLib.h>
  25. #include <IndustryStandard/Acpi.h>
  26. #include <IndustryStandard/DmaRemappingReportingTable.h>
  27. #include <Protocol/DmaRemap.h>
  28. #include <Guid/HobList.h>
  29. #include <Guid/PlatformInfo.h>
  30. #include <Guid/SocketVariable.h>
  31. //
  32. // equates used in DMAR Table.
  33. //
  34. #define ACPI_DMAR_OEM_REVISION 0x01
  35. #define ACPI_DMAR_OEM_CREATOR_ID 0x01
  36. #define ACPI_DMAR_OEM_CREATOR_REVISION 0x01
  37. #define TABLE_SIZE 4 * 1024
  38. typedef struct {
  39. UINT32 Signature;
  40. EFI_HANDLE Handle;
  41. DMA_REMAP_PROTOCOL DmaRemapProt;
  42. EFI_ACPI_DMAR_HEADER *Dmar;
  43. EFI_ACPI_DMAR_HEADER *DmarOrder;
  44. } VTD_SUPPORT_INSTANCE;
  45. #endif