Hpet.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /** @file
  2. This file contains a structure definition for the ACPI 1.0 High Precision Event Timer
  3. Description Table (HPET). The contents of this file should only be modified
  4. for bug fixes, no porting is required.
  5. Copyright (c) 2019 Intel Corporation. All rights reserved. <BR>
  6. SPDX-License-Identifier: BSD-2-Clause-Patent
  7. **/
  8. //
  9. // Statements that include other files
  10. //
  11. #include <IndustryStandard/Acpi.h>
  12. #include <IndustryStandard/HighPrecisionEventTimerTable.h>
  13. //
  14. // HPET Definitions
  15. //
  16. #define EFI_ACPI_OEM_HPET_REVISION 0x00000001
  17. #define EFI_ACPI_EVENT_TIMER_BLOCK_ID 0x0 // To be filled
  18. //
  19. // Event Timer Block Base Address Information
  20. //
  21. #define EFI_ACPI_EVENT_TIMER_BLOCK_ADDRESS_SPACE_ID EFI_ACPI_3_0_SYSTEM_MEMORY
  22. #define EFI_ACPI_EVENT_TIMER_BLOCK_BIT_WIDTH 0x40
  23. #define EFI_ACPI_EVENT_TIMER_BLOCK_BIT_OFFSET 0x00
  24. #define EFI_ACPI_EVENT_TIMER_ACCESS_SIZE 0x00
  25. #define EFI_ACPI_EVENT_TIMER_BLOCK_ADDRESS 0x0 // To be filled
  26. #define EFI_ACPI_HPET_NUMBER 0x00
  27. #define EFI_ACPI_MIN_CLOCK_TICK 0x0080
  28. #define EFI_ACPI_HPET_ATTRIBUTES 0x00
  29. //
  30. // High Precision Event Timer Table
  31. // Please modify all values in Hpet.h only.
  32. //
  33. EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER Hpet = {
  34. {
  35. EFI_ACPI_3_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE,
  36. sizeof (EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_HEADER),
  37. EFI_ACPI_HIGH_PRECISION_EVENT_TIMER_TABLE_REVISION,
  38. //
  39. // Checksum will be updated at runtime
  40. //
  41. 0x00,
  42. //
  43. // It is expected that these values will be updated at runtime
  44. //
  45. { ' ', ' ', ' ', ' ', ' ', ' ' },
  46. 0,
  47. EFI_ACPI_OEM_HPET_REVISION,
  48. 0,
  49. 0
  50. },
  51. EFI_ACPI_EVENT_TIMER_BLOCK_ID,
  52. {
  53. EFI_ACPI_EVENT_TIMER_BLOCK_ADDRESS_SPACE_ID,
  54. EFI_ACPI_EVENT_TIMER_BLOCK_BIT_WIDTH,
  55. EFI_ACPI_EVENT_TIMER_BLOCK_BIT_OFFSET,
  56. EFI_ACPI_EVENT_TIMER_ACCESS_SIZE,
  57. EFI_ACPI_EVENT_TIMER_BLOCK_ADDRESS
  58. },
  59. EFI_ACPI_HPET_NUMBER,
  60. EFI_ACPI_MIN_CLOCK_TICK,
  61. EFI_ACPI_HPET_ATTRIBUTES
  62. };