Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 1998, 1999, 2003 Ralf Baechle
0003  *
0004  * This file is subject to the terms and conditions of the GNU General Public
0005  * License.  See the file "COPYING" in the main directory of this archive
0006  * for more details.
0007  */
0008 #ifndef __LINUX_DS1286_H
0009 #define __LINUX_DS1286_H
0010 
0011 /**********************************************************************
0012  * register summary
0013  **********************************************************************/
0014 #define RTC_HUNDREDTH_SECOND    0
0015 #define RTC_SECONDS     1
0016 #define RTC_MINUTES     2
0017 #define RTC_MINUTES_ALARM   3
0018 #define RTC_HOURS       4
0019 #define RTC_HOURS_ALARM     5
0020 #define RTC_DAY         6
0021 #define RTC_DAY_ALARM       7
0022 #define RTC_DATE        8
0023 #define RTC_MONTH       9
0024 #define RTC_YEAR        10
0025 #define RTC_CMD         11
0026 #define RTC_WHSEC       12
0027 #define RTC_WSEC        13
0028 #define RTC_UNUSED      14
0029 
0030 /* RTC_*_alarm is always true if 2 MSBs are set */
0031 # define RTC_ALARM_DONT_CARE    0xC0
0032 
0033 
0034 /*
0035  * Bits in the month register
0036  */
0037 #define RTC_EOSC        0x80
0038 #define RTC_ESQW        0x40
0039 
0040 /*
0041  * Bits in the Command register
0042  */
0043 #define RTC_TDF         0x01
0044 #define RTC_WAF         0x02
0045 #define RTC_TDM         0x04
0046 #define RTC_WAM         0x08
0047 #define RTC_PU_LVL      0x10
0048 #define RTC_IBH_LO      0x20
0049 #define RTC_IPSW        0x40
0050 #define RTC_TE          0x80
0051 
0052 #endif /* __LINUX_DS1286_H */