forked from tylernguyen/x1c6-hackintosh
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSSDT-ARPT.dsl
executable file
·87 lines (74 loc) · 2.12 KB
/
SSDT-ARPT.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//
// SSDT-ARPT
// Revision 2
//
// Copyleft (c) 2020 by bb. No rights reserved.
//
//
// Abstract:
// Adds the OSX-native ACPI-interface for broadcom-wifi-cards.
//
// Stub for now, needs rework to be actually useful.
//
// Changelog:
// Revision 2 - Removed experiments
// Revision 1 - Initial implementation
//
DefinitionBlock ("", "SSDT", 2, "THKP", "_ARPT", 0x00002000)
{
// External method from SSDT-UTILS.dsl
External (OSDW, MethodObj) // 0 Arguments
External (DTGP, MethodObj) // 5 Arguments
External (_SB.PCI0.RP01, DeviceObj)
External (_SB.PCI0.RP01.PXSX, DeviceObj)
// WIFI
Scope (_SB.PCI0.RP01)
{
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
Method (_PS0, 0, Serialized) // _PS0: Power State 0
{
Debug = "ARPT:_PS0"
}
Method (_PS3, 0, Serialized) // _PS3: Power State 3
{
Debug = "ARPT:_PS3"
}
Scope (PXSX)
{
Name (_GPE, 0x31) // _GPE: General Purpose Events
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
Method (_RMV, 0, NotSerialized) // _RMV: Removal Status
{
Return (Zero)
}
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Local0 = Package ()
{
"name", "AirPort Extreme",
"model", "Broadcom Wireless Network Adapter",
"device_type", "Network controller",
"built-in", One,
"brcmfx-country", "#a"
}
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
Method (WWEN, 1, NotSerialized)
{
Debug = Concatenate ("ARPT:WWEN - Arg0: ", Arg0)
}
Method (PDEN, 1, NotSerialized)
{
Debug = Concatenate ("ARPT:PDEN - Arg0: ", Arg0)
}
}
}
}
// EOF