[media] ir-core: make struct rc_dev the primary interface
[deliverable/linux.git] / drivers / media / dvb / siano / smsir.h
CommitLineData
ebb6c22e
US
1/****************************************************************
2
3Siano Mobile Silicon, Inc.
4MDTV receiver kernel modules.
5Copyright (C) 2006-2009, Uri Shkolnik
6
844a9e93
MCC
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
ebb6c22e
US
12This program is free software: you can redistribute it and/or modify
13it under the terms of the GNU General Public License as published by
14the 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,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22You should have received a copy of the GNU General Public License
23along 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>
844a9e93 31#include <media/ir-core.h>
ebb6c22e 32
ebb6c22e
US
33#define IR_DEFAULT_TIMEOUT 100
34
ebb6c22e
US
35struct smscore_device_t;
36
37struct ir_t {
d8b4b582 38 struct rc_dev *dev;
844a9e93 39 char name[40];
1722f3b3 40 char phys[32];
844a9e93
MCC
41
42 char *rc_codes;
43 u64 protocol;
844a9e93 44
ebb6c22e
US
45 u32 timeout;
46 u32 controller;
47};
48
49int sms_ir_init(struct smscore_device_t *coredev);
50void sms_ir_exit(struct smscore_device_t *coredev);
51void sms_ir_event(struct smscore_device_t *coredev,
52 const char *buf, int len);
53
54#endif /* __SMS_IR_H__ */
55
This page took 0.136835 seconds and 5 git commands to generate.