Input: xpad - add support for Xbox1 PDP Camo series gamepad
[linux/fpc-iii.git] / drivers / media / common / siano / smsir.h
blobd9abd96ef48bf5e0a3f9bb9ccdf7f407669ddfd1
1 /****************************************************************
3 Siano Mobile Silicon, Inc.
4 MDTV receiver kernel modules.
5 Copyright (C) 2006-2009, Uri Shkolnik
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
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.
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.
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/>.
25 ****************************************************************/
27 #ifndef __SMS_IR_H__
28 #define __SMS_IR_H__
30 #include <linux/input.h>
31 #include <media/rc-core.h>
33 struct smscore_device_t;
35 struct ir_t {
36 struct rc_dev *dev;
37 char name[40];
38 char phys[32];
40 char *rc_codes;
42 u32 timeout;
43 u32 controller;
46 #ifdef CONFIG_SMS_SIANO_RC
47 int sms_ir_init(struct smscore_device_t *coredev);
48 void sms_ir_exit(struct smscore_device_t *coredev);
49 void sms_ir_event(struct smscore_device_t *coredev,
50 const char *buf, int len);
51 #else
52 inline static int sms_ir_init(struct smscore_device_t *coredev) {
53 return 0;
55 inline static void sms_ir_exit(struct smscore_device_t *coredev) {};
56 inline static void sms_ir_event(struct smscore_device_t *coredev,
57 const char *buf, int len) {};
58 #endif
60 #endif /* __SMS_IR_H__ */