Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sch5636.c File Reference
#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 "sch56xx-common.h"

Go to the source code of this file.

Data Structures

struct  sch5636_data
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRVNAME   "sch5636"
 
#define DEVNAME   "theseus" /* We only support one model for now */
 
#define SCH5636_REG_FUJITSU_ID   0x780
 
#define SCH5636_REG_FUJITSU_REV   0x783
 
#define SCH5636_NO_INS   5
 
#define SCH5636_NO_TEMPS   16
 
#define SCH5636_NO_FANS   8
 
#define SCH5636_REG_TEMP_CTRL(i)   (0x790 + (i))
 
#define SCH5636_TEMP_WORKING   0x01
 
#define SCH5636_TEMP_ALARM   0x02
 
#define SCH5636_TEMP_DEACTIVATED   0x80
 
#define SCH5636_REG_FAN_CTRL(i)   (0x880 + (i))
 
#define SCH5636_FAN_ALARM   0x04
 
#define SCH5636_FAN_NOT_PRESENT   0x08
 
#define SCH5636_FAN_DEACTIVATED   0x80
 

Functions

 module_platform_driver (sch5636_driver)
 
 MODULE_DESCRIPTION ("SMSC SCH5636 Hardware Monitoring Driver")
 
 MODULE_AUTHOR ("Hans de Goede <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DEVNAME   "theseus" /* We only support one model for now */

Definition at line 34 of file sch5636.c.

#define DRVNAME   "sch5636"

Definition at line 33 of file sch5636.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file sch5636.c.

#define SCH5636_FAN_ALARM   0x04

Definition at line 62 of file sch5636.c.

#define SCH5636_FAN_DEACTIVATED   0x80

Definition at line 64 of file sch5636.c.

#define SCH5636_FAN_NOT_PRESENT   0x08

Definition at line 63 of file sch5636.c.

#define SCH5636_NO_FANS   8

Definition at line 41 of file sch5636.c.

#define SCH5636_NO_INS   5

Definition at line 39 of file sch5636.c.

#define SCH5636_NO_TEMPS   16

Definition at line 40 of file sch5636.c.

#define SCH5636_REG_FAN_CTRL (   i)    (0x880 + (i))

Definition at line 60 of file sch5636.c.

#define SCH5636_REG_FUJITSU_ID   0x780

Definition at line 36 of file sch5636.c.

#define SCH5636_REG_FUJITSU_REV   0x783

Definition at line 37 of file sch5636.c.

#define SCH5636_REG_TEMP_CTRL (   i)    (0x790 + (i))

Definition at line 53 of file sch5636.c.

#define SCH5636_TEMP_ALARM   0x02

Definition at line 55 of file sch5636.c.

#define SCH5636_TEMP_DEACTIVATED   0x80

Definition at line 56 of file sch5636.c.

#define SCH5636_TEMP_WORKING   0x01

Definition at line 54 of file sch5636.c.

Function Documentation

MODULE_AUTHOR ( "Hans de Goede <[email protected]>"  )
MODULE_DESCRIPTION ( "SMSC SCH5636 Hardware Monitoring Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( sch5636_driver  )