Lines Matching +full:0 +full:x0541

24 #define SIO_F71858FG_LD_HWM	0x02	/* Hardware monitor logical device */
25 #define SIO_F71882FG_LD_HWM 0x04 /* Hardware monitor logical device */
26 #define SIO_UNLOCK_KEY 0x87 /* Key to enable Super-I/O */
27 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */
29 #define SIO_REG_LDSEL 0x07 /* Logical device select */
30 #define SIO_REG_DEVID 0x20 /* Device ID (2 bytes) */
31 #define SIO_REG_DEVREV 0x22 /* Device revision */
32 #define SIO_REG_MANID 0x23 /* Fintek ID (2 bytes) */
33 #define SIO_REG_ENABLE 0x30 /* Logical device enable */
34 #define SIO_REG_ADDR 0x60 /* Logical device address (2 bytes) */
36 #define SIO_FINTEK_ID 0x1934 /* Manufacturers ID */
37 #define SIO_F71808E_ID 0x0901 /* Chipset ID */
38 #define SIO_F71808A_ID 0x1001 /* Chipset ID */
39 #define SIO_F71858_ID 0x0507 /* Chipset ID */
40 #define SIO_F71862_ID 0x0601 /* Chipset ID */
41 #define SIO_F71868_ID 0x1106 /* Chipset ID */
42 #define SIO_F71869_ID 0x0814 /* Chipset ID */
43 #define SIO_F71869A_ID 0x1007 /* Chipset ID */
44 #define SIO_F71882_ID 0x0541 /* Chipset ID */
45 #define SIO_F71889_ID 0x0723 /* Chipset ID */
46 #define SIO_F71889E_ID 0x0909 /* Chipset ID */
47 #define SIO_F71889A_ID 0x1005 /* Chipset ID */
48 #define SIO_F8000_ID 0x0581 /* Chipset ID */
49 #define SIO_F81768D_ID 0x1210 /* Chipset ID */
50 #define SIO_F81865_ID 0x0704 /* Chipset ID */
51 #define SIO_F81866_ID 0x1010 /* Chipset ID */
52 #define SIO_F71858AD_ID 0x0903 /* Chipset ID */
53 #define SIO_F81966_ID 0x1502 /* Chipset ID */
59 #define F71882FG_REG_IN_STATUS 0x12 /* f7188x only */
60 #define F71882FG_REG_IN_BEEP 0x13 /* f7188x only */
61 #define F71882FG_REG_IN(nr) (0x20 + (nr))
62 #define F71882FG_REG_IN1_HIGH 0x32 /* f7188x only */
64 #define F81866_REG_IN_STATUS 0x16 /* F81866 only */
65 #define F81866_REG_IN_BEEP 0x17 /* F81866 only */
66 #define F81866_REG_IN1_HIGH 0x3a /* F81866 only */
68 #define F71882FG_REG_FAN(nr) (0xA0 + (16 * (nr)))
69 #define F71882FG_REG_FAN_TARGET(nr) (0xA2 + (16 * (nr)))
70 #define F71882FG_REG_FAN_FULL_SPEED(nr) (0xA4 + (16 * (nr)))
71 #define F71882FG_REG_FAN_STATUS 0x92
72 #define F71882FG_REG_FAN_BEEP 0x93
74 #define F71882FG_REG_TEMP(nr) (0x70 + 2 * (nr))
75 #define F71882FG_REG_TEMP_OVT(nr) (0x80 + 2 * (nr))
76 #define F71882FG_REG_TEMP_HIGH(nr) (0x81 + 2 * (nr))
77 #define F71882FG_REG_TEMP_STATUS 0x62
78 #define F71882FG_REG_TEMP_BEEP 0x63
79 #define F71882FG_REG_TEMP_CONFIG 0x69
80 #define F71882FG_REG_TEMP_HYST(nr) (0x6C + (nr))
81 #define F71882FG_REG_TEMP_TYPE 0x6B
82 #define F71882FG_REG_TEMP_DIODE_OPEN 0x6F
84 #define F71882FG_REG_PWM(nr) (0xA3 + (16 * (nr)))
85 #define F71882FG_REG_PWM_TYPE 0x94
86 #define F71882FG_REG_PWM_ENABLE 0x96
88 #define F71882FG_REG_FAN_HYST(nr) (0x98 + (nr))
90 #define F71882FG_REG_FAN_FAULT_T 0x9F
91 #define F71882FG_FAN_NEG_TEMP_EN 0x20
92 #define F71882FG_FAN_PROG_SEL 0x80
94 #define F71882FG_REG_POINT_PWM(pwm, point) (0xAA + (point) + (16 * (pwm)))
95 #define F71882FG_REG_POINT_TEMP(pwm, point) (0xA6 + (point) + (16 * (pwm)))
96 #define F71882FG_REG_POINT_MAPPING(nr) (0xAF + 16 * (nr))
98 #define F71882FG_REG_START 0x01
105 module_param(force_id, ushort, 0);
131 [f71808e] = { 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0 },
132 [f71808a] = { 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0 },
133 [f71858fg] = { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
134 [f71862fg] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
135 [f71868a] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
136 [f71869] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
137 [f71869a] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
138 [f71882fg] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
139 [f71889fg] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
140 [f71889ed] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
141 [f71889a] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
142 [f8000] = { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
144 [f81865f] = { 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
145 [f81866a] = { 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 },
149 [f71808e] = 0,
150 [f71808a] = 0,
151 [f71858fg] = 0,
152 [f71862fg] = 0,
153 [f71868a] = 0,
154 [f71869] = 0,
155 [f71869a] = 0,
160 [f8000] = 0,
167 [f71808e] = 0,
168 [f71808a] = 0,
169 [f71858fg] = 0,
178 [f8000] = 0,
203 [f71808e] = 0,
205 [f71858fg] = 0,
214 [f8000] = 0,
250 int temp_start; /* temp numbering start (0 or 1) */
268 * they are addressed as 0-2 and on others as 1-3, so for coding
310 return reg ? (1500000 / reg) : 0; in fan_from_reg()
315 return fan ? (1500000 / fan) : 0; in fan_to_reg()
327 f71882fg_write8(data, reg + 1, val & 0xff); in f71882fg_write16()
378 data->temp_hyst[0] = f71882fg_read8(data, in f71882fg_update_device()
379 F71882FG_REG_TEMP_HYST(0)); in f71882fg_update_device()
386 data->temp_type[1] = (reg & 0x02) ? 2 : 4; in f71882fg_update_device()
387 data->temp_type[2] = (reg & 0x04) ? 2 : 4; in f71882fg_update_device()
388 data->temp_type[3] = (reg & 0x08) ? 2 : 4; in f71882fg_update_device()
401 data->pwm_auto_point_hyst[0] = in f71882fg_update_device()
402 f71882fg_read8(data, F71882FG_REG_FAN_HYST(0)); in f71882fg_update_device()
406 for (nr = 0; nr < nr_fans; nr++) { in f71882fg_update_device()
413 for (point = 0; point < 5; point++) { in f71882fg_update_device()
419 for (point = 0; point < 4; point++) { in f71882fg_update_device()
428 data->pwm_auto_point_pwm[nr][0] = in f71882fg_update_device()
430 F71882FG_REG_POINT_PWM(nr, 0)); in f71882fg_update_device()
441 data->pwm_auto_point_temp[nr][0] = in f71882fg_update_device()
444 (nr, 0)); in f71882fg_update_device()
467 for (nr = 0; nr < nr_fans; nr++) { in f71882fg_update_device()
499 for (nr = 0; nr < F71882FG_MAX_INS; nr++) in f71882fg_update_device()
532 sign = data->temp[nr] & 0x0001; in show_temp()
533 temp = (data->temp[nr] >> 5) & 0x7ff; in show_temp()
535 sign = data->temp[nr] & 0x8000; in show_temp()
536 temp = (data->temp[nr] >> 5) & 0x3ff; in show_temp()
569 val = clamp_val(val, 0, 255); in store_temp_max()
590 temp_max_hyst = data->temp_hyst[nr / 2] & 0x0f; in show_temp_max_hyst()
622 reg = (reg & 0x0f) | (val << 4); in store_temp_max_hyst()
624 reg = (reg & 0xf0) | val; in store_temp_max_hyst()
641 return sprintf(buf, "0\n"); in show_temp_alarm()
665 val = clamp_val(val, 0, 255); in store_temp_crit()
686 temp_crit_hyst = data->temp_hyst[nr / 2] & 0x0f; in show_temp_crit_hyst()
702 return sprintf(buf, "0\n"); in show_temp_fault()
707 * temperature indexes start at 0 (the others start at 1)
710 SENSOR_ATTR_2(temp1_input, S_IRUGO, show_temp, NULL, 0, 0),
712 store_temp_max, 0, 0),
714 store_temp_max_hyst, 0, 0),
715 SENSOR_ATTR_2(temp1_max_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 0),
717 store_temp_crit, 0, 0),
719 0, 0),
720 SENSOR_ATTR_2(temp1_crit_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 4),
721 SENSOR_ATTR_2(temp1_fault, S_IRUGO, show_temp_fault, NULL, 0, 0),
722 SENSOR_ATTR_2(temp2_input, S_IRUGO, show_temp, NULL, 0, 1),
724 store_temp_max, 0, 1),
726 store_temp_max_hyst, 0, 1),
727 SENSOR_ATTR_2(temp2_max_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 1),
729 store_temp_crit, 0, 1),
731 0, 1),
732 SENSOR_ATTR_2(temp2_crit_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 5),
733 SENSOR_ATTR_2(temp2_fault, S_IRUGO, show_temp_fault, NULL, 0, 1),
734 SENSOR_ATTR_2(temp3_input, S_IRUGO, show_temp, NULL, 0, 2),
736 store_temp_max, 0, 2),
738 store_temp_max_hyst, 0, 2),
739 SENSOR_ATTR_2(temp3_max_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 2),
741 store_temp_crit, 0, 2),
743 0, 2),
744 SENSOR_ATTR_2(temp3_crit_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 6),
745 SENSOR_ATTR_2(temp3_fault, S_IRUGO, show_temp_fault, NULL, 0, 2),
759 SENSOR_ATTR_2(temp1_input, S_IRUGO, show_temp, NULL, 0, 1),
761 store_temp_max, 0, 1),
763 store_temp_max_hyst, 0, 1),
769 SENSOR_ATTR_2(temp1_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 1),
771 store_temp_crit, 0, 1),
773 0, 1),
774 SENSOR_ATTR_2(temp1_crit_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 5),
775 SENSOR_ATTR_2(temp1_type, S_IRUGO, show_temp_type, NULL, 0, 1),
776 SENSOR_ATTR_2(temp1_fault, S_IRUGO, show_temp_fault, NULL, 0, 1),
778 SENSOR_ATTR_2(temp2_input, S_IRUGO, show_temp, NULL, 0, 2),
780 store_temp_max, 0, 2),
782 store_temp_max_hyst, 0, 2),
784 SENSOR_ATTR_2(temp2_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 2),
786 store_temp_crit, 0, 2),
788 0, 2),
789 SENSOR_ATTR_2(temp2_crit_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 6),
790 SENSOR_ATTR_2(temp2_type, S_IRUGO, show_temp_type, NULL, 0, 2),
791 SENSOR_ATTR_2(temp2_fault, S_IRUGO, show_temp_fault, NULL, 0, 2),
793 SENSOR_ATTR_2(temp3_input, S_IRUGO, show_temp, NULL, 0, 3),
795 store_temp_max, 0, 3),
797 store_temp_max_hyst, 0, 3),
799 SENSOR_ATTR_2(temp3_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 3),
801 store_temp_crit, 0, 3),
803 0, 3),
804 SENSOR_ATTR_2(temp3_crit_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 7),
805 SENSOR_ATTR_2(temp3_type, S_IRUGO, show_temp_type, NULL, 0, 3),
806 SENSOR_ATTR_2(temp3_fault, S_IRUGO, show_temp_fault, NULL, 0, 3),
818 return sprintf(buf, "0\n"); in show_temp_beep()
848 store_temp_beep, 0, 1),
850 store_temp_beep, 0, 5),
853 store_temp_beep, 0, 2),
855 store_temp_beep, 0, 6),
858 store_temp_beep, 0, 3),
860 store_temp_beep, 0, 7),
865 store_temp_beep, 0, 0),
867 store_temp_beep, 0, 4),
870 store_temp_beep, 0, 1),
872 store_temp_beep, 0, 5),
875 store_temp_beep, 0, 2),
877 store_temp_beep, 0, 6),
884 * Also like the f71858fg its temperature indexes start at 0
887 SENSOR_ATTR_2(temp1_input, S_IRUGO, show_temp, NULL, 0, 0),
889 store_temp_crit, 0, 0),
891 store_temp_max, 0, 0),
892 SENSOR_ATTR_2(temp1_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 4),
893 SENSOR_ATTR_2(temp1_fault, S_IRUGO, show_temp_fault, NULL, 0, 0),
894 SENSOR_ATTR_2(temp2_input, S_IRUGO, show_temp, NULL, 0, 1),
896 store_temp_crit, 0, 1),
898 store_temp_max, 0, 1),
899 SENSOR_ATTR_2(temp2_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 5),
900 SENSOR_ATTR_2(temp2_fault, S_IRUGO, show_temp_fault, NULL, 0, 1),
901 SENSOR_ATTR_2(temp3_input, S_IRUGO, show_temp, NULL, 0, 2),
903 store_temp_crit, 0, 2),
905 store_temp_max, 0, 2),
906 SENSOR_ATTR_2(temp3_alarm, S_IRUGO, show_temp_alarm, NULL, 0, 6),
907 SENSOR_ATTR_2(temp3_fault, S_IRUGO, show_temp_fault, NULL, 0, 2),
921 SENSOR_ATTR_2(in0_input, S_IRUGO, show_in, NULL, 0, 0),
922 SENSOR_ATTR_2(in1_input, S_IRUGO, show_in, NULL, 0, 1),
923 SENSOR_ATTR_2(in2_input, S_IRUGO, show_in, NULL, 0, 2),
924 SENSOR_ATTR_2(in3_input, S_IRUGO, show_in, NULL, 0, 3),
925 SENSOR_ATTR_2(in4_input, S_IRUGO, show_in, NULL, 0, 4),
926 SENSOR_ATTR_2(in5_input, S_IRUGO, show_in, NULL, 0, 5),
927 SENSOR_ATTR_2(in6_input, S_IRUGO, show_in, NULL, 0, 6),
928 SENSOR_ATTR_2(in7_input, S_IRUGO, show_in, NULL, 0, 7),
929 SENSOR_ATTR_2(in8_input, S_IRUGO, show_in, NULL, 0, 8),
930 SENSOR_ATTR_2(in9_input, S_IRUGO, show_in, NULL, 0, 9),
931 SENSOR_ATTR_2(in10_input, S_IRUGO, show_in, NULL, 0, 10),
954 val = clamp_val(val, 0, 255); in store_in_max()
976 return sprintf(buf, "0\n"); in show_in_beep()
1019 return sprintf(buf, "0\n"); in show_in_alarm()
1025 0, 1),
1027 0, 1),
1028 SENSOR_ATTR_2(in1_alarm, S_IRUGO, show_in_alarm, NULL, 0, 1),
1039 speed = 0; in show_fan()
1085 return sprintf(buf, "0\n"); in show_fan_alarm()
1103 val = 0; in show_pwm()
1121 val = clamp_val(val, 0, 255); in store_pwm()
1153 int result = 0; in show_pwm_enable()
1158 case 0: in show_pwm_enable()
1272 SENSOR_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, 0, 0),
1275 store_fan_full_speed, 0, 0),
1276 SENSOR_ATTR_2(fan1_alarm, S_IRUGO, show_fan_alarm, NULL, 0, 0),
1277 SENSOR_ATTR_2(pwm1, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 0),
1279 store_pwm_enable, 0, 0),
1281 show_pwm_interpolate, store_pwm_interpolate, 0, 0),
1283 SENSOR_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, 0, 1),
1286 store_fan_full_speed, 0, 1),
1287 SENSOR_ATTR_2(fan2_alarm, S_IRUGO, show_fan_alarm, NULL, 0, 1),
1288 SENSOR_ATTR_2(pwm2, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 1),
1290 store_pwm_enable, 0, 1),
1292 show_pwm_interpolate, store_pwm_interpolate, 0, 1),
1294 SENSOR_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 0, 2),
1297 store_fan_full_speed, 0, 2),
1298 SENSOR_ATTR_2(fan3_alarm, S_IRUGO, show_fan_alarm, NULL, 0, 2),
1299 SENSOR_ATTR_2(pwm3, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 2),
1301 store_pwm_enable, 0, 2),
1303 show_pwm_interpolate, store_pwm_interpolate, 0, 2),
1305 SENSOR_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 0, 3),
1308 store_fan_full_speed, 0, 3),
1309 SENSOR_ATTR_2(fan4_alarm, S_IRUGO, show_fan_alarm, NULL, 0, 3),
1310 SENSOR_ATTR_2(pwm4, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 3),
1312 store_pwm_enable, 0, 3),
1314 show_pwm_interpolate, store_pwm_interpolate, 0, 3),
1339 val = clamp_val(val, 0, 255); in store_simple_pwm()
1351 SENSOR_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 0, 2),
1352 SENSOR_ATTR_2(fan3_alarm, S_IRUGO, show_fan_alarm, NULL, 0, 2),
1354 show_simple_pwm, store_simple_pwm, 0, 2),
1366 return sprintf(buf, "0\n"); in show_fan_beep()
1396 store_fan_beep, 0, 0),
1398 store_fan_beep, 0, 1),
1400 store_fan_beep, 0, 2),
1402 store_fan_beep, 0, 3),
1433 val = 0; in store_pwm_auto_point_channel()
1448 val = (data->pwm_auto_point_mapping[nr] & 0xfc) | val; in store_pwm_auto_point_channel()
1491 val = clamp_val(val, 0, 255); in store_pwm_auto_point_pwm()
1542 val = clamp_val(val, 0, 127); in store_pwm_auto_point_temp()
1556 int result = 0; in show_pwm_auto_point_temp_hyst()
1565 result = data->pwm_auto_point_hyst[nr / 2] & 0x0f; in show_pwm_auto_point_temp_hyst()
1597 reg = (reg & 0x0f) | (val << 4); in store_pwm_auto_point_temp_hyst()
1599 reg = (reg & 0xf0) | val; in store_pwm_auto_point_temp_hyst()
1615 store_pwm_auto_point_channel, 0, 0),
1618 1, 0),
1621 4, 0),
1624 0, 0),
1627 3, 0),
1631 0, 0),
1633 show_pwm_auto_point_temp_hyst, NULL, 3, 0),
1637 store_pwm_auto_point_channel, 0, 1),
1646 0, 1),
1653 0, 1),
1659 store_pwm_auto_point_channel, 0, 2),
1668 0, 2),
1675 0, 2),
1683 * programmed instead of being hardcoded to 0xff
1688 store_pwm_auto_point_channel, 0, 0),
1691 0, 0),
1694 1, 0),
1697 4, 0),
1700 0, 0),
1703 3, 0),
1707 0, 0),
1709 show_pwm_auto_point_temp_hyst, NULL, 3, 0),
1713 store_pwm_auto_point_channel, 0, 1),
1716 0, 1),
1725 0, 1),
1732 0, 1),
1738 store_pwm_auto_point_channel, 0, 2),
1741 0, 2),
1750 0, 2),
1757 0, 2),
1766 store_pwm_auto_point_channel, 0, 0),
1769 0, 0),
1772 1, 0),
1775 2, 0),
1778 3, 0),
1781 4, 0),
1784 0, 0),
1787 1, 0),
1790 2, 0),
1793 3, 0),
1797 0, 0),
1799 show_pwm_auto_point_temp_hyst, NULL, 1, 0),
1801 show_pwm_auto_point_temp_hyst, NULL, 2, 0),
1803 show_pwm_auto_point_temp_hyst, NULL, 3, 0),
1807 store_pwm_auto_point_channel, 0, 1),
1810 0, 1),
1825 0, 1),
1838 0, 1),
1848 store_pwm_auto_point_channel, 0, 2),
1851 0, 2),
1866 0, 2),
1879 0, 2),
1889 store_pwm_auto_point_channel, 0, 3),
1892 0, 3),
1907 0, 3),
1920 0, 3),
1931 SENSOR_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 0, 3),
1937 * F8000 starts counting temps at 0), B0 maps the TEMP2 and C0 maps to TEMP0
1942 store_pwm_auto_point_channel, 0, 0),
1945 0, 2),
1960 0, 2),
1973 0, 2),
1983 store_pwm_auto_point_channel, 0, 1),
1986 0, 0),
1989 1, 0),
1992 2, 0),
1995 3, 0),
1998 4, 0),
2001 0, 0),
2004 1, 0),
2007 2, 0),
2010 3, 0),
2014 0, 0),
2016 show_pwm_auto_point_temp_hyst, NULL, 1, 0),
2018 show_pwm_auto_point_temp_hyst, NULL, 2, 0),
2020 show_pwm_auto_point_temp_hyst, NULL, 3, 0),
2024 store_pwm_auto_point_channel, 0, 2),
2027 0, 1),
2042 0, 1),
2055 0, 1),
2083 pr_err("I/O address 0x%04x already in use\n", base); in superio_enter()
2091 return 0; in superio_enter()
2111 for (i = 0; i < count; i++) { in f71882fg_create_sysfs_files()
2116 return 0; in f71882fg_create_sysfs_files()
2124 for (i = 0; i < count; i++) in f71882fg_remove_sysfs_files()
2135 err = 0; in f71882fg_create_fan_sysfs_files()
2147 err = data->pwm_enable & 0x20; in f71882fg_create_fan_sysfs_files()
2154 "Invalid (reserved) pwm settings: 0x%02x, " in f71882fg_create_fan_sysfs_files()
2157 return 0; /* This is a non fatal condition */ in f71882fg_create_fan_sysfs_files()
2160 err = f71882fg_create_sysfs_files(pdev, &fxxxx_fan_attr[idx][0], in f71882fg_create_fan_sysfs_files()
2161 ARRAY_SIZE(fxxxx_fan_attr[0])); in f71882fg_create_fan_sysfs_files()
2187 if ((data->pwm_auto_point_mapping[idx] & 0x80) || in f71882fg_create_fan_sysfs_files()
2188 (data->pwm_auto_point_mapping[idx] & 3) == 0) { in f71882fg_create_fan_sysfs_files()
2193 return 0; /* This is a non fatal condition */ in f71882fg_create_fan_sysfs_files()
2203 &f71862fg_auto_pwm_attr[idx][0], in f71882fg_create_fan_sysfs_files()
2204 ARRAY_SIZE(f71862fg_auto_pwm_attr[0])); in f71882fg_create_fan_sysfs_files()
2209 &f71869_auto_pwm_attr[idx][0], in f71882fg_create_fan_sysfs_files()
2210 ARRAY_SIZE(f71869_auto_pwm_attr[0])); in f71882fg_create_fan_sysfs_files()
2214 &f8000_auto_pwm_attr[idx][0], in f71882fg_create_fan_sysfs_files()
2215 ARRAY_SIZE(f8000_auto_pwm_attr[0])); in f71882fg_create_fan_sysfs_files()
2219 &fxxxx_auto_pwm_attr[idx][0], in f71882fg_create_fan_sysfs_files()
2220 ARRAY_SIZE(fxxxx_auto_pwm_attr[0])); in f71882fg_create_fan_sysfs_files()
2239 if (start_reg & 0x01) { in f71882fg_remove()
2242 if (data->temp_config & 0x10) in f71882fg_remove()
2263 &fxxxx_temp_attr[0][0], in f71882fg_remove()
2264 ARRAY_SIZE(fxxxx_temp_attr[0]) * nr_temps); in f71882fg_remove()
2269 &f81866_temp_beep_attr[0][0], in f71882fg_remove()
2270 ARRAY_SIZE(f81866_temp_beep_attr[0]) in f71882fg_remove()
2274 &fxxxx_temp_beep_attr[0][0], in f71882fg_remove()
2275 ARRAY_SIZE(fxxxx_temp_beep_attr[0]) in f71882fg_remove()
2279 for (i = 0; i < F71882FG_MAX_INS; i++) { in f71882fg_remove()
2292 if (start_reg & 0x02) { in f71882fg_remove()
2293 f71882fg_remove_sysfs_files(pdev, &fxxxx_fan_attr[0][0], in f71882fg_remove()
2294 ARRAY_SIZE(fxxxx_fan_attr[0]) * nr_fans); in f71882fg_remove()
2304 &fxxxx_auto_pwm_attr[0][0], in f71882fg_remove()
2305 ARRAY_SIZE(fxxxx_auto_pwm_attr[0]) * nr_fans); in f71882fg_remove()
2312 &f71862fg_auto_pwm_attr[0][0], in f71882fg_remove()
2313 ARRAY_SIZE(f71862fg_auto_pwm_attr[0]) * in f71882fg_remove()
2319 &f71869_auto_pwm_attr[0][0], in f71882fg_remove()
2320 ARRAY_SIZE(f71869_auto_pwm_attr[0]) * nr_fans); in f71882fg_remove()
2327 &f8000_auto_pwm_attr[0][0], in f71882fg_remove()
2328 ARRAY_SIZE(f8000_auto_pwm_attr[0]) * nr_fans); in f71882fg_remove()
2332 &fxxxx_auto_pwm_attr[0][0], in f71882fg_remove()
2333 ARRAY_SIZE(fxxxx_auto_pwm_attr[0]) * nr_fans); in f71882fg_remove()
2353 data->addr = platform_get_resource(pdev, IORESOURCE_IO, 0)->start; in f71882fg_probe()
2357 data->type == f81866a) ? 0 : 1; in f71882fg_probe()
2362 if (start_reg & 0x04) { in f71882fg_probe()
2366 if (!(start_reg & 0x03)) { in f71882fg_probe()
2376 if (start_reg & 0x01) { in f71882fg_probe()
2381 if (data->temp_config & 0x10) in f71882fg_probe()
2406 &fxxxx_temp_attr[0][0], in f71882fg_probe()
2407 ARRAY_SIZE(fxxxx_temp_attr[0]) * nr_temps); in f71882fg_probe()
2414 size = ARRAY_SIZE(f81866_temp_beep_attr[0]); in f71882fg_probe()
2416 &f81866_temp_beep_attr[0][0], in f71882fg_probe()
2420 size = ARRAY_SIZE(fxxxx_temp_beep_attr[0]); in f71882fg_probe()
2422 &fxxxx_temp_beep_attr[0][0], in f71882fg_probe()
2429 for (i = 0; i < F71882FG_MAX_INS; i++) { in f71882fg_probe()
2446 if (start_reg & 0x02) { in f71882fg_probe()
2472 for (i = 0; i < nr_fans; i++) { in f71882fg_probe()
2504 return 0; in f71882fg_probe()
2587 if (!(superio_inb(sioaddr, SIO_REG_ENABLE) & 0x01)) { in f71882fg_find()
2594 if (address == 0) { in f71882fg_find()
2648 return 0; in f71882fg_device_add()
2670 memset(&sio_data, 0, sizeof(sio_data)); in f71882fg_init()
2672 address = f71882fg_find(0x2e, &sio_data); in f71882fg_init()
2673 if (address < 0) in f71882fg_init()
2674 address = f71882fg_find(0x4e, &sio_data); in f71882fg_init()
2675 if (address < 0) in f71882fg_init()
2686 return 0; in f71882fg_init()