Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtc-ds1374.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/i2c.h>
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <linux/workqueue.h>
#include <linux/slab.h>
#include <linux/pm.h>

Go to the source code of this file.

Data Structures

struct  ds1374
 

Macros

#define DS1374_REG_TOD0   0x00 /* Time of Day */
 
#define DS1374_REG_TOD1   0x01
 
#define DS1374_REG_TOD2   0x02
 
#define DS1374_REG_TOD3   0x03
 
#define DS1374_REG_WDALM0   0x04 /* Watchdog/Alarm */
 
#define DS1374_REG_WDALM1   0x05
 
#define DS1374_REG_WDALM2   0x06
 
#define DS1374_REG_CR   0x07 /* Control */
 
#define DS1374_REG_CR_AIE   0x01 /* Alarm Int. Enable */
 
#define DS1374_REG_CR_WDALM   0x20 /* 1=Watchdog, 0=Alarm */
 
#define DS1374_REG_CR_WACE   0x40 /* WD/Alarm counter enable */
 
#define DS1374_REG_SR   0x08 /* Status */
 
#define DS1374_REG_SR_OSF   0x80 /* Oscillator Stop Flag */
 
#define DS1374_REG_SR_AF   0x01 /* Alarm Flag */
 
#define DS1374_REG_TCR   0x09 /* Trickle Charge */
 
#define DS1374_PM   NULL
 

Functions

 MODULE_DEVICE_TABLE (i2c, ds1374_id)
 
 module_i2c_driver (ds1374_driver)
 
 MODULE_AUTHOR ("Scott Wood <[email protected]>")
 
 MODULE_DESCRIPTION ("Maxim/Dallas DS1374 RTC Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DS1374_PM   NULL

Definition at line 435 of file rtc-ds1374.c.

#define DS1374_REG_CR   0x07 /* Control */

Definition at line 37 of file rtc-ds1374.c.

#define DS1374_REG_CR_AIE   0x01 /* Alarm Int. Enable */

Definition at line 38 of file rtc-ds1374.c.

#define DS1374_REG_CR_WACE   0x40 /* WD/Alarm counter enable */

Definition at line 40 of file rtc-ds1374.c.

#define DS1374_REG_CR_WDALM   0x20 /* 1=Watchdog, 0=Alarm */

Definition at line 39 of file rtc-ds1374.c.

#define DS1374_REG_SR   0x08 /* Status */

Definition at line 41 of file rtc-ds1374.c.

#define DS1374_REG_SR_AF   0x01 /* Alarm Flag */

Definition at line 43 of file rtc-ds1374.c.

#define DS1374_REG_SR_OSF   0x80 /* Oscillator Stop Flag */

Definition at line 42 of file rtc-ds1374.c.

#define DS1374_REG_TCR   0x09 /* Trickle Charge */

Definition at line 44 of file rtc-ds1374.c.

#define DS1374_REG_TOD0   0x00 /* Time of Day */

Definition at line 30 of file rtc-ds1374.c.

#define DS1374_REG_TOD1   0x01

Definition at line 31 of file rtc-ds1374.c.

#define DS1374_REG_TOD2   0x02

Definition at line 32 of file rtc-ds1374.c.

#define DS1374_REG_TOD3   0x03

Definition at line 33 of file rtc-ds1374.c.

#define DS1374_REG_WDALM0   0x04 /* Watchdog/Alarm */

Definition at line 34 of file rtc-ds1374.c.

#define DS1374_REG_WDALM1   0x05

Definition at line 35 of file rtc-ds1374.c.

#define DS1374_REG_WDALM2   0x06

Definition at line 36 of file rtc-ds1374.c.

Function Documentation

MODULE_AUTHOR ( "Scott Wood <[email protected]>"  )
MODULE_DESCRIPTION ( "Maxim/Dallas DS1374 RTC Driver"  )
MODULE_DEVICE_TABLE ( i2c  ,
ds1374_id   
)
module_i2c_driver ( ds1374_driver  )
MODULE_LICENSE ( "GPL"  )