summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/include
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-09-02 13:45:41 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-09-02 13:45:41 +0000
commitc3d85a3d10a85474716c599b5b5d2c0f19345578 (patch)
tree12467ff36b17d2224a4c05abcd8defa0297b4086 /sys/arch/amiga/include
parent150d3fbd1a515cc81b68bf149f926530b8d162c2 (diff)
Amiga joystick driver. Stylistic comments by Niklas.
Missing documentation yet.
Diffstat (limited to 'sys/arch/amiga/include')
-rw-r--r--sys/arch/amiga/include/conf.h4
-rw-r--r--sys/arch/amiga/include/joystick.h12
2 files changed, 15 insertions, 1 deletions
diff --git a/sys/arch/amiga/include/conf.h b/sys/arch/amiga/include/conf.h
index 593d93bd001..3b0f2a76fad 100644
--- a/sys/arch/amiga/include/conf.h
+++ b/sys/arch/amiga/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.11 1999/07/30 20:19:04 deraadt Exp $ */
+/* $OpenBSD: conf.h,v 1.12 2000/09/02 13:45:40 espie Exp $ */
/* $NetBSD: conf.h,v 1.4 1996/11/30 01:13:07 is Exp $ */
/*
@@ -74,6 +74,8 @@ cdev_decl(wd);
cdev_decl(ksyms);
+cdev_decl(joy);
+
/* open, close, ioctl, select, mmap -- XXX should be a map device */
#define cdev_grf_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) nullop, \
diff --git a/sys/arch/amiga/include/joystick.h b/sys/arch/amiga/include/joystick.h
new file mode 100644
index 00000000000..faafcd0d0d6
--- /dev/null
+++ b/sys/arch/amiga/include/joystick.h
@@ -0,0 +1,12 @@
+/* $OpenBSD: joystick.h,v 1.1 2000/09/02 13:45:40 espie Exp $ */
+#ifndef _AMIGA_JOYSTICK_H
+#define _AMIGA_JOYSTICK_H
+
+#define JOYSTICK_NONE 0
+#define JOYSTICK_RIGHT 1
+#define JOYSTICK_DOWN 2
+#define JOYSTICK_LEFT 4
+#define JOYSTICK_UP 8
+#define JOYSTICK_FIRE 16
+
+#endif