History log of /haiku/src/add-ons/kernel/bus_managers/ps2/ps2_dev.h
Revision Date Author Comments
# 819b4547 07-Jul-2014 John Scipione <jscipione@gmail.com>

PS/2 bus manager: style fixes only


# 077c84eb 05-Nov-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: atomic_*() functions rework

* No need for the atomically changed variables to be declared as
volatile.
* Drop support for atomically getting and setting unaligned data.
* Introduce atomic_get_and_set[64]() which works the same as
atomic_set[64]() used to. atomic_set[64]() does not return the
previous value anymore.


# 4c78b73b 22-Sep-2013 Jérôme Duval <jerome.duval@gmail.com>

ps2: added initial support for elantech pads.

* also added a license to ps2_alps.h
* added ps2_dev_sliced_command()
* moved some ps2 commands definitions to ps2_defs.h


# 7f4deb44 26-Jun-2011 Siarzhuk Zharski <zharik@gmx.li>

* Implemented PS2_CMD_RESEND command handlig;

* Workaround for touchpad reset timeouts on some HP/Compaq KBCs. Looks like such
KBC marks the mouse reset request (xFF) as correctly sent (by xFA answer) but
does not wait enough time for the answer from touchpad. So complete answer
finally contains xFE xAA x00 bytes. The workaround detects this xFE xAA answer
and issues the RESEND (xFE) request to touchpad. This forces touchpad to resend
the last packet of data (xAA x00) that can be processed normally by the host;

* Fix for handling passthrough_command() call. The parent device was disabled at
start of processing command and was not re-enabled back in case any error return.
This fixes the touchpad "pass-through" feature handling on the same HP/Compaq HW.
This KBC has the "pass-through" capability marked ON but cannot handle it as
currently implemented - there is no answer from corresponding port. The parent
device stay in disabled state after this;

* Fix ps2_dev_publish() for handling passthrough devices (parent_dev != NULL)
This workaround postpone the publishing such device until the parent device
finishes it's opening and set the PS2_ENABLED_FALG. It prevent from mixing
the Synaptics multi-command sequences from synaptics_open() and ps2_dev_publish()
routines and failing both initializations;

Fixes #2867 #3594 #4315



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42325 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3856867b 13-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Made C++ safe.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36255 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ab89b2f0 05-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Olivier Coursiere: Reset the touchpad mode when closing the device.
Will be useful when (input) devices are closed during shutdown. (app_server
and input_server are never quit during shutdown, so the drivers are not closed
either.) Apparently, the touchpad will remain as configured before, on a soft
reset which confuses for example BeOS, when it's booted after Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29920 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 03973d27 02-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 802b6330 01-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

* Fixed some of the weirdly changed define names.
* A few more style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28429 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5bb8f085 01-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

* standart -> standard
* Hopefully fixed most of the coding style violations
* ps2_trackpoint.h had the wrong header guard


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28425 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6849a228 01-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Clemens Zeilder:
* Implemented Synaptics touchpad support in the PS2 bus_manager by
refactoring/splitting the structure some and adding touchpad device
handling.
* Implemented Touchpad input_server device add-on
* Created Touchpad preflet for configuring advances Synaptics touchpad
options like scroll region (both horizontal and vertical) as well
as other neat stuff

Thanks a lot, Clemens!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28416 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 22a50991 28-Apr-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

Added an optional timeout to ps2_dev_command,
Changed hotplug handler to use the republishing service.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20892 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ce8185b3 08-Mar-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup & disabled most debug output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20357 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 45d3c4ec 13-Apr-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Implemented hotplug support conforming to the active multiplexing specification.
Works with my notebook, but kernel support for unpublishing devices is broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17123 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f9ff1193 11-Apr-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Removed mouse polling, there seem to exist way too many broken mice for this to work relyable.
Reworked interrupt handler calling, and added a data history.
Hotplug support will later be implemented using interrupt data.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17097 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 130a1761 29-Mar-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

