Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [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. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 18 | * Foundation, Inc. |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | Device (GFX0) |
| 22 | { |
| 23 | Name (_ADR, 0x00020000) |
| 24 | |
Vladimir Serbinenko | f3155d2 | 2014-08-10 23:53:42 +0200 | [diff] [blame] | 25 | OperationRegion (GFXC, PCI_Config, 0x00, 0x0100) |
| 26 | Field (GFXC, DWordAcc, NoLock, Preserve) |
| 27 | { |
| 28 | Offset (0x10), |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 29 | BAR0, 64 |
Edward O'Callaghan | 4568f19 | 2014-12-06 14:32:23 +1100 | [diff] [blame] | 30 | } |
Vladimir Serbinenko | f3155d2 | 2014-08-10 23:53:42 +0200 | [diff] [blame] | 31 | |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 32 | OperationRegion (GFRG, SystemMemory, And(BAR0, 0xfffffffffffffff0), 0x400000) |
Vladimir Serbinenko | f3155d2 | 2014-08-10 23:53:42 +0200 | [diff] [blame] | 33 | Field (GFRG, DWordAcc, NoLock, Preserve) |
| 34 | { |
| 35 | Offset (0x61250), |
| 36 | CR1, 32, |
| 37 | BCLV, 16, |
| 38 | BCLM, 16, |
| 39 | } |
| 40 | |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 41 | Name (BRIG, Package (0x12) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 42 | { |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 43 | 0x61, |
| 44 | 0x61, |
| 45 | 0x2, |
| 46 | 0x4, |
| 47 | 0x5, |
| 48 | 0x7, |
| 49 | 0x9, |
| 50 | 0xb, |
| 51 | 0xd, |
| 52 | 0x11, |
| 53 | 0x14, |
| 54 | 0x17, |
| 55 | 0x1c, |
| 56 | 0x20, |
| 57 | 0x27, |
| 58 | 0x31, |
| 59 | 0x41, |
| 60 | 0x61, |
| 61 | }) |
| 62 | |
| 63 | Method (XBCM, 1, NotSerialized) |
| 64 | { |
| 65 | Store (ShiftLeft (Arg0, 4), BCLV) |
| 66 | Store (0x80000000, CR1) |
| 67 | Store (0x0610, BCLM) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 68 | } |
| 69 | |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 70 | Method (XBQC, 0, NotSerialized) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 71 | { |
Vladimir Serbinenko | dd2bc3f | 2014-10-31 09:16:31 +0100 | [diff] [blame] | 72 | Store (BCLV, Local0) |
| 73 | ShiftRight (Local0, 4, Local0) |
| 74 | Return (Local0) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 75 | } |
Nico Huber | 62047d1 | 2015-08-27 15:07:03 +0200 | [diff] [blame^] | 76 | #include "common.asl" |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 77 | } |