Path: blob/master/arch/arm/mach-bcmring/include/mach/timer.h
10820 views
/*****************************************************************************1* Copyright 2004 - 2008 Broadcom Corporation. All rights reserved.2*3* Unless you and Broadcom execute a separate written software license4* agreement governing use of this software, this software is licensed to you5* under the terms of the GNU General Public License version 2, available at6* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").7*8* Notwithstanding the above, under no circumstances may you combine this9* software in any way with any other Broadcom software provided under a10* license other than the GPL, without Broadcom's express prior written11* consent.12*****************************************************************************/1314/*15*16*****************************************************************************17*18* timer.h19*20* PURPOSE:21*22*23*24* NOTES:25*26*****************************************************************************/2728#if !defined(BCM_LINUX_TIMER_H)29#define BCM_LINUX_TIMER_H3031#if defined(__KERNEL__)3233/* ---- Include Files ---------------------------------------------------- */34/* ---- Constants and Types ---------------------------------------------- */3536typedef unsigned int timer_tick_count_t;37typedef unsigned int timer_tick_rate_t;38typedef unsigned int timer_msec_t;3940/* ---- Variable Externs ------------------------------------------------- */41/* ---- Function Prototypes ---------------------------------------------- */4243/****************************************************************************44*45* timer_get_tick_count46*47*48***************************************************************************/49timer_tick_count_t timer_get_tick_count(void);5051/****************************************************************************52*53* timer_get_tick_rate54*55*56***************************************************************************/57timer_tick_rate_t timer_get_tick_rate(void);5859/****************************************************************************60*61* timer_get_msec62*63*64***************************************************************************/65timer_msec_t timer_get_msec(void);6667/****************************************************************************68*69* timer_ticks_to_msec70*71*72***************************************************************************/73timer_msec_t timer_ticks_to_msec(timer_tick_count_t ticks);7475#endif /* __KERNEL__ */76#endif /* BCM_LINUX_TIMER_H */777879