- Remove much deprecated code for the mouse initialization (had been imported from...
authorColin Finck <colin@reactos.org>
Mon, 31 Mar 2008 12:40:31 +0000 (12:40 +0000)
committerColin Finck <colin@reactos.org>
Mon, 31 Mar 2008 12:40:31 +0000 (12:40 +0000)
commit47034d9d29291366c2524e3c1e7438b9392dca1a
treef54e48f0c0d0fd1a088ac36c6b90688899567f9c
parent81d1c9b3ac32c6854ad058e67871141143345d56
- Remove much deprecated code for the mouse initialization (had been imported from the ancient psaux.sys driver, which was removed in _r14938_)
  Do a much simpler initialization instead:
    * The "Get ID" command was used for detecting whether a mouse is present.
      But it just handled normal mice, IntelliMice and IntelliMice Explorer, although there can be many more possible values for other mice. (see for example http://www.win.tue.nl/~aeb/linux/kbd/scancodes-13.html#mcf2).
      Also this command isn't available on all systems.
      Furthermore we already do a MOUSE_LINE_TEST in i8042BasicDetect, which is the more reliable method to test whether a mouse is plugged in. Therefore this "Get ID" command can be simply removed.
    * The whole mouse initialization process now boils down to enabling the mouse itself and in the controller
    * All in all, some more mice should be detected now.
- Give i8042IsrWritePort a boolean return value and pass the results of the i8042Write calls
- Replace two i8042Write calls for writing to the mouse by one i8042IsrWritePort call where possible
- Remove the unused KBD_LINE_TEST define

This change was tested under QEMU, VMware and on one real system.

svn path=/trunk/; revision=32790
reactos/drivers/input/i8042prt/i8042prt.h
reactos/drivers/input/i8042prt/mouse.c
reactos/drivers/input/i8042prt/pnp.c
reactos/drivers/input/i8042prt/readwrite.c