H10338 s 00060/00000/00000 d D 1.1 02/03/13 20:31:05 patch 2 1 cC cF1 cK44190 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/03/13 20:31:05 patch 1 0 c BitKeeper file /home/marcelo/bk/linux-2.4/include/asm-ia64/sn/klclock.h cBtorvalds@athlon.transmeta.com|ChangeSet|20020205173056|16047|c1d11a41ed024864 cHplucky.distro.conectiva cK09155 cPinclude/asm-ia64/sn/klclock.h cRfe01cec7ed1650be cV4 cX0x821 cZ-03:00 e u U f e 0 f x 0x821 t T I 2 /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996, 2001 Silicon Graphics, Inc. All rights reserved. * Copyright (C) 2001 by Ralf Baechle */ #ifndef _ASM_IA64_SN_KLCLOCK_H #define _ASM_IA64_SN_KLCLOCK_H #include #define RTC_BASE_ADDR (unsigned char *)(nvram_base) /* Defines for the SGS-Thomson M48T35 clock */ #define RTC_SGS_WRITE_ENABLE 0x80 #define RTC_SGS_READ_PROTECT 0x40 #define RTC_SGS_YEAR_ADDR (RTC_BASE_ADDR + 0x7fffL) #define RTC_SGS_MONTH_ADDR (RTC_BASE_ADDR + 0x7ffeL) #define RTC_SGS_DATE_ADDR (RTC_BASE_ADDR + 0x7ffdL) #define RTC_SGS_DAY_ADDR (RTC_BASE_ADDR + 0x7ffcL) #define RTC_SGS_HOUR_ADDR (RTC_BASE_ADDR + 0x7ffbL) #define RTC_SGS_MIN_ADDR (RTC_BASE_ADDR + 0x7ffaL) #define RTC_SGS_SEC_ADDR (RTC_BASE_ADDR + 0x7ff9L) #define RTC_SGS_CONTROL_ADDR (RTC_BASE_ADDR + 0x7ff8L) /* Defines for the Dallas DS1386 */ #define RTC_DAL_UPDATE_ENABLE 0x80 #define RTC_DAL_UPDATE_DISABLE 0x00 #define RTC_DAL_YEAR_ADDR (RTC_BASE_ADDR + 0xaL) #define RTC_DAL_MONTH_ADDR (RTC_BASE_ADDR + 0x9L) #define RTC_DAL_DATE_ADDR (RTC_BASE_ADDR + 0x8L) #define RTC_DAL_DAY_ADDR (RTC_BASE_ADDR + 0x6L) #define RTC_DAL_HOUR_ADDR (RTC_BASE_ADDR + 0x4L) #define RTC_DAL_MIN_ADDR (RTC_BASE_ADDR + 0x2L) #define RTC_DAL_SEC_ADDR (RTC_BASE_ADDR + 0x1L) #define RTC_DAL_CONTROL_ADDR (RTC_BASE_ADDR + 0xbL) #define RTC_DAL_USER_ADDR (RTC_BASE_ADDR + 0xeL) /* Defines for the Dallas DS1742 */ #define RTC_DS1742_WRITE_ENABLE 0x80 #define RTC_DS1742_READ_ENABLE 0x40 #define RTC_DS1742_UPDATE_DISABLE 0x00 #define RTC_DS1742_YEAR_ADDR (RTC_BASE_ADDR + 0x7ffL) #define RTC_DS1742_MONTH_ADDR (RTC_BASE_ADDR + 0x7feL) #define RTC_DS1742_DATE_ADDR (RTC_BASE_ADDR + 0x7fdL) #define RTC_DS1742_DAY_ADDR (RTC_BASE_ADDR + 0x7fcL) #define RTC_DS1742_HOUR_ADDR (RTC_BASE_ADDR + 0x7fbL) #define RTC_DS1742_MIN_ADDR (RTC_BASE_ADDR + 0x7faL) #define RTC_DS1742_SEC_ADDR (RTC_BASE_ADDR + 0x7f9L) #define RTC_DS1742_CONTROL_ADDR (RTC_BASE_ADDR + 0x7f8L) #define RTC_DS1742_USER_ADDR (RTC_BASE_ADDR + 0x0L) #define BCD_TO_INT(x) (((x>>4) * 10) + (x & 0xf)) #define INT_TO_BCD(x) (((x / 10)<<4) + (x % 10)) #define YRREF 1970 #endif /* _ASM_IA64_SN_KLCLOCK_H */ E 2 I 1 E 1