Mcfg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /** @file
  2. This file describes the contents of the ACPI Memory Mapped Configuration
  3. Space Access Table (MCFG). Some additional ACPI values are defined in Acpi10.h,
  4. Acpi20.h, and Acpi30.h.
  5. Copyright (c) 2013-2015 Intel Corporation.
  6. SPDX-License-Identifier: BSD-2-Clause-Patent
  7. **/
  8. #ifndef _MCFG_H_
  9. #define _MCFG_H_
  10. //
  11. // Statements that include other files
  12. //
  13. #include <IndustryStandard/Acpi.h>
  14. #include <IndustryStandard/MemoryMappedConfigurationSpaceAccessTable.h>
  15. //
  16. // MCFG Definitions
  17. //
  18. #define EFI_ACPI_OEM_MCFG_REVISION 0x00000001
  19. //
  20. // Define the number of allocation structures so that we can build the table structure.
  21. //
  22. #define EFI_ACPI_ALLOCATION_STRUCTURE_COUNT 1
  23. //
  24. // MCFG structure
  25. //
  26. //
  27. // Ensure proper structure formats
  28. //
  29. #pragma pack (1)
  30. //
  31. // MCFG Table structure
  32. //
  33. typedef struct {
  34. EFI_ACPI_DESCRIPTION_HEADER Header;
  35. UINT64 Reserved;
  36. #if EFI_ACPI_ALLOCATION_STRUCTURE_COUNT > 0
  37. EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_SPACE_BASE_ADDRESS_ALLOCATION_STRUCTURE AllocationStructure[EFI_ACPI_ALLOCATION_STRUCTURE_COUNT];
  38. #endif
  39. } EFI_ACPI_MEMORY_MAPPED_CONFIGURATION_SPACE_ACCESS_DESCRIPTION_TABLE;
  40. #pragma pack ()
  41. #endif