Add linux-next specific files for 20110831
[linux-2.6/next.git] / arch / mips / include / asm / mach-loongson / cs5536 / cs5536_mfgpt.h
blob4b493d6772c2e9fc0f04d585e07867ca63836dcf
1 /*
2 * cs5536 mfgpt header file
3 */
5 #ifndef _CS5536_MFGPT_H
6 #define _CS5536_MFGPT_H
8 #include <cs5536/cs5536.h>
9 #include <cs5536/cs5536_pci.h>
11 #ifdef CONFIG_CS5536_MFGPT
12 extern void setup_mfgpt0_timer(void);
13 extern void disable_mfgpt0_counter(void);
14 extern void enable_mfgpt0_counter(void);
15 #else
16 static inline void __maybe_unused setup_mfgpt0_timer(void)
19 static inline void __maybe_unused disable_mfgpt0_counter(void)
22 static inline void __maybe_unused enable_mfgpt0_counter(void)
25 #endif
27 #define MFGPT_TICK_RATE 14318000
28 #define COMPARE ((MFGPT_TICK_RATE + HZ/2) / HZ)
30 #define MFGPT_BASE mfgpt_base
31 #define MFGPT0_CMP2 (MFGPT_BASE + 2)
32 #define MFGPT0_CNT (MFGPT_BASE + 4)
33 #define MFGPT0_SETUP (MFGPT_BASE + 6)
35 #endif /*!_CS5536_MFGPT_H */