Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtc-ds1553.c File Reference
#include <linux/bcd.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/gfp.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
#include <linux/interrupt.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  rtc_plat_data
 

Macros

#define DRV_VERSION   "0.3"
 
#define RTC_REG_SIZE   0x2000
 
#define RTC_OFFSET   0x1ff0
 
#define RTC_FLAGS   (RTC_OFFSET + 0)
 
#define RTC_SECONDS_ALARM   (RTC_OFFSET + 2)
 
#define RTC_MINUTES_ALARM   (RTC_OFFSET + 3)
 
#define RTC_HOURS_ALARM   (RTC_OFFSET + 4)
 
#define RTC_DATE_ALARM   (RTC_OFFSET + 5)
 
#define RTC_INTERRUPTS   (RTC_OFFSET + 6)
 
#define RTC_WATCHDOG   (RTC_OFFSET + 7)
 
#define RTC_CONTROL   (RTC_OFFSET + 8)
 
#define RTC_CENTURY   (RTC_OFFSET + 8)
 
#define RTC_SECONDS   (RTC_OFFSET + 9)
 
#define RTC_MINUTES   (RTC_OFFSET + 10)
 
#define RTC_HOURS   (RTC_OFFSET + 11)
 
#define RTC_DAY   (RTC_OFFSET + 12)
 
#define RTC_DATE   (RTC_OFFSET + 13)
 
#define RTC_MONTH   (RTC_OFFSET + 14)
 
#define RTC_YEAR   (RTC_OFFSET + 15)
 
#define RTC_CENTURY_MASK   0x3f
 
#define RTC_SECONDS_MASK   0x7f
 
#define RTC_DAY_MASK   0x07
 
#define RTC_WRITE   0x80
 
#define RTC_READ   0x40
 
#define RTC_STOP   0x80
 
#define RTC_FLAGS_AF   0x40
 
#define RTC_FLAGS_BLF   0x10
 
#define RTC_INTS_AE   0x80
 

Functions

 MODULE_ALIAS ("platform:rtc-ds1553")
 
 module_platform_driver (ds1553_rtc_driver)
 
 MODULE_AUTHOR ("Atsushi Nemoto <anemo@mba.ocn.ne.jp>")
 
 MODULE_DESCRIPTION ("Dallas DS1553 RTC driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 

Macro Definition Documentation

#define DRV_VERSION   "0.3"

Definition at line 23 of file rtc-ds1553.c.

#define RTC_CENTURY   (RTC_OFFSET + 8)

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

#define RTC_CENTURY_MASK   0x3f

Definition at line 45 of file rtc-ds1553.c.

#define RTC_CONTROL   (RTC_OFFSET + 8)

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

#define RTC_DATE   (RTC_OFFSET + 13)

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

#define RTC_DATE_ALARM   (RTC_OFFSET + 5)

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

#define RTC_DAY   (RTC_OFFSET + 12)

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

#define RTC_DAY_MASK   0x07

Definition at line 47 of file rtc-ds1553.c.

#define RTC_FLAGS   (RTC_OFFSET + 0)

Definition at line 28 of file rtc-ds1553.c.

#define RTC_FLAGS_AF   0x40

Definition at line 57 of file rtc-ds1553.c.

#define RTC_FLAGS_BLF   0x10

Definition at line 58 of file rtc-ds1553.c.

#define RTC_HOURS   (RTC_OFFSET + 11)

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

#define RTC_HOURS_ALARM   (RTC_OFFSET + 4)

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

#define RTC_INTERRUPTS   (RTC_OFFSET + 6)

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

#define RTC_INTS_AE   0x80

Definition at line 61 of file rtc-ds1553.c.

#define RTC_MINUTES   (RTC_OFFSET + 10)

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

#define RTC_MINUTES_ALARM   (RTC_OFFSET + 3)

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

#define RTC_MONTH   (RTC_OFFSET + 14)

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

#define RTC_OFFSET   0x1ff0

Definition at line 26 of file rtc-ds1553.c.

#define RTC_READ   0x40

Definition at line 51 of file rtc-ds1553.c.

#define RTC_REG_SIZE   0x2000

Definition at line 25 of file rtc-ds1553.c.

#define RTC_SECONDS   (RTC_OFFSET + 9)

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

#define RTC_SECONDS_ALARM   (RTC_OFFSET + 2)

Definition at line 29 of file rtc-ds1553.c.

#define RTC_SECONDS_MASK   0x7f

Definition at line 46 of file rtc-ds1553.c.

#define RTC_STOP   0x80

Definition at line 54 of file rtc-ds1553.c.

#define RTC_WATCHDOG   (RTC_OFFSET + 7)

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

#define RTC_WRITE   0x80

Definition at line 50 of file rtc-ds1553.c.

#define RTC_YEAR   (RTC_OFFSET + 15)

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

Function Documentation

MODULE_ALIAS ( "platform:rtc-ds1553"  )
MODULE_AUTHOR ( "Atsushi Nemoto <anemo@mba.ocn.ne.jp>"  )
MODULE_DESCRIPTION ( "Dallas DS1553 RTC driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( ds1553_rtc_driver  )
MODULE_VERSION ( DRV_VERSION  )