Path: utzoo!attcan!uunet!mcvax!ukc!strath-cs!glasgow!bru-cc!ralph From: ralph@cc.brunel.ac.uk (Ralph Mitchell) Newsgroups: comp.os.minix Subject: Re: Atari ST mouse driver Message-ID: <646@Terra.cc.brunel.ac.uk> Date: 27 Feb 89 14:58:57 GMT References: <1611@uwovax.uwo.ca> Reply-To: ralph@ccs.brunel.ac.uk (Ralph Mitchell) Organization: Brunel University, Uxbridge, UK Lines: 35 In article <1611@uwovax.uwo.ca> 7103_300@uwovax.uwo.ca (Eric Smith) writes: >Here's a mouse driver for Minix/ST. It's fairly primitive, but does >the job. I've included a very simple drawing program as an example >of how to read the mouse. I forgot to mention this in the README >file, but the sketch program needs my previously posted /dev/screen >driver. The screen driver works like a charm, but I found a slight problem with the mouse driver. I got: fs: filesystem panic: bad major device 7 It turns out that an entry needs to be made in the table of drivers in fs/table.c. The last few lines should read like this: tty_open, rw_dev, no_call, TTY, /* 4 = /dev/tty0 */ no_call, rw_dev2, no_call, TTY, /* 5 = /dev/tty */ no_call, rw_dev, no_call, PRINTER, /* 6 = /dev/lp */ -> no_call, rw_dev, no_call, MOUSE /* 7 = /dev/mouse */ }; int max_major = sizeof(dmap)/sizeof(struct dmap); I'm not 100% sure this is correct, but it works for me :-) Perhaps Eric could confirm this ?? I guess he may have just overlooked this diff... Recompiling with this fix makes the 'sketch' program work OK. Ralph Mitchell -- From: Ralph Mitchell at Brunel University, Uxbridge, UB8, 3PH, UK JANET: ralph@uk.ac.brunel.cc ARPA: ralph%cc.brunel.ac.uk@cwi.nl UUCP: ...ukc!cc.brunel!ralph PHONE: +44 895 74000 x2561 "There's so many different worlds, so many different Suns" -- Dire Straits