blob: 6db3a44c9e9b4217b1d51750d99d5755695e4d3a [file] [log] [blame]
Sven Schnelled8129f92011-04-20 09:12:17 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (c) 2011 Sven Schnelle <svens@stackframe.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.
Sven Schnelled8129f92011-04-20 09:12:17 +000015 */
16
Sven Schnelle61cd5bf2011-06-23 19:12:25 +020017#include "smi.h"
18
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010019Scope (\)
Sven Schnelled8129f92011-04-20 09:12:17 +000020{
Sven Schnelled8129f92011-04-20 09:12:17 +000021 Method(BRTD, 0, NotSerialized)
22 {
Sven Schnelle61cd5bf2011-06-23 19:12:25 +020023 Trap(SMI_BRIGHTNESS_DOWN)
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010024 \_SB.PCI0.GFX0.DECB()
Sven Schnelled8129f92011-04-20 09:12:17 +000025 }
26
27 Method(BRTU, 0, NotSerialized)
28 {
Sven Schnelle61cd5bf2011-06-23 19:12:25 +020029 Trap(SMI_BRIGHTNESS_UP)
Vladimir Serbinenkodd2bc3f2014-10-31 09:16:31 +010030 \_SB.PCI0.GFX0.INCB()
Sven Schnelled8129f92011-04-20 09:12:17 +000031 }
32}