upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / media / dvb / siano / smsir.h
1 /****************************************************************
2
3 Siano Mobile Silicon, Inc.
4 MDTV receiver kernel modules.
5 Copyright (C) 2006-2009, Uri Shkolnik
6
7  Copyright (c) 2010 - Mauro Carvalho Chehab
8         - Ported the driver to use rc-core
9         - IR raw event decoding is now done at rc-core
10         - Code almost re-written
11
12 This program is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 2 of the License, or
15 (at your option) any later version.
16
17  This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
25 ****************************************************************/
26
27 #ifndef __SMS_IR_H__
28 #define __SMS_IR_H__
29
30 #include <linux/input.h>
31 #include <media/ir-core.h>
32
33 #define IR_DEFAULT_TIMEOUT              100
34
35 struct smscore_device_t;
36
37 struct ir_t {
38         struct input_dev *input_dev;
39         char name[40];
40         char phys[32];
41
42         char *rc_codes;
43         u64 protocol;
44         struct ir_dev_props props;
45
46         u32 timeout;
47         u32 controller;
48 };
49
50 int sms_ir_init(struct smscore_device_t *coredev);
51 void sms_ir_exit(struct smscore_device_t *coredev);
52 void sms_ir_event(struct smscore_device_t *coredev,
53                         const char *buf, int len);
54
55 #endif /* __SMS_IR_H__ */
56