AcpiTablePlatform.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*++
  2. Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. Module Name:
  5. AcpiTablePlatform.h
  6. Abstract: File contains platform specific ACPI defines for use in ACPI tables
  7. --*/
  8. #ifndef _Platform_h_INCLUDED_
  9. #define _Platform_h_INCLUDED_
  10. #ifdef ECP_FLAG
  11. #include "EdkIIGlueDxe.h"
  12. #endif
  13. #include <IndustryStandard/Acpi.h>
  14. //
  15. // ACPI table information used to initialize tables.
  16. //
  17. #define EFI_ACPI_OEM_ID 'O','E','M','I','D',' ' // OEMID 6 bytes long
  18. #define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64('O','E','M','T','A','B','L','E') // OEM table id 8 bytes long
  19. #define EFI_ACPI_OEM_REVISION 0x00000005
  20. #define EFI_ACPI_CREATOR_ID SIGNATURE_32('C','R','E','A')
  21. #define EFI_ACPI_CREATOR_REVISION 0x0100000D
  22. #define INT_MODEL 0x01
  23. #define PM_PROFILE EFI_ACPI_4_0_PM_PROFILE_MOBILE
  24. #define SCI_INT_VECTOR 0x0009
  25. #define SMI_CMD_IO_PORT 0x000000B2
  26. #define ACPI_ENABLE 0x0A0
  27. #define ACPI_DISABLE 0x0A1
  28. #define S4BIOS_REQ 0x00
  29. #define PSTATE_CNT 0x00
  30. #define PM1a_EVT_BLK 0x00000400
  31. #define PM1b_EVT_BLK 0x00000000
  32. #define PM1a_CNT_BLK 0x00000404
  33. #define PM1b_CNT_BLK 0x00000000
  34. #define PM2_CNT_BLK 0x00000450
  35. #define PM_TMR_BLK 0x00000408
  36. #define GPE0_BLK 0x00000420
  37. #define GPE1_BLK 0x00000000
  38. #define PM1_EVT_LEN 0x04
  39. #define PM1_CNT_LEN 0x02
  40. #define PM2_CNT_LEN 0x01
  41. #define PM_TM_LEN 0x04
  42. #define GPE0_BLK_LEN 0x10
  43. #define GPE1_BLK_LEN 0x00
  44. #define GPE1_BASE 0x00
  45. #define CST_CNT 0x00
  46. #define P_LVL2_LAT 0x0064
  47. #define P_LVL3_LAT 0x01F4
  48. #define FLUSH_SIZE 0x0400
  49. #define FLUSH_STRIDE 0x0010
  50. #define DUTY_OFFSET 0x01
  51. #define DUTY_WIDTH 0x03
  52. #define DAY_ALRM 0x0D
  53. #define MON_ALRM 0x00
  54. #define CENTURY 0x32
  55. #define FLAG ( EFI_ACPI_4_0_WBINVD | EFI_ACPI_4_0_SLP_BUTTON | EFI_ACPI_4_0_RESET_REG_SUP | EFI_ACPI_4_0_RTC_S4)
  56. #define IAPC_BOOT_ARCH ( EFI_ACPI_4_0_VGA_NOT_PRESENT | EFI_ACPI_4_0_8042 | EFI_ACPI_4_0_LEGACY_DEVICES)
  57. #define RESERVED 0x00
  58. #endif