Ssdt.asl 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /** @file
  2. * Secondary System Description Table (SSDT)
  3. *
  4. * Copyright (c) 2018 - 2021, ARM Limited. All rights reserved.
  5. *
  6. * SPDX-License-Identifier: BSD-2-Clause-Patent
  7. *
  8. **/
  9. #include "SgiAcpiHeader.h"
  10. DefinitionBlock("SsdtPci.aml", "SSDT", 2, "ARMLTD", "ARMSGI", EFI_ACPI_ARM_OEM_REVISION) {
  11. Scope (_SB) {
  12. // PCI Root Complex
  13. Device (PCI0) {
  14. Name (_HID, EISAID("PNP0A08")) // PCI Express Root Bridge
  15. Name (_CID, EISAID("PNP0A03")) // Compatible PCI Root Bridge
  16. Name (_SEG, Zero) // PCI Segment Group number
  17. Name (_BBN, Zero) // PCI Base Bus Number
  18. Name (_CCA, 1) // Cache Coherency Attribute
  19. // Root complex resources
  20. Method (_CRS, 0, Serialized) {
  21. Name (RBUF, ResourceTemplate () {
  22. WordBusNumber ( // Bus numbers assigned to this root
  23. ResourceProducer,
  24. MinFixed,
  25. MaxFixed,
  26. PosDecode,
  27. 0, // AddressGranularity
  28. 0, // AddressMinimum - Minimum Bus Number
  29. 255, // AddressMaximum - Maximum Bus Number
  30. 0, // AddressTranslation - Set to 0
  31. 256 // RangeLength - Number of Busses
  32. )
  33. DWordMemory ( // 32-bit BAR Windows
  34. ResourceProducer,
  35. PosDecode,
  36. MinFixed,
  37. MaxFixed,
  38. Cacheable,
  39. ReadWrite,
  40. 0x00000000, // Granularity
  41. 0x70000000, // Min Base Address
  42. 0x777FFFFF, // Max Base Address
  43. 0x00000000, // Translate
  44. 0x07800000 // Length
  45. )
  46. QWordMemory ( // 64-bit BAR Windows
  47. ResourceProducer,
  48. PosDecode,
  49. MinFixed,
  50. MaxFixed,
  51. Cacheable,
  52. ReadWrite,
  53. 0x00000000, // Granularity
  54. 0x500000000, // Min Base Address
  55. 0x7FFFFFFFF, // Max Base Address
  56. 0x00000000, // Translate
  57. 0x300000000 // Length
  58. )
  59. DWordIo ( // IO window
  60. ResourceProducer,
  61. MinFixed,
  62. MaxFixed,
  63. PosDecode,
  64. EntireRange,
  65. 0x00000000, // Granularity
  66. 0x00000000, // Min Base Address
  67. 0x007FFFFF, // Max Base Address
  68. 0x77800000, // Translate
  69. 0x00800000, // Length
  70. ,
  71. ,
  72. ,
  73. TypeTranslation
  74. )
  75. }) // Name (RBUF)
  76. Return (RBUF)
  77. } // Method (_CRS)
  78. }
  79. }
  80. }