Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sch5627.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  sch5627_data
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRVNAME   "sch5627"
 
#define DEVNAME   DRVNAME /* We only support one model */
 
#define SCH5627_HWMON_ID   0xa5
 
#define SCH5627_COMPANY_ID   0x5c
 
#define SCH5627_PRIMARY_ID   0xa0
 
#define SCH5627_REG_BUILD_CODE   0x39
 
#define SCH5627_REG_BUILD_ID   0x3a
 
#define SCH5627_REG_HWMON_ID   0x3c
 
#define SCH5627_REG_HWMON_REV   0x3d
 
#define SCH5627_REG_COMPANY_ID   0x3e
 
#define SCH5627_REG_PRIMARY_ID   0x3f
 
#define SCH5627_REG_CTRL   0x40
 
#define SCH5627_NO_TEMPS   8
 
#define SCH5627_NO_FANS   4
 
#define SCH5627_NO_IN   5
 

Functions

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

Macro Definition Documentation

#define DEVNAME   DRVNAME /* We only support one model */

Definition at line 34 of file sch5627.c.

#define DRVNAME   "sch5627"

Definition at line 33 of file sch5627.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file sch5627.c.

#define SCH5627_COMPANY_ID   0x5c

Definition at line 37 of file sch5627.c.

#define SCH5627_HWMON_ID   0xa5

Definition at line 36 of file sch5627.c.

#define SCH5627_NO_FANS   4

Definition at line 49 of file sch5627.c.

#define SCH5627_NO_IN   5

Definition at line 50 of file sch5627.c.

#define SCH5627_NO_TEMPS   8

Definition at line 48 of file sch5627.c.

#define SCH5627_PRIMARY_ID   0xa0

Definition at line 38 of file sch5627.c.

#define SCH5627_REG_BUILD_CODE   0x39

Definition at line 40 of file sch5627.c.

#define SCH5627_REG_BUILD_ID   0x3a

Definition at line 41 of file sch5627.c.

#define SCH5627_REG_COMPANY_ID   0x3e

Definition at line 44 of file sch5627.c.

#define SCH5627_REG_CTRL   0x40

Definition at line 46 of file sch5627.c.

#define SCH5627_REG_HWMON_ID   0x3c

Definition at line 42 of file sch5627.c.

#define SCH5627_REG_HWMON_REV   0x3d

Definition at line 43 of file sch5627.c.

#define SCH5627_REG_PRIMARY_ID   0x3f

Definition at line 45 of file sch5627.c.

Function Documentation

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