Author: rmessiant Date: Wed Dec 22 19:09:25 2010 New Revision: 50105
URL: http://svn.reactos.org/svn/reactos?rev=50105&view=rev Log: [I8042PRT] - Calculate packet type according to PS/2++ spec (CID 1810). - Fix technical detail in comment to match spec.
Modified: trunk/reactos/drivers/input/i8042prt/ps2pp.c
Modified: trunk/reactos/drivers/input/i8042prt/ps2pp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/i8042prt/ps2p... ============================================================================== --- trunk/reactos/drivers/input/i8042prt/ps2pp.c [iso-8859-1] (original) +++ trunk/reactos/drivers/input/i8042prt/ps2pp.c [iso-8859-1] Wed Dec 22 19:09:25 2010 @@ -31,7 +31,7 @@ * a normal packet. * * Otherwise, the packet is different, like this: - * 1: E 1 b3 b2 x x x x + * 1: E 1 b3 b2 1 x x x * 2: x x b1 b0 x1 x0 1 0 * 3: x x x x x x x1 x0 * @@ -93,8 +93,8 @@ }
/* Now get the packet type */ - PktType = ((DeviceExtension->MouseLogiBuffer[0] & 0x30) >> 4) & - ((DeviceExtension->MouseLogiBuffer[1] & 0x30) >> 6); + PktType = ((DeviceExtension->MouseLogiBuffer[0] & 0x30) >> 2) | + ((DeviceExtension->MouseLogiBuffer[1] & 0x30) >> 4);
switch (PktType) {