| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
Scope (GFX0) |
| 4 |
{ |
| 5 |
Name (BRIG, Package (0x12) |
| 6 |
{ |
| 7 |
0xf, |
| 8 |
0xf, |
| 9 |
0x0, |
| 10 |
0x1, |
| 11 |
0x2, |
| 12 |
0x3, |
| 13 |
0x4, |
| 14 |
0x5, |
| 15 |
0x6, |
| 16 |
0x7, |
| 17 |
0x8, |
| 18 |
0x9, |
| 19 |
0xa, |
| 20 |
0xb, |
| 21 |
0xc, |
| 22 |
0xd, |
| 23 |
0xe, |
| 24 |
0xf, |
| 25 |
}) |
| 26 |
|
| 27 |
Method (XBCM, 1, NotSerialized) |
| 28 |
{ |
| 29 |
^^DSPC.BRTC = (Arg0 << 4) | 0xf |
| 30 |
#ifdef SMI_SAVE_CMOS |
| 31 |
Trap(SMI_SAVE_CMOS) |
| 32 |
#endif |
| 33 |
} |
| 34 |
|
| 35 |
Method (XBQC, 0, NotSerialized) |
| 36 |
{ |
| 37 |
Local0 = ^^DSPC.BRTC |
| 38 |
Local0 >>= 4 |
| 39 |
Return (Local0) |
| 40 |
} |
| 41 |
#include <drivers/intel/gma/acpi/common.asl> |
| 42 |
} |
| 43 |
|
| 44 |
Device (DSPC) |
| 45 |
{ |
| 46 |
Name (_ADR, 0x00020001) |
| 47 |
OperationRegion (DSPC, PCI_Config, 0x00, 0x100) |
| 48 |
Field (DSPC, ByteAcc, NoLock, Preserve) |
| 49 |
{ |
| 50 |
Offset (0xf4), |
| 51 |
BRTC, 8 |
| 52 |
} |
| 53 |
} |