Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rtc-m48t86.c File Reference
#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/m48t86.h>
#include <linux/bcd.h>

Go to the source code of this file.

Macros

#define M48T86_REG_SEC   0x00
 
#define M48T86_REG_SECALRM   0x01
 
#define M48T86_REG_MIN   0x02
 
#define M48T86_REG_MINALRM   0x03
 
#define M48T86_REG_HOUR   0x04
 
#define M48T86_REG_HOURALRM   0x05
 
#define M48T86_REG_DOW   0x06 /* 1 = sunday */
 
#define M48T86_REG_DOM   0x07
 
#define M48T86_REG_MONTH   0x08 /* 1 - 12 */
 
#define M48T86_REG_YEAR   0x09 /* 0 - 99 */
 
#define M48T86_REG_A   0x0A
 
#define M48T86_REG_B   0x0B
 
#define M48T86_REG_C   0x0C
 
#define M48T86_REG_D   0x0D
 
#define M48T86_REG_B_H24   (1 << 1)
 
#define M48T86_REG_B_DM   (1 << 2)
 
#define M48T86_REG_B_SET   (1 << 7)
 
#define M48T86_REG_D_VRT   (1 << 7)
 
#define DRV_VERSION   "0.1"
 

Functions

 module_platform_driver (m48t86_rtc_platform_driver)
 
 MODULE_AUTHOR ("Alessandro Zummo <[email protected]>")
 
 MODULE_DESCRIPTION ("M48T86 RTC driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_ALIAS ("platform:rtc-m48t86")
 

Macro Definition Documentation

#define DRV_VERSION   "0.1"

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

#define M48T86_REG_A   0x0A

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

#define M48T86_REG_B   0x0B

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

#define M48T86_REG_B_DM   (1 << 2)

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

#define M48T86_REG_B_H24   (1 << 1)

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

#define M48T86_REG_B_SET   (1 << 7)

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

#define M48T86_REG_C   0x0C

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

#define M48T86_REG_D   0x0D

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

#define M48T86_REG_D_VRT   (1 << 7)

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

#define M48T86_REG_DOM   0x07

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

#define M48T86_REG_DOW   0x06 /* 1 = sunday */

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

#define M48T86_REG_HOUR   0x04

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

#define M48T86_REG_HOURALRM   0x05

Definition at line 27 of file rtc-m48t86.c.

#define M48T86_REG_MIN   0x02

Definition at line 24 of file rtc-m48t86.c.

#define M48T86_REG_MINALRM   0x03

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

#define M48T86_REG_MONTH   0x08 /* 1 - 12 */

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

#define M48T86_REG_SEC   0x00

Definition at line 22 of file rtc-m48t86.c.

#define M48T86_REG_SECALRM   0x01

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

#define M48T86_REG_YEAR   0x09 /* 0 - 99 */

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

Function Documentation

MODULE_ALIAS ( "platform:rtc-m48t86"  )
MODULE_AUTHOR ( "Alessandro Zummo <[email protected]>"  )
MODULE_DESCRIPTION ( "M48T86 RTC driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( m48t86_rtc_platform_driver  )
MODULE_VERSION ( DRV_VERSION  )