diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/ds1286.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/linux/ds1286.h')
-rw-r--r-- | include/linux/ds1286.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/include/linux/ds1286.h b/include/linux/ds1286.h new file mode 100644 index 000000000000..d8989860e4ce --- /dev/null +++ b/include/linux/ds1286.h | |||
@@ -0,0 +1,54 @@ | |||
1 | /* | ||
2 | * Copyright (C) 1998, 1999, 2003 Ralf Baechle | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | */ | ||
8 | #ifndef __LINUX_DS1286_H | ||
9 | #define __LINUX_DS1286_H | ||
10 | |||
11 | #include <asm/ds1286.h> | ||
12 | |||
13 | /********************************************************************** | ||
14 | * register summary | ||
15 | **********************************************************************/ | ||
16 | #define RTC_HUNDREDTH_SECOND 0 | ||
17 | #define RTC_SECONDS 1 | ||
18 | #define RTC_MINUTES 2 | ||
19 | #define RTC_MINUTES_ALARM 3 | ||
20 | #define RTC_HOURS 4 | ||
21 | #define RTC_HOURS_ALARM 5 | ||
22 | #define RTC_DAY 6 | ||
23 | #define RTC_DAY_ALARM 7 | ||
24 | #define RTC_DATE 8 | ||
25 | #define RTC_MONTH 9 | ||
26 | #define RTC_YEAR 10 | ||
27 | #define RTC_CMD 11 | ||
28 | #define RTC_WHSEC 12 | ||
29 | #define RTC_WSEC 13 | ||
30 | #define RTC_UNUSED 14 | ||
31 | |||
32 | /* RTC_*_alarm is always true if 2 MSBs are set */ | ||
33 | # define RTC_ALARM_DONT_CARE 0xC0 | ||
34 | |||
35 | |||
36 | /* | ||
37 | * Bits in the month register | ||
38 | */ | ||
39 | #define RTC_EOSC 0x80 | ||
40 | #define RTC_ESQW 0x40 | ||
41 | |||
42 | /* | ||
43 | * Bits in the Command register | ||
44 | */ | ||
45 | #define RTC_TDF 0x01 | ||
46 | #define RTC_WAF 0x02 | ||
47 | #define RTC_TDM 0x04 | ||
48 | #define RTC_WAM 0x08 | ||
49 | #define RTC_PU_LVL 0x10 | ||
50 | #define RTC_IBH_LO 0x20 | ||
51 | #define RTC_IPSW 0x40 | ||
52 | #define RTC_TE 0x80 | ||
53 | |||
54 | #endif /* __LINUX_DS1286_H */ | ||