<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/adb, branch release/8.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2009-12-12T02:34:00Z</updated>
<entry>
<title>MFC r199888:</title>
<updated>2009-12-12T02:34:00Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2009-12-12T02:34:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a8fb2bf194f2c510f5428fa7e393c2a56744dc99'/>
<id>urn:sha1:a8fb2bf194f2c510f5428fa7e393c2a56744dc99</id>
<content type='text'>
Add support for interpreting taps on ADB touchpads as a button click.

Submitted by:	Andreas Tobler &lt;andreast-list at fgznet dot ch&gt;
</content>
</entry>
<entry>
<title>MFC 196403: Temporarily revert the new-bus locking for 8.0 release.</title>
<updated>2009-08-20T20:23:28Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-08-20T20:23:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=247db0748a75747673b753a6af3e2c39dfae88ed'/>
<id>urn:sha1:247db0748a75747673b753a6af3e2c39dfae88ed</id>
<content type='text'>
Approved by:	re (kib)
</content>
</entry>
<entry>
<title>Make the newbus subsystem Giant free by adding the new newbus sxlock.</title>
<updated>2009-08-02T14:28:40Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2009-08-02T14:28:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=444b91868b5294e3a2151fffa3b063763a562448'/>
<id>urn:sha1:444b91868b5294e3a2151fffa3b063763a562448</id>
<content type='text'>
The newbus lock is responsible for protecting newbus internIal structures,
device states and devclass flags. It is necessary to hold it when all
such datas are accessed. For the other operations, softc locking should
ensure enough protection to avoid races.

Newbus lock is automatically held when virtual operations on the device
and bus are invoked when loading the driver or when the suspend/resume
take place. For other 'spourious' operations trying to access/modify
the newbus topology, newbus lock needs to be automatically acquired and
dropped.

For the moment Giant is also acquired in some key point (modules subsystem)
in order to avoid problems before the 8.0 release as module handlers could
make assumptions about it. This Giant locking should go just after
the release happens.

Please keep in mind that the public interface can be expanded in order
to provide more support, if there are really necessities at some point
and also some bugs could arise as long as the patch needs a bit of
further testing.

Bump __FreeBSD_version in order to reflect the newbus lock introduction.

Reviewed by:    ed, hps, jhb, imp, mav, scottl
No answer by:   ariff, thompsa, yongari
Tested by:      pho,
                G. Trematerra &lt;giovanni dot trematerra at gmail dot com&gt;,
                Brandon Gooch &lt;jamesbrandongooch at gmail dot com&gt;
Sponsored by:   Yahoo! Incorporated
Approved by:	re (ksmith)
</content>
</entry>
<entry>
<title>Use si_drv1 to hold the softc for the adb_mouse character device instead of</title>
<updated>2009-01-29T16:18:49Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2009-01-29T16:18:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=be57da218cf6734e733d1ca352077239b48adf8c'/>
<id>urn:sha1:be57da218cf6734e733d1ca352077239b48adf8c</id>
<content type='text'>
using devclass_get_softc().

Tested by:	nwhitehorn
</content>
</entry>
<entry>
<title>Make adb_mouse use dev2unit() instead of minor().</title>
<updated>2009-01-29T05:59:42Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2009-01-29T05:59:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=218653a7fc55db69075f14de865963d83e9ef801'/>
<id>urn:sha1:218653a7fc55db69075f14de865963d83e9ef801</id>
<content type='text'>
A real fix would be to migrate it to si_drv0 to store the softc
directly, but this is the quickest way to fix it right now.
</content>
</entry>
<entry>
<title>Improve the AT keyboard emulation of the ADB keyboard driver, by supporting</title>
<updated>2009-01-08T17:47:45Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2009-01-08T17:47:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4fb52093a87921460b0b936b7818349908e8b2af'/>
<id>urn:sha1:4fb52093a87921460b0b936b7818349908e8b2af</id>
<content type='text'>
an AT-like K_RAW mode instead of just K_CODE. This has the effect of making
the arrow keys on ADB keyboards work in X11.

Copied from: sunkbd(4)
</content>
</entry>
<entry>
<title>Fix some nasty race conditions in the VIA-CUDA driver that ended up preventing</title>
<updated>2008-12-06T23:26:02Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2008-12-06T23:26:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=582434bd08e752cee5742bd54d0da37acfc49861'/>
<id>urn:sha1:582434bd08e752cee5742bd54d0da37acfc49861</id>
<content type='text'>
my right mouse button and keyboard LEDs from working due to mangled
configuration packets. Fixed several other races and associated problems in the
main ADB stack that were exposed while fixing this.
</content>
</entry>
<entry>
<title>Probe ADB miscellaneous devices (ID 7) instead of stopping at ID 6. This</title>
<updated>2008-11-12T17:33:36Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2008-11-12T17:33:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=669518d7d5caaa7e373d89759b581e634a30f1c7'/>
<id>urn:sha1:669518d7d5caaa7e373d89759b581e634a30f1c7</id>
<content type='text'>
allows us to probe the brightness and volume control buttons on PPC Apple
laptops, though there is not yet a driver to do anything useful with them.
</content>
</entry>
<entry>
<title>Make the touch pad on my PowerBook G4 12" a little more usable.</title>
<updated>2008-11-02T19:08:10Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-11-02T19:08:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3c5f535bbf1cadbd9bf923e4b5aa753ca845fcff'/>
<id>urn:sha1:3c5f535bbf1cadbd9bf923e4b5aa753ca845fcff</id>
<content type='text'>
For an unknown reason the touch pad of my PowerBook generates button 5
events when you operate it. This causes the adb_mouse code to convert
them to button 2 events, which is not what we want.

Add a new flag, AMS_TOUCHPAD, which is used to distinguish the touch
pad. When set, don't convert button events of unknown buttons to the
last button.

There are still three problems left with respect to user input:

- The mouse button events are not properly processed when the touch pad
  isn't touched.

- The arrow keys on the keyboard don't work inside X11.

- The power button isn't handled by the kernel, similar to the ACPI
  power button on i386/amd64.

Approved by:	nwhitehorn
</content>
</entry>
<entry>
<title>Allow a read() on /dev/ams[0-9] to be interrupted.</title>
<updated>2008-11-01T08:07:02Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-11-01T08:07:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b75d1970968c1f36bb8e1ef1ec74c3754dce3b8b'/>
<id>urn:sha1:b75d1970968c1f36bb8e1ef1ec74c3754dce3b8b</id>
<content type='text'>
Right now ams_read() uses cv_wait() to wait for new data to arrive on
the mouse device. This means that when you run `cat /dev/ams0', it
cannot be interrupted directly. After you press ^C, you first need to
move the mouse before cat will quit. Make this function use
cv_wait_sig(), which allows it to be interrupted directly.

Reviewed by:	nwhitehorn
</content>
</entry>
</feed>
