Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 1 | /* These come from the dynamically created CPU SSDT */ |
| 2 | External(PDC0) |
| 3 | External(PDC1) |
| 4 | |
| 5 | // Power notification |
| 6 | |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 7 | External (\_PR_.CP00, DeviceObj) |
| 8 | External (\_PR_.CP01, DeviceObj) |
| 9 | External (\_PR_.CP00._PPC) |
| 10 | External (\_PR_.CP01._PPC) |
Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 11 | |
| 12 | Method (PNOT) |
| 13 | { |
| 14 | If (MPEN) { |
| 15 | If(And(PDC0, 0x08)) { |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 16 | Notify (\_PR_.CP00, 0x80) // _PPC |
Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 17 | |
| 18 | If (And(PDC0, 0x10)) { |
| 19 | Sleep(100) |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 20 | Notify(\_PR_.CP00, 0x81) // _CST |
Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 21 | } |
| 22 | } |
| 23 | |
| 24 | If(And(PDC1, 0x08)) { |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 25 | Notify (\_PR_.CP01, 0x80) // _PPC |
Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 26 | If (And(PDC1, 0x10)) { |
| 27 | Sleep(100) |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 28 | Notify(\_PR_.CP01, 0x81) // _CST |
Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 29 | } |
| 30 | } |
| 31 | |
| 32 | } Else { // UP |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 33 | Notify (\_PR_.CP00, 0x80) |
Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 34 | Sleep(0x64) |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 35 | Notify(\_PR_.CP00, 0x81) |
Vladimir Serbinenko | 24813c1 | 2014-10-16 10:39:06 +0200 | [diff] [blame] | 36 | } |
| 37 | } |