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/asm-m68k/intersil.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/asm-m68k/intersil.h')
-rw-r--r-- | include/asm-m68k/intersil.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/asm-m68k/intersil.h b/include/asm-m68k/intersil.h new file mode 100644 index 000000000000..f482902cac8a --- /dev/null +++ b/include/asm-m68k/intersil.h | |||
@@ -0,0 +1,48 @@ | |||
1 | #ifndef _SUN3_INTERSIL_H | ||
2 | #define _SUN3_INTERSIL_H | ||
3 | /* bits 0 and 1 */ | ||
4 | #define INTERSIL_FREQ_32K 0x00 | ||
5 | #define INTERSIL_FREQ_1M 0x01 | ||
6 | #define INTERSIL_FREQ_2M 0x02 | ||
7 | #define INTERSIL_FREQ_4M 0x03 | ||
8 | |||
9 | /* bit 2 */ | ||
10 | #define INTERSIL_12H_MODE 0x00 | ||
11 | #define INTERSIL_24H_MODE 0x04 | ||
12 | |||
13 | /* bit 3 */ | ||
14 | #define INTERSIL_STOP 0x00 | ||
15 | #define INTERSIL_RUN 0x08 | ||
16 | |||
17 | /* bit 4 */ | ||
18 | #define INTERSIL_INT_ENABLE 0x10 | ||
19 | #define INTERSIL_INT_DISABLE 0x00 | ||
20 | |||
21 | /* bit 5 */ | ||
22 | #define INTERSIL_MODE_NORMAL 0x00 | ||
23 | #define INTERSIL_MODE_TEST 0x20 | ||
24 | |||
25 | #define INTERSIL_HZ_100_MASK 0x02 | ||
26 | |||
27 | struct intersil_dt { | ||
28 | unsigned char csec; | ||
29 | unsigned char hour; | ||
30 | unsigned char minute; | ||
31 | unsigned char second; | ||
32 | unsigned char month; | ||
33 | unsigned char day; | ||
34 | unsigned char year; | ||
35 | unsigned char weekday; | ||
36 | }; | ||
37 | |||
38 | struct intersil_7170 { | ||
39 | struct intersil_dt counter; | ||
40 | struct intersil_dt alarm; | ||
41 | unsigned char int_reg; | ||
42 | unsigned char cmd_reg; | ||
43 | }; | ||
44 | |||
45 | extern volatile char* clock_va; | ||
46 | #define intersil_clock ((volatile struct intersil_7170 *) clock_va) | ||
47 | #define intersil_clear() (void)intersil_clock->int_reg | ||
48 | #endif | ||