tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / northbridge / intel / i945 / acpi / igd.asl
blob68bd9b24ed42e711246257b3c79e4cfab9b3295e
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  */
17 Device (GFX0)
19         Name (_ADR, 0x00020000)
21         Name (BRIG, Package (0x12)
22         {
23                 0xf,
24                 0xf,
25                 0x0,
26                 0x1,
27                 0x2,
28                 0x3,
29                 0x4,
30                 0x5,
31                 0x6,
32                 0x7,
33                 0x8,
34                 0x9,
35                 0xa,
36                 0xb,
37                 0xc,
38                 0xd,
39                 0xe,
40                 0xf,
41         })
43         Method (XBCM, 1, NotSerialized)
44         {
45                 Store (Or(ShiftLeft (Arg0, 4), 0xf), ^^DSPC.BRTC)
46 #ifdef SMI_SAVE_CMOS
47                 Trap(SMI_SAVE_CMOS)
48 #endif
49         }
51         Method (XBQC, 0, NotSerialized)
52         {
53                 Store (^^DSPC.BRTC, Local0)
54                 ShiftRight (Local0, 4, Local0)
55                 Return (Local0)
56         }
57 #include <drivers/intel/gma/acpi/common.asl>
60 Device (DSPC)
62         Name (_ADR, 0x00020001)
63         OperationRegion (DSPC, PCI_Config, 0x00, 0x100)
64         Field (DSPC, ByteAcc, NoLock, Preserve)
65         {
66                 Offset (0xf4),
67                        BRTC, 8
68         }