Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2005 11:19:28 +0200
From:      "Norbert Koch" <NKoch@demig.de>
To:        "Maksim Yevmenkin" <maksim.yevmenkin@savvis.net>
Cc:        "Freebsd-Hackers@Freebsd. Org" <freebsd-hackers@freebsd.org>
Subject:   RE: using vkbd device
Message-ID:  <000001c56ff8$ffda5b40$4801a8c0@ws-ew-3.W2KDEMIG>
In-Reply-To: <42A0891F.8080800@savvis.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C57009.C3632B40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

> you also might want to look at experimental keyboard mux drivers. it is 
> based on vkbd(4) and uses the idea of one super-keyboard that consumes 
> scancodes from other keyboards. there are still a few issues i need to 
> fix, but, in general, it works.
> 
> http://www.geocities.com/m_evmenkin/kbdmux-2.tar.gz
> 
> thanks,
> max
> 

Hello Max,

I back-ported kbdmux to FreeBSD 4.11 (and stopped work on vkbd).
It seems to work, although I still have some stability issues
with dynamically attaching/detaching a usb keyboard.
For your reference I have enclosed a patch file.
Sorry for some diffs due to slightly different coding
and debugging style.

Thank you for any comments,

Norbert
------=_NextPart_000_0001_01C57009.C3632B40
Content-Type: application/octet-stream;
	name="kbdmux.c.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="kbdmux.c.patch"

LS0tIGtiZG11eC9rYmRtdXguYwlTYXQgTWF5IDIxIDAxOjUxOjQ3IDIwMDUKKysrIGtiZG11eC5j
CU1vbiBKdW4gMTMgMTE6MDg6MTggMjAwNQpAQCAtMjcsNyArMjcsNyBAQAogICogT1VUIE9GIFRI
RSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRiBBRFZJU0VEIE9GIFRIRSBQT1NTSUJJTElU
WSBPRgogICogU1VDSCBEQU1BR0UuCiAgKgotICogJElkJAorICogJElkOiBrYmRtdXguYyx2IDEu
NCAyMDA1LzA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maW5lIEtCRE1VWF9MT0NLX0FTU0VSVChzLCB3KQkvKiBvbmx5IGJ5
IEZyZWVCU0QgNS5YIGFuZCB1cAorCQkJCQkgKiBzdXBwb3J0ZWQgKi8KKyNkZWZpbmUgS0JETVVY
X1NMRUVQKHMsIGYsIGQsIHQpICAgICAgICAgICAgICAgIFwKKyAgZG8gICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwKKyAgeyAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIFwKKyAgICBLQkRNVVhfVU5MT0NLIChzKTsgICAgICAgICAg
ICAgICAgICAgICAgICAgIFwKKyAgICB0c2xlZXAgKCYgKHMpLT5mLCBQQ0FUQ0h8UFBSSU8sIGQs
IHQpOyAgICAgIFwKKyAgICBLQkRNVVhfTE9DSyAocyk7ICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIFwKKyAgfSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwK
KyAgd2hpbGUgKDApCisKKyNlbmRpZgorCiAKICNkZWZpbmUgS0VZQk9BUkRfTkFNRQkia2JkbXV4
IgogCkBAIC02NywxNSArMTUwLDYgQEAKICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgogICoqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqLwogCi0jZGVmaW5lIEtCRE1VWF9MT0NLX0RFQ0wJc3RydWN0IG10eCBrc19s
b2NrCi0jZGVmaW5lIEtCRE1VWF9MT0NLX0lOSVQocykJbXR4X2luaXQoJihzKS0+a3NfbG9jaywg
TlVMTCwgTlVMTCwgTVRYX0RFRikKLSNkZWZpbmUgS0JETVVYX0xPQ0tfREVTVFJPWShzKQltdHhf
ZGVzdHJveSgmKHMpLT5rc19sb2NrKQot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Rfc3dpdGNoKCIgS0VZQk9BUkRfTkFNRSAiKSA9PSBOVUxMIik7CiAKIAkJa2JkID0ga2Jk
X2dldF9rZXlib2FyZChrYmRfZmluZF9rZXlib2FyZChLRVlCT0FSRF9OQU1FLCAwKSk7Ci0JCWlm
IChrYmQgPT0gTlVMTCkKLQkJCSBwYW5pYygia2JkX2dldF9rZXlib2FyZChrYmRfZmluZF9rZXli
b2FyZCgiIEtFWUJPQVJEX05BTUUgIiwgMCkpID09IE5VTEwiKTsKKwkJQVNTRVJUKGtiZCAhPSBO
VUxMLAorCQkgICAgICAgImtiZF9nZXRfa2V5Ym9hcmQoa2JkX2ZpbmRfa2V5Ym9hcmQoIiBLRVlC
T0FSRF9OQU1FCisJCSAgICAgICAiLCAwKSkgPT0gTlVMTCIpOwogCiAJCSgqc3ctPmRpc2FibGUp
KGtiZCk7CiAJCWtiZF9kZXRhY2goa2JkKTsKQEAgLTExMjUsNCArMTM2MiwzIEBACiB9CiAKIERF
Vl9NT0RVTEUoa2JkbXV4LCBrYmRtdXhfbW9kZXZlbnQsIE5VTEwpOwotCg==

