Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
smsc47b397.c File Reference
#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/acpi.h>
#include <linux/io.h>

Go to the source code of this file.

Data Structures

struct  smsc47b397_data
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRVNAME   "smsc47b397"
 
#define REG   0x2e /* The register to read/write */
 
#define VAL   0x2f /* The value to read/write */
 
#define SUPERIO_REG_DEVID   0x20
 
#define SUPERIO_REG_DEVREV   0x21
 
#define SUPERIO_REG_BASE_MSB   0x60
 
#define SUPERIO_REG_BASE_LSB   0x61
 
#define SUPERIO_REG_LD8   0x08
 
#define SMSC_EXTENT   0x02
 
#define SMSC47B397_REG_TEMP(nr)   (smsc47b397_reg_temp[(nr)])
 
#define SMSC47B397_REG_FAN_LSB(nr)   (0x28 + 2 * (nr))
 
#define SMSC47B397_REG_FAN_MSB(nr)   (0x29 + 2 * (nr))
 

Functions

 module_param (force_id, ushort, 0)
 
 MODULE_PARM_DESC (force_id,"Override the detected device ID")
 
 MODULE_AUTHOR ("Mark M. Hoffman <[email protected]>")
 
 MODULE_DESCRIPTION ("SMSC LPC47B397 driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (smsc47b397_init)
 
 module_exit (smsc47b397_exit)
 

Macro Definition Documentation

#define DRVNAME   "smsc47b397"

Definition at line 50 of file smsc47b397.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file smsc47b397.c.

#define REG   0x2e /* The register to read/write */

Definition at line 54 of file smsc47b397.c.

#define SMSC47B397_REG_FAN_LSB (   nr)    (0x28 + 2 * (nr))

Definition at line 98 of file smsc47b397.c.

#define SMSC47B397_REG_FAN_MSB (   nr)    (0x29 + 2 * (nr))

Definition at line 99 of file smsc47b397.c.

#define SMSC47B397_REG_TEMP (   nr)    (smsc47b397_reg_temp[(nr)])

Definition at line 95 of file smsc47b397.c.

#define SMSC_EXTENT   0x02

Definition at line 91 of file smsc47b397.c.

#define SUPERIO_REG_BASE_LSB   0x61

Definition at line 88 of file smsc47b397.c.

#define SUPERIO_REG_BASE_MSB   0x60

Definition at line 87 of file smsc47b397.c.

#define SUPERIO_REG_DEVID   0x20

Definition at line 85 of file smsc47b397.c.

#define SUPERIO_REG_DEVREV   0x21

Definition at line 86 of file smsc47b397.c.

#define SUPERIO_REG_LD8   0x08

Definition at line 89 of file smsc47b397.c.

#define VAL   0x2f /* The value to read/write */

Definition at line 55 of file smsc47b397.c.

Function Documentation

MODULE_AUTHOR ( "Mark M. Hoffman <[email protected]>"  )
MODULE_DESCRIPTION ( "SMSC LPC47B397 driver )
module_exit ( smsc47b397_exit  )
module_init ( smsc47b397_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( force_id  ,
ushort  ,
 
)
MODULE_PARM_DESC ( force_id  ,
"Override the detected device ID  
)