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

Go to the source code of this file.

Macros

#define RSECCNT   0x00 /* Second Counter */
 
#define RMINCNT   0x01 /* Minute Counter */
 
#define RHRCNT   0x02 /* Hour Counter */
 
#define RWKCNT   0x03 /* Week Counter */
 
#define RDAYCNT   0x04 /* Day Counter */
 
#define RMONCNT   0x05 /* Month Counter */
 
#define RYRCNT   0x06 /* Year Counter */
 
#define R100CNT   0x07 /* Y100 Counter */
 
#define RMINAR   0x08 /* Minute Alarm */
 
#define RHRAR   0x09 /* Hour Alarm */
 
#define RWKAR   0x0a /* Week/Day Alarm */
 
#define RTIMCNT   0x0c /* Interval Timer */
 
#define REXT   0x0d /* Extension Register */
 
#define RFLAG   0x0e /* RTC Flag Register */
 
#define RCR   0x0f /* RTC Control Register */
 

Functions

 module_spi_driver (r9701_driver)
 
 MODULE_DESCRIPTION ("r9701 spi RTC driver")
 
 MODULE_AUTHOR ("Magnus Damm <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("spi:rtc-r9701")
 

Macro Definition Documentation

#define R100CNT   0x07 /* Y100 Counter */

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

#define RCR   0x0f /* RTC Control Register */

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

#define RDAYCNT   0x04 /* Day Counter */

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

#define REXT   0x0d /* Extension Register */

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

#define RFLAG   0x0e /* RTC Flag Register */

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

#define RHRAR   0x09 /* Hour Alarm */

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

#define RHRCNT   0x02 /* Hour Counter */

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

#define RMINAR   0x08 /* Minute Alarm */

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

#define RMINCNT   0x01 /* Minute Counter */

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

#define RMONCNT   0x05 /* Month Counter */

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

#define RSECCNT   0x00 /* Second Counter */

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

#define RTIMCNT   0x0c /* Interval Timer */

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

#define RWKAR   0x0a /* Week/Day Alarm */

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

#define RWKCNT   0x03 /* Week Counter */

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

#define RYRCNT   0x06 /* Year Counter */

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

Function Documentation

MODULE_ALIAS ( "spi:rtc-r9701"  )
MODULE_AUTHOR ( "Magnus Damm <[email protected]>"  )
MODULE_DESCRIPTION ( "r9701 spi RTC driver )
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( r9701_driver  )