blob: 9802ffd51b9a32ca311794f7feea05ca4b6458db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
* ImgTec IR Raw Decoder found in PowerDown Controller.
*
* Copyright 2010-2014 Imagination Technologies Ltd.
*/
#ifndef _IMG_IR_RAW_H_
#define _IMG_IR_RAW_H_
struct img_ir_priv;
#ifdef CONFIG_IR_IMG_RAW
/**
* struct img_ir_priv_raw - Private driver data for raw decoder.
* @rdev: Raw remote control device
* @timer: Timer to echo samples to keep soft decoders happy.
* @last_status: Last raw status bits.
*/
struct img_ir_priv_raw {
struct rc_dev *rdev;
struct timer_list timer;
u32 last_status;
};
static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
{
return raw->rdev;
};
void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status);
void img_ir_setup_raw(struct img_ir_priv *priv);
int img_ir_probe_raw(struct img_ir_priv *priv);
void img_ir_remove_raw(struct img_ir_priv *priv);
#else
struct img_ir_priv_raw {
};
static inline bool img_ir_raw_enabled(struct img_ir_priv_raw *raw)
{
return false;
};
static inline void img_ir_isr_raw(struct img_ir_priv *priv, u32 irq_status)
{
}
static inline void img_ir_setup_raw(struct img_ir_priv *priv)
{
}
static inline int img_ir_probe_raw(struct img_ir_priv *priv)
{
return -ENODEV;
}
static inline void img_ir_remove_raw(struct img_ir_priv *priv)
{
}
#endif /* CONFIG_IR_IMG_RAW */
#endif /* _IMG_IR_RAW_H_ */
|