blob: 8cd0c8e69bf7a950fbd7c743c87218b2ceff533b (
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
|
/*
* Copyright (c) 2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __SYSTEM_TIMER_H__
#define __SYSTEM_TIMER_H__
/*
* Program systimer to fire an interrupt after time_out_ms
*
* Always return 0
*/
int program_systimer(unsigned long time_out_ms);
/*
* Cancel the currently programmed systimer interrupt
*
* Always return 0
*/
int cancel_systimer(void);
/*
* Initialises the systimer so that it can be used for programming timer
* interrupt.
* Must be called by the primary CPU only.
*
* Always return 0
*/
int init_systimer(uintptr_t systimer_base);
/*
* Handler to acknowledge and de-activate the systimer interrupt
*
* Always return 0
*/
int handler_systimer(void);
#endif /* __SYSTEM_TIMER_H__ */
|