implemented unpublishing of device and disconnecting (doesn't seem to work yet)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16923 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5deac87d 27-Mar-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

prepared hotplug support


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16903 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a9e8a72a 23-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

improved ps2_dev_command ACK handling, also added workaround for mice not ACKing a get device id command


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16051 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 395817e3 21-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Improved ps2_dev_command(), it now properly handles ACK and NACK, and thus is much faster.
Small cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16029 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dfd5628d 21-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

implemented basic support for multiple mouse devices, seems to work


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16022 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 03d0d41a 21-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

better multiplexing support


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16016 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 487f6591 16-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

converted ps2_hid driver into ps2 bus manager


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15987 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d61a52a7 16-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

copied some files from ps2_hid driver


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15982 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 819b454750bfac97f44c156e7e0fdb9683406ab8 07-Jul-2014 John Scipione <jscipione@gmail.com>

PS/2 bus manager: style fixes only


# 077c84eb27b25430428d356f3d13afabc0cc0d13 05-Nov-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: atomic_*() functions rework

* No need for the atomically changed variables to be declared as
volatile.
* Drop support for atomically getting and setting unaligned data.
* Introduce atomic_get_and_set[64]() which works the same as
atomic_set[64]() used to. atomic_set[64]() does not return the
previous value anymore.


# 4c78b73b8a5411d19320e31510654e42815178db 22-Sep-2013 Jérôme Duval <jerome.duval@gmail.com>

ps2: added initial support for elantech pads.

* also added a license to ps2_alps.h
* added ps2_dev_sliced_command()
* moved some ps2 commands definitions to ps2_defs.h


# 7f4deb4400434bb3c210a7b0333eddd4800290bf 26-Jun-2011 Siarzhuk Zharski <zharik@gmx.li>

* Implemented PS2_CMD_RESEND command handlig;

* Workaround for touchpad reset timeouts on some HP/Compaq KBCs. Looks like such
KBC marks the mouse reset request (xFF) as correctly sent (by xFA answer) but
does not wait enough time for the answer from touchpad. So complete answer
finally contains xFE xAA x00 bytes. The workaround detects this xFE xAA answer
and issues the RESEND (xFE) request to touchpad. This forces touchpad to resend
the last packet of data (xAA x00) that can be processed normally by the host;

* Fix for handling passthrough_command() call. The parent device was disabled at
start of processing command and was not re-enabled back in case any error return.
This fixes the touchpad "pass-through" feature handling on the same HP/Compaq HW.
This KBC has the "pass-through" capability marked ON but cannot handle it as
currently implemented - there is no answer from corresponding port. The parent
device stay in disabled state after this;

* Fix ps2_dev_publish() for handling passthrough devices (parent_dev != NULL)
This workaround postpone the publishing such device until the parent device
finishes it's opening and set the PS2_ENABLED_FALG. It prevent from mixing
the Synaptics multi-command sequences from synaptics_open() and ps2_dev_publish()
routines and failing both initializations;

Fixes #2867 #3594 #4315



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42325 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3856867b031bf88fa8f4895d78aa8ea6c57c81c9 13-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Made C++ safe.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36255 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ab89b2f0c928afb2833dce69ee4442056c2b1540 05-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Olivier Coursiere: Reset the touchpad mode when closing the device.
Will be useful when (input) devices are closed during shutdown. (app_server
and input_server are never quit during shutdown, so the drivers are not closed
either.) Apparently, the touchpad will remain as configured before, on a soft
reset which confuses for example BeOS, when it's booted after Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29920 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 03973d27ebb2efebc7849de071648334e139b0cb 02-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 802b6330823547ede6b71a30219c4455c0a301a6 01-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

* Fixed some of the weirdly changed define names.
* A few more style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28429 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5bb8f0856738ed9c6e83afce46b13fdc60bcf38f 01-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

* standart -> standard
* Hopefully fixed most of the coding style violations
* ps2_trackpoint.h had the wrong header guard


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28425 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6849a22864a9edc90482d16a5fd35f64f671b3b9 01-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Clemens Zeilder:
* Implemented Synaptics touchpad support in the PS2 bus_manager by
refactoring/splitting the structure some and adding touchpad device
handling.
* Implemented Touchpad input_server device add-on
* Created Touchpad preflet for configuring advances Synaptics touchpad
options like scroll region (both horizontal and vertical) as well
as other neat stuff

Thanks a lot, Clemens!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28416 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 22a50991447d15e6852dd5eb04244e8f10ab3fe3 28-Apr-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

Added an optional timeout to ps2_dev_command,
Changed hotplug handler to use the republishing service.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20892 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ce8185b383eb2d071a486a0bfd50364f6037d3e7 08-Mar-2007 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup & disabled most debug output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20357 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 45d3c4ec1468b8373e27e6f95216b3281c7a6ff9 13-Apr-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Implemented hotplug support conforming to the active multiplexing specification.
Works with my notebook, but kernel support for unpublishing devices is broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17123 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f9ff1193f76399fa22028b20946531535561e714 11-Apr-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Removed mouse polling, there seem to exist way too many broken mice for this to work relyable.
Reworked interrupt handler calling, and added a data history.
Hotplug support will later be implemented using interrupt data.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17097 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 130a1761463a73efe3b999b96a8c333a564b3425 29-Mar-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

implemented unpublishing of device and disconnecting (doesn't seem to work yet)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16923 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5deac87dd27ab91f566980a339c054c69b8df427 27-Mar-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

prepared hotplug support


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16903 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a9e8a72a70428b7024742225a1081de32a3488ed 23-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

improved ps2_dev_command ACK handling, also added workaround for mice not ACKing a get device id command


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16051 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 395817e35f5f361ed18425dac86e8d024b985353 21-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

Improved ps2_dev_command(), it now properly handles ACK and NACK, and thus is much faster.
Small cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16029 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dfd5628d64b9a717916400a5efe6b01403ac07ca 21-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

implemented basic support for multiple mouse devices, seems to work


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16022 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 03d0d41ac794bbbd8990f56fb415f3c308e20d9e 21-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

better multiplexing support


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16016 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 487f65913b5901349b64b0c15d881486c644381c 16-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

converted ps2_hid driver into ps2 bus manager


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15987 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d61a52a78d8c7aaf674e9e8d5483e4dfe8b6e6ab 16-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

copied some files from ps2_hid driver


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15982 a95241bf-73f2-0310-859d-f6bbb57e9c96