[haiku-commits] r37082 - haiku/trunk/src/add-ons/kernel/bus_managers/ps2

  • From: rudolf.cornelissen@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 10 Jun 2010 12:48:07 +0200 (CEST)

Author: rudolfc
Date: 2010-06-10 12:48:07 +0200 (Thu, 10 Jun 2010)
New Revision: 37082
Changeset: http://dev.haiku-os.org/changeset/37082/haiku

Modified:
   haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_defs.h
   haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_standard_mouse.c
Log:
added ricatech netbook touchpad recognition. works ok now. hope nobody minds..

Modified: haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_defs.h
===================================================================
--- haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_defs.h  2010-06-10 
10:38:29 UTC (rev 37081)
+++ haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_defs.h  2010-06-10 
10:48:07 UTC (rev 37082)
@@ -71,6 +71,7 @@
 // mouse device IDs
 #define PS2_DEV_ID_STANDARD                            0
 #define PS2_DEV_ID_INTELLIMOUSE                        3
+#define PS2_DEV_ID_TOUCHPAD_RICATECH   4
 
 // packet sizes
 #define PS2_PACKET_STANDARD                            3

Modified: haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_standard_mouse.c
===================================================================
--- haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_standard_mouse.c        
2010-06-10 10:38:29 UTC (rev 37081)
+++ haiku/trunk/src/add-ons/kernel/bus_managers/ps2/ps2_standard_mouse.c        
2010-06-10 10:48:07 UTC (rev 37082)
@@ -300,7 +300,8 @@
                }
        }
 
-       if (deviceId == PS2_DEV_ID_STANDARD) {
+       if ((deviceId == PS2_DEV_ID_STANDARD) ||
+               (deviceId == PS2_DEV_ID_TOUCHPAD_RICATECH)) {
                INFO("ps2: probe_mouse Standard PS/2 mouse found\n");
                dev->name = kStandardMousePath[dev->idx];
                dev->packet_size = PS2_PACKET_STANDARD;


Other related posts: