<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/kbdmux/kbdmux.c, branch stable/9</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F9</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F9'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2011-07-17T08:19:19Z</updated>
<entry>
<title>Restore binary compatibility for GIO_KEYMAP and PIO_KEYMAP.</title>
<updated>2011-07-17T08:19:19Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-07-17T08:19:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=78d4d8eeb241bfc6f0a9487894945886b3ee2b41'/>
<id>urn:sha1:78d4d8eeb241bfc6f0a9487894945886b3ee2b41</id>
<content type='text'>
Back in 2009 I changed the ABI of the GIO_KEYMAP and PIO_KEYMAP ioctls
to support wide characters. I created a patch to add ABI compatibility
for the old calls, but I didn't get any feedback to that.

It seems now people are upgrading from 8 to 9 they experience this
issue, so add it anyway.
</content>
</entry>
<entry>
<title>Explicitly tell the compiler that we don't care about the return value</title>
<updated>2010-10-13T11:37:12Z</updated>
<author>
<name>Rui Paulo</name>
<email>rpaulo@FreeBSD.org</email>
</author>
<published>2010-10-13T11:37:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd1fa5bd4dfc2d1fd30cfb67f6afd37f33885b49'/>
<id>urn:sha1:cd1fa5bd4dfc2d1fd30cfb67f6afd37f33885b49</id>
<content type='text'>
of kbdd_ioctl().
</content>
</entry>
<entry>
<title>Use proper types in kbdmux_kbd_getc():</title>
<updated>2009-06-08T20:24:29Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2009-06-08T20:24:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=417635733eb6bc44584db5d605c8fb257d373f78'/>
<id>urn:sha1:417635733eb6bc44584db5d605c8fb257d373f78</id>
<content type='text'>
- The return value should be a signed integer, because -1 means failure.
- The c variable should be unsigned, to force it to be zero-extended
  when returned.

Reported by:	Andreas Tobler &lt;andreast-list fgznet ch&gt;
</content>
</entry>
<entry>
<title>Move buffer management into kbd and kbdmux drivers.</title>
<updated>2009-06-05T15:19:05Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2009-06-05T15:19:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f46eda1fd3bd289040755ba8c02cfd374c84b88'/>
<id>urn:sha1:5f46eda1fd3bd289040755ba8c02cfd374c84b88</id>
<content type='text'>
These two drivers seem to be the last consumers of clists. clists are
quite overengineered for simple circular buffers, so I'm adding similar
buffer management routines to the kbd and kbdmux drivers. The input
buffer is now part of the softc structures, instead of having
dynamically allocated cblocks.
</content>
</entry>
<entry>
<title>Undo SVN rev 183283</title>
<updated>2009-04-08T20:52:30Z</updated>
<author>
<name>Maksim Yevmenkin</name>
<email>emax@FreeBSD.org</email>
</author>
<published>2009-04-08T20:52:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ed382753a7ccddc8a34c1dc3c338e1d592789e50'/>
<id>urn:sha1:ed382753a7ccddc8a34c1dc3c338e1d592789e50</id>
<content type='text'>
Do not use Giant for kbdmux(4) locking. This is wrong and apparently
causing more problems than it solves. This will re-open the issue
where interrupt handlers may race with kbdmux(4) in polling mode.
Typical symptoms include (but not limited to) duplicated and/or
missing characters when low level console functions (such as gets)
are used while interrupts are enabled (for example geli password
prompt, mountroot prompt etc.)

MFC after:	3 days
</content>
</entry>
<entry>
<title>Since r188030 the error value for attach is returned, this means if kbdmux</title>
<updated>2009-02-13T23:36:08Z</updated>
<author>
<name>Andrew Thompson</name>
<email>thompsa@FreeBSD.org</email>
</author>
<published>2009-02-13T23:36:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fd66bfec7fd12ca0b9930ede8607c460ca77bf5a'/>
<id>urn:sha1:fd66bfec7fd12ca0b9930ede8607c460ca77bf5a</id>
<content type='text'>
fails to attach (possibly due to disable hints) then we get called back for
unload. Correctly handle the case where the keyboard isnt found rather than
calling panic.
</content>
</entry>
<entry>
<title>Properly retun error core from kbdmux_modevent()</title>
<updated>2009-02-02T21:34:04Z</updated>
<author>
<name>Maksim Yevmenkin</name>
<email>emax@FreeBSD.org</email>
</author>
<published>2009-02-02T21:34:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8de7d5083c6017c28b39045edeac7088aac0a239'/>
<id>urn:sha1:8de7d5083c6017c28b39045edeac7088aac0a239</id>
<content type='text'>
Reported by:	Christoph Mallon &lt; christoph -dot- mallon -at- gmx -dot- de &gt;
MFC after:	1 week
</content>
</entry>
<entry>
<title>Use Giant for kbdmux(4) locking. This is to workaround the problem</title>
<updated>2008-09-22T22:08:43Z</updated>
<author>
<name>Maksim Yevmenkin</name>
<email>emax@FreeBSD.org</email>
</author>
<published>2008-09-22T22:08:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=352d011bcc91cb970b55d8e93516fdd0c2f7253f'/>
<id>urn:sha1:352d011bcc91cb970b55d8e93516fdd0c2f7253f</id>
<content type='text'>
where interrupt handlers may race with kbdmux(4) in polling mode.

PR:		kern/127446
Reported by:	Eygene Ryabinkin rea-fbsd at codelabs dot ru
Tested by:	Eygene Ryabinkin rea-fbsd at codelabs dot ru
MFC after:	1 week
</content>
</entry>
<entry>
<title>Don't include &lt;sys/tty.h&gt; in non-TTY drivers.</title>
<updated>2008-07-24T09:54:10Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-07-24T09:54:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=75ec42320df4af879ff4fb54938046e46c4895fd'/>
<id>urn:sha1:75ec42320df4af879ff4fb54938046e46c4895fd</id>
<content type='text'>
The kbd, kbdmux, ugen and uhid drivers included &lt;sys/tty.h&gt;, because
they needed clists, which have been moved to &lt;sys/clist.h&gt; some time
ago. In the MPSAFE TTY branch, &lt;sys/tty.h&gt; does not include
&lt;sys/clist.h&gt;, which means we have to teach these drivers to include
this header file directly.

Approved by:	philip (mentor, implicit)
</content>
</entry>
<entry>
<title>Remove explicit calls to keyboard methods with their respective variants</title>
<updated>2007-12-29T21:55:25Z</updated>
<author>
<name>Wojciech A. Koszek</name>
<email>wkoszek@FreeBSD.org</email>
</author>
<published>2007-12-29T21:55:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=259699b294163f99205912e9e2ffcd59d1fbf9b8'/>
<id>urn:sha1:259699b294163f99205912e9e2ffcd59d1fbf9b8</id>
<content type='text'>
implemented with macros. This patch improves code readability. Reasoning
behind kbdd_* is a "keyboard discipline".

List of macros is supposed to be complete--all methods of keyboard_switch
should have their respective macros from now on.

Functionally, this code should be no-op. My intention is to leave current
behaviour of code as is.

Glanced at by:	rwatson
Reviewed by:	emax, marcel
Approved by:	cognet
</content>
</entry>
</feed>
