Debian Codegraph @

src/mainboard/intel/d945gclf/acpi/ec.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 Device(EC0)
4 {
5 Name (_HID, EISAID("PNP0C09"))
6 Name (_UID, 1)
7
8 // _REG method requires that an operation region be defined.
9 OperationRegion (ERAM, EmbeddedControl, 0x00, 0xff)
10 Field (ERAM, ByteAcc, Lock, Preserve)
11 {
12 }
13
14 Method (_CRS, 0, Serialized)
15 {
16 Name (ECMD, ResourceTemplate()
17 {
18 IO (Decode16, 0x62, 0x62, 0, 1)
19 IO (Decode16, 0x66, 0x66, 0, 1)
20 })
21
22 Return (ECMD)
23 }
24
25 Method (_REG, 2)
26 {
27 // This method is needed by Windows XP/2000
28 // for EC initialization before a driver
29 // is loaded
30 }
31
32 Name (_GPE, 23) // GPI07 / GPE23 -> Runtime SCI
33
34 // TODO EC Query methods
35
36 // TODO Scope _SB devices for AC power, LID, Power button
37
38 }