diff options
Diffstat (limited to 'include/media/ir-common.h')
-rw-r--r-- | include/media/ir-common.h | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h deleted file mode 100644 index 41fefd9816ea..000000000000 --- a/include/media/ir-common.h +++ /dev/null | |||
@@ -1,77 +0,0 @@ | |||
1 | /* | ||
2 | * some common functions to handle infrared remote protocol decoding for | ||
3 | * drivers which have not yet been (or can't be) converted to use the | ||
4 | * regular protocol decoders... | ||
5 | * | ||
6 | * (c) 2003 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License as published by | ||
10 | * the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU General Public License | ||
19 | * along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef _IR_COMMON | ||
24 | #define _IR_COMMON | ||
25 | |||
26 | #include <linux/input.h> | ||
27 | #include <linux/workqueue.h> | ||
28 | #include <linux/interrupt.h> | ||
29 | #include <media/ir-core.h> | ||
30 | |||
31 | #define RC5_START(x) (((x)>>12)&3) | ||
32 | #define RC5_TOGGLE(x) (((x)>>11)&1) | ||
33 | #define RC5_ADDR(x) (((x)>>6)&31) | ||
34 | #define RC5_INSTR(x) ((x)&63) | ||
35 | |||
36 | /* this was saa7134_ir and bttv_ir, moved here for | ||
37 | * rc5 decoding. */ | ||
38 | struct card_ir { | ||
39 | struct rc_dev *dev; | ||
40 | char name[32]; | ||
41 | char phys[32]; | ||
42 | int users; | ||
43 | u32 running:1; | ||
44 | |||
45 | /* Usual gpio signalling */ | ||
46 | u32 mask_keycode; | ||
47 | u32 mask_keydown; | ||
48 | u32 mask_keyup; | ||
49 | u32 polling; | ||
50 | u32 last_gpio; | ||
51 | int shift_by; | ||
52 | int start; // What should RC5_START() be | ||
53 | int addr; // What RC5_ADDR() should be. | ||
54 | int rc5_remote_gap; | ||
55 | struct work_struct work; | ||
56 | struct timer_list timer; | ||
57 | |||
58 | /* RC5 gpio */ | ||
59 | u32 rc5_gpio; | ||
60 | struct timer_list timer_end; /* timer_end for code completion */ | ||
61 | u32 last_bit; /* last raw bit seen */ | ||
62 | u32 code; /* raw code under construction */ | ||
63 | struct timeval base_time; /* time of last seen code */ | ||
64 | int active; /* building raw code */ | ||
65 | |||
66 | /* NEC decoding */ | ||
67 | u32 nec_gpio; | ||
68 | struct tasklet_struct tlet; | ||
69 | |||
70 | /* IR core raw decoding */ | ||
71 | u32 raw_decode; | ||
72 | }; | ||
73 | |||
74 | /* Routines from ir-functions.c */ | ||
75 | void ir_rc5_timer_end(unsigned long data); | ||
76 | |||
77 | #endif | ||