2 * ImgTec IR Raw Decoder found in PowerDown Controller.
4 * Copyright 2010-2014 Imagination Technologies Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #ifndef _IMG_IR_RAW_H_
13 #define _IMG_IR_RAW_H_
17 #ifdef CONFIG_IR_IMG_RAW
20 * struct img_ir_priv_raw - Private driver data for raw decoder.
21 * @rdev: Raw remote control device
22 * @timer: Timer to echo samples to keep soft decoders happy.
23 * @last_status: Last raw status bits.
25 struct img_ir_priv_raw
{
27 struct timer_list timer
;
31 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw
*raw
)
36 void img_ir_isr_raw(struct img_ir_priv
*priv
, u32 irq_status
);
37 void img_ir_setup_raw(struct img_ir_priv
*priv
);
38 int img_ir_probe_raw(struct img_ir_priv
*priv
);
39 void img_ir_remove_raw(struct img_ir_priv
*priv
);
43 struct img_ir_priv_raw
{
45 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw
*raw
)
49 static inline void img_ir_isr_raw(struct img_ir_priv
*priv
, u32 irq_status
)
52 static inline void img_ir_setup_raw(struct img_ir_priv
*priv
)
55 static inline int img_ir_probe_raw(struct img_ir_priv
*priv
)
59 static inline void img_ir_remove_raw(struct img_ir_priv
*priv
)
63 #endif /* CONFIG_IR_IMG_RAW */
65 #endif /* _IMG_IR_RAW_H_ */