|
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/err.h>#include <linux/mutex.h>#include <linux/sysfs.h>#include <linux/ioport.h>#include <linux/acpi.h>#include <linux/io.h>Go to the source code of this file.
Data Structures | |
| struct | pc87427_data |
| struct | pc87427_sio_data |
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | DRVNAME "pc87427" |
| #define | SIOREG_LDSEL 0x07 /* Logical device select */ |
| #define | SIOREG_DEVID 0x20 /* Device ID */ |
| #define | SIOREG_CF2 0x22 /* Configuration 2 */ |
| #define | SIOREG_CF3 0x23 /* Configuration 3 */ |
| #define | SIOREG_CF4 0x24 /* Configuration 4 */ |
| #define | SIOREG_CF5 0x25 /* Configuration 5 */ |
| #define | SIOREG_CFB 0x2B /* Configuration B */ |
| #define | SIOREG_CFC 0x2C /* Configuration C */ |
| #define | SIOREG_CFD 0x2D /* Configuration D */ |
| #define | SIOREG_ACT 0x30 /* Device activation */ |
| #define | SIOREG_MAP 0x50 /* I/O or memory mapping */ |
| #define | SIOREG_IOBASE 0x60 /* I/O base address */ |
| #define | LD_FAN 0 |
| #define | LD_IN 1 |
| #define | LD_TEMP 1 |
| #define | REGION_LENGTH 32 |
| #define | PC87427_REG_BANK 0x0f |
| #define | BANK_FM(nr) (nr) |
| #define | BANK_FT(nr) (0x08 + (nr)) |
| #define | BANK_FC(nr) (0x10 + (nr) * 2) |
| #define | BANK_TM(nr) (nr) |
| #define | BANK_VM(nr) (0x08 + (nr)) |
| #define | PC87427_REG_FAN 0x12 |
| #define | PC87427_REG_FAN_MIN 0x14 |
| #define | PC87427_REG_FAN_STATUS 0x10 |
| #define | FAN_STATUS_STALL (1 << 3) |
| #define | FAN_STATUS_LOSPD (1 << 1) |
| #define | FAN_STATUS_MONEN (1 << 0) |
| #define | PC87427_REG_PWM_ENABLE 0x10 |
| #define | PC87427_REG_PWM_DUTY 0x12 |
| #define | PWM_ENABLE_MODE_MASK (7 << 4) |
| #define | PWM_ENABLE_CTLEN (1 << 0) |
| #define | PWM_MODE_MANUAL (0 << 4) |
| #define | PWM_MODE_AUTO (1 << 4) |
| #define | PWM_MODE_OFF (2 << 4) |
| #define | PWM_MODE_ON (7 << 4) |
| #define | PC87427_REG_TEMP_STATUS 0x10 |
| #define | PC87427_REG_TEMP 0x14 |
| #define | PC87427_REG_TEMP_MAX 0x18 |
| #define | PC87427_REG_TEMP_MIN 0x19 |
| #define | PC87427_REG_TEMP_CRIT 0x1a |
| #define | PC87427_REG_TEMP_TYPE 0x1d |
| #define | TEMP_STATUS_CHANEN (1 << 0) |
| #define | TEMP_STATUS_LOWFLG (1 << 1) |
| #define | TEMP_STATUS_HIGHFLG (1 << 2) |
| #define | TEMP_STATUS_CRITFLG (1 << 3) |
| #define | TEMP_STATUS_SENSERR (1 << 5) |
| #define | TEMP_TYPE_MASK (3 << 5) |
| #define | TEMP_TYPE_THERMISTOR (1 << 5) |
| #define | TEMP_TYPE_REMOTE_DIODE (2 << 5) |
| #define | TEMP_TYPE_LOCAL_DIODE (3 << 5) |
Functions | |
| module_param (force_id, ushort, 0) | |
| MODULE_PARM_DESC (force_id,"Override the detected device ID") | |
| MODULE_AUTHOR ("Jean Delvare <[email protected]>") | |
| MODULE_DESCRIPTION ("PC87427 hardware monitoring driver") | |
| MODULE_LICENSE ("GPL") | |
| module_init (pc87427_init) | |
| module_exit (pc87427_exit) | |
| MODULE_AUTHOR | ( | "Jean Delvare <[email protected]>" | ) |
| module_exit | ( | pc87427_exit | ) |
| module_init | ( | pc87427_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | force_id | , |
| ushort | , | ||
| 0 | |||
| ) |
1.8.2