------=_NextPart_000_0001_01C57009.C3632B40
Content-Type: application/octet-stream;
	name="dev_debug.h"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="dev_debug.h"

LyoKICogJEhlYWRlcjogL3Vzci9sb2NhbC9jdnMvZGV2X2RlYnVnL2Rldl9kZWJ1Zy5oLHYgMS42
IDIwMDUvMDUvMzEgMTQ6Mjk6MjIgbmsgRXhwICQKICoKICogICAgQ09QWVJJR0hUKGMpIDIwMDMs
MjAwNCwyMDA1IGJ5IGRlbWlnIFByb3plc3NhdXRvbWF0aXNpZXJ1bmcgR21iSCAKICogICAgICB8
XCAgL3wgIEhhYXJkdHN0cmFzc2UgNDAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
CiAqICAgICAgfF9cLyB8ICBELTU3MDc2IFNpZWdlbiAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIAog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bmMsIHR4dCwgYXJncy4uLikgICAgICAgICAgXAog
IGRvICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwK
ICB7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBc
CiAgICBpZiAoZXhwcikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
XAogICAgeyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IFwKICAgICAgZnVuYyAoWFNUUiAoREVCVUdfVEFHKSAiOiAiIHR4dCwgIyMgYXJncyk7ICAgICAg
ICBcCiAgICB9ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgXAogIH0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIFwKICB3aGlsZSAoRkFMU0UpCiNlbHNlCiNkZWZpbmUgREVCVUdQUklOVEYwKGV4cHIsIGZ1
bmMsIHR4dCwgYXJncy4uLikgICAgICAgICAgXAogIGRvICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwKICB7ICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcCiAgICBpZiAoZXhwcikgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXAogICAgeyAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwKICAgICAgZnVuYyAoWFNUUiAoX19GSUxF
X18pIiwgIiBYU1RSIChfX0xJTkVfXykgIjogIiAgICBcCiAgICAgICAgICAgIHR4dCwgIyMgYXJn
cyk7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXAogICAgfSAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwKICB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bHZs
KSAgICAgICAgICAgICAgICBcCkRFQlVHX1ZBUl9TQ09QRSBERUJVR19WQVJfVFlQRSBERUJVR19W
QVJfTkFNRSAodGFnKSA9IGx2bAojZW5kaWYKCiNkZWZpbmUgRFBSSU5URih0YWcsIGx2bCwgdHh0
LCBhcmdzLi4uKSAgICAgICAgIFwKICBERUJVR1BSSU5URiAobHZsLCBERUJVR19WQVJfTkFNRSAo
dGFnKSwgdHh0LCAjIyBhcmdzKQoKI2luY2x1ZGUgPHN5cy9zeXNjdGwuaD4KCiNkZWZpbmUgREVC
VUdfU1lTQ1RMKHRhZykgICAgICAgICAgICAgICAgICAgICAgIFwKREVCVUdfVkFSX1NZU0NUTCAo
X2RlYnVnLCAgICAgICAgICAgICAgICAgICAgICAgXAogICAgICAgICAgICAgICAgICBPSURfQVVU
TywgICAgICAgICAgICAgICAgICAgICBcCiAgICAgICAgICAgICAgICAgIFhDQVQgKHRhZywgX2Rl
YnVnKSwgICAgICAgICAgIFwKICAgICAgICAgICAgICAgICAgQ1RMRkxBR19SVywgICAgICAgICAg
ICAgICAgICAgXAogICAgICAgICAgICAgICAgICAmIERFQlVHX1ZBUl9OQU1FICh0YWcpLCAgICAg
ICBcCiAgICAgICAgICAgICAgICAgIDAsICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwKICAg
ICAgICAgICAgICAgICAgWENBVCAoWFNUUiAodGFnKSwgIiBkZWJ1ZyIpKQoKCiNlbHNlCgojZGVm
aW5lIERFQlVHX1ZBUl9ERUNMKHRhZywgbHZsKQojZGVmaW5lIERFQlVHX1NZU0NUTCh0YWcpCiNk
ZWZpbmUgRFBSSU5URih0YWcsIGx2bCwgdHh0LCBhcmdzLi4uKQoKI2VuZGlmCgoKI2RlZmluZSBk
ZWJ1Z192YXJfZGVjbChsdmwpICAgICBERUJVR19WQVJfREVDTCAoREVCVUdfVEFHLCBsdmwpCiNk
ZWZpbmUgZGVidWdfc3lzY3RsKCkgICAgICAgICAgREVCVUdfU1lTQ1RMIChERUJVR19UQUcpCiNk
ZWZpbmUgZHByaW50ZihsdmwsIHR4dCwgYXJncy4uLikgICAgICAgICAgICAgIFwKICBEUFJJTlRG
IChERUJVR19UQUcsIGx2bCwgdHh0LCAjIyBhcmdzKQoKCiNlbmRpZgo=

------=_NextPart_000_0001_01C57009.C3632B40--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c56ff8$ffda5b40$4801a8c0>