blob: c4af375422cc932e6bfc503e9fa7e12d1c15e1e6 [file] [log] [blame]
Chris Morgan5e5e7892020-02-07 09:40:42 -06001/*
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
17Device (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
32Device (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
47Device (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}