1
2
3
4
5
6
7
8
9
10
11
12 #ifndef __ASM_FSL_GTM_H
13 #define __ASM_FSL_GTM_H
14
15 #include <linux/types.h>
16
17 struct gtm;
18
19 struct gtm_timer {
20 unsigned int irq;
21
22 struct gtm *gtm;
23 bool requested;
24 u8 __iomem *gtcfr;
25 __be16 __iomem *gtmdr;
26 __be16 __iomem *gtpsr;
27 __be16 __iomem *gtcnr;
28 __be16 __iomem *gtrfr;
29 __be16 __iomem *gtevr;
30 };
31
32 extern struct gtm_timer *gtm_get_timer16(void);
33 extern struct gtm_timer *gtm_get_specific_timer16(struct gtm *gtm,
34 unsigned int timer);
35 extern void gtm_put_timer16(struct gtm_timer *tmr);
36 extern int gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec,
37 bool reload);
38 extern int gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec,
39 bool reload);
40 extern void gtm_stop_timer16(struct gtm_timer *tmr);
41 extern void gtm_ack_timer16(struct gtm_timer *tmr, u16 events);
42
43 #endif