Advertisement
Guest User

Untitled

a guest
Jun 7th, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1.  
  2. DefinitionBlock ("", "SSDT", 2, "DRTNIA", "AMDGPU", 0x00001000)
  3. {
  4. External (_SB_.PCI0, DeviceObj)
  5. External (_SB_.PCI0.PEG0.PEGP, DeviceObj)
  6.  
  7.  
  8. Scope (\_SB_.PCI0.PEG0.PEGP)
  9. {
  10. if (_OSI ("Darwin"))
  11. {
  12. Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
  13. {
  14. Local0 = Package (0x04)
  15. {
  16. "device-id",
  17. Buffer (0x04)
  18. {
  19. 0xB0, 0x67, 0x00, 0x00
  20. },
  21.  
  22. "model",
  23. Buffer ()
  24. {
  25. "AMD Radeon R9 290"
  26. }
  27. }
  28. DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
  29. Return (Local0)
  30. }
  31. }
  32. }
  33. Scope (\_SB.PCI0)
  34. {
  35. Method (DTGP, 5, NotSerialized)
  36. {
  37. If (LEqual (Arg0, ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b")))
  38. {
  39. If (LEqual (Arg1, One))
  40. {
  41. If (LEqual (Arg2, Zero))
  42. {
  43. Store (Buffer (One)
  44. {
  45. 0x03
  46. }, Arg4)
  47. Return (One)
  48. }
  49.  
  50. If (LEqual (Arg2, One))
  51. {
  52. Return (One)
  53. }
  54. }
  55. }
  56.  
  57. Store (Buffer (One)
  58. {
  59. 0x00
  60. }, Arg4)
  61. Return (Zero)
  62. }
  63.  
  64. }
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement