Messages in this thread | | | Date | Mon, 15 Dec 1997 13:26:44 +0100 (CET) | From | Geert Uytterhoeven <> | Subject | Mouse minor chaos |
| |
What's the logic behind the different mouse minors for different busmice?
Wouldn't it be better to dynamically assign a minor when a driver registers a mouse? That way the users doesn't have to care anymore about the device names that are used for his mice, all he needs to know is that his first mouse is /dev/mouse0, his second mouse is /dev/mouse1, etc...
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)).
Of course the user still needs to know the types of his mice, but most busmice behave the same anyway (e.g. /dev/amigamouse, /dev/atarimouse and /dev/adbmouse all use the standard busmouse protocol).
Greetings,
Geert
P.S. The same is true for the various serial major/minor numbers. Chaos! -- 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
| |