xref: /openbmc/linux/sound/pci/ctxfi/cttimer.h (revision 9cfc5c90)
1 /*
2  * Timer handling
3  */
4 
5 #ifndef __CTTIMER_H
6 #define __CTTIMER_H
7 
8 #include <linux/spinlock.h>
9 #include <linux/timer.h>
10 #include <linux/list.h>
11 
12 struct snd_pcm_substream;
13 struct ct_atc;
14 struct ct_atc_pcm;
15 
16 struct ct_timer;
17 struct ct_timer_instance;
18 
19 struct ct_timer *ct_timer_new(struct ct_atc *atc);
20 void ct_timer_free(struct ct_timer *atimer);
21 
22 struct ct_timer_instance *
23 ct_timer_instance_new(struct ct_timer *atimer, struct ct_atc_pcm *apcm);
24 void ct_timer_instance_free(struct ct_timer_instance *ti);
25 void ct_timer_start(struct ct_timer_instance *ti);
26 void ct_timer_stop(struct ct_timer_instance *ti);
27 void ct_timer_prepare(struct ct_timer_instance *ti);
28 
29 #endif /* __CTTIMER_H */
30