| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
Device (TFN1) |
| 4 |
{ |
| 5 |
Name (_HID, DPTF_FAN_DEVICE) |
| 6 |
|
| 7 |
Name (_UID, 0) |
| 8 |
Name (_STR, Unicode("Fan Control")) |
| 9 |
|
| 10 |
/* _FIF: Fan Information */ |
| 11 |
Name (_FIF, Package () |
| 12 |
{ |
| 13 |
0, // Revision |
| 14 |
1, // Fine Grained Control |
| 15 |
2, // Step Size |
| 16 |
0 // No Low Speed Notification |
| 17 |
}) |
| 18 |
|
| 19 |
/* Return Fan Performance States defined by mainboard */ |
| 20 |
Method (_FPS) |
| 21 |
{ |
| 22 |
Return (\_SB.DFPS) |
| 23 |
} |
| 24 |
|
| 25 |
Name (TFST, Package () |
| 26 |
{ |
| 27 |
0, // Revision |
| 28 |
0x00, // Control |
| 29 |
0x00 // Speed |
| 30 |
}) |
| 31 |
|
| 32 |
/* _FST: Fan current Status */ |
| 33 |
Method (_FST, 0, Serialized,,PkgObj) |
| 34 |
{ |
| 35 |
/* Fill in TFST with current control. */ |
| 36 |
TFST[1] = \_SB.PCI0.LPCB.EC0.FAND |
| 37 |
Return (TFST) |
| 38 |
} |
| 39 |
|
| 40 |
/* _FSL: Fan Speed Level */ |
| 41 |
Method (_FSL, 1, Serialized) |
| 42 |
{ |
| 43 |
\_SB.PCI0.LPCB.EC0.FAND = Arg0 |
| 44 |
} |
| 45 |
|
| 46 |
Method (_STA) |
| 47 |
{ |
| 48 |
If (\DPTE == 1) |
| 49 |
{ |
| 50 |
Return (0xF) |
| 51 |
} Else { |
| 52 |
Return (0x0) |
| 53 |
} |
| 54 |
} |
| 55 |
} |