Chris Morgan | 5e5e789 | 2020-02-07 09:40:42 -0600 | [diff] [blame^] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2017-2018 Patrick Rudolph <siro@das-labor.org> |
| 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. |
| 15 | */ |
| 16 | |
| 17 | Device (PEGP) |
| 18 | { |
| 19 | Name (_ADR, 0x00010000) |
| 20 | |
| 21 | Method (_STA) |
| 22 | { |
| 23 | Return (((\_SB.PCI0.MCHC.DVEN >> 3) & 1) * 0xf) |
| 24 | } |
| 25 | |
| 26 | Device (DEV0) |
| 27 | { |
| 28 | Name(_ADR, 0x00000000) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | Device (PEG1) |
| 33 | { |
| 34 | Name (_ADR, 0x00010001) |
| 35 | |
| 36 | Method (_STA) |
| 37 | { |
| 38 | Return (((\_SB.PCI0.MCHC.DVEN >> 2) & 1) * 0xf) |
| 39 | } |
| 40 | |
| 41 | Device (DEV0) |
| 42 | { |
| 43 | Name(_ADR, 0x00000000) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | Device (PEG2) |
| 48 | { |
| 49 | Name (_ADR, 0x00010002) |
| 50 | |
| 51 | Method (_STA) |
| 52 | { |
| 53 | Return (((\_SB.PCI0.MCHC.DVEN >> 1) & 1) * 0xf) |
| 54 | } |
| 55 | |
| 56 | Device (DEV0) |
| 57 | { |
| 58 | Name(_ADR, 0x00000000) |
| 59 | } |
| 60 | } |