History log of /haiku/src/add-ons/kernel/bus_managers/ps2/ps2_common.h
Revision Date Author Comments
# fb1d7157 10-Jul-2022 PulkoMandy <pulkomandy@pulkomandy.tk>

ps2: do not publish keyboard device until mouse probing is complete

For mouse probing to work reliably, it's important that we don't
simultaneously send commands to the keyboard as well. This normally
happens because we don't publish the keyboard device until the probing
is complete.

However, if the mouse probing results in the keyboard sending some
replies, this can be detected as a "hot plugin" and leads to publishing
the keyboard device a lot earlier.

To prevent this, disable the "hot plugin" feature until we are done
initializing. This way the keyboard device is published only after we
are done with the probing.

Fixes #17806

Change-Id: Ia6a2b031550c845fa305df5b5f4d513d5c7931d6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5388
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# fdbbdccc 04-Sep-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

ps2: allow more selective tracing

In some cases, we don't need the full tracking of every byte received at
the PS2 level, but higher level traces from specific devices will be
enough.

Change-Id: I31984e6b7784b5d033b457f43f3793f772213f4a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4423
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 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


# 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


# 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


# 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


# 98659f44 18-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22616 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


# 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


# c03dcec1 19-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup


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


# a11f16fd 13-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup of multiplexing support and debug output


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


# 4730cb76 13-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

improved debug output
remove some warnings


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


# 84f007fb 30-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

made access to keyboard controller and dev->flags thread save


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


# 64faaed8 29-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16144 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


# 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


# 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


# 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


# 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


# 98659f44ab363685e83bd00f9983cfde8203a0c2 18-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22616 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


# 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


# c03dcec18af6d5a0440b5345eeefa51735145a1c 19-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup


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


# a11f16fd7e6423714ad1ec96414d39952974aa81 13-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup of multiplexing support and debug output


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


# 4730cb76638da1ff76a675027da8013e7aa0552a 13-Feb-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

improved debug output
remove some warnings


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


# 84f007fba9f16728c11cdf581174f271a8ccb6c2 30-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

made access to keyboard controller and dev->flags thread save


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


# 64faaed88a5b2962cdfc272fc2b9d488b7d036e4 29-Jan-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16144 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