Guest User

prasys

a guest
Dec 6th, 2009
1,055
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Before adding
  2. Device (PS2K)
  3. {
  4. Name (_HID, EisaId ("PNP0303"))
  5. Name (_CID, EisaId ("PNP030B"))
  6. Method (_STA, 0, NotSerialized)
  7. {
  8. Return (0x0F)
  9. }
  10.  
  11. Name (_CRS, ResourceTemplate ()
  12. {
  13. IO (Decode16,
  14. 0x0060, // Range Minimum
  15. 0x0060, // Range Maximum
  16. 0x00, // Alignment
  17. 0x01, // Length
  18. )
  19. IO (Decode16,
  20. 0x0064, // Range Minimum
  21. 0x0064, // Range Maximum
  22. 0x00, // Alignment
  23. 0x01, // Length
  24. )
  25. IRQNoFlags ()
  26. {1}
  27. })
  28. Name (_PRS, ResourceTemplate ()
  29. {
  30. StartDependentFn (0x00, 0x00)
  31. {
  32. FixedIO (
  33. 0x0060, // Address
  34. 0x01, // Length
  35. )
  36. FixedIO (
  37. 0x0064, // Address
  38. 0x01, // Length
  39. )
  40. IRQNoFlags ()
  41. {1}
  42. }
  43. EndDependentFn ()
  44. })
  45. }
  46.  
  47.  
  48. After Adding
  49. Device (PS2K)
  50. {
  51. Name (_HID, EisaId ("PNP0303"))
  52. Name (_CID, EisaId ("PNP030B"))
  53. Method (_DSM, 4, NotSerialized)
  54. {
  55. Store (Package ()
  56. {
  57.  
  58. "AAPL,has-embedded-fn-keys",
  59. Buffer (0x04)
  60. {
  61. 0x01, 0x00, 0x00, 0x00
  62. }
  63.  
  64. }, Local0)
  65. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  66. Return (Local0)
  67. }
  68. Method (_STA, 0, NotSerialized)
  69. {
  70. Return (0x0F)
  71. }
  72.  
  73. Name (_CRS, ResourceTemplate ()
  74. {
  75. IO (Decode16,
  76. 0x0060, // Range Minimum
  77. 0x0060, // Range Maximum
  78. 0x00, // Alignment
  79. 0x01, // Length
  80. )
  81. IO (Decode16,
  82. 0x0064, // Range Minimum
  83. 0x0064, // Range Maximum
  84. 0x00, // Alignment
  85. 0x01, // Length
  86. )
  87. IRQNoFlags ()
  88. {1}
  89. })
  90. Name (_PRS, ResourceTemplate ()
  91. {
  92. StartDependentFn (0x00, 0x00)
  93. {
  94. FixedIO (
  95. 0x0060, // Address
  96. 0x01, // Length
  97. )
  98. FixedIO (
  99. 0x0064, // Address
  100. 0x01, // Length
  101. )
  102. IRQNoFlags ()
  103. {1}
  104. }
  105. EndDependentFn ()
  106. })
  107. }
RAW Paste Data