INTELISPDev2.ASL 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*++
  2. Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. Module Name:
  5. INTELISPDev2.ASL
  6. Abstract:
  7. ISP Exist as B0D2F0 Software ACPI Reference Code for the Baytrail Family.
  8. --*/
  9. ////Device ISP0
  10. Device(ISP0)
  11. {
  12. Name(_ADR, 0x0F38)
  13. //Name (_HID, "80860F38")
  14. //Name (_CID, "80860F38")
  15. Name(_DDN, "VLV2 ISP - 80860F38")
  16. Name(_UID, 0x01)
  17. Method (_STA, 0, NotSerialized)
  18. {
  19. If(LEqual(ISPD,1)) //Dev2 need report ISP0 as GFX0 child
  20. {
  21. Return (0xF)
  22. }
  23. Else
  24. {
  25. Return (0x0)
  26. }
  27. }
  28. Name(SBUF,ResourceTemplate ()
  29. {
  30. Memory32Fixed (ReadWrite, 0x00000000, 0x00400000, ISP0)
  31. })
  32. Method(_CRS, 0x0, NotSerialized)
  33. {
  34. Return (SBUF)
  35. }
  36. Method (_SRS, 0x1, NotSerialized)
  37. {
  38. }
  39. Method (_DIS, 0x0, NotSerialized)
  40. {
  41. }
  42. Method(_DSM, 0x4, NotSerialized)
  43. {
  44. If (LEqual (Arg0, 0x01))
  45. {
  46. ///Switch ISP to D3H
  47. Return (0x01)
  48. }
  49. Elseif (LEqual (Arg0, 0x02))
  50. {
  51. //Switch ISP to D0
  52. Return (0x02)
  53. }
  54. Else
  55. {
  56. //Do nothing
  57. Return (0x0F)
  58. }
  59. }
  60. } ///End ISP0