blob: 04438a227aa008fb219328c5dd82ea752522cf80 [file] [log] [blame]
Vladimir Serbinenko24813c12014-10-16 10:39:06 +02001/* These come from the dynamically created CPU SSDT */
2External(PDC0)
3External(PDC1)
4
5// Power notification
6
Timothy Pearson033bb4b2015-02-10 22:21:39 -06007External (\_PR_.CP00, DeviceObj)
8External (\_PR_.CP01, DeviceObj)
9External (\_PR_.CP00._PPC)
10External (\_PR_.CP01._PPC)
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020011
12Method (PNOT)
13{
14 If (MPEN) {
15 If(And(PDC0, 0x08)) {
Timothy Pearson033bb4b2015-02-10 22:21:39 -060016 Notify (\_PR_.CP00, 0x80) // _PPC
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020017
18 If (And(PDC0, 0x10)) {
19 Sleep(100)
Timothy Pearson033bb4b2015-02-10 22:21:39 -060020 Notify(\_PR_.CP00, 0x81) // _CST
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020021 }
22 }
23
24 If(And(PDC1, 0x08)) {
Timothy Pearson033bb4b2015-02-10 22:21:39 -060025 Notify (\_PR_.CP01, 0x80) // _PPC
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020026 If (And(PDC1, 0x10)) {
27 Sleep(100)
Timothy Pearson033bb4b2015-02-10 22:21:39 -060028 Notify(\_PR_.CP01, 0x81) // _CST
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020029 }
30 }
31
32 } Else { // UP
Timothy Pearson033bb4b2015-02-10 22:21:39 -060033 Notify (\_PR_.CP00, 0x80)
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020034 Sleep(0x64)
Timothy Pearson033bb4b2015-02-10 22:21:39 -060035 Notify(\_PR_.CP00, 0x81)
Vladimir Serbinenko24813c12014-10-16 10:39:06 +020036 }
37}