DSDT.ASL 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /** @file
  2. ACPI DSDT table
  3. Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. DefinitionBlock (
  7. "DSDT.aml",
  8. "DSDT",
  9. 0x02, // DSDT revision.
  10. // A Revision field value greater than or equal to 2 signifies that integers
  11. // declared within the Definition Block are to be evaluated as 64-bit values
  12. "INTEL", // OEM ID (6 byte string)
  13. "SKL ",// OEM table ID (8 byte string)
  14. 0x0 // OEM version of DSDT table (4 byte Integer)
  15. )
  16. // BEGIN OF ASL SCOPE
  17. {
  18. External(LHIH)
  19. External(LLOW)
  20. External(IGDS)
  21. External(LIDS)
  22. External(BRTL)
  23. External(ALSE)
  24. External(GSMI)
  25. External(\_SB.PCI0.GFX0.ALSI)
  26. External(\_SB.PCI0.GFX0.CDCK)
  27. External(\_SB.PCI0.GFX0.CBLV)
  28. External(\_SB.PCI0.GFX0.GSSE)
  29. External(\_SB.PCI0.PEG0, DeviceObj)
  30. External(\_SB.PCI0.PEG0.PEGP, DeviceObj)
  31. External(\_SB.PCI0.PEG1, DeviceObj)
  32. External(\_SB.PCI0.PEG2, DeviceObj)
  33. External(\_SB.PCI0.GFX0.DD1F, DeviceObj)
  34. External(\_SB.PCI0.GFX0.GDCK, MethodObj)
  35. External(\_SB.PCI0.GFX0.GHDS, MethodObj)
  36. External(\_SB.PCI0.GFX0.AINT, MethodObj)
  37. External(\_SB.PCI0.GFX0.GLID, MethodObj)
  38. External(\_SB.PCI0.GFX0.GSCI, MethodObj)
  39. External(\_PR.PR00._PSS, MethodObj)
  40. External(\_PR.PR00.LPSS, PkgObj)
  41. External(\_PR.PR00.TPSS, PkgObj)
  42. External(\_PR.PR00._PPC, MethodObj)
  43. External(\_PR.CPPC, IntObj)
  44. External(\_TZ.TZ00, DeviceObj)
  45. External(\_TZ.TZ01, DeviceObj)
  46. External(\_TZ.ETMD, IntObj)
  47. External(\_TZ.FN00._OFF, MethodObj)
  48. // Miscellaneous services enabled in Project
  49. Include ("AMLUPD.asl")
  50. Include ("Acpi/GlobalNvs.asl")
  51. Include ("PciTree.asl")
  52. if(LEqual(ECR1,1)){
  53. Scope(\_SB.PCI0) {
  54. //
  55. // PCI-specific method's GUID
  56. //
  57. Name(PCIG, ToUUID("E5C937D0-3553-4d7a-9117-EA4D19C3434D"))
  58. //
  59. // PCI's _DSM - an attempt at modular _DSM implementation
  60. // When writing your own _DSM function that needs to include PCI-specific methods, do this:
  61. //
  62. // Method(_YOUR_DSM,4){
  63. // if(Lequal(Arg0,PCIG)) { return(PCID(Arg0,Arg1,Arg2,Arg3)) }
  64. // ...continue your _DSM by checking different GUIDs...
  65. // else { return(0) }
  66. // }
  67. //
  68. Method(PCID, 4, Serialized) {
  69. If(LEqual(Arg0, PCIG)) { // PCIE capabilities UUID
  70. If(LGreaterEqual(Arg1,3)) { // revision at least 3
  71. If(LEqual(Arg2,0)) { Return (Buffer(2){0x01,0x03}) } // function 0: list of supported functions
  72. If(LEqual(Arg2,8)) { Return (1) } // function 8: Avoiding Power-On Reset Delay Duplication on Sx Resume
  73. If(LEqual(Arg2,9)) { Return (Package(5){50000,Ones,Ones,50000,Ones}) } // function 9: Specifying Device Readiness Durations
  74. }
  75. }
  76. return (Buffer(1){0})
  77. }
  78. }//scope
  79. }//if
  80. Scope(\_SB.PCI0) {
  81. //PciCheck, Arg0=UUID, returns true if support for 'PCI delays optimization ECR' is enabled and the UUID is correct
  82. Method(PCIC,1,Serialized) {
  83. If(LEqual(ECR1,1)) {
  84. If(LEqual(Arg0, PCIG)) {
  85. return (1)
  86. }
  87. }
  88. return (0)
  89. }
  90. }
  91. Include ("Pch.asl") // Not in this package. Refer to the PCH Reference Code accordingly
  92. Include ("LpcB.asl")
  93. Include ("Platform.asl")
  94. Include ("CPU.asl")
  95. Include ("PCI_DRC.ASL")
  96. Include ("Video.asl")
  97. Include ("PlatformGnvs.asl")
  98. Include ("Gpe.asl")
  99. Name(\_S0, Package(4){0x0,0x0,0,0}) // mandatory System state
  100. if(SS1) { Name(\_S1, Package(4){0x1,0x0,0,0})}
  101. if(SS3) { Name(\_S3, Package(4){0x5,0x0,0,0})}
  102. if(SS4) { Name(\_S4, Package(4){0x6,0x0,0,0})}
  103. Name(\_S5, Package(4){0x7,0x0,0,0}) // mandatory System state
  104. Method(PTS, 1) { // METHOD CALLED FROM _PTS PRIOR TO ENTER ANY SLEEP STATE
  105. If(Arg0) // entering any sleep state
  106. {
  107. }
  108. }
  109. Method(WAK, 1) { // METHOD CALLED FROM _WAK RIGHT AFTER WAKE UP
  110. }
  111. }// End of ASL File