summaryrefslogtreecommitdiff
path: root/util/autoport/ec_none.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/autoport/ec_none.go')
-rw-r--r--util/autoport/ec_none.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/util/autoport/ec_none.go b/util/autoport/ec_none.go
new file mode 100644
index 00000000..bcb61bf0
--- /dev/null
+++ b/util/autoport/ec_none.go
@@ -0,0 +1,24 @@
+package main
+
+func NoEC(ctx Context) {
+ ap := Create(ctx, "acpi/platform.asl")
+ defer ap.Close()
+
+ Add_gpl(ap)
+ ap.WriteString(
+ `Method(_WAK, 1)
+{
+ Return(Package() {0, 0})
+}
+
+Method(_PTS, 1)
+{
+}
+`)
+
+ si := Create(ctx, "acpi/superio.asl")
+ defer si.Close()
+
+ ec := Create(ctx, "acpi/ec.asl")
+ defer ec.Close()
+}