20 #ifndef __ARCH_TIMER_H
21 #define __ARCH_TIMER_H
23 #include <sys/cdefs.h>
225 void timer_shutdown();
timer_primary_callback_t timer_primary_set_callback(timer_primary_callback_t callback)
Set the primary timer callback.
void timer_disable_ints(int which)
Disable timer interrupts.
uint64 timer_ms_gettime64()
Get the current uptime of the system (in milliseconds).
Architecture-specific structure for holding the processor state.
Definition: irq.h:46
void timer_ms_enable()
Enable the millisecond timer.
void timer_spin_sleep(int ms)
Spin-loop sleep function.
void timer_ms_disable()
Disable the millisecond timer.
unsigned long long uint64
64-bit unsigned integer
Definition: types.h:27
uint32 timer_count(int which)
Obtain the count of a timer.
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
void timer_primary_wakeup(uint32 millis)
Request a primary timer wakeup.
void(* timer_primary_callback_t)(irq_context_t *)
Primary timer callback type.
Definition: timer.h:196
int timer_ints_enabled(int which)
Check whether interrupts are enabled on a timer.
void timer_enable_ints(int which)
Enable high-priority timer interrupts.
int timer_stop(int which)
Stop a timer.
uint64 timer_us_gettime64()
Get the current uptime of the system (in microseconds).
int timer_prime(int which, uint32 speed, int interrupts)
Pre-initialize a timer, but do not start it.
int timer_start(int which)
Start a timer.
Interrupt and exception handling.
void timer_ms_gettime(uint32 *secs, uint32 *msecs)
Get the current uptime of the system.
int timer_clear(int which)
Clear the underflow bit of a timer.