Very simple: the various mouse drivers could dump their number to the console
on initialization, cfr. the Ethernet drivers:
mouse0: armadillo mouse driver installed
BTW, this is similar to the question `how does the user know which SCSI device
corresponds to which number'?
> would that mean taking mice out of the miscdev major, or reserving a range
> of minors?
That's up to hpa. He maintains those numbers. But we could e.g. keep on using
the first 16 minors of the misc major. Or isn't that sufficient? Maybe 128
minors for people with zillions of ADB and USB mice :-)
> >Another advantage is that you don't need to register a mouse minor if you
> >write
> >a new busmouse driver (e.g. the ADB mouse driver (work in progress)).
>
> The ADB mouse driver (stalled, still waiting for news from the PPC ASB
> maintainer) would go into the ADB device class, but your suggestion would
> be a possible alternative.
IMHO the ADB device should be used for `special' things that aren't possible
elseway. A mouse is simply a mouse. The same is true for USB mice.
Greetings,
Geert
-- Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/ Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium