Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / build / magpie_1_1 / inc / timer_api.h
1 #ifndef __TIMER_API_H__
2 #define __TIMER_API_H__
3 /*
4  * In order to remain completely independent of OS header files,
5  * "_SPACE" structures are declared with sufficient room to hold
6  * corresponding OS structures.
7  */
8 typedef unsigned int _A_TIMER_SPACE[5];
9 typedef _A_TIMER_SPACE A_timer_t;
10 #define A_TIMER A_timer_t /* historical */
11
12 typedef unsigned int A_HANDLE; /* historical */
13 typedef void A_TIMER_FUNC(A_HANDLE timer_handle, void *arg);
14
15 struct timer_api {
16     void (* _timer_init)(void);
17     void (* _timer_arm)(A_timer_t *, unsigned int);
18     void (* _timer_disarm)(A_timer_t *);
19     void (* _timer_setfn)(A_timer_t *, A_TIMER_FUNC, void *);
20     void (* _timer_run)(void);
21 };
22 #endif /* __TIMER_API_H__ */
23