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

Go to the source code of this file.

Data Structures

struct  m48t59_private
 

Macros

#define NO_IRQ   (-1)
 
#define M48T59_READ(reg)   (pdata->read_byte(dev, pdata->offset + reg))
 
#define M48T59_WRITE(val, reg)   (pdata->write_byte(dev, pdata->offset + reg, val))
 
#define M48T59_SET_BITS(mask, reg)   M48T59_WRITE((M48T59_READ(reg) | (mask)), (reg))
 
#define M48T59_CLEAR_BITS(mask, reg)   M48T59_WRITE((M48T59_READ(reg) & ~(mask)), (reg))
 

Functions

 MODULE_ALIAS ("platform:rtc-m48t59")
 
 module_platform_driver (m48t59_rtc_driver)
 
 MODULE_AUTHOR ("Mark Zhan <[email protected]>")
 
 MODULE_DESCRIPTION ("M48T59/M48T02/M48T08 RTC driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define M48T59_CLEAR_BITS (   mask,
  reg 
)    M48T59_WRITE((M48T59_READ(reg) & ~(mask)), (reg))

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

#define M48T59_READ (   reg)    (pdata->read_byte(dev, pdata->offset + reg))

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

#define M48T59_SET_BITS (   mask,
  reg 
)    M48T59_WRITE((M48T59_READ(reg) | (mask)), (reg))

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

#define M48T59_WRITE (   val,
  reg 
)    (pdata->write_byte(dev, pdata->offset + reg, val))

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

#define NO_IRQ   (-1)

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

Function Documentation

MODULE_ALIAS ( "platform:rtc-m48t59"  )
MODULE_AUTHOR ( "Mark Zhan <[email protected]>"  )
MODULE_DESCRIPTION ( "M48T59/M48T02/M48T08 RTC driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( m48t59_rtc_driver  )