From owner-freebsd-hackers Sun May 5 05:50:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA14777 for hackers-outgoing; Sun, 5 May 1996 05:50:17 -0700 (PDT) Received: from falcon.adelaide.on.net (falcon.adelaide.on.net [192.231.203.2]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA14688 for ; Sun, 5 May 1996 05:48:47 -0700 (PDT) Received: from ppp165.adelaide.on.net.au by adelaide.on.net (PMDF V5.0-4 #12832) id <01I4D2AD1AR4000K7V@adelaide.on.net> for hackers@freebsd.org; Sun, 05 May 1996 22:18:01 +0930 Date: Sun, 05 May 1996 22:18:01 +0930 Date-warning: Date header was inserted by adelaide.on.net From: Richard Wiwatowski Subject: kernel drivers X-Sender: rjwiwat@adelaide.on.net To: hackers@freebsd.org Message-id: <01I4D2ADP5PU000K7V@adelaide.on.net> MIME-version: 1.0 X-Mailer: Windows Eudora Light Version 1.5.2 Content-type: multipart/mixed; boundary="=====================_831359936==_" Content-transfer-encoding: 7BIT X-attachments: P:\EUDORA\ATTACHED\PSM_C.UUE; Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk --=====================_831359936==_ Content-Type: text/plain; charset="us-ascii" Greetings! I wish to report that the standard PS/2 mouse driver doesn't work. I'm not expert in things Un*x, C or kernel but I have managed to kludge together a version of "psm.c" that works for me. I based the changes I've made on the NetBSD "pms.c" driver and the FreeBSD "mse.c" driver (for the glitzy stuff). I have used it for a few months with the 2.1.0 release and have recently merged in changes for the 2.2-960501-SNAP. I agree with the comment at the end of psm_attach -- it should return 1 (mse.c does). It works with the latest snap; I've tested it for a few hours (it works or it doesn't -- what more can I test?). Note that I've added in the boundary hacks mentioned in the NetBSD driver to overcome bugs in XFree86 (although I've not confirmed their existence). I attach my version of "psm.c" for your consideration. I apologise for the method of attachment -- I still use Windoze/Eudora for email on a dialup internet connection. I run FreeBSD on an EISA-based system and have two different ethernet cards: DE422 and SMC8232. The DE422 is installed as the SMC isn't supported by the "ed" driver (or, at least, I couldn't get it to work). If it's of any interest to you, I propose to hack the DE422 support out of "if_le.c" along the lines of what you've done for the 3Com card. Getting the SMC to work is a bigger job as I don't have any doco but it does use the UltraChip so there is hope. Any suggestions you may care to make will be greatly appreciated. I hope you find my "psm.c" useful. Regards, Richard --=====================_831359936==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="PSM_C.UUE" begin 644 psm_c.gz M'XL("&XRC#$``W!S;5]C`*TZ:5?;6+*?S:^HX9VA[4083!*2#LO$V`(T[85G MV02FIX]'2-=8@RRYM6#^MY=9>)1V\VM^!5]`* MYLO0?9S&4+5KT/CQQR.-?KX!/72?X#((HP<1/M;I:-/S@(]&$(I(A,_"H77: M&@C'C>+0?4AB-_#!\AU((@&N#U&0A+;@E0?7M\(E3()P%FFP<.,I!"'_'R0Q M89D%CCMQ;8MP:&"%`N8BG+EQ+!R8A\&SZ^!#/+5B_"$0C^<%"]=_!#OP'9>` M(L)"<#,1?Z3G1GV%M0B"2@I9`(/^)>'IZH/6-:XT+XR.,;QGJI?& ML$<4+Y%D$VZ:@Z'1&G6:`[@9#6[ZI@[$=]LP6YVFT=7;=4`."%>O#_JMWAN" M>=WL=,"`"QT9:5YT=(D*+],V!GIK2"SG3RV\.S+0T<"\T5L&/A`R_4Y'GIN# M>XUNWNKW3/U_1W@.]Z'=[#:O\`K5K]^\/'+:1.@VR['?XSNC_/N#>R5OD@=+6H//USINH59[=+WAH$GB M,(<#HS4L'D.2P_Y@6+@LRUJ_ZAA7>J^ETX$^(?ILF'H-=6,@?U>$E8A_;B+E M$=^=[`!YDX^&25A2*]18<6!<0K-]:Q#_ZCRJVS24:;#X6M=*^F3-!SL[!VS2 MZS"",W7I)'M:RY@&&P0.\W,29,H3D),1Y(4IZP,*1$@B))\H@^.T?B$=&. MB,8G.ZHG=ERW[/IOEG(Y&$XM_RGBD&!Y40!.(@A@X-I/T+7L)T_,-(QI]M.G MR`\64S<6==M%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