Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / build / magpie_1_1 / inc / clock_api.h
1 #ifndef __CLOCK_API_H__
2 #define __CLOCK_API_H__
3
4 #define TICK_MSEC_RATIO                 1
5 #define TICK_TO_MSEC(tick)              ((tick)/TICK_MSEC_RATIO)
6 #define MSEC_TO_TICK(msec)              ((msec)* TICK_MSEC_RATIO)
7
8 struct clock_api {
9     void (* _clock_init)(A_UINT32 ref_clk);
10     void (* _clockregs_init)(void);
11     A_UINT32 (* _uart_frequency)(void);
12     void (* _delay_us)(int);
13     void (* _wlan_band_set)(int);
14     A_UINT32 (* _refclk_speed_get)(void);
15     A_UINT32 (* _milliseconds)(void);
16     void (* _sysclk_change)(void);
17     
18     void (* _clock_tick)(void);
19 };
20
21 #endif /* __CLOCK_API_H__ */