summaryrefslogtreecommitdiff
path: root/sys/arch/arc/include
diff options
context:
space:
mode:
authorimp <imp@cvs.openbsd.org>1998-05-05 05:44:44 +0000
committerimp <imp@cvs.openbsd.org>1998-05-05 05:44:44 +0000
commit8ffe25532e04ef240c4390021837cae63e8d8c2e (patch)
tree1bd5e737dcfce0d7a4e0ae7dbc997b7d56bf4f3b /sys/arch/arc/include
parent69688589deb03a28aa2e9d6e90967b4b431ca284 (diff)
First cut at joy.c port from i386
Diffstat (limited to 'sys/arch/arc/include')
-rw-r--r--sys/arch/arc/include/joystick.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/arch/arc/include/joystick.h b/sys/arch/arc/include/joystick.h
new file mode 100644
index 00000000000..7429e112130
--- /dev/null
+++ b/sys/arch/arc/include/joystick.h
@@ -0,0 +1,23 @@
+/* $OpenBSD: joystick.h,v 1.1 1998/05/05 05:44:43 imp Exp $ */
+/* $NetBSD: joystick.h,v 1.1 1996/03/27 19:18:56 perry Exp $ */
+
+#ifndef _JOY_IOCTL_H_
+#define _JOY_IOCTL_H_
+
+#include <sys/ioccom.h>
+
+struct joystick {
+ int x;
+ int y;
+ int b1;
+ int b2;
+};
+
+#define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */
+#define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */
+#define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */
+#define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on X-axis */
+#define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */
+#define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */
+
+#endif /* _JOY_IOCTL_H_ */