summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/wilco/acpi/ec_dev.asl28
-rw-r--r--src/ec/google/wilco/acpi/event.asl18
2 files changed, 29 insertions, 17 deletions
diff --git a/src/ec/google/wilco/acpi/ec_dev.asl b/src/ec/google/wilco/acpi/ec_dev.asl
index a3e8c48e1a..634e243075 100644
--- a/src/ec/google/wilco/acpi/ec_dev.asl
+++ b/src/ec/google/wilco/acpi/ec_dev.asl
@@ -62,3 +62,31 @@ Device (WLCO)
EndDependentFn ()
})
}
+
+Device (WEVT)
+{
+ Name (_HID, "GOOG000D")
+ Name (_UID, 1)
+ Name (_DDN, "Wilco EC Event Interface")
+
+ Method (_STA)
+ {
+ Return (0xB)
+ }
+
+ /* Get Event Buffer */
+ Method (QSET, 0, Serialized)
+ {
+ /* Get count of event bytes */
+ Local0 = R (QSEC)
+ Name (QBUF, Buffer (Local0) {})
+
+ /* Fill QS event buffer with Local0 bytes */
+ For (Local1 = 0, Local1 < Local0, Local1++) {
+ QBUF[Local1] = R (QSEB)
+ }
+
+ Printf ("QS = %o", QBUF)
+ Return (QBUF)
+ }
+}
diff --git a/src/ec/google/wilco/acpi/event.asl b/src/ec/google/wilco/acpi/event.asl
index 4a3394feec..d818d22ca2 100644
--- a/src/ec/google/wilco/acpi/event.asl
+++ b/src/ec/google/wilco/acpi/event.asl
@@ -79,7 +79,7 @@ Method (ECQ2, 1, Serialized)
If (EBIT (E2QS, Arg0)) {
Printf ("QS EVENT")
- Notify (^WLCO, 0x90)
+ Notify (^WEVT, 0x90)
}
}
@@ -125,19 +125,3 @@ Method (_Q66, 0, Serialized)
ECQ4 (Local0)
}
}
-
-/* Get Event Buffer */
-Method (QSET, 0, Serialized)
-{
- /* Get count of event bytes */
- Local0 = R (QSEC)
- Name (QBUF, Buffer (Local0) {})
-
- /* Fill QS event buffer with Local0 bytes */
- For (Local1 = 0, Local1 < Local0, Local1++) {
- QBUF[Local1] = R (QSEB)
- }
-
- Printf ("QS = %o", QBUF)
- Return (QBUF)
-}