Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ds1603.h
Go to the documentation of this file.
1 /*
2  * Dallas Semiconductors 1603 RTC driver
3  *
4  * Brian Murphy <[email protected]>
5  *
6  */
7 #ifndef __DS1603_H
8 #define __DS1603_H
9 
10 struct ds_defs {
11  volatile u32 *reg;
12  volatile u32 *data_reg;
19 };
20 
21 extern struct ds_defs *ds1603;
22 
23 void ds1603_set_trimmer(unsigned int);
24 void ds1603_enable(void);
25 void ds1603_disable(void);
26 void ds1603_init(struct ds_defs *);
27 
28 #define TRIMMER_DEFAULT 3
29 #define TRIMMER_DISABLE_RTC 0
30 
31 #endif