Merge remote-tracking branch 'moduleh/module.h-split'
[linux-2.6/next.git] / arch / arm / mach-bcmring / include / mach / timer.h
blob5a94bbb032b69551c566c76c70c6e9fc1302fd82
1 /*****************************************************************************
2 * Copyright 2004 - 2008 Broadcom Corporation. All rights reserved.
4 * Unless you and Broadcom execute a separate written software license
5 * agreement governing use of this software, this software is licensed to you
6 * under the terms of the GNU General Public License version 2, available at
7 * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
9 * Notwithstanding the above, under no circumstances may you combine this
10 * software in any way with any other Broadcom software provided under a
11 * license other than the GPL, without Broadcom's express prior written
12 * consent.
13 *****************************************************************************/
17 *****************************************************************************
19 * timer.h
21 * PURPOSE:
25 * NOTES:
27 *****************************************************************************/
29 #if !defined(BCM_LINUX_TIMER_H)
30 #define BCM_LINUX_TIMER_H
32 #if defined(__KERNEL__)
34 /* ---- Include Files ---------------------------------------------------- */
35 /* ---- Constants and Types ---------------------------------------------- */
37 typedef unsigned int timer_tick_count_t;
38 typedef unsigned int timer_tick_rate_t;
39 typedef unsigned int timer_msec_t;
41 /* ---- Variable Externs ------------------------------------------------- */
42 /* ---- Function Prototypes ---------------------------------------------- */
44 /****************************************************************************
46 * timer_get_tick_count
49 ***************************************************************************/
50 timer_tick_count_t timer_get_tick_count(void);
52 /****************************************************************************
54 * timer_get_tick_rate
57 ***************************************************************************/
58 timer_tick_rate_t timer_get_tick_rate(void);
60 /****************************************************************************
62 * timer_get_msec
65 ***************************************************************************/
66 timer_msec_t timer_get_msec(void);
68 /****************************************************************************
70 * timer_ticks_to_msec
73 ***************************************************************************/
74 timer_msec_t timer_ticks_to_msec(timer_tick_count_t ticks);
76 #endif /* __KERNEL__ */
77 #endif /* BCM_LINUX_TIMER_H */