[PATCH 06/11] Modify FREEBSD EVDEV driver for use in RTEMS

Kevin Kirspel kevin-kirspel at idexx.com
Mon May 15 17:26:33 UTC 2017


---
 freebsd/sys/dev/evdev/evdev.c                |  4 ++++
 rtemsbsd/include/rtems/bsd/local/opt_evdev.h | 19 +++++++++++++++++++
 2 files changed, 23 insertions(+)
 create mode 100644 rtemsbsd/include/rtems/bsd/local/opt_evdev.h

diff --git a/freebsd/sys/dev/evdev/evdev.c b/freebsd/sys/dev/evdev/evdev.c
index e7575d5..323e2d2 100644
--- a/freebsd/sys/dev/evdev/evdev.c
+++ b/freebsd/sys/dev/evdev/evdev.c
@@ -64,7 +64,11 @@ enum evdev_sparse_result

 MALLOC_DEFINE(M_EVDEV, "evdev", "evdev memory");

+#ifndef __rtems__
 int evdev_rcpt_mask = EVDEV_RCPT_SYSMOUSE | EVDEV_RCPT_KBDMUX;
+#else /* __rtems__ */
+int evdev_rcpt_mask = EVDEV_RCPT_HW_MOUSE | EVDEV_RCPT_HW_KBD;
+#endif /* __rtems__ */
 int evdev_sysmouse_t_axis = 0;

 SYSCTL_NODE(_kern, OID_AUTO, evdev, CTLFLAG_RW, 0, "Evdev args");
diff --git a/rtemsbsd/include/rtems/bsd/local/opt_evdev.h b/rtemsbsd/include/rtems/bsd/local/opt_evdev.h
new file mode 100644
index 0000000..5d01325
--- /dev/null
+++ b/rtemsbsd/include/rtems/bsd/local/opt_evdev.h
@@ -0,0 +1,1 @@
+#define EVDEV_SUPPORT 1
--
1.9.1



More information about the devel mailing list