X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ia64%2Fsn%2Fclksupport.h;h=d340c365a824cbec5e3c056b11024c4bea3cda32;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=2960e6ec1b6122f272928122b5acac5030ae4f0c;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-ia64/sn/clksupport.h b/include/asm-ia64/sn/clksupport.h index 2960e6ec1..d340c365a 100644 --- a/include/asm-ia64/sn/clksupport.h +++ b/include/asm-ia64/sn/clksupport.h @@ -3,7 +3,7 @@ * License. See the file "COPYING" in the main directory of this archive * for more details. * - * Copyright (C) 2000-2003 Silicon Graphics, Inc. All rights reserved. + * Copyright (C) 2000-2004 Silicon Graphics, Inc. All rights reserved. */ /* @@ -14,39 +14,15 @@ * * RTC_COUNTER_ADDR - contains the address of the counter * - * GET_RTC_COUNTER() - macro to read the value of the clock - * - * RTC_CYCLES_PER_SEC - clock frequency in ticks per second - * */ #ifndef _ASM_IA64_SN_CLKSUPPORT_H #define _ASM_IA64_SN_CLKSUPPORT_H -#include -#include -#include -#include -#include - -typedef long clkreg_t; - extern unsigned long sn_rtc_cycles_per_second; -extern unsigned long sn_rtc_per_itc; - -#define RTC_MASK SH_RTC_MASK -#define RTC_COUNTER_ADDR ((clkreg_t*)LOCAL_MMR_ADDR(SH_RTC)) -#define RTC_COMPARE_A_ADDR ((clkreg_t*)LOCAL_MMR_ADDR(SH_RTC)) -#define RTC_COMPARE_B_ADDR ((clkreg_t*)LOCAL_MMR_ADDR(SH_RTC)) -#define RTC_INT_PENDING_A_ADDR ((clkreg_t*)LOCAL_MMR_ADDR(SH_RTC)) -#define RTC_INT_PENDING_B_ADDR ((clkreg_t*)LOCAL_MMR_ADDR(SH_RTC)) -#define RTC_INT_ENABLED_A_ADDR ((clkreg_t*)LOCAL_MMR_ADDR(SH_RTC)) -#define RTC_INT_ENABLED_B_ADDR ((clkreg_t*)LOCAL_MMR_ADDR(SH_RTC)) -#define SN_RTC_PER_ITC_SHIFT 34 -#define GET_RTC_COUNTER() (*RTC_COUNTER_ADDR) -#define rtc_time() GET_RTC_COUNTER() +#define RTC_COUNTER_ADDR ((long *)LOCAL_MMR_ADDR(SH_RTC)) -#define RTC_CYCLES_PER_SEC sn_rtc_cycles_per_second +#define rtc_time() (*RTC_COUNTER_ADDR) #endif /* _ASM_IA64_SN_CLKSUPPORT_H */