2009-04-05 09:01:37 +00:00
|
|
|
/****************************************************************
|
|
|
|
|
|
|
|
Siano Mobile Silicon, Inc.
|
|
|
|
MDTV receiver kernel modules.
|
|
|
|
Copyright (C) 2006-2009, Uri Shkolnik
|
|
|
|
|
2010-08-01 20:19:29 +00:00
|
|
|
Copyright (c) 2010 - Mauro Carvalho Chehab
|
|
|
|
- Ported the driver to use rc-core
|
|
|
|
- IR raw event decoding is now done at rc-core
|
|
|
|
- Code almost re-written
|
|
|
|
|
2009-04-05 09:01:37 +00:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef __SMS_IR_H__
|
|
|
|
#define __SMS_IR_H__
|
|
|
|
|
|
|
|
#include <linux/input.h>
|
2010-11-17 16:28:38 +00:00
|
|
|
#include <media/rc-core.h>
|
2009-04-05 09:01:37 +00:00
|
|
|
|
|
|
|
#define IR_DEFAULT_TIMEOUT 100
|
|
|
|
|
|
|
|
struct smscore_device_t;
|
|
|
|
|
|
|
|
struct ir_t {
|
2010-10-29 19:08:23 +00:00
|
|
|
struct rc_dev *dev;
|
2010-08-01 20:19:29 +00:00
|
|
|
char name[40];
|
2010-08-01 18:30:50 +00:00
|
|
|
char phys[32];
|
2010-08-01 20:19:29 +00:00
|
|
|
|
|
|
|
char *rc_codes;
|
|
|
|
u64 protocol;
|
|
|
|
|
2009-04-05 09:01:37 +00:00
|
|
|
u32 timeout;
|
|
|
|
u32 controller;
|
|
|
|
};
|
|
|
|
|
2012-10-17 19:59:01 +00:00
|
|
|
#ifdef CONFIG_SMS_SIANO_RC
|
2009-04-05 09:01:37 +00:00
|
|
|
int sms_ir_init(struct smscore_device_t *coredev);
|
|
|
|
void sms_ir_exit(struct smscore_device_t *coredev);
|
|
|
|
void sms_ir_event(struct smscore_device_t *coredev,
|
|
|
|
const char *buf, int len);
|
2012-10-17 19:59:01 +00:00
|
|
|
#else
|
|
|
|
inline static int sms_ir_init(struct smscore_device_t *coredev) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
inline static void sms_ir_exit(struct smscore_device_t *coredev) {};
|
|
|
|
inline static void sms_ir_event(struct smscore_device_t *coredev,
|
|
|
|
const char *buf, int len) {};
|
|
|
|
#endif
|
2009-04-05 09:01:37 +00:00
|
|
|
|
|
|
|
#endif /* __SMS_IR_H__ */
|
|
|
|
|