Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!munnari.oz.au!metro!dmssyd.syd.dms.CSIRO.AU!ditsydh.syd.dit.CSIRO.AU!evans From: evans@syd.dit.CSIRO.AU (Bruce.Evans) Newsgroups: comp.os.minix Subject: Re: [PC] Has someone run serial line w 38400 Baud ? Message-ID: <1991Apr11.050637.9180@syd.dit.CSIRO.AU> Date: 11 Apr 91 05:06:37 GMT References: <650@geyer.UUCP> Organization: CSIRO Division of Info Tech, Sydney, Australia Lines: 52 In article <650@geyer.UUCP> regn@informatik.uni-wuerzburg.dbp.de (Robert Regn) writes: >A real 386 PC should be able to run the serial lines with 38400 >(or higher ) Baud. But when i try it ( init.c and getty.c are changed!) >i get only garbage chars. 19200 works. Is the problem in the driver ? The 'argp->sg_ispeed' and 'argp->sg_ospeed' variables in ioctl.c are (unsigned) chars, so they only range from 0 to 255. In the driver, they are multiplied by 100 so the speed only ranges from 0 to 25500. This packing and encoding is stupid. Here is a hack (even stupider encoding :-) to allow some higher speeds. Someday these speeds should be defined as B115200 etc in sgtty.h (and termios.h?). table !"#$%&'()*+,-./0123456789:;<=>? @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ begin 644 rs.shar.Z M'YV-(T* >"$FC9L7<] H& %BR!LW=,I G*,#! @Y%(*[("0,'3AF08O*$E#,&B)@R<^"P*8,'Q$,05-#4 1$$CAP0,6(@K:$#y M!@T=-&H@S9$CA@(H0:@@Z4'0H(X7=>;(Z>KF:]BQ=<:( ;$#!$\X;^30 8%5x MJX(T9D!$% FB1=X3R]#B&S(F^84"((+$G1A\1($+T4-QB#.2V=-!(!*' w M8IDQ:-Z$1!-&3L4K:=BP >'FS=PQ;-Z(N7F49QJ1!L^ ,).Z# @N(@!GW&BRv M\ G@"LJPF5,F.6C1"4M7+(*'SLHQ='+_#AZ8.&'#P'^CJ"'#!@C0I<-@+X.1u M2PH%S$&*F//""Y87+R#[$"ZXN&$0//!P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