[SPARCbook] Sparcbook 3 mouse
Derrick J Brashear
shadow at dementia.org
Tue Aug 17 23:21:45 CDT 1999
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime at docserver.cac.washington.edu for more info.
---1710568419-1898664643-934950105=:4497
Content-Type: TEXT/PLAIN; charset=US-ASCII
It apparently uses a modified version of the Sun mouse protocol.
Attached are the sunmouse driver patch and the gpm patch. The gpm patch
could be worked around trivially by having the kernel driver emulate a
regular Sun mouse, but I'm hoping for some feedback on this from the Sparc
kernel developers instead of just committing to the CVS tree.
In the meantime, enjoy.
-D
---1710568419-1898664643-934950105=:4497
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sunmouse.c.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96L.990818002145.4497o at jooky.trafford.dementia.org>
Content-Description:
KioqIHN1bm1vdXNlLmMub3JpZwlXZWQgQXVnIDE4IDAwOjE0OjA4IDE5OTkN
Ci0tLSAvdXNyL3NyYy9saW51eC9kcml2ZXJzL3NidXMvY2hhci9zdW5tb3Vz
ZS5jCVdlZCBBdWcgMTggMDA6MTQ6MDMgMTk5OQ0KKioqKioqKioqKioqKioq
DQoqKiogMTcwLDE4MCAqKioqDQogIAlzdGF0aWMgaW50IGN0ciA9IDA7DQog
IA0KICAJaWYod2FpdF9mb3Jfc3luY2hyb24pIHsNCiEgCQlpZigoYyA8IDB4
ODApIHx8IChjID4gMHg4NykpDQogIAkJCW1vdXNlX2JvZ29uX2J5dGVzKys7
DQogIAkJZWxzZSB7DQohIAkJCWN0ciA9IDA7DQohIAkJCXdhaXRfZm9yX3N5
bmNocm9uID0gMDsNCiAgCQl9DQogIAl9IGVsc2Ugew0KICAJCWN0cisrOw0K
LS0tIDE3MCwxODUgLS0tLQ0KICAJc3RhdGljIGludCBjdHIgPSAwOw0KICAN
CiAgCWlmKHdhaXRfZm9yX3N5bmNocm9uKSB7DQohIAkgICAgICAgIGlmICgo
YyAmIH4weD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ynl0ZSB6ZXJvIGluIHRoZSB0cmFuc2FjdGlvbg0KICAJICogcHJvdG9jb2wu
DQogIAkgKi8NCiEgCWlmKGJ5dGUgPj0gMHg4MCAmJiBieXRlIDw9IDB4ODcp
DQogIAkJc3VubW91c2UuYnl0ZSA9IDA7DQogIA0KICAJbXZhbHVlID0gKHNp
Z25lZCBjaGFyKSBieXRlOw0KLS0tIDIyNywyMzMgLS0tLQ0KICAJICogd2Ug
YXJlIHN0YXJ0aW5nIGF0IGJ5dGUgemVybyBpbiB0aGUgdHJhbnNhY3Rpb24N
CiAgCSAqIHByb3RvY29sLg0KICAJICovDQohIAlpZigoYnl0ZSAmIH4weDBm
KSA9PSAweDgwKQ0KICAJCXN1bm1vdXNlLmJ5dGUgPSAwOw0KICANCiAgCW12
YWx1ZSA9IChzaWduZWQgY2hhcikgYnl0ZTsNCioqKioqKioqKioqKioqKg0K
KioqIDIzNCwyMzkgKioqKg0KLS0tIDI0MSwyNTIgLS0tLQ0KICAJCSAgICAg
ICAoKHN1bm1vdXNlLmJ1dHRvbl9zdGF0ZSAmIDB4MikgPyAiRE9XTiIgOiAi
VVAiKSwNCiAgCQkgICAgICAgKChzdW5tb3VzZS5idXR0b25fc3RhdGUgJiAw
eDEpID8gIkRPV04iIDogIlVQIikpOw0KICAjZW5kaWYNCisgCQkvKiBUbyBk
ZWFsIHdpdGggdGhlIFNwYXJjYm9vayAzICovDQorIAkJaWYgKGJ5dGUgJiAw
eDgpIHsNCisgCQkgIHN1bm1vdXNlLmJ5dGUrPTI7DQorIAkJICBzdW5tb3Vz
ZS5kZWx0YV95ID0gMDsNCisgCQkgIHN1bm1vdXNlLmRlbHRhX3ggPSAwOw0K
KyAJCX0NCiAgCQlzdW5tb3VzZS5ieXRlKys7DQogIAkJcmV0dXJuOw0KICAJ
Y2FzZSAxOg0K
---1710568419-1898664643-934950105=:4497
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="gpm.sparcbook.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96L.990818002145.4497p at jooky.trafford.dementia.org>
Content-Description:
KioqIG1pY2UuYwlGcmkgRmViIDE5IDAwOjUzOjQyIDE5OTkNCi0tLSAvcm9v
dC9taWNlLmMJV2VkIEF1ZyAxOCAwMDowODozOCAxOTk5DQoqKioqKioqKioq
KioqKioNCioqKiAxMTk5LDEyMDUgKioqKg0KICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgIHsweGY4LCAweDgwLCAweDAwLCAweDAwfSwgNSwg
MSwgMCwgMCwgUl9tc2N9LA0KICAgIHsic3VuIiwgICInbXNjJyBwcm90b2Nv
bCwgYnV0IG9ubHkgMyBieXRlcyBwZXIgcGFja2V0LiIsDQogICAgICAgICAg
ICAgIiIsIE1fc3VuLCBJX3NlcmlhbCwgQ1M4IHwgQ1NUT1BCIHwgU1REX0ZM
RywNCiEgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7MHhmOCwg
MHg4MCwgMHgwMCwgMHgwMH0sIDMsIDEsIDAsIDAsIDB9LA0KICAgIHsibW0i
LCAgICJNTSBzZXJpZXMuIFByb2JhYmx5IGFuIG9sZCBwcm90b2NvbC4uLiIs
DQogICAgICAgICAgICAgIk1NU2VyaWVzIiwgTV9tbSwgSV9zZXJpYWwsIENT
OCB8IFBBUkVOQnxQQVJPREQgfCBTVERfRkxHLA0KICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIHsweGUwLCAweDgwLCAweDgwLCAweDAwfSwg
MywgMSwgMCwgMCwgMH0sDQotLS0gMTE5OSwxMjA1IC0tLS0NCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICB7MHhmOCwgMHg4MCwgMHgwMCwg
MHgwMH0sIDUsIDEsIDAsIDAsIFJfbXNjfSwNCiAgICB7InN1biIsICAiJ21z
YycgcHJvdG9jb2wsIGJ1dCBvbmx5IDMgYnl0ZXMgcGVyIHBhY2tldC4iLA0K
ICAgICAgICAgICAgICIiLCBNX3N1biwgSV9zZXJpYWwsIENTOCB8IENTVE9Q
QiB8IFNURF9GTEcsDQohICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgezB4ZjAsIDB4ODAsIDB4MDAsIDB4MDB9LCAzLCAxLCAwLCAwLCAwfSwN
CiAgICB7Im1tIiwgICAiTU0gc2VyaWVzLiBQcm9iYWJseSBhbiBvbGQgcHJv
dG9jb2wuLi4iLA0KICAgICAgICAgICAgICJNTVNlcmllcyIsIE1fbW0sIElf
c2VyaWFsLCBDUzggfCBQQVJFTkJ8UEFST0REIHwgU1REX0ZMRywNCiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7MHhlMCwgMHg4MCwgMHg4
MCwgMHgwMH0sIDMsIDEsIDAsIDAsIDB9LA0K
---1710568419-1898664643-934950105=:4497--
More information about the SPARCBook
mailing list