^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0+ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Siano Mobile Silicon, Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * MDTV receiver kernel modules.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Copyright (C) 2006-2009, Uri Shkolnik
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * Copyright (c) 2010 - Mauro Carvalho Chehab
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * - Ported the driver to use rc-core
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * - IR raw event decoding is now done at rc-core
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) * - Code almost re-written
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #ifndef __SMS_IR_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define __SMS_IR_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <linux/input.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <media/rc-core.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct smscore_device_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) struct ir_t {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct rc_dev *dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) char name[40];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) char phys[32];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) char *rc_codes;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) u32 timeout;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) u32 controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #ifdef CONFIG_SMS_SIANO_RC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) int sms_ir_init(struct smscore_device_t *coredev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) void sms_ir_exit(struct smscore_device_t *coredev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void sms_ir_event(struct smscore_device_t *coredev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) const char *buf, int len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) inline static int sms_ir_init(struct smscore_device_t *coredev) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) inline static void sms_ir_exit(struct smscore_device_t *coredev) {};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) inline static void sms_ir_event(struct smscore_device_t *coredev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) const char *buf, int len) {};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #endif /* __SMS_IR_H__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48)