home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4500 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!caen!umeecs!dip.eecs.umich.edu!dmuntz
  3. From: dmuntz@dip.eecs.umich.edu (Daniel A Muntz)
  4. Subject: Re: 386bsd X problems
  5. Message-ID: <1992Aug20.162909.1669@zip.eecs.umich.edu>
  6. Keywords: X, xterm
  7. Sender: news@zip.eecs.umich.edu (Mr. News)
  8. Organization: University of Michigan EECS Dept., Ann Arbor
  9. References: <1992Aug19.202509.20831@uwm.edu> <1992Aug19.211301.28570@zip.eecs.umich.edu>
  10. Date: Thu, 20 Aug 1992 16:29:09 GMT
  11. Lines: 25
  12.  
  13. In article <1992Aug19.211301.28570@zip.eecs.umich.edu> dmuntz@dip.eecs.umich.edu (Daniel A Muntz) writes:
  14. [new com.c w/o comreg.h diffs]
  15.  
  16. To use the previously posted com.c, apply this patch to comreg.h:
  17.  
  18. 36,39d35
  19. < /*
  20. <  *    With modifications from brad huntting <huntting@glarp.com>
  21. <  *    Sun Jun 14 13:32:28 MDT 1992
  22. <  */
  23. 41,49c37,38
  24. < /*
  25. <  * 16 bit baud rate divisor (lower byte in com_dlbl, upper in
  26. <  * com_dlbh) 1.8432MHz/16x (COMTIK/x) rounded off.  If the baud
  27. <  * rate can't be set to within (desired_rate*SPEED_TOLERANCE/1000)bps
  28. <  * comspeed() returns -1.  COMBRD must be a/b (as opposed to (a/b))
  29. <  * or the accuracy check will not work.
  30. <  */
  31. < #define COMTIK          (1843200/16)
  32. < #define SPEED_TOLERANCE 30                      /* real == desired +- 3.0% */
  33. ---
  34. > /* 16 bit baud rate divisor (lower byte in dca_data, upper in dca_ier) */
  35. > #define       COMBRD(x)       (1843200 / (16*(x)))
  36.  
  37.  
  38.