1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * ImgTec IR Raw Decoder found in PowerDown Controller.
5 * Copyright 2010-2014 Imagination Technologies Ltd.
13 #ifdef CONFIG_IR_IMG_RAW
16 * struct img_ir_priv_raw - Private driver data for raw decoder.
17 * @rdev: Raw remote control device
18 * @timer: Timer to echo samples to keep soft decoders happy.
19 * @last_status: Last raw status bits.
21 struct img_ir_priv_raw
{
23 struct timer_list timer
;
27 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw
*raw
)
32 void img_ir_isr_raw(struct img_ir_priv
*priv
, u32 irq_status
);
33 void img_ir_setup_raw(struct img_ir_priv
*priv
);
34 int img_ir_probe_raw(struct img_ir_priv
*priv
);
35 void img_ir_remove_raw(struct img_ir_priv
*priv
);
39 struct img_ir_priv_raw
{
41 static inline bool img_ir_raw_enabled(struct img_ir_priv_raw
*raw
)
45 static inline void img_ir_isr_raw(struct img_ir_priv
*priv
, u32 irq_status
)
48 static inline void img_ir_setup_raw(struct img_ir_priv
*priv
)
51 static inline int img_ir_probe_raw(struct img_ir_priv
*priv
)
55 static inline void img_ir_remove_raw(struct img_ir_priv
*priv
)
59 #endif /* CONFIG_IR_IMG_RAW */
61 #endif /* _IMG_IR_RAW_H_ */