aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcmring/include/mach/timer.h
blob: 5a94bbb032b69551c566c76c70c6e9fc1302fd82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*****************************************************************************
* Copyright 2004 - 2008 Broadcom Corporation.  All rights reserved.
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2, available at
* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
*
* Notwithstanding the above, under no circumstances may you combine this
* software in any way with any other Broadcom software provided under a
* license other than the GPL, without Broadcom's express prior written
* consent.
*****************************************************************************/

/*
*
*****************************************************************************
*
*  timer.h
*
*  PURPOSE:
*
*
*
*  NOTES:
*
*****************************************************************************/

#if !defined(BCM_LINUX_TIMER_H)
#define BCM_LINUX_TIMER_H

#if defined(__KERNEL__)

/* ---- Include Files ---------------------------------------------------- */
/* ---- Constants and Types ---------------------------------------------- */

typedef unsigned int timer_tick_count_t;
typedef unsigned int timer_tick_rate_t;
typedef unsigned int timer_msec_t;

/* ---- Variable Externs ------------------------------------------------- */
/* ---- Function Prototypes ---------------------------------------------- */

/****************************************************************************
*
*  timer_get_tick_count
*
*
***************************************************************************/
timer_tick_count_t timer_get_tick_count(void);

/****************************************************************************
*
*  timer_get_tick_rate
*
*
***************************************************************************/
timer_tick_rate_t timer_get_tick_rate(void);

/****************************************************************************
*
*  timer_get_msec
*
*
***************************************************************************/
timer_msec_t timer_get_msec(void);

/****************************************************************************
*
*  timer_ticks_to_msec
*
*
***************************************************************************/
timer_msec_t timer_ticks_to_msec(timer_tick_count_t ticks);

#endif /* __KERNEL__ */
#endif /* BCM_LINUX_TIMER_H */