Stefan Reinauer | 7cfa7f9 | 2010-05-16 14:24:41 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2007-2009 coresystems GmbH |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; version 2 of |
| 9 | * the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Stefan Reinauer | 7cfa7f9 | 2010-05-16 14:24:41 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | Device (LID0) |
| 18 | { |
| 19 | Name(_HID, EisaId("PNP0C0D")) |
| 20 | Method(_LID, 0) |
| 21 | { |
| 22 | If(\_SB.PCI0.LPCB.EC0.LIDS) { |
| 23 | Return (0) |
| 24 | } Else { |
| 25 | Return (1) |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | Device (SLPB) |
| 31 | { |
| 32 | Name(_HID, EisaId("PNP0C0E")) |
| 33 | } |
| 34 | |
| 35 | Device (PWRB) |
| 36 | { |
| 37 | Name(_HID, EisaId("PNP0C0C")) |
Patrick Georgi | 472efa6 | 2012-02-16 20:44:20 +0100 | [diff] [blame] | 38 | |
Stefan Reinauer | 7cfa7f9 | 2010-05-16 14:24:41 +0000 | [diff] [blame] | 39 | // Wake |
| 40 | Name(_PRW, Package(){0x1d, 0x04}) |
| 41 | } |
| 42 | |
| 43 | #include "acpi/battery.asl" |