• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3Field(ERAM, ByteAcc, NoLock, Preserve)
4{
5		Offset (0x32),
6			    , 4,
7			WKFN, 1,
8		Offset(0x83),
9			FNKY, 8
10}
11
12Device(SLPB)
13{
14	Name (_HID, EisaId ("PNP0C0E"))
15	Method(_PRW, 0, NotSerialized)
16	{
17		Return (Package() { 0x18, 0x03 })
18	}
19
20	Method(_PSW, 1, NotSerialized)
21	{
22		if (Arg0) {
23			FNKY = 6 /* Fn key acts as wake button */
24			WKFN = 1
25		} else {
26			FNKY = 0 /* Fn key normal operation */
27			WKFN = 0
28		}
29	}
30}
31