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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
/* SPDX-License-Identifier: GPL-2.0-only */
Device (EC0)
{
Name (_HID, EISAID("PNP0C09"))
Name (_UID, 0)
Name (_GPE, 0x10)
Name (_CRS, ResourceTemplate ()
{
IO (Decode16, 0x930, 0x930, 1, 1)
IO (Decode16, 0x934, 0x934, 1, 1)
})
Method (_STA, 0, NotSerialized)
{
Return (0x0F)
}
OperationRegion (ECOR, EmbeddedControl, 0, 0xFF)
Field (ECOR, ByteAcc, Lock, Preserve)
{
EC00, 8,
EC01, 8,
EC02, 8,
EC03, 8,
EC04, 8,
EC05, 8,
EC06, 8,
EC07, 8,
EC08, 8,
EC09, 8,
EC10, 8,
EC11, 8,
EC12, 8,
EC13, 8,
EC14, 8,
EC15, 8,
EC16, 8,
EC17, 8,
EC18, 8,
EC19, 8,
EC20, 8,
EC21, 8,
EC22, 8,
EC23, 8,
EC24, 8,
EC25, 8,
EC26, 8,
EC27, 8,
EC28, 8,
EC29, 8,
EC30, 8,
EC31, 8,
EC32, 8,
EC33, 8,
EC34, 8,
EC35, 8,
EC36, 8,
EC37, 8,
EC38, 8,
EC39, 8,
EC40, 8,
EC41, 8,
EC42, 8,
EC43, 8,
EC44, 8,
EC45, 8,
EC46, 8,
EC47, 8,
EC48, 8,
EC49, 8
}
Device (BAT0)
{
Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */) // _HID: Hardware ID
Name (_UID, One) // _UID: Unique ID
Name (_PCL, Package (0x01) // _PCL: Power Consumer List
{
_SB
})
Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}
Method (_BIF, 0, NotSerialized) // _BIF: Battery Information
{
Name (BIF1, Package (0x0D) {})
Return (BIF1)
}
Method (_BST, 0, NotSerialized) // _BST: Battery Status
{
Name (BST1, Package (0x04) {})
Return (BST1)
}
}
Method (_Q66, 0, NotSerialized)
{
Store("EC: _Q66", Debug)
Notify (BAT0, 0x81) // Information Change
}
}
|