Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/ioport.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/init.h>
#include <linux/mutex.h>
#include <linux/sysfs.h>
#include <linux/acpi.h>
#include <linux/io.h>
Go to the source code of this file.
Data Structures | |
struct | smsc47m1_data |
struct | smsc47m1_sio_data |
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | DRVNAME "smsc47m1" |
#define | REG 0x2e /* The register to read/write */ |
#define | VAL 0x2f /* The value to read/write */ |
#define | superio_select() superio_outb(0x07, 0x0A) |
#define | SUPERIO_REG_ACT 0x30 |
#define | SUPERIO_REG_BASE 0x60 |
#define | SUPERIO_REG_DEVID 0x20 |
#define | SUPERIO_REG_DEVREV 0x21 |
#define | SMSC_EXTENT 0x80 |
#define | SMSC47M1_REG_ALARM 0x04 |
#define | SMSC47M1_REG_TPIN(nr) (0x34 - (nr)) |
#define | SMSC47M1_REG_PPIN(nr) (0x36 - (nr)) |
#define | SMSC47M1_REG_FANDIV 0x58 |
#define | SMSC47M2_REG_ALARM6 0x09 |
#define | SMSC47M2_REG_TPIN1 0x38 |
#define | SMSC47M2_REG_TPIN2 0x37 |
#define | SMSC47M2_REG_TPIN3 0x2d |
#define | SMSC47M2_REG_PPIN3 0x2c |
#define | SMSC47M2_REG_FANDIV3 0x6a |
#define | MIN_FROM_REG(reg, div) |
#define | FAN_FROM_REG(reg, div, preload) |
#define | DIV_FROM_REG(reg) (1 << (reg)) |
#define | PWM_FROM_REG(reg) (((reg) & 0x7E) << 1) |
#define | PWM_EN_FROM_REG(reg) ((~(reg)) & 0x01) |
#define | PWM_TO_REG(reg) (((reg) >> 1) & 0x7E) |
#define | fan_present(offset) |
#define | CHECK 1 |
#define | REQUEST 2 |
Functions | |
module_param (force_id, ushort, 0) | |
MODULE_PARM_DESC (force_id,"Override the detected device ID") | |
fan_present (1) | |
fan_present (2) | |
fan_present (3) | |
MODULE_AUTHOR ("Mark D. Studebaker <[email protected]>") | |
MODULE_DESCRIPTION ("SMSC LPC47M1xx fan sensors driver") | |
MODULE_LICENSE ("GPL") | |
module_init (sm_smsc47m1_init) | |
module_exit (sm_smsc47m1_exit) | |
#define CHECK 1 |
Definition at line 585 of file smsc47m1.c.
Definition at line 119 of file smsc47m1.c.
#define DRVNAME "smsc47m1" |
Definition at line 51 of file smsc47m1.c.
#define fan_present | ( | offset | ) |
Definition at line 389 of file smsc47m1.c.
Definition at line 114 of file smsc47m1.c.
Definition at line 29 of file smsc47m1.c.
Definition at line 121 of file smsc47m1.c.
Definition at line 120 of file smsc47m1.c.
Definition at line 122 of file smsc47m1.c.
#define REG 0x2e /* The register to read/write */ |
Definition at line 56 of file smsc47m1.c.
#define REQUEST 2 |
Definition at line 586 of file smsc47m1.c.
#define SMSC47M1_REG_ALARM 0x04 |
Definition at line 98 of file smsc47m1.c.
#define SMSC47M1_REG_FANDIV 0x58 |
Definition at line 101 of file smsc47m1.c.
#define SMSC47M1_REG_PPIN | ( | nr | ) | (0x36 - (nr)) |
Definition at line 100 of file smsc47m1.c.
#define SMSC47M1_REG_TPIN | ( | nr | ) | (0x34 - (nr)) |
Definition at line 99 of file smsc47m1.c.
#define SMSC47M2_REG_ALARM6 0x09 |
Definition at line 107 of file smsc47m1.c.
#define SMSC47M2_REG_FANDIV3 0x6a |
Definition at line 112 of file smsc47m1.c.
#define SMSC47M2_REG_PPIN3 0x2c |
Definition at line 111 of file smsc47m1.c.
#define SMSC47M2_REG_TPIN1 0x38 |
Definition at line 108 of file smsc47m1.c.
#define SMSC47M2_REG_TPIN2 0x37 |
Definition at line 109 of file smsc47m1.c.
#define SMSC47M2_REG_TPIN3 0x2d |
Definition at line 110 of file smsc47m1.c.
#define SMSC_EXTENT 0x80 |
Definition at line 95 of file smsc47m1.c.
#define SUPERIO_REG_ACT 0x30 |
Definition at line 88 of file smsc47m1.c.
#define SUPERIO_REG_BASE 0x60 |
Definition at line 89 of file smsc47m1.c.
#define SUPERIO_REG_DEVID 0x20 |
Definition at line 90 of file smsc47m1.c.
#define SUPERIO_REG_DEVREV 0x21 |
Definition at line 91 of file smsc47m1.c.
#define superio_select | ( | ) | superio_outb(0x07, 0x0A) |
Definition at line 74 of file smsc47m1.c.
#define VAL 0x2f /* The value to read/write */ |
Definition at line 57 of file smsc47m1.c.
enum chips |
Definition at line 52 of file smsc47m1.c.
fan_present | ( | 1 | ) |
fan_present | ( | 2 | ) |
fan_present | ( | 3 | ) |
MODULE_AUTHOR | ( | "Mark D. Studebaker <[email protected]>" | ) |
module_exit | ( | sm_smsc47m1_exit | ) |
module_init | ( | sm_smsc47m1_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | force_id | , |
ushort | , | ||
0 | |||
) |