summaryrefslogtreecommitdiff
path: root/comms/lirc/files/patch-aa
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-06 01:31:49 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-06 01:31:49 +0000
commit627aa4a08ef1285003c63a0ad8ebe6e2a82064f1 (patch)
treed900613d39b220856e4b1b601b5459fb3cfa0d51 /comms/lirc/files/patch-aa
parentNew port: kix-kmod : Syscons screen saver module (diff)
New port: comms/lirc: Linux Infared Remote Control
This is a port of the LIRC, Linux Infrared Remote Control, package (www.lirc.org). This port installs the daemons and tools for interacting with device drivers that support the LIRC device interface. The port does not install any FreeBSD infrared device drivers yet; the user must obtain these from third parties or port the existing Linux drivers. PR: ports/46774 Submitted by: Mike Heffner <mikeh@FreeBSD.org> <mheffner@acm.vt.edu>
Diffstat (limited to 'comms/lirc/files/patch-aa')
-rw-r--r--comms/lirc/files/patch-aa61
1 files changed, 61 insertions, 0 deletions
diff --git a/comms/lirc/files/patch-aa b/comms/lirc/files/patch-aa
new file mode 100644
index 000000000000..4eac8325fac3
--- /dev/null
+++ b/comms/lirc/files/patch-aa
@@ -0,0 +1,61 @@
+--- drivers/lirc.h.orig Sat Jan 4 19:45:07 2003
++++ drivers/lirc.h Sat Jan 4 19:44:24 2003
+@@ -3,9 +3,6 @@
+ #ifndef _LINUX_LIRC_H
+ #define _LINUX_LIRC_H
+
+-#include <asm/types.h>
+-#include <linux/ioctl.h>
+-
+ #define PULSE_BIT 0x01000000
+ #define PULSE_MASK 0x00FFFFFF
+
+@@ -64,32 +61,32 @@
+ * IOCTL commands for lirc driver
+ */
+
+-#define LIRC_GET_FEATURES _IOR('i', 0x00000000, __u32)
++#define LIRC_GET_FEATURES _IOR('i', 0x00000000, u_int32_t)
+
+-#define LIRC_GET_SEND_MODE _IOR('i', 0x00000001, __u32)
+-#define LIRC_GET_REC_MODE _IOR('i', 0x00000002, __u32)
+-#define LIRC_GET_SEND_CARRIER _IOR('i', 0x00000003, __u32)
+-#define LIRC_GET_REC_CARRIER _IOR('i', 0x00000004, __u32)
+-#define LIRC_GET_SEND_DUTY_CYCLE _IOR('i', 0x00000005, __u32)
+-#define LIRC_GET_REC_DUTY_CYCLE _IOR('i', 0x00000006, __u32)
++#define LIRC_GET_SEND_MODE _IOR('i', 0x00000001, u_int32_t)
++#define LIRC_GET_REC_MODE _IOR('i', 0x00000002, u_int32_t)
++#define LIRC_GET_SEND_CARRIER _IOR('i', 0x00000003, u_int32_t)
++#define LIRC_GET_REC_CARRIER _IOR('i', 0x00000004, u_int32_t)
++#define LIRC_GET_SEND_DUTY_CYCLE _IOR('i', 0x00000005, u_int32_t)
++#define LIRC_GET_REC_DUTY_CYCLE _IOR('i', 0x00000006, u_int32_t)
+
+ /* code length in bits, currently only for LIRC_MODE_LIRCCODE */
+-#define LIRC_GET_LENGTH _IOR('i', 0x0000000f, __u32)
++#define LIRC_GET_LENGTH _IOR('i', 0x0000000f, u_int32_t)
+
+-#define LIRC_SET_SEND_MODE _IOW('i', 0x00000011, __u32)
+-#define LIRC_SET_REC_MODE _IOW('i', 0x00000012, __u32)
++#define LIRC_SET_SEND_MODE _IOW('i', 0x00000011, u_int32_t)
++#define LIRC_SET_REC_MODE _IOW('i', 0x00000012, u_int32_t)
+ /* Note: these can reset the according pulse_width */
+-#define LIRC_SET_SEND_CARRIER _IOW('i', 0x00000013, __u32)
+-#define LIRC_SET_REC_CARRIER _IOW('i', 0x00000014, __u32)
+-#define LIRC_SET_SEND_DUTY_CYCLE _IOW('i', 0x00000015, __u32)
+-#define LIRC_SET_REC_DUTY_CYCLE _IOW('i', 0x00000016, __u32)
++#define LIRC_SET_SEND_CARRIER _IOW('i', 0x00000013, u_int32_t)
++#define LIRC_SET_REC_CARRIER _IOW('i', 0x00000014, u_int32_t)
++#define LIRC_SET_SEND_DUTY_CYCLE _IOW('i', 0x00000015, u_int32_t)
++#define LIRC_SET_REC_DUTY_CYCLE _IOW('i', 0x00000016, u_int32_t)
+
+ /* to set a range use
+ LIRC_SET_REC_DUTY_CYCLE_RANGE/LIRC_SET_REC_CARRIER_RANGE with the
+ lower bound first and later
+ LIRC_SET_REC_DUTY_CYCLE/LIRC_SET_REC_CARRIER with the upper bound */
+
+-#define LIRC_SET_REC_DUTY_CYCLE_RANGE _IOW('i', 0x0000001e, __u32)
+-#define LIRC_SET_REC_CARRIER_RANGE _IOW('i', 0x0000001f, __u32)
++#define LIRC_SET_REC_DUTY_CYCLE_RANGE _IOW('i', 0x0000001e, u_int32_t)
++#define LIRC_SET_REC_CARRIER_RANGE _IOW('i', 0x0000001f, u_int32_t)
+
+ #endif