summaryrefslogtreecommitdiffstats
path: root/sys/dev/joy/joy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/joy/joy.c')
-rw-r--r--sys/dev/joy/joy.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c
index 5d4a7c2..6847f43 100644
--- a/sys/dev/joy/joy.c
+++ b/sys/dev/joy/joy.c
@@ -92,10 +92,27 @@ static d_close_t joyclose;
static d_read_t joyread;
static d_ioctl_t joyioctl;
-static struct cdevsw joy_cdevsw =
- { joyopen, joyclose, joyread, nowrite, /*51*/
- joyioctl, nostop, nullreset, nodevtotty,/*joystick */
- seltrue, nommap, NULL, "joy", NULL, -1 };
+static struct cdevsw joy_cdevsw = {
+ /* open */ joyopen,
+ /* close */ joyclose,
+ /* read */ joyread,
+ /* write */ nowrite,
+ /* ioctl */ joyioctl,
+ /* stop */ nostop,
+ /* reset */ noreset,
+ /* devtotty */ nodevtotty,
+ /* poll */ nopoll,
+ /* mmap */ nommap,
+ /* strategy */ nostrategy,
+ /* name */ "joy",
+ /* parms */ noparms,
+ /* maj */ CDEV_MAJOR,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ 0,
+ /* maxio */ 0,
+ /* bmaj */ -1
+};
static int get_tick __P((void));
OpenPOWER on IntegriCloud