Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtc-stk17ta8.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.1"
 
#define RTC_REG_SIZE   0x20000
 
#define RTC_OFFSET   0x1fff0
 
#define RTC_FLAGS   (RTC_OFFSET + 0)
 
#define RTC_CENTURY   (RTC_OFFSET + 1)
 
#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_CALIBRATION   (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_SECONDS_MASK   0x7f
 
#define RTC_DAY_MASK   0x07
 
#define RTC_CAL_MASK   0x3f
 
#define RTC_STOP   0x80
 
#define RTC_FLAGS_AF   0x40
 
#define RTC_FLAGS_PF   0x20
 
#define RTC_WRITE   0x02
 
#define RTC_READ   0x01
 
#define RTC_INTS_AIE   0x40
 

Functions

 MODULE_ALIAS ("platform:stk17ta8")
 
 module_platform_driver (stk17ta8_rtc_driver)
 
 MODULE_AUTHOR ("Thomas Hommel <[email protected]>")
 
 MODULE_DESCRIPTION ("Simtek STK17TA8 RTC driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 

Macro Definition Documentation

#define DRV_VERSION   "0.1"

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

#define RTC_CAL_MASK   0x3f

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

#define RTC_CALIBRATION   (RTC_OFFSET + 8)

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

#define RTC_CENTURY   (RTC_OFFSET + 1)

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

#define RTC_DATE   (RTC_OFFSET + 13)

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

#define RTC_DATE_ALARM   (RTC_OFFSET + 5)

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

#define RTC_DAY   (RTC_OFFSET + 12)

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

#define RTC_DAY_MASK   0x07

Definition at line 49 of file rtc-stk17ta8.c.

#define RTC_FLAGS   (RTC_OFFSET + 0)

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

#define RTC_FLAGS_AF   0x40

Definition at line 56 of file rtc-stk17ta8.c.

#define RTC_FLAGS_PF   0x20

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

#define RTC_HOURS   (RTC_OFFSET + 11)

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

#define RTC_HOURS_ALARM   (RTC_OFFSET + 4)

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

#define RTC_INTERRUPTS   (RTC_OFFSET + 6)

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

#define RTC_INTS_AIE   0x40

Definition at line 62 of file rtc-stk17ta8.c.

#define RTC_MINUTES   (RTC_OFFSET + 10)

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

#define RTC_MINUTES_ALARM   (RTC_OFFSET + 3)

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

#define RTC_MONTH   (RTC_OFFSET + 14)

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

#define RTC_OFFSET   0x1fff0

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

#define RTC_READ   0x01

Definition at line 59 of file rtc-stk17ta8.c.

#define RTC_REG_SIZE   0x20000

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

#define RTC_SECONDS   (RTC_OFFSET + 9)

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

#define RTC_SECONDS_ALARM   (RTC_OFFSET + 2)

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

#define RTC_SECONDS_MASK   0x7f

Definition at line 48 of file rtc-stk17ta8.c.

#define RTC_STOP   0x80

Definition at line 53 of file rtc-stk17ta8.c.

#define RTC_WATCHDOG   (RTC_OFFSET + 7)

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

#define RTC_WRITE   0x02

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

#define RTC_YEAR   (RTC_OFFSET + 15)

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

Function Documentation

MODULE_ALIAS ( "platform:stk17ta8"  )
MODULE_AUTHOR ( "Thomas Hommel <[email protected]>"  )
MODULE_DESCRIPTION ( "Simtek STK17TA8 RTC driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( stk17ta8_rtc_driver  )
MODULE_VERSION ( DRV_VERSION  )