|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/init.h>#include <linux/slab.h>#include <linux/jiffies.h>#include <linux/platform_device.h>#include <linux/hwmon.h>#include <linux/hwmon-sysfs.h>#include <linux/hwmon-vid.h>#include <linux/err.h>#include <linux/mutex.h>#include <linux/sysfs.h>#include <linux/string.h>#include <linux/dmi.h>#include <linux/acpi.h>#include <linux/io.h>Go to the source code of this file.
Data Structures | |
| struct | it87_sio_data |
| struct | it87_data |
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | DRVNAME "it87" |
| #define | REG 0x2e /* The register to read/write */ |
| #define | DEV 0x07 /* Register: Logical device select */ |
| #define | VAL 0x2f /* The value to read/write */ |
| #define | PME 0x04 /* The device with the fan registers in it */ |
| #define | GPIO 0x07 |
| #define | DEVID 0x20 /* Register: Device ID */ |
| #define | DEVREV 0x22 /* Register: Device Revision */ |
| #define | IT8712F_DEVID 0x8712 |
| #define | IT8705F_DEVID 0x8705 |
| #define | IT8716F_DEVID 0x8716 |
| #define | IT8718F_DEVID 0x8718 |
| #define | IT8720F_DEVID 0x8720 |
| #define | IT8721F_DEVID 0x8721 |
| #define | IT8726F_DEVID 0x8726 |
| #define | IT8728F_DEVID 0x8728 |
| #define | IT8782F_DEVID 0x8782 |
| #define | IT8783E_DEVID 0x8783 |
| #define | IT87_ACT_REG 0x30 |
| #define | IT87_BASE_REG 0x60 |
| #define | IT87_SIO_GPIO1_REG 0x25 |
| #define | IT87_SIO_GPIO3_REG 0x27 |
| #define | IT87_SIO_GPIO5_REG 0x29 |
| #define | IT87_SIO_PINX1_REG 0x2a /* Pin selection */ |
| #define | IT87_SIO_PINX2_REG 0x2c /* Pin selection */ |
| #define | IT87_SIO_SPI_REG 0xef /* SPI function pin select */ |
| #define | IT87_SIO_VID_REG 0xfc /* VID value */ |
| #define | IT87_SIO_BEEP_PIN_REG 0xf6 /* Beep pin mapping */ |
| #define | IT87_EXTENT 8 |
| #define | IT87_EC_EXTENT 2 |
| #define | IT87_EC_OFFSET 5 |
| #define | IT87_ADDR_REG_OFFSET 0 |
| #define | IT87_DATA_REG_OFFSET 1 |
| #define | IT87_REG_CONFIG 0x00 |
| #define | IT87_REG_ALARM1 0x01 |
| #define | IT87_REG_ALARM2 0x02 |
| #define | IT87_REG_ALARM3 0x03 |
| #define | IT87_REG_VID 0x0a |
| #define | IT87_REG_FAN_DIV 0x0b |
| #define | IT87_REG_FAN_16BIT 0x0c |
| #define | IT87_REG_FAN_MAIN_CTRL 0x13 |
| #define | IT87_REG_FAN_CTL 0x14 |
| #define | IT87_REG_PWM(nr) (0x15 + (nr)) |
| #define | IT87_REG_PWM_DUTY(nr) (0x63 + (nr) * 8) |
| #define | IT87_REG_VIN(nr) (0x20 + (nr)) |
| #define | IT87_REG_TEMP(nr) (0x29 + (nr)) |
| #define | IT87_REG_VIN_MAX(nr) (0x30 + (nr) * 2) |
| #define | IT87_REG_VIN_MIN(nr) (0x31 + (nr) * 2) |
| #define | IT87_REG_TEMP_HIGH(nr) (0x40 + (nr) * 2) |
| #define | IT87_REG_TEMP_LOW(nr) (0x41 + (nr) * 2) |
| #define | IT87_REG_VIN_ENABLE 0x50 |
| #define | IT87_REG_TEMP_ENABLE 0x51 |
| #define | IT87_REG_TEMP_EXTRA 0x55 |
| #define | IT87_REG_BEEP_ENABLE 0x5c |
| #define | IT87_REG_CHIPID 0x58 |
| #define | IT87_REG_AUTO_TEMP(nr, i) (0x60 + (nr) * 8 + (i)) |
| #define | IT87_REG_AUTO_PWM(nr, i) (0x65 + (nr) * 8 + (i)) |
| #define | FAN_FROM_REG(val, div) |
| #define | FAN16_FROM_REG(val) |
| #define | TEMP_TO_REG(val) |
| #define | TEMP_FROM_REG(val) ((val) * 1000) |
| #define | DIV_FROM_REG(val) (1 << (val)) |
| #define | show_in_offset(offset) |
| #define | limit_in_offset(offset) |
| #define | show_temp_offset(offset) |
| #define | show_sensor_offset(offset) |
| #define | show_fan_offset(offset) |
| #define | show_pwm_offset(offset) |
| #define | show_fan16_offset(offset) |
| #define FAN16_FROM_REG | ( | val | ) |
| #define limit_in_offset | ( | offset | ) |
| #define PME 0x04 /* The device with the fan registers in it */ |
| #define show_fan_offset | ( | offset | ) |
| #define show_in_offset | ( | offset | ) |
| #define show_sensor_offset | ( | offset | ) |
| #define show_temp_offset | ( | offset | ) |
| #define TEMP_TO_REG | ( | val | ) |
| enum chips |
| limit_in_offset | ( | 0 | ) |
| limit_in_offset | ( | 1 | ) |
| limit_in_offset | ( | 2 | ) |
| limit_in_offset | ( | 3 | ) |
| limit_in_offset | ( | 4 | ) |
| limit_in_offset | ( | 5 | ) |
| limit_in_offset | ( | 6 | ) |
| limit_in_offset | ( | 7 | ) |
| MODULE_AUTHOR | ( | "Chris | Gauthron, |
| ""Jean Delvare< khali @linux-fr.org >" | |||
| ) |
| module_exit | ( | sm_it87_exit | ) |
| module_init | ( | sm_it87_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | force_id | , |
| ushort | , | ||
| 0 | |||
| ) |
| module_param | ( | update_vbat | , |
| bool | , | ||
| 0 | |||
| ) |
| module_param | ( | fix_pwm_polarity | , |
| bool | , | ||
| 0 | |||
| ) |
| show_fan16_offset | ( | 1 | ) |
| show_fan16_offset | ( | 2 | ) |
| show_fan16_offset | ( | 3 | ) |
| show_fan16_offset | ( | 4 | ) |
| show_fan16_offset | ( | 5 | ) |
| show_fan_offset | ( | 1 | ) |
| show_fan_offset | ( | 2 | ) |
| show_fan_offset | ( | 3 | ) |
| show_in_offset | ( | 0 | ) |
Definition at line 220 of file smsc47m192.c.
| show_in_offset | ( | 1 | ) |
| show_in_offset | ( | 2 | ) |
| show_in_offset | ( | 3 | ) |
| show_in_offset | ( | 4 | ) |
| show_in_offset | ( | 5 | ) |
| show_in_offset | ( | 6 | ) |
| show_in_offset | ( | 7 | ) |
| show_in_offset | ( | 8 | ) |
| show_pwm_offset | ( | 1 | ) |
| show_pwm_offset | ( | 2 | ) |
| show_pwm_offset | ( | 3 | ) |
| show_sensor_offset | ( | 1 | ) |
| show_sensor_offset | ( | 2 | ) |
| show_sensor_offset | ( | 3 | ) |
| show_temp_offset | ( | 1 | ) |
| show_temp_offset | ( | 2 | ) |
| show_temp_offset | ( | 3 | ) |
1.8.2