|
Last change
on this file since 2 was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
509 bytes
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * Registers for the SGS-Thomson M48T35 Timekeeper RAM chip |
|---|
| 3 | */ |
|---|
| 4 | #ifndef _ASM_M48T35_H |
|---|
| 5 | #define _ASM_M48T35_H |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | extern spinlock_t rtc_lock; |
|---|
| 9 | |
|---|
| 10 | struct m48t35_rtc { |
|---|
| 11 | volatile __u8 pad[0x7ff8]; /* starts at 0x7ff8 */ |
|---|
| 12 | volatile __u8 control; |
|---|
| 13 | volatile __u8 sec; |
|---|
| 14 | volatile __u8 min; |
|---|
| 15 | volatile __u8 hour; |
|---|
| 16 | volatile __u8 day; |
|---|
| 17 | volatile __u8 date; |
|---|
| 18 | volatile __u8 month; |
|---|
| 19 | volatile __u8 year; |
|---|
| 20 | }; |
|---|
| 21 | |
|---|
| 22 | #define M48T35_RTC_SET 0x80 |
|---|
| 23 | #define M48T35_RTC_STOPPED 0x80 |
|---|
| 24 | #define M48T35_RTC_READ 0x40 |
|---|
| 25 | |
|---|
| 26 | #endif /* _ASM_M48T35_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.