Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ds1302.c File Reference
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/miscdevice.h>
#include <linux/delay.h>
#include <linux/bcd.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <asm/rtc.h>

Go to the source code of this file.

Macros

#define RTC_MAJOR_NR   121 /* local major, change later */
 
#define MAGIC_PATTERN   0x42
 

Functions

unsigned char ds1302_readreg (int reg)
 
void ds1302_writereg (int reg, unsigned char val)
 
void get_rtc_time (struct rtc_time *rtc_tm)
 
int get_rtc_status (char *buf)
 
int __init ds1302_init (void)
 
 module_init (ds1302_register)
 

Macro Definition Documentation

#define MAGIC_PATTERN   0x42

Definition at line 296 of file ds1302.c.

#define RTC_MAJOR_NR   121 /* local major, change later */

! ! FILE NAME : ds1302.c ! ! DESCRIPTION: Implements an interface for the DS1302 RTC ! ! Functions exported: ds1302_readreg, ds1302_writereg, ds1302_init, get_rtc_status ! ! ------------------------------------------------------------------------— ! ! (C) Copyright 1999, 2000, 2001 Axis Communications AB, LUND, SWEDEN ! !

Definition at line 32 of file ds1302.c.

Function Documentation

int __init ds1302_init ( void  )

Definition at line 338 of file ds1302.c.

unsigned char ds1302_readreg ( int  reg)

Definition at line 99 of file ds1302.c.

void ds1302_writereg ( int  reg,
unsigned char  val 
)

Definition at line 111 of file ds1302.c.

int get_rtc_status ( char buf)

Definition at line 262 of file ds1302.c.

void get_rtc_time ( struct rtc_time rtc_tm)

Definition at line 119 of file ds1302.c.

module_init ( ds1302_register  )