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