aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/IR/ir-lirc-codec.c2
-rw-r--r--drivers/media/IR/lirc_dev.c2
-rw-r--r--include/media/lirc.h34
-rw-r--r--include/media/lirc_dev.h (renamed from drivers/media/IR/lirc_dev.h)0
4 files changed, 20 insertions, 18 deletions
diff --git a/drivers/media/IR/ir-lirc-codec.c b/drivers/media/IR/ir-lirc-codec.c
index 178bc5baab78..afb1ada36c78 100644
--- a/drivers/media/IR/ir-lirc-codec.c
+++ b/drivers/media/IR/ir-lirc-codec.c
@@ -15,9 +15,9 @@
15#include <linux/sched.h> 15#include <linux/sched.h>
16#include <linux/wait.h> 16#include <linux/wait.h>
17#include <media/lirc.h> 17#include <media/lirc.h>
18#include <media/lirc_dev.h>
18#include <media/ir-core.h> 19#include <media/ir-core.h>
19#include "ir-core-priv.h" 20#include "ir-core-priv.h"
20#include "lirc_dev.h"
21 21
22#define LIRCBUF_SIZE 256 22#define LIRCBUF_SIZE 256
23 23
diff --git a/drivers/media/IR/lirc_dev.c b/drivers/media/IR/lirc_dev.c
index c11b8f706258..899891bec352 100644
--- a/drivers/media/IR/lirc_dev.c
+++ b/drivers/media/IR/lirc_dev.c
@@ -37,7 +37,7 @@
37#include <linux/cdev.h> 37#include <linux/cdev.h>
38 38
39#include <media/lirc.h> 39#include <media/lirc.h>
40#include "lirc_dev.h" 40#include <media/lirc_dev.h>
41 41
42static int debug; 42static int debug;
43 43
diff --git a/include/media/lirc.h b/include/media/lirc.h
index 8dffd4f47bf6..42c467c50519 100644
--- a/include/media/lirc.h
+++ b/include/media/lirc.h
@@ -1,6 +1,6 @@
1/* 1/*
2 * lirc.h - linux infrared remote control header file 2 * lirc.h - linux infrared remote control header file
3 * last modified 2010/06/03 by Jarod Wilson 3 * last modified 2010/07/13 by Jarod Wilson
4 */ 4 */
5 5
6#ifndef _LINUX_LIRC_H 6#ifndef _LINUX_LIRC_H
@@ -33,6 +33,9 @@
33#define LIRC_IS_FREQUENCY(val) (LIRC_MODE2(val) == LIRC_MODE2_FREQUENCY) 33#define LIRC_IS_FREQUENCY(val) (LIRC_MODE2(val) == LIRC_MODE2_FREQUENCY)
34#define LIRC_IS_TIMEOUT(val) (LIRC_MODE2(val) == LIRC_MODE2_TIMEOUT) 34#define LIRC_IS_TIMEOUT(val) (LIRC_MODE2(val) == LIRC_MODE2_TIMEOUT)
35 35
36/* used heavily by lirc userspace */
37#define lirc_t int
38
36/*** lirc compatible hardware features ***/ 39/*** lirc compatible hardware features ***/
37 40
38#define LIRC_MODE2SEND(x) (x) 41#define LIRC_MODE2SEND(x) (x)
@@ -95,12 +98,10 @@
95#define LIRC_GET_MIN_TIMEOUT _IOR('i', 0x00000008, __u32) 98#define LIRC_GET_MIN_TIMEOUT _IOR('i', 0x00000008, __u32)
96#define LIRC_GET_MAX_TIMEOUT _IOR('i', 0x00000009, __u32) 99#define LIRC_GET_MAX_TIMEOUT _IOR('i', 0x00000009, __u32)
97 100
98#if 0 /* these ioctls are not used at the moment */
99#define LIRC_GET_MIN_FILTER_PULSE _IOR('i', 0x0000000a, __u32) 101#define LIRC_GET_MIN_FILTER_PULSE _IOR('i', 0x0000000a, __u32)
100#define LIRC_GET_MAX_FILTER_PULSE _IOR('i', 0x0000000b, __u32) 102#define LIRC_GET_MAX_FILTER_PULSE _IOR('i', 0x0000000b, __u32)
101#define LIRC_GET_MIN_FILTER_SPACE _IOR('i', 0x0000000c, __u32) 103#define LIRC_GET_MIN_FILTER_SPACE _IOR('i', 0x0000000c, __u32)
102#define LIRC_GET_MAX_FILTER_SPACE _IOR('i', 0x0000000d, __u32) 104#define LIRC_GET_MAX_FILTER_SPACE _IOR('i', 0x0000000d, __u32)
103#endif
104 105
105/* code length in bits, currently only for LIRC_MODE_LIRCCODE */ 106/* code length in bits, currently only for LIRC_MODE_LIRCCODE */
106#define LIRC_GET_LENGTH _IOR('i', 0x0000000f, __u32) 107#define LIRC_GET_LENGTH _IOR('i', 0x0000000f, __u32)
@@ -121,23 +122,30 @@
121 */ 122 */
122#define LIRC_SET_REC_TIMEOUT _IOW('i', 0x00000018, __u32) 123#define LIRC_SET_REC_TIMEOUT _IOW('i', 0x00000018, __u32)
123 124
124#if 0 /* these ioctls are not used at the moment */ 125/* 1 enables, 0 disables timeout reports in MODE2 */
126#define LIRC_SET_REC_TIMEOUT_REPORTS _IOW('i', 0x00000019, __u32)
127
125/* 128/*
126 * pulses shorter than this are filtered out by hardware (software 129 * pulses shorter than this are filtered out by hardware (software
127 * emulation in lirc_dev?) 130 * emulation in lirc_dev?)
128 */ 131 */
129#define LIRC_SET_REC_FILTER_PULSE _IOW('i', 0x00000019, __u32) 132#define LIRC_SET_REC_FILTER_PULSE _IOW('i', 0x0000001a, __u32)
130/* 133/*
131 * spaces shorter than this are filtered out by hardware (software 134 * spaces shorter than this are filtered out by hardware (software
132 * emulation in lirc_dev?) 135 * emulation in lirc_dev?)
133 */ 136 */
134#define LIRC_SET_REC_FILTER_SPACE _IOW('i', 0x0000001a, __u32) 137#define LIRC_SET_REC_FILTER_SPACE _IOW('i', 0x0000001b, __u32)
135/* 138/*
136 * if filter cannot be set independantly for pulse/space, this should 139 * if filter cannot be set independantly for pulse/space, this should
137 * be used 140 * be used
138 */ 141 */
139#define LIRC_SET_REC_FILTER _IOW('i', 0x0000001b, __u32) 142#define LIRC_SET_REC_FILTER _IOW('i', 0x0000001c, __u32)
140#endif 143
144/*
145 * if enabled from the next key press on the driver will send
146 * LIRC_MODE2_FREQUENCY packets
147 */
148#define LIRC_SET_MEASURE_CARRIER_MODE _IOW('i', 0x0000001d, __u32)
141 149
142/* 150/*
143 * to set a range use 151 * to set a range use
@@ -151,13 +159,7 @@
151 159
152#define LIRC_NOTIFY_DECODE _IO('i', 0x00000020) 160#define LIRC_NOTIFY_DECODE _IO('i', 0x00000020)
153 161
154#if 0 /* these ioctls are not used at the moment */ 162#define LIRC_SETUP_START _IO('i', 0x00000021)
155/* 163#define LIRC_SETUP_END _IO('i', 0x00000022)
156 * from the next key press on the driver will send
157 * LIRC_MODE2_FREQUENCY packets
158 */
159#define LIRC_MEASURE_CARRIER_ENABLE _IO('i', 0x00000021)
160#define LIRC_MEASURE_CARRIER_DISABLE _IO('i', 0x00000022)
161#endif
162 164
163#endif 165#endif
diff --git a/drivers/media/IR/lirc_dev.h b/include/media/lirc_dev.h
index b1f60663cb39..b1f60663cb39 100644
--- a/drivers/media/IR/lirc_dev.h
+++ b/include/media/lirc_dev.h