home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 1066
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail text
| default
| |
99%
| file
| JavaScript source, ASCII text
| default (weak)
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 67 65 | 6d 69 6e 69 40 67 65 6d |From: ge|mini@gem|
|00000010| 69 6e 69 78 2e 6d 62 78 | 2e 73 75 62 2e 6f 72 67 |inix.mbx|.sub.org|
|00000020| 20 28 55 77 65 20 44 6f | 65 72 69 6e 67 29 0a 4e | (Uwe Do|ering).N|
|00000030| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000040| 75 6e 69 78 2e 69 33 38 | 36 2c 61 6c 74 2e 73 6f |unix.i38|6,alt.so|
|00000050| 75 72 63 65 73 0a 53 75 | 62 6a 65 63 74 3a 20 46 |urces.Su|bject: F|
|00000060| 41 53 20 32 2e 30 36 20 | 61 73 79 6e 63 20 64 72 |AS 2.06 |async dr|
|00000070| 69 76 65 72 2c 20 70 61 | 72 74 20 31 2f 32 0a 4d |iver, pa|rt 1/2.M|
|00000080| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 45 58 33 44 |essage-I|D: <EX3D|
|00000090| 45 4f 43 40 67 65 6d 69 | 6e 69 78 2e 6d 62 78 2e |EOC@gemi|nix.mbx.|
|000000a0| 73 75 62 2e 6f 72 67 3e | 0a 44 61 74 65 3a 20 32 |sub.org>|.Date: 2|
|000000b0| 34 20 4d 61 72 20 39 30 | 20 31 37 3a 30 31 3a 34 |4 Mar 90| 17:01:4|
|000000c0| 32 20 47 4d 54 0a 0a 48 | 69 20 6e 65 74 6c 61 6e |2 GMT..H|i netlan|
|000000d0| 64 65 72 73 21 0a 0a 48 | 65 72 65 20 69 73 20 46 |ders!..H|ere is F|
|000000e0| 41 53 20 32 2e 30 36 2c | 20 74 68 65 20 73 75 63 |AS 2.06,| the suc|
|000000f0| 63 65 73 73 6f 72 20 6f | 66 20 74 68 65 20 6e 6f |cessor o|f the no|
|00000100| 77 20 77 69 64 65 2d 73 | 70 72 65 61 64 20 46 41 |w wide-s|pread FA|
|00000110| 53 20 32 2e 30 35 20 70 | 75 62 6c 69 63 0a 64 6f |S 2.05 p|ublic.do|
|00000120| 6d 61 69 6e 20 61 73 79 | 6e 63 20 64 72 69 76 65 |main asy|nc drive|
|00000130| 72 20 66 6f 72 20 69 33 | 38 36 20 62 61 73 65 64 |r for i3|86 based|
|00000140| 20 55 4e 49 58 20 66 6c | 61 76 6f 72 73 2e 0a 0a | UNIX fl|avors...|
|00000150| 54 68 69 73 20 70 6f 73 | 74 69 6e 67 20 69 73 20 |This pos|ting is |
|00000160| 6c 6f 6e 67 20 6f 76 65 | 72 64 75 65 20 62 65 63 |long ove|rdue bec|
|00000170| 61 75 73 65 20 77 65 27 | 76 65 20 68 61 64 20 73 |ause we'|ve had s|
|00000180| 6f 6d 65 20 74 72 6f 75 | 62 6c 65 20 77 69 74 68 |ome trou|ble with|
|00000190| 20 74 68 65 0a 6e 65 77 | 73 20 64 69 73 74 72 69 | the.new|s distri|
|000001a0| 62 75 74 69 6f 6e 20 68 | 65 72 65 20 69 6e 20 47 |bution h|ere in G|
|000001b0| 65 72 6d 61 6e 79 2e 20 | 53 6f 72 72 79 2e 0a 0a |ermany. |Sorry...|
|000001c0| 54 68 65 20 64 72 69 76 | 65 72 20 77 61 73 20 74 |The driv|er was t|
|000001d0| 65 73 74 65 64 20 75 6e | 64 65 72 20 49 53 43 20 |ested un|der ISC |
|000001e0| 33 38 36 2f 69 78 20 32 | 2e 30 2e 32 2c 20 4d 69 |386/ix 2|.0.2, Mi|
|000001f0| 63 72 6f 50 6f 72 74 20 | 53 59 53 56 2f 33 38 36 |croPort |SYSV/386|
|00000200| 0a 56 65 72 73 2e 20 33 | 2e 30 65 20 61 6e 64 20 |.Vers. 3|.0e and |
|00000210| 68 61 73 20 62 65 65 6e | 20 72 65 70 6f 72 74 65 |has been| reporte|
|00000220| 64 20 74 6f 20 77 6f 72 | 6b 20 77 69 74 68 20 45 |d to wor|k with E|
|00000230| 53 49 58 2c 20 74 6f 6f | 2e 20 41 20 76 65 72 62 |SIX, too|. A verb|
|00000240| 61 6c 0a 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |al.descr|iption o|
|00000250| 66 20 68 6f 77 20 74 6f | 20 6d 6f 64 69 66 79 20 |f how to| modify |
|00000260| 46 41 53 20 66 6f 72 20 | 53 43 4f 20 55 4e 49 58 |FAS for |SCO UNIX|
|00000270| 20 77 61 73 20 70 6f 73 | 74 65 64 20 72 65 63 65 | was pos|ted rece|
|00000280| 6e 74 6c 79 20 69 6e 0a | 63 6f 6d 70 2e 75 6e 69 |ntly in.|comp.uni|
|00000290| 78 2e 69 33 38 36 20 28 | 6d 65 73 73 61 67 65 20 |x.i386 (|message |
|000002a0| 49 44 73 3a 20 3c 37 38 | 34 38 40 6e 65 74 63 6f |IDs: <78|48@netco|
|000002b0| 6d 2e 55 55 43 50 3e 20 | 61 6e 64 20 3c 37 38 35 |m.UUCP> |and <785|
|000002c0| 34 40 6e 65 74 63 6f 6d | 2e 55 55 43 50 3e 29 2e |4@netcom|.UUCP>).|
|000002d0| 0a 0a 48 65 72 65 20 61 | 72 65 20 74 68 65 20 62 |..Here a|re the b|
|000002e0| 61 73 69 63 20 66 65 61 | 74 75 72 65 73 3a 0a 0a |asic fea|tures:..|
|000002f0| 2d 20 20 49 74 20 73 75 | 70 70 6f 72 74 73 20 74 |- It su|pports t|
|00000300| 68 65 20 4e 53 31 36 35 | 35 30 20 55 41 52 54 20 |he NS165|50 UART |
|00000310| 63 68 69 70 20 69 6e 20 | 46 49 46 4f 20 6d 6f 64 |chip in |FIFO mod|
|00000320| 65 2e 0a 2d 20 20 4d 6f | 64 65 6d 20 73 68 61 72 |e..- Mo|dem shar|
|00000330| 69 6e 67 20 66 6f 72 20 | 64 69 61 6c 2d 69 6e 20 |ing for |dial-in |
|00000340| 61 6e 64 20 64 69 61 6c | 2d 6f 75 74 20 6f 6e 20 |and dial|-out on |
|00000350| 74 68 65 20 73 61 6d 65 | 20 70 6f 72 74 20 69 73 |the same| port is|
|00000360| 20 70 6f 73 73 69 62 6c | 65 2e 0a 2d 20 20 49 74 | possibl|e..- It|
|00000370| 20 68 61 73 20 68 61 72 | 64 77 61 72 65 20 66 6c | has har|dware fl|
|00000380| 6f 77 20 63 6f 6e 74 72 | 6f 6c 2e 0a 0a 4e 65 77 |ow contr|ol...New|
|00000390| 20 68 69 67 68 6c 69 67 | 68 74 73 20 69 6e 20 74 | highlig|hts in t|
|000003a0| 68 69 73 20 72 65 6c 65 | 61 73 65 20 61 72 65 3a |his rele|ase are:|
|000003b0| 0a 0a 2d 20 20 4c 61 72 | 67 65 20 69 6e 70 75 74 |..- Lar|ge input|
|000003c0| 20 61 6e 64 20 6f 75 74 | 70 75 74 20 62 75 66 66 | and out|put buff|
|000003d0| 65 72 73 2e 20 54 68 69 | 73 20 6d 61 6b 65 73 20 |ers. Thi|s makes |
|000003e0| 74 68 72 6f 75 67 68 70 | 75 74 20 6c 65 73 73 20 |throughp|ut less |
|000003f0| 64 65 70 65 6e 64 61 6e | 74 20 6f 6e 0a 20 20 20 |dependan|t on. |
|00000400| 73 79 73 74 65 6d 20 6c | 6f 61 64 20 28 61 74 20 |system l|oad (at |
|00000410| 6c 65 61 73 74 20 77 69 | 74 68 20 73 74 72 65 61 |least wi|th strea|
|00000420| 6d 69 6e 67 20 70 72 6f | 74 6f 63 6f 6c 73 29 2e |ming pro|tocols).|
|00000430| 0a 2d 20 20 46 75 6c 6c | 79 20 63 6f 6e 66 69 67 |.- Full|y config|
|00000440| 75 72 61 62 6c 65 20 6d | 6f 64 65 6d 20 61 6e 64 |urable m|odem and|
|00000450| 20 68 61 72 64 77 61 72 | 65 20 68 61 6e 64 73 68 | hardwar|e handsh|
|00000460| 61 6b 65 20 63 6f 6e 74 | 72 6f 6c 20 6c 69 6e 65 |ake cont|rol line|
|00000470| 73 2e 20 54 68 65 72 65 | 20 61 72 65 0a 20 20 20 |s. There| are. |
|00000480| 6e 6f 20 68 61 72 64 2d | 77 69 72 65 64 20 63 6f |no hard-|wired co|
|00000490| 6e 74 72 6f 6c 20 6c 69 | 6e 65 73 20 69 6e 20 74 |ntrol li|nes in t|
|000004a0| 68 65 20 64 72 69 76 65 | 72 20 69 74 73 65 6c 66 |he drive|r itself|
|000004b0| 2e 20 54 68 65 72 65 66 | 6f 72 2c 20 69 66 20 79 |. Theref|or, if y|
|000004c0| 6f 75 20 6e 65 65 64 0a | 20 20 20 61 20 73 70 65 |ou need.| a spe|
|000004d0| 63 69 61 6c 20 63 6f 6e | 74 72 6f 6c 20 6c 69 6e |cial con|trol lin|
|000004e0| 65 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |e config|uration |
|000004f0| 79 6f 75 20 64 6f 6e 27 | 74 20 6e 65 65 64 20 74 |you don'|t need t|
|00000500| 6f 20 77 61 64 65 20 74 | 68 72 6f 75 67 68 0a 20 |o wade t|hrough. |
|00000510| 20 20 74 68 65 20 64 72 | 69 76 65 72 20 73 6f 75 | the dr|iver sou|
|00000520| 72 63 65 20 63 6f 64 65 | 2e 0a 2d 20 20 4d 6f 72 |rce code|..- Mor|
|00000530| 65 20 62 75 6c 6c 65 74 | 2d 70 72 6f 6f 66 20 61 |e bullet|-proof a|
|00000540| 67 61 69 6e 73 74 20 63 | 65 72 74 61 69 6e 20 65 |gainst c|ertain e|
|00000550| 76 65 6e 74 20 63 6f 6d | 62 69 6e 61 74 69 6f 6e |vent com|bination|
|00000560| 73 2e 20 55 75 63 70 20 | 65 2d 70 72 6f 74 6f 63 |s. Uucp |e-protoc|
|00000570| 6f 6c 0a 20 20 20 77 6f | 72 6b 73 20 71 75 69 74 |ol. wo|rks quit|
|00000580| 65 20 72 65 6c 69 61 62 | 6c 65 20 6e 6f 77 20 69 |e reliab|le now i|
|00000590| 66 20 79 6f 75 20 68 61 | 76 65 20 61 6e 20 46 41 |f you ha|ve an FA|
|000005a0| 53 20 32 2e 30 36 20 6f | 6e 20 62 6f 74 68 20 73 |S 2.06 o|n both s|
|000005b0| 69 64 65 73 2e 0a 2d 20 | 20 45 76 65 6e 20 66 61 |ides..- | Even fa|
|000005c0| 73 74 65 72 20 74 68 61 | 6e 20 46 41 53 20 32 2e |ster tha|n FAS 2.|
|000005d0| 30 35 2c 20 74 68 61 74 | 20 69 73 2c 20 69 74 20 |05, that| is, it |
|000005e0| 65 61 74 73 20 75 70 20 | 6c 65 73 73 20 43 50 55 |eats up |less CPU|
|000005f0| 20 74 69 6d 65 2e 0a 2d | 20 20 4d 61 6e 79 20 6f | time..-| Many o|
|00000600| 74 68 65 72 20 62 75 67 | 20 66 69 78 65 73 20 61 |ther bug| fixes a|
|00000610| 6e 64 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 2e |nd impro|vements.|
|00000620| 0a 0a 46 6f 72 20 6e 65 | 77 63 6f 6d 65 72 73 3a |..For ne|wcomers:|
|00000630| 20 59 6f 75 20 6e 65 65 | 64 20 74 6f 20 72 65 70 | You nee|d to rep|
|00000640| 6c 61 63 65 20 74 68 65 | 20 38 32 35 30 20 6f 72 |lace the| 8250 or|
|00000650| 20 4e 53 31 36 34 35 30 | 20 63 68 69 70 73 20 6f | NS16450| chips o|
|00000660| 6e 20 79 6f 75 72 0a 73 | 65 72 69 61 6c 20 63 61 |n your.s|erial ca|
|00000670| 72 64 20 77 69 74 68 20 | 4e 53 31 36 35 35 30 41 |rd with |NS16550A|
|00000680| 20 63 68 69 70 73 20 69 | 66 20 79 6f 75 20 77 61 | chips i|f you wa|
|00000690| 6e 74 20 74 6f 20 75 73 | 65 20 73 70 65 65 64 73 |nt to us|e speeds|
|000006a0| 20 3e 32 34 30 30 20 62 | 70 73 0a 77 69 74 68 6f | >2400 b|ps.witho|
|000006b0| 75 74 20 6c 6f 73 69 6e | 67 20 69 6e 70 75 74 20 |ut losin|g input |
|000006c0| 63 68 61 72 61 63 74 65 | 72 73 2e 0a 0a 4e 6f 74 |characte|rs...Not|
|000006d0| 65 3a 20 49 20 77 6f 6e | 27 74 20 65 6d 61 69 6c |e: I won|'t email|
|000006e0| 20 79 6f 75 20 61 6e 79 | 20 73 6f 75 72 63 65 73 | you any| sources|
|000006f0| 20 6f 72 20 70 61 74 63 | 68 65 73 20 62 65 63 61 | or patc|hes beca|
|00000700| 75 73 65 20 69 6e 74 65 | 72 6e 61 74 69 6f 6e 61 |use inte|rnationa|
|00000710| 6c 0a 6d 61 69 6c 69 6e | 67 20 63 6f 73 74 73 20 |l.mailin|g costs |
|00000720| 61 72 65 20 70 72 6f 68 | 69 62 69 74 69 76 65 20 |are proh|ibitive |
|00000730| 69 6e 20 57 65 73 74 20 | 47 65 72 6d 61 6e 79 2e |in West |Germany.|
|00000740| 20 42 75 74 20 6f 66 20 | 63 6f 75 72 73 65 20 49 | But of |course I|
|00000750| 20 77 69 6c 6c 0a 70 6f | 73 74 20 70 61 74 63 68 | will.po|st patch|
|00000760| 65 73 2e 0a 0a 20 20 20 | 20 20 55 77 65 0a 0a 0a |es... | Uwe...|
|00000770| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000780| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000790| 68 69 76 65 2c 20 6d 65 | 61 6e 69 6e 67 3a 0a 23 |hive, me|aning:.#|
|000007a0| 20 31 2e 20 52 65 6d 6f | 76 65 20 65 76 65 72 79 | 1. Remo|ve every|
|000007b0| 74 68 69 6e 67 20 61 62 | 6f 76 65 20 74 68 65 20 |thing ab|ove the |
|000007c0| 23 21 20 2f 62 69 6e 2f | 73 68 20 6c 69 6e 65 2e |#! /bin/|sh line.|
|000007d0| 0a 23 20 32 2e 20 53 61 | 76 65 20 74 68 65 20 72 |.# 2. Sa|ve the r|
|000007e0| 65 73 75 6c 74 69 6e 67 | 20 74 65 78 74 20 69 6e |esulting| text in|
|000007f0| 20 61 20 66 69 6c 65 2e | 0a 23 20 33 2e 20 45 78 | a file.|.# 3. Ex|
|00000800| 65 63 75 74 65 20 74 68 | 65 20 66 69 6c 65 20 77 |ecute th|e file w|
|00000810| 69 74 68 20 2f 62 69 6e | 2f 73 68 20 28 6e 6f 74 |ith /bin|/sh (not|
|00000820| 20 63 73 68 29 20 74 6f | 20 63 72 65 61 74 65 3a | csh) to| create:|
|00000830| 0a 23 09 49 4e 53 54 41 | 4c 4c 41 54 49 4f 4e 0a |.#.INSTA|LLATION.|
|00000840| 23 09 66 61 73 2e 63 0a | 23 20 54 68 69 73 20 61 |#.fas.c.|# This a|
|00000850| 72 63 68 69 76 65 20 63 | 72 65 61 74 65 64 3a 20 |rchive c|reated: |
|00000860| 53 61 74 20 4d 61 72 20 | 32 34 20 31 36 3a 34 39 |Sat Mar |24 16:49|
|00000870| 3a 34 34 20 31 39 39 30 | 0a 65 78 70 6f 72 74 20 |:44 1990|.export |
|00000880| 50 41 54 48 3b 20 50 41 | 54 48 3d 2f 62 69 6e 3a |PATH; PA|TH=/bin:|
|00000890| 2f 75 73 72 2f 62 69 6e | 3a 24 50 41 54 48 0a 65 |/usr/bin|:$PATH.e|
|000008a0| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 78 74 72 61 |cho shar|: "extra|
|000008b0| 63 74 69 6e 67 20 27 49 | 4e 53 54 41 4c 4c 41 54 |cting 'I|NSTALLAT|
|000008c0| 49 4f 4e 27 22 20 27 28 | 37 35 33 35 20 63 68 61 |ION'" '(|7535 cha|
|000008d0| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|000008e0| 74 20 2d 66 20 27 49 4e | 53 54 41 4c 4c 41 54 49 |t -f 'IN|STALLATI|
|000008f0| 4f 4e 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |ON'.then|..echo s|
|00000900| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00000910| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00000920| 6e 67 20 66 69 6c 65 20 | 27 49 4e 53 54 41 4c 4c |ng file |'INSTALL|
|00000930| 41 54 49 4f 4e 27 22 0a | 65 6c 73 65 0a 73 65 64 |ATION'".|else.sed|
|00000940| 20 27 73 2f 5e 58 2f 2f | 27 20 3c 3c 20 5c 53 48 | 's/^X//|' << \SH|
|00000950| 41 52 5f 45 4f 46 20 3e | 20 27 49 4e 53 54 41 4c |AR_EOF >| 'INSTAL|
|00000960| 4c 41 54 49 4f 4e 27 0a | 58 49 6e 73 74 61 6c 6c |LATION'.|XInstall|
|00000970| 61 74 69 6f 6e 20 67 75 | 69 64 65 20 66 6f 72 20 |ation gu|ide for |
|00000980| 74 68 65 20 46 41 53 20 | 46 69 6e 61 6c 20 41 73 |the FAS |Final As|
|00000990| 79 6e 63 20 53 6f 6c 75 | 74 69 6f 6e 20 64 72 69 |ync Solu|tion dri|
|000009a0| 76 65 72 0a 58 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ver.X---|--------|
|000009b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000009c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000009d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|000009e0| 58 0a 58 54 6f 20 69 6e | 73 74 61 6c 6c 20 74 68 |X.XTo in|stall th|
|000009f0| 69 73 20 64 72 69 76 65 | 72 20 79 6f 75 20 6e 65 |is drive|r you ne|
|00000a00| 65 64 20 61 20 6d 61 6e | 75 61 6c 20 6f 66 20 79 |ed a man|ual of y|
|00000a10| 6f 75 72 20 73 65 72 69 | 61 6c 20 63 61 72 64 2c |our seri|al card,|
|00000a20| 0a 58 79 6f 75 72 20 73 | 79 73 74 65 6d 20 6d 61 |.Xyour s|ystem ma|
|00000a30| 6e 75 61 6c 73 20 61 6e | 64 20 61 20 63 65 72 74 |nuals an|d a cert|
|00000a40| 61 69 6e 20 6b 6e 6f 77 | 6c 65 64 67 65 20 61 62 |ain know|ledge ab|
|00000a50| 6f 75 74 20 77 68 61 74 | 20 61 63 74 75 61 6c 6c |out what| actuall|
|00000a60| 79 0a 58 69 73 20 61 20 | 73 65 72 69 61 6c 20 64 |y.Xis a |serial d|
|00000a70| 72 69 76 65 72 2e 0a 58 | 0a 58 59 6f 75 20 68 61 |river..X|.XYou ha|
|00000a80| 76 65 20 74 6f 20 62 65 | 20 75 73 65 72 20 72 6f |ve to be| user ro|
|00000a90| 6f 74 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 61 6e |ot to co|mpile an|
|00000aa0| 64 20 69 6e 73 74 61 6c | 6c 20 74 68 65 20 64 72 |d instal|l the dr|
|00000ab0| 69 76 65 72 21 0a 58 0a | 58 0a 58 43 6f 6d 70 69 |iver!.X.|X.XCompi|
|00000ac0| 6c 61 74 69 6f 6e 20 70 | 68 61 73 65 0a 58 3d 3d |lation p|hase.X==|
|00000ad0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a |========|=======.|
|00000ae0| 58 0a 58 46 69 72 73 74 | 20 6f 66 20 61 6c 6c 20 |X.XFirst| of all |
|00000af0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 63 6f 70 79 20 |you shou|ld copy |
|00000b00| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 20 74 68 61 |the make|file tha|
|00000b10| 74 20 6d 61 74 63 68 65 | 73 20 79 6f 75 72 20 73 |t matche|s your s|
|00000b20| 79 73 74 65 6d 0a 58 74 | 6f 20 74 68 65 20 66 69 |ystem.Xt|o the fi|
|00000b30| 6c 65 20 60 6d 61 6b 65 | 66 69 6c 65 27 2e 20 4d |le `make|file'. M|
|00000b40| 61 6b 65 20 73 75 72 65 | 20 74 68 61 74 20 74 68 |ake sure| that th|
|00000b50| 65 20 6d 61 6b 65 66 69 | 6c 65 20 63 6f 6e 74 61 |e makefi|le conta|
|00000b60| 69 6e 73 20 74 68 65 0a | 58 70 72 6f 70 65 72 20 |ins the.|Xproper |
|00000b70| 63 6f 6d 70 69 6c 65 72 | 20 73 77 69 74 63 68 65 |compiler| switche|
|00000b80| 73 20 66 6f 72 20 79 6f | 75 72 20 73 79 73 74 65 |s for yo|ur syste|
|00000b90| 6d 2e 20 59 6f 75 20 6d | 61 79 20 61 6c 73 6f 20 |m. You m|ay also |
|00000ba0| 6c 6f 6f 6b 20 61 74 0a | 58 60 66 61 73 2e 63 27 |look at.|X`fas.c'|
|00000bb0| 20 74 6f 20 66 69 6e 64 | 20 6f 75 74 20 77 68 61 | to find| out wha|
|00000bc0| 74 20 64 65 66 69 6e 65 | 73 20 61 72 65 20 70 6f |t define|s are po|
|00000bd0| 73 73 69 62 6c 65 20 66 | 6f 72 20 63 6f 6e 64 69 |ssible f|or condi|
|00000be0| 74 69 6f 6e 61 6c 0a 58 | 63 6f 6d 70 69 6c 61 74 |tional.X|compilat|
|00000bf0| 69 6f 6e 2e 20 59 6f 75 | 20 73 68 6f 75 6c 64 20 |ion. You| should |
|00000c00| 61 6c 73 6f 20 63 68 65 | 63 6b 20 74 68 65 20 70 |also che|ck the p|
|00000c10| 61 74 68 73 20 61 6e 64 | 20 66 69 6c 65 20 6e 61 |aths and| file na|
|00000c20| 6d 65 73 20 75 73 65 64 | 0a 58 69 6e 20 74 68 65 |mes used|.Xin the|
|00000c30| 20 6d 61 6b 65 66 69 6c | 65 2e 0a 58 0a 58 41 66 | makefil|e..X.XAf|
|00000c40| 74 65 72 20 74 68 61 74 | 20 79 6f 75 20 63 68 6f |ter that| you cho|
|00000c50| 73 65 20 6f 6e 65 20 6f | 66 20 74 68 65 20 73 70 |se one o|f the sp|
|00000c60| 61 63 65 2d 78 78 78 78 | 78 20 63 6f 6e 66 69 67 |ace-xxxx|x config|
|00000c70| 75 72 61 74 69 6f 6e 20 | 66 69 6c 65 73 0a 58 74 |uration |files.Xt|
|00000c80| 68 61 74 20 6d 61 74 63 | 68 65 73 20 79 6f 75 72 |hat matc|hes your|
|00000c90| 20 73 65 72 69 61 6c 20 | 63 61 72 64 20 61 6e 64 | serial |card and|
|00000ca0| 20 63 6f 70 79 20 74 68 | 69 73 20 74 6f 20 60 73 | copy th|is to `s|
|00000cb0| 70 61 63 65 2e 63 27 2e | 20 49 66 20 79 6f 75 0a |pace.c'.| If you.|
|00000cc0| 58 64 6f 6e 27 74 20 66 | 69 6e 64 20 61 20 6d 61 |Xdon't f|ind a ma|
|00000cd0| 74 63 68 69 6e 67 20 73 | 70 61 63 65 20 66 69 6c |tching s|pace fil|
|00000ce0| 65 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 63 6f 70 |e you sh|ould cop|
|00000cf0| 79 20 74 68 65 20 6f 6e | 65 20 74 68 61 74 0a 58 |y the on|e that.X|
|00000d00| 63 6f 6d 65 73 20 63 6c | 6f 73 65 73 74 20 74 6f |comes cl|osest to|
|00000d10| 20 79 6f 75 72 20 63 61 | 72 64 20 74 6f 20 60 73 | your ca|rd to `s|
|00000d20| 70 61 63 65 2e 63 27 2e | 0a 58 0a 58 49 6e 20 61 |pace.c'.|.X.XIn a|
|00000d30| 6e 79 20 63 61 73 65 20 | 79 6f 75 20 73 68 6f 75 |ny case |you shou|
|00000d40| 6c 64 20 63 68 65 63 6b | 20 74 68 65 20 65 6e 74 |ld check| the ent|
|00000d50| 72 69 65 73 20 69 6e 20 | 74 68 61 74 20 66 69 6c |ries in |that fil|
|00000d60| 65 20 61 67 61 69 6e 73 | 74 20 79 6f 75 72 0a 58 |e agains|t your.X|
|00000d70| 63 61 72 64 27 73 20 6d | 61 6e 75 61 6c 20 61 6e |card's m|anual an|
|00000d80| 64 20 6a 75 6d 70 65 72 | 20 73 65 74 74 69 6e 67 |d jumper| setting|
|00000d90| 73 2e 20 54 68 65 20 73 | 70 61 63 65 20 66 69 6c |s. The s|pace fil|
|00000da0| 65 73 20 63 6f 6e 74 61 | 69 6e 20 65 78 70 6c 61 |es conta|in expla|
|00000db0| 6e 61 74 69 6f 6e 73 0a | 58 61 62 6f 75 74 20 77 |nations.|Xabout w|
|00000dc0| 68 61 74 20 64 61 74 61 | 20 79 6f 75 20 68 61 76 |hat data| you hav|
|00000dd0| 65 20 74 6f 20 65 6e 74 | 65 72 2e 0a 58 0a 58 49 |e to ent|er..X.XI|
|00000de0| 66 20 79 6f 75 72 20 60 | 73 70 61 63 65 2e 63 27 |f your `|space.c'|
|00000df0| 20 69 73 20 66 69 6c 6c | 65 64 20 69 6e 20 70 72 | is fill|ed in pr|
|00000e00| 6f 70 65 72 6c 79 20 79 | 6f 75 20 73 69 6d 70 6c |operly y|ou simpl|
|00000e10| 79 20 74 79 70 65 20 60 | 6d 61 6b 65 27 20 74 6f |y type `|make' to|
|00000e20| 0a 58 63 6f 6d 70 69 6c | 65 20 74 68 65 20 64 72 |.Xcompil|e the dr|
|00000e30| 69 76 65 72 2e 20 49 66 | 20 79 6f 75 20 64 6f 6e |iver. If| you don|
|00000e40| 27 74 20 67 65 74 20 65 | 72 72 6f 72 20 6d 65 73 |'t get e|rror mes|
|00000e50| 73 61 67 65 73 20 79 6f | 75 20 6d 61 79 20 62 65 |sages yo|u may be|
|00000e60| 67 69 6e 0a 58 77 69 74 | 68 20 74 68 65 20 61 63 |gin.Xwit|h the ac|
|00000e70| 74 75 61 6c 20 69 6e 73 | 74 61 6c 6c 61 74 69 6f |tual ins|tallatio|
|00000e80| 6e 2e 20 4f 74 68 65 72 | 77 69 73 65 20 79 6f 75 |n. Other|wise you|
|00000e90| 20 68 61 76 65 20 74 6f | 20 66 69 6e 64 20 74 68 | have to| find th|
|00000ea0| 65 20 63 61 75 73 65 20 | 6f 66 0a 58 74 68 65 20 |e cause |of.Xthe |
|00000eb0| 74 72 6f 75 62 6c 65 2e | 20 53 6f 6d 65 20 65 72 |trouble.| Some er|
|00000ec0| 72 6f 72 20 72 65 61 73 | 6f 6e 73 20 6d 61 79 20 |ror reas|ons may |
|00000ed0| 62 65 20 6d 69 73 73 69 | 6e 67 20 69 6e 63 6c 75 |be missi|ng inclu|
|00000ee0| 64 65 20 66 69 6c 65 73 | 2c 20 6d 61 63 72 6f 73 |de files|, macros|
|00000ef0| 0a 58 74 68 61 74 20 61 | 72 65 20 64 65 66 69 6e |.Xthat a|re defin|
|00000f00| 65 64 20 69 6e 20 64 69 | 66 66 65 72 65 6e 74 20 |ed in di|fferent |
|00000f10| 69 6e 63 6c 75 64 65 20 | 66 69 6c 65 73 20 6f 72 |include |files or|
|00000f20| 20 6d 69 73 73 69 6e 67 | 20 61 74 20 61 6c 6c 2c | missing| at all,|
|00000f30| 20 79 6f 75 0a 58 75 73 | 65 20 61 6e 20 41 4e 53 | you.Xus|e an ANS|
|00000f40| 49 20 63 6f 6d 70 69 6c | 65 72 20 74 68 61 74 20 |I compil|er that |
|00000f50| 63 6f 6d 70 6c 61 69 6e | 73 20 61 62 6f 75 74 20 |complain|s about |
|00000f60| 6e 6f 6e 2d 41 4e 53 49 | 20 63 6f 6e 73 74 72 75 |non-ANSI| constru|
|00000f70| 63 74 69 6f 6e 73 2e 0a | 58 49 6e 20 74 68 65 20 |ctions..|XIn the |
|00000f80| 6c 61 74 74 65 72 20 63 | 61 73 65 20 79 6f 75 20 |latter c|ase you |
|00000f90| 6e 65 65 64 20 74 6f 20 | 63 6f 6e 76 69 6e 63 65 |need to |convince|
|00000fa0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 20 73 6f | the com|piler so|
|00000fb0| 6d 65 68 6f 77 20 74 6f | 0a 58 77 6f 72 6b 20 69 |mehow to|.Xwork i|
|00000fc0| 6e 20 6e 6f 6e 2d 41 4e | 53 49 20 28 73 74 61 6e |n non-AN|SI (stan|
|00000fd0| 64 61 72 64 20 43 29 20 | 6d 6f 64 65 2e 0a 58 0a |dard C) |mode..X.|
|00000fe0| 58 0a 58 49 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 20 |X.XInsta|llation |
|00000ff0| 70 68 61 73 65 0a 58 3d | 3d 3d 3d 3d 3d 3d 3d 3d |phase.X=|========|
|00001000| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 58 0a 58 49 66 20 |========|=.X.XIf |
|00001010| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 68 61 76 65 |you want| to have|
|00001020| 20 62 6f 74 68 20 74 68 | 65 20 6f 72 69 67 69 6e | both th|e origin|
|00001030| 61 6c 20 61 73 79 20 61 | 6e 64 20 74 68 65 20 6e |al asy a|nd the n|
|00001040| 65 77 20 46 41 53 20 64 | 72 69 76 65 72 20 69 6e |ew FAS d|river in|
|00001050| 0a 58 74 68 65 20 6b 65 | 72 6e 65 6c 20 74 68 65 |.Xthe ke|rnel the|
|00001060| 20 6f 6e 6c 79 20 72 65 | 73 74 72 69 63 74 69 6f | only re|strictio|
|00001070| 6e 20 69 73 20 74 68 61 | 74 20 70 6f 72 74 73 20 |n is tha|t ports |
|00001080| 61 6e 64 20 69 6e 74 65 | 72 72 75 70 74 20 76 65 |and inte|rrupt ve|
|00001090| 63 74 6f 72 73 0a 58 63 | 61 6e 27 74 20 62 65 20 |ctors.Xc|an't be |
|000010a0| 73 68 61 72 65 64 20 62 | 65 74 77 65 65 6e 20 74 |shared b|etween t|
|000010b0| 68 65 20 74 77 6f 20 64 | 72 69 76 65 72 73 2e 20 |he two d|rivers. |
|000010c0| 45 61 63 68 20 64 72 69 | 76 65 72 20 63 6f 6e 74 |Each dri|ver cont|
|000010d0| 72 6f 6c 73 20 69 74 73 | 20 6f 77 6e 0a 58 73 65 |rols its| own.Xse|
|000010e0| 70 61 72 61 74 65 20 73 | 65 74 20 6f 66 20 70 6f |parate s|et of po|
|000010f0| 72 74 73 20 61 6e 64 20 | 49 52 51 73 2e 0a 58 0a |rts and |IRQs..X.|
|00001100| 58 75 50 6f 72 74 3a 20 | 43 6f 70 79 20 6f 6e 65 |XuPort: |Copy one|
|00001110| 20 6f 66 20 74 68 65 20 | 63 6f 6e 66 69 67 2d 78 | of the |config-x|
|00001120| 78 78 78 78 20 66 69 6c | 65 73 20 74 6f 20 60 63 |xxxx fil|es to `c|
|00001130| 6f 6e 66 69 67 27 2e 20 | 43 68 65 63 6b 20 6f 75 |onfig'. |Check ou|
|00001140| 74 0a 58 20 20 20 20 20 | 20 20 77 68 65 74 68 65 |t.X | whethe|
|00001150| 72 20 74 68 65 20 69 6e | 74 65 72 72 75 70 74 20 |r the in|terrupt |
|00001160| 76 65 63 74 6f 72 73 20 | 69 6e 20 74 68 69 73 20 |vectors |in this |
|00001170| 66 69 6c 65 20 72 65 66 | 6c 65 63 74 20 74 68 65 |file ref|lect the|
|00001180| 0a 58 20 20 20 20 20 20 | 20 6a 75 6d 70 65 72 20 |.X | jumper |
|00001190| 73 65 74 74 69 6e 67 73 | 20 6f 6e 20 79 6f 75 72 |settings| on your|
|000011a0| 20 73 65 72 69 61 6c 20 | 63 61 72 64 2e 20 4e 6f | serial |card. No|
|000011b0| 74 65 20 74 68 61 74 20 | 61 6e 20 49 52 51 32 20 |te that |an IRQ2 |
|000011c0| 6f 6e 0a 58 20 20 20 20 | 20 20 20 79 6f 75 72 20 |on.X | your |
|000011d0| 63 61 72 64 20 69 73 20 | 61 6e 20 69 6e 74 65 72 |card is |an inter|
|000011e0| 72 75 70 74 20 76 65 63 | 74 6f 72 20 6f 66 20 39 |rupt vec|tor of 9|
|000011f0| 2e 20 41 6c 6c 20 6f 74 | 68 65 72 20 49 52 51 20 |. All ot|her IRQ |
|00001200| 6e 75 6d 62 65 72 73 0a | 58 20 20 20 20 20 20 20 |numbers.|X |
|00001210| 63 6f 72 72 65 73 70 6f | 6e 64 20 74 6f 20 74 68 |correspo|nd to th|
|00001220| 65 20 76 65 63 74 6f 72 | 20 6e 75 6d 62 65 72 2c |e vector| number,|
|00001230| 20 74 68 6f 75 67 68 2e | 0a 58 0a 58 20 20 20 20 | though.|.X.X |
|00001240| 20 20 20 4e 65 78 74 20 | 79 6f 75 20 68 61 76 65 | Next |you have|
|00001250| 20 74 6f 20 74 65 6c 6c | 20 74 68 65 20 63 6f 6e | to tell| the con|
|00001260| 66 69 67 20 70 72 6f 67 | 72 61 6d 20 74 6f 20 69 |fig prog|ram to i|
|00001270| 6e 63 6c 75 64 65 20 74 | 68 65 20 6e 65 77 0a 58 |nclude t|he new.X|
|00001280| 20 20 20 20 20 20 20 64 | 72 69 76 65 72 20 61 74 | d|river at|
|00001290| 20 6b 65 72 6e 65 6c 20 | 6c 69 6e 6b 20 74 69 6d | kernel |link tim|
|000012a0| 65 2e 20 54 68 69 73 20 | 69 73 20 64 6f 6e 65 20 |e. This |is done |
|000012b0| 62 79 20 61 20 6c 69 6e | 65 20 69 6e 20 74 68 65 |by a lin|e in the|
|000012c0| 20 66 69 6c 65 0a 58 20 | 20 20 20 20 20 20 2f 65 | file.X | /e|
|000012d0| 74 63 2f 61 74 63 6f 6e | 66 2f 73 79 73 74 65 6d |tc/atcon|f/system|
|000012e0| 73 2f 73 79 73 74 65 6d | 2e 73 74 64 2e 20 4c 6f |s/system|.std. Lo|
|000012f0| 6f 6b 20 66 6f 72 20 74 | 68 65 20 6c 69 6e 65 20 |ok for t|he line |
|00001300| 63 6f 6e 74 61 69 6e 69 | 6e 67 0a 58 20 20 20 20 |containi|ng.X |
|00001310| 20 20 20 60 61 73 79 27 | 20 66 6f 6c 6c 6f 77 65 | `asy'| followe|
|00001320| 64 20 62 79 20 61 6e 20 | 61 73 74 65 72 69 73 6b |d by an |asterisk|
|00001330| 20 28 60 2a 27 29 20 61 | 6e 64 20 61 20 63 6f 6d | (`*') a|nd a com|
|00001340| 6d 65 6e 74 2e 20 43 72 | 65 61 74 65 20 61 0a 58 |ment. Cr|eate a.X|
|00001350| 20 20 20 20 20 20 20 73 | 69 6d 69 6c 61 72 20 6c | s|imilar l|
|00001360| 69 6e 65 20 77 68 65 72 | 65 20 60 61 73 79 27 20 |ine wher|e `asy' |
|00001370| 69 73 20 73 75 62 73 74 | 69 74 75 74 65 64 20 77 |is subst|ituted w|
|00001380| 69 74 68 20 60 66 61 73 | 27 2e 20 41 64 64 20 61 |ith `fas|'. Add a|
|00001390| 0a 58 20 20 20 20 20 20 | 20 70 72 6f 70 65 72 20 |.X | proper |
|000013a0| 63 6f 6d 6d 65 6e 74 2e | 20 49 66 20 79 6f 75 20 |comment.| If you |
|000013b0| 64 6f 6e 27 74 20 77 61 | 6e 74 20 74 6f 20 75 73 |don't wa|nt to us|
|000013c0| 65 20 61 6e 79 20 70 6f | 72 74 73 20 75 6e 64 65 |e any po|rts unde|
|000013d0| 72 20 74 68 65 0a 58 20 | 20 20 20 20 20 20 44 4f |r the.X | DO|
|000013e0| 53 20 65 6d 75 6c 61 74 | 6f 72 20 79 6f 75 20 73 |S emulat|or you s|
|000013f0| 68 6f 75 6c 64 20 69 6e | 73 65 72 74 20 61 6e 20 |hould in|sert an |
|00001400| 61 73 74 65 72 69 73 6b | 20 61 74 20 74 68 65 20 |asterisk| at the |
|00001410| 62 65 67 69 6e 6e 69 6e | 67 0a 58 20 20 20 20 20 |beginnin|g.X |
|00001420| 20 20 6f 66 20 74 68 65 | 20 6c 69 6e 65 20 74 68 | of the| line th|
|00001430| 61 74 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |at conta|ins the |
|00001440| 77 6f 72 64 20 60 61 73 | 79 27 2e 20 54 68 69 73 |word `as|y'. This|
|00001450| 20 65 78 63 6c 75 64 65 | 73 20 74 68 65 0a 58 20 | exclude|s the.X |
|00001460| 20 20 20 20 20 20 61 73 | 79 20 64 72 69 76 65 72 | as|y driver|
|00001470| 20 66 72 6f 6d 20 74 68 | 65 20 6b 65 72 6e 65 6c | from th|e kernel|
|00001480| 2e 20 42 75 74 20 69 66 | 20 79 6f 75 20 77 61 6e |. But if| you wan|
|00001490| 74 20 74 6f 20 68 61 76 | 65 20 69 74 20 69 6e 20 |t to hav|e it in |
|000014a0| 74 68 65 0a 58 20 20 20 | 20 20 20 20 6b 65 72 6e |the.X | kern|
|000014b0| 65 6c 20 79 6f 75 20 68 | 61 76 65 20 74 6f 20 63 |el you h|ave to c|
|000014c0| 6f 6e 66 69 67 75 72 65 | 20 69 74 20 74 6f 20 6f |onfigure| it to o|
|000014d0| 6e 6c 79 20 75 73 65 20 | 74 68 65 20 70 6f 72 74 |nly use |the port|
|000014e0| 73 20 79 6f 75 0a 58 20 | 20 20 20 20 20 20 6e 65 |s you.X | ne|
|000014f0| 65 64 20 75 6e 64 65 72 | 20 44 4f 53 2e 20 54 68 |ed under| DOS. Th|
|00001500| 65 20 72 65 6d 61 69 6e | 69 6e 67 20 70 6f 72 74 |e remain|ing port|
|00001510| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 63 6f 6e 74 |s should| be cont|
|00001520| 72 6f 6c 6c 65 64 20 62 | 79 0a 58 20 20 20 20 20 |rolled b|y.X |
|00001530| 20 20 74 68 65 20 46 41 | 53 20 64 72 69 76 65 72 | the FA|S driver|
|00001540| 2e 0a 58 0a 58 20 20 20 | 20 20 20 20 4e 6f 77 20 |..X.X | Now |
|00001550| 74 79 70 65 20 60 6d 61 | 6b 65 20 69 6e 73 74 61 |type `ma|ke insta|
|00001560| 6c 6c 27 20 61 6e 64 20 | 61 66 74 65 72 20 74 68 |ll' and |after th|
|00001570| 61 74 20 79 6f 75 20 61 | 72 65 20 72 65 61 64 79 |at you a|re ready|
|00001580| 20 74 6f 20 6c 69 6e 6b | 0a 58 20 20 20 20 20 20 | to link|.X |
|00001590| 20 61 20 6e 65 77 20 6b | 65 72 6e 65 6c 2e 20 52 | a new k|ernel. R|
|000015a0| 65 66 65 72 20 74 6f 20 | 79 6f 75 72 20 73 79 73 |efer to |your sys|
|000015b0| 74 65 6d 20 6d 61 6e 75 | 61 6c 73 20 6f 6e 20 68 |tem manu|als on h|
|000015c0| 6f 77 20 74 6f 20 64 6f | 20 74 68 61 74 2e 0a 58 |ow to do| that..X|
|000015d0| 0a 58 20 20 20 20 20 20 | 20 42 65 66 6f 72 65 20 |.X | Before |
|000015e0| 79 6f 75 20 72 65 62 6f | 6f 74 20 74 68 65 20 6e |you rebo|ot the n|
|000015f0| 65 77 20 6b 65 72 6e 65 | 6c 20 6d 61 6b 65 20 73 |ew kerne|l make s|
|00001600| 75 72 65 20 74 68 61 74 | 20 79 6f 75 20 63 72 65 |ure that| you cre|
|00001610| 61 74 65 0a 58 20 20 20 | 20 20 20 20 74 68 65 20 |ate.X | the |
|00001620| 70 72 6f 70 65 72 20 74 | 74 79 20 64 65 76 69 63 |proper t|ty devic|
|00001630| 65 20 6e 6f 64 65 73 20 | 69 6e 20 2f 64 65 76 2e |e nodes |in /dev.|
|00001640| 20 42 75 74 20 66 69 72 | 73 74 20 79 6f 75 20 73 | But fir|st you s|
|00001650| 68 6f 75 6c 64 0a 58 20 | 20 20 20 20 20 20 72 65 |hould.X | re|
|00001660| 6d 6f 76 65 20 61 6c 6c | 20 64 65 76 69 63 65 20 |move all| device |
|00001670| 6e 6f 64 65 73 20 62 65 | 6c 6f 6e 67 69 6e 67 20 |nodes be|longing |
|00001680| 74 6f 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |to the o|riginal |
|00001690| 61 73 79 20 64 72 69 76 | 65 72 0a 58 20 20 20 20 |asy driv|er.X |
|000016a0| 20 20 20 74 68 61 74 20 | 79 6f 75 20 64 6f 6e 27 | that |you don'|
|000016b0| 74 20 6e 65 65 64 20 61 | 6e 79 20 6d 6f 72 65 2e |t need a|ny more.|
|000016c0| 0a 58 0a 58 20 20 20 20 | 20 20 20 4e 6f 77 20 63 |.X.X | Now c|
|000016d0| 72 65 61 74 65 20 79 6f | 75 72 20 6f 77 6e 20 74 |reate yo|ur own t|
|000016e0| 74 79 20 64 65 76 69 63 | 65 20 6e 6f 64 65 73 20 |ty devic|e nodes |
|000016f0| 74 68 61 74 20 66 69 74 | 20 79 6f 75 72 20 6e 65 |that fit| your ne|
|00001700| 65 64 73 2e 0a 58 20 20 | 20 20 20 20 20 54 68 65 |eds..X | The|
|00001710| 20 64 65 66 61 75 6c 74 | 20 64 65 76 69 63 65 20 | default| device |
|00001720| 6e 61 6d 65 20 70 72 65 | 66 69 78 20 66 6f 72 20 |name pre|fix for |
|00001730| 74 68 65 20 46 41 53 20 | 64 72 69 76 65 72 20 69 |the FAS |driver i|
|00001740| 73 20 60 74 74 79 46 27 | 2e 0a 58 20 20 20 20 20 |s `ttyF'|..X |
|00001750| 20 20 54 68 61 74 20 69 | 73 2c 20 74 74 79 46 30 | That i|s, ttyF0|
|00001760| 30 2c 20 74 74 79 46 30 | 31 20 2e 2e 2e 20 61 6e |0, ttyF0|1 ... an|
|00001770| 64 20 74 74 79 46 4d 30 | 30 2c 20 74 74 79 46 4d |d ttyFM0|0, ttyFM|
|00001780| 30 31 20 2e 2e 2e 0a 58 | 20 20 20 20 20 20 20 59 |01 ....X| Y|
|00001790| 6f 75 20 6d 61 79 20 63 | 68 6f 73 65 20 61 6e 6f |ou may c|hose ano|
|000017a0| 74 68 65 72 20 70 72 65 | 66 69 78 2c 20 62 75 74 |ther pre|fix, but|
|000017b0| 20 6e 6f 74 65 20 74 68 | 61 74 20 73 6f 6d 65 20 | note th|at some |
|000017c0| 75 74 69 6c 69 74 69 65 | 73 0a 58 20 20 20 20 20 |utilitie|s.X |
|000017d0| 20 20 6c 69 6b 65 20 75 | 75 73 74 61 74 20 64 65 | like u|ustat de|
|000017e0| 70 65 6e 64 20 6f 6e 20 | 74 74 79 2d 64 65 76 69 |pend on |tty-devi|
|000017f0| 63 65 73 20 62 65 67 69 | 6e 6e 69 6e 67 20 77 69 |ces begi|nning wi|
|00001800| 74 68 20 60 74 74 79 27 | 21 0a 58 0a 58 20 20 20 |th `tty'|!.X.X |
|00001810| 20 20 20 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 | The |default |
|00001820| 76 61 6c 75 65 20 66 6f | 72 20 74 68 65 20 6d 61 |value fo|r the ma|
|00001830| 6a 6f 72 20 64 65 76 69 | 63 65 20 6e 75 6d 62 65 |jor devi|ce numbe|
|00001840| 72 20 69 73 20 34 2c 20 | 61 6e 64 0a 58 20 20 20 |r is 4, |and.X |
|00001850| 20 20 20 20 73 61 6e 65 | 20 76 61 6c 75 65 73 20 | sane| values |
|00001860| 66 6f 72 20 74 68 65 20 | 6d 69 6e 6f 72 20 64 65 |for the |minor de|
|00001870| 76 69 63 65 20 6e 75 6d | 62 65 72 73 20 61 72 65 |vice num|bers are|
|00001880| 20 34 38 20 2b 20 64 65 | 76 69 63 65 20 23 0a 58 | 48 + de|vice #.X|
|00001890| 20 20 20 20 20 20 20 66 | 6f 72 20 74 68 65 20 64 | f|or the d|
|000018a0| 69 61 6c 6f 75 74 20 6e | 6f 64 65 20 61 6e 64 20 |ialout n|ode and |
|000018b0| 32 30 38 20 2b 20 64 65 | 76 69 63 65 20 23 20 66 |208 + de|vice # f|
|000018c0| 6f 72 20 74 68 65 20 64 | 69 61 6c 69 6e 20 28 67 |or the d|ialin (g|
|000018d0| 65 74 74 79 29 0a 58 20 | 20 20 20 20 20 20 6e 6f |etty).X | no|
|000018e0| 64 65 2e 20 44 65 76 69 | 63 65 20 23 20 63 6f 75 |de. Devi|ce # cou|
|000018f0| 6e 74 73 20 66 72 6f 6d | 20 30 20 61 6e 64 20 72 |nts from| 0 and r|
|00001900| 65 66 6c 65 63 74 73 20 | 74 68 65 20 61 63 74 75 |eflects |the actu|
|00001910| 61 6c 20 70 6f 72 74 20 | 6e 75 6d 62 65 72 2e 0a |al port |number..|
|00001920| 58 20 20 20 20 20 20 20 | 52 65 66 65 72 20 74 6f |X |Refer to|
|00001930| 20 66 61 73 2e 63 20 28 | 66 75 6e 63 74 69 6f 6e | fas.c (|function|
|00001940| 20 60 66 61 73 6f 70 65 | 6e 27 29 20 66 6f 72 20 | `fasope|n') for |
|00001950| 61 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |a descri|ption of|
|00001960| 20 74 68 65 0a 58 20 20 | 20 20 20 20 20 70 6f 73 | the.X | pos|
|00001970| 73 69 62 6c 65 20 6d 69 | 6e 6f 72 20 64 65 76 69 |sible mi|nor devi|
|00001980| 63 65 20 6e 75 6d 62 65 | 72 73 2e 0a 58 0a 58 20 |ce numbe|rs..X.X |
|00001990| 20 20 20 20 20 20 52 65 | 6d 65 6d 62 65 72 20 74 | Re|member t|
|000019a0| 6f 20 63 68 61 6e 67 65 | 20 74 68 65 20 69 6e 69 |o change| the ini|
|000019b0| 74 74 61 62 20 66 69 6c | 65 20 74 6f 20 74 68 65 |ttab fil|e to the|
|000019c0| 20 6e 65 77 20 64 65 76 | 69 63 65 20 6e 61 6d 65 | new dev|ice name|
|000019d0| 73 2e 0a 58 20 20 20 20 | 20 20 20 4f 74 68 65 72 |s..X | Other|
|000019e0| 20 66 69 6c 65 73 20 74 | 68 61 74 20 63 6f 6e 74 | files t|hat cont|
|000019f0| 61 69 6e 20 74 74 79 2d | 6e 61 6d 65 73 20 66 6f |ain tty-|names fo|
|00001a00| 72 20 73 6f 6d 65 20 72 | 65 61 73 6f 6e 20 73 68 |r some r|eason sh|
|00001a10| 6f 75 6c 64 20 62 65 0a | 58 20 20 20 20 20 20 20 |ould be.|X |
|00001a20| 75 70 64 61 74 65 64 2c | 20 74 6f 6f 20 28 74 74 |updated,| too (tt|
|00001a30| 79 74 79 70 65 2c 20 44 | 65 76 69 63 65 73 20 65 |ytype, D|evices e|
|00001a40| 74 63 2e 29 2e 0a 58 0a | 58 20 20 20 20 20 20 20 |tc.)..X.|X |
|00001a50| 41 66 74 65 72 20 79 6f | 75 20 68 61 76 65 20 62 |After yo|u have b|
|00001a60| 6f 6f 74 65 64 20 74 68 | 65 20 6e 65 77 20 6b 65 |ooted th|e new ke|
|00001a70| 72 6e 65 6c 2c 20 70 72 | 6f 76 69 64 65 64 20 79 |rnel, pr|ovided y|
|00001a80| 6f 75 72 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |our conf|iguratio|
|00001a90| 6e 0a 58 20 20 20 20 20 | 20 20 77 61 73 20 63 6f |n.X | was co|
|00001aa0| 72 72 65 63 74 2c 20 79 | 6f 75 20 73 68 6f 75 6c |rrect, y|ou shoul|
|00001ab0| 64 20 62 65 20 61 62 6c | 65 20 74 6f 20 75 73 65 |d be abl|e to use|
|00001ac0| 20 74 68 65 20 73 65 72 | 69 61 6c 20 64 65 76 69 | the ser|ial devi|
|00001ad0| 63 65 73 2e 0a 58 0a 58 | 0a 58 49 53 43 3a 20 20 |ces..X.X|.XISC: |
|00001ae0| 20 43 6f 70 79 20 6f 6e | 65 20 6f 66 20 74 68 65 | Copy on|e of the|
|00001af0| 20 73 5f 66 61 73 2d 78 | 78 78 78 78 20 66 69 6c | s_fas-x|xxxx fil|
|00001b00| 65 73 20 74 6f 20 60 73 | 5f 66 61 73 27 2e 20 4d |es to `s|_fas'. M|
|00001b10| 61 6b 65 20 73 75 72 65 | 0a 58 20 20 20 20 20 20 |ake sure|.X |
|00001b20| 20 74 68 61 74 20 79 6f | 75 20 68 61 76 65 20 61 | that yo|u have a|
|00001b30| 20 73 65 70 61 72 61 74 | 65 20 6c 69 6e 65 20 69 | separat|e line i|
|00001b40| 6e 20 69 74 20 66 6f 72 | 20 65 61 63 68 20 62 6c |n it for| each bl|
|00001b50| 6f 63 6b 20 6f 66 20 63 | 6f 6e 74 69 67 75 6f 75 |ock of c|ontiguou|
|00001b60| 73 0a 58 20 20 20 20 20 | 20 20 70 6f 72 74 20 61 |s.X | port a|
|00001b70| 64 64 72 65 73 73 65 73 | 20 61 73 73 69 67 6e 65 |ddresses| assigne|
|00001b80| 64 20 74 6f 20 74 68 65 | 20 73 61 6d 65 20 69 6e |d to the| same in|
|00001b90| 74 65 72 72 75 70 74 20 | 76 65 63 74 6f 72 20 28 |terrupt |vector (|
|00001ba0| 63 68 65 63 6b 0a 58 20 | 20 20 20 20 20 20 74 68 |check.X | th|
|00001bb0| 65 20 6a 75 6d 70 65 72 | 20 73 65 74 74 69 6e 67 |e jumper| setting|
|00001bc0| 73 20 6f 6e 20 79 6f 75 | 72 20 73 65 72 69 61 6c |s on you|r serial|
|00001bd0| 20 63 61 72 64 29 2e 20 | 45 61 63 68 20 6c 69 6e | card). |Each lin|
|00001be0| 65 20 63 6f 6e 74 61 69 | 6e 73 0a 58 20 20 20 20 |e contai|ns.X |
|00001bf0| 20 20 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 | the n|umber of|
|00001c00| 20 70 6f 72 74 73 20 62 | 6f 75 6e 64 20 74 6f 20 | ports b|ound to |
|00001c10| 74 68 61 74 20 69 6e 74 | 65 72 72 75 70 74 2c 20 |that int|errupt, |
|00001c20| 74 68 65 20 73 74 61 72 | 74 20 61 6e 64 0a 58 20 |the star|t and.X |
|00001c30| 20 20 20 20 20 20 65 6e | 64 20 61 64 64 72 65 73 | en|d addres|
|00001c40| 73 20 6f 66 20 74 68 65 | 20 66 69 72 73 74 20 28 |s of the| first (|
|00001c50| 6c 6f 77 65 73 74 20 6f | 72 20 6f 6e 6c 79 29 20 |lowest o|r only) |
|00001c60| 70 6f 72 74 20 6f 6e 20 | 74 68 69 73 20 69 6e 74 |port on |this int|
|00001c70| 65 72 72 75 70 74 0a 58 | 20 20 20 20 20 20 20 6c |errupt.X| l|
|00001c80| 69 6e 65 20 61 6e 64 20 | 6f 74 68 65 72 20 64 61 |ine and |other da|
|00001c90| 74 61 2e 20 52 65 66 65 | 72 20 74 6f 20 79 6f 75 |ta. Refe|r to you|
|00001ca0| 72 20 49 53 43 20 6d 61 | 6e 75 61 6c 73 20 69 66 |r ISC ma|nuals if|
|00001cb0| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 0a 58 20 20 | you nee|d to.X |
|00001cc0| 20 20 20 20 20 63 68 61 | 6e 67 65 20 74 68 69 73 | cha|nge this|
|00001cd0| 20 66 69 6c 65 2e 20 4e | 6f 74 65 20 74 68 61 74 | file. N|ote that|
|00001ce0| 20 61 6e 20 49 52 51 32 | 20 6f 6e 20 79 6f 75 72 | an IRQ2| on your|
|00001cf0| 20 63 61 72 64 20 69 73 | 20 61 6e 20 69 6e 74 65 | card is| an inte|
|00001d00| 72 72 75 70 74 0a 58 20 | 20 20 20 20 20 20 76 65 |rrupt.X | ve|
|00001d10| 63 74 6f 72 20 6f 66 20 | 39 2e 20 41 6c 6c 20 6f |ctor of |9. All o|
|00001d20| 74 68 65 72 20 49 52 51 | 20 6e 75 6d 62 65 72 73 |ther IRQ| numbers|
|00001d30| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 74 6f 20 74 | corresp|ond to t|
|00001d40| 68 65 20 76 65 63 74 6f | 72 0a 58 20 20 20 20 20 |he vecto|r.X |
|00001d50| 20 20 6e 75 6d 62 65 72 | 2c 20 74 68 6f 75 67 68 | number|, though|
|00001d60| 2e 0a 58 0a 58 20 20 20 | 20 20 20 20 54 68 65 6e |..X.X | Then|
|00001d70| 20 79 6f 75 20 63 6f 70 | 79 20 6f 6e 65 20 6f 66 | you cop|y one of|
|00001d80| 20 74 68 65 20 6e 5f 66 | 61 73 2d 78 78 78 78 78 | the n_f|as-xxxxx|
|00001d90| 20 66 69 6c 65 73 20 74 | 6f 20 60 6e 5f 66 61 73 | files t|o `n_fas|
|00001da0| 27 2e 20 54 68 69 73 0a | 58 20 20 20 20 20 20 20 |'. This.|X |
|00001db0| 66 69 6c 65 20 63 6f 6e | 74 61 69 6e 73 20 64 61 |file con|tains da|
|00001dc0| 74 61 20 6e 65 65 64 65 | 64 20 74 6f 20 61 75 74 |ta neede|d to aut|
|00001dd0| 6f 6d 61 74 69 63 61 6c | 6c 79 20 63 72 65 61 74 |omatical|ly creat|
|00001de0| 65 20 74 74 79 20 64 65 | 76 69 63 65 0a 58 20 20 |e tty de|vice.X |
|00001df0| 20 20 20 20 20 6e 6f 64 | 65 73 20 61 74 20 69 6e | nod|es at in|
|00001e00| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 74 69 6d 65 2e |stallati|on time.|
|00001e10| 20 54 68 69 6e 67 73 20 | 79 6f 75 20 6d 61 79 20 | Things |you may |
|00001e20| 77 61 6e 74 20 74 6f 20 | 63 68 61 6e 67 65 20 61 |want to |change a|
|00001e30| 72 65 0a 58 20 20 20 20 | 20 20 20 74 68 65 20 74 |re.X | the t|
|00001e40| 74 79 20 6e 6f 64 65 20 | 6e 61 6d 65 20 61 6e 64 |ty node |name and|
|00001e50| 20 74 68 65 20 6d 69 6e | 6f 72 20 64 65 76 69 63 | the min|or devic|
|00001e60| 65 20 6e 75 6d 62 65 72 | 20 28 6c 61 73 74 20 66 |e number| (last f|
|00001e70| 69 65 6c 64 29 20 66 6f | 72 0a 58 20 20 20 20 20 |ield) fo|r.X |
|00001e80| 20 20 74 68 61 74 20 6e | 6f 64 65 2e 20 4d 61 6b | that n|ode. Mak|
|00001e90| 65 20 73 75 72 65 20 79 | 6f 75 20 68 61 76 65 20 |e sure y|ou have |
|00001ea0| 61 20 6e 6f 64 65 20 66 | 6f 72 20 65 76 65 72 79 |a node f|or every|
|00001eb0| 20 70 6f 72 74 20 6f 6e | 20 79 6f 75 72 0a 58 20 | port on| your.X |
|00001ec0| 20 20 20 20 20 20 73 65 | 72 69 61 6c 20 63 61 72 | se|rial car|
|00001ed0| 64 20 69 6e 20 74 68 69 | 73 20 66 69 6c 65 2e 0a |d in thi|s file..|
|00001ee0| 58 0a 58 20 20 20 20 20 | 20 20 53 61 6e 65 20 76 |X.X | Sane v|
|00001ef0| 61 6c 75 65 73 20 66 6f | 72 20 74 68 65 20 6d 69 |alues fo|r the mi|
|00001f00| 6e 6f 72 20 64 65 76 69 | 63 65 20 6e 75 6d 62 65 |nor devi|ce numbe|
|00001f10| 72 73 20 61 72 65 20 34 | 38 20 2b 20 64 65 76 69 |rs are 4|8 + devi|
|00001f20| 63 65 20 23 0a 58 20 20 | 20 20 20 20 20 66 6f 72 |ce #.X | for|
|00001f30| 20 74 68 65 20 64 69 61 | 6c 6f 75 74 20 6e 6f 64 | the dia|lout nod|
|00001f40| 65 20 61 6e 64 20 32 30 | 38 20 2b 20 64 65 76 69 |e and 20|8 + devi|
|00001f50| 63 65 20 23 20 66 6f 72 | 20 74 68 65 20 64 69 61 |ce # for| the dia|
|00001f60| 6c 69 6e 20 28 67 65 74 | 74 79 29 0a 58 20 20 20 |lin (get|ty).X |
|00001f70| 20 20 20 20 6e 6f 64 65 | 2e 20 44 65 76 69 63 65 | node|. Device|
|00001f80| 20 23 20 63 6f 75 6e 74 | 73 20 66 72 6f 6d 20 30 | # count|s from 0|
|00001f90| 20 61 6e 64 20 72 65 66 | 6c 65 63 74 73 20 74 68 | and ref|lects th|
|00001fa0| 65 20 61 63 74 75 61 6c | 20 70 6f 72 74 20 6e 75 |e actual| port nu|
|00001fb0| 6d 62 65 72 2e 0a 58 20 | 20 20 20 20 20 20 52 65 |mber..X | Re|
|00001fc0| 66 65 72 20 74 6f 20 66 | 61 73 2e 63 20 28 66 75 |fer to f|as.c (fu|
|00001fd0| 6e 63 74 69 6f 6e 20 60 | 66 61 73 6f 70 65 6e 27 |nction `|fasopen'|
|00001fe0| 29 20 66 6f 72 20 61 20 | 64 65 73 63 72 69 70 74 |) for a |descript|
|00001ff0| 69 6f 6e 20 6f 66 20 74 | 68 65 0a 58 20 20 20 20 |ion of t|he.X |
|00002000| 20 20 20 70 6f 73 73 69 | 62 6c 65 20 6d 69 6e 6f | possi|ble mino|
|00002010| 72 20 64 65 76 69 63 65 | 20 6e 75 6d 62 65 72 73 |r device| numbers|
|00002020| 2e 0a 58 0a 58 20 20 20 | 20 20 20 20 4e 6f 77 20 |..X.X | Now |
|00002030| 63 6f 70 79 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |copy one| of the |
|00002040| 69 5f 66 61 73 2d 78 78 | 78 78 78 20 66 69 6c 65 |i_fas-xx|xxx file|
|00002050| 73 20 74 6f 20 60 69 5f | 66 61 73 27 2e 20 54 68 |s to `i_|fas'. Th|
|00002060| 69 73 20 66 69 6c 65 0a | 58 20 20 20 20 20 20 20 |is file.|X |
|00002070| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 67 65 74 |contains| the get|
|00002080| 74 79 20 6c 69 6e 65 73 | 20 66 6f 72 20 74 68 65 |ty lines| for the|
|00002090| 20 69 6e 69 74 74 61 62 | 20 66 69 6c 65 20 77 68 | inittab| file wh|
|000020a0| 69 63 68 20 69 73 20 72 | 65 62 75 69 6c 64 0a 58 |ich is r|ebuild.X|
|000020b0| 20 20 20 20 20 20 20 65 | 76 65 72 79 20 74 69 6d | e|very tim|
|000020c0| 65 20 61 20 6e 65 77 20 | 6b 65 72 6e 65 6c 20 69 |e a new |kernel i|
|000020d0| 73 20 69 6e 73 74 61 6c | 6c 65 64 2e 20 4d 61 6b |s instal|led. Mak|
|000020e0| 65 20 73 75 72 65 20 74 | 68 61 74 20 79 6f 75 20 |e sure t|hat you |
|000020f0| 75 73 65 20 74 68 65 0a | 58 20 20 20 20 20 20 20 |use the.|X |
|00002100| 73 61 6d 65 20 64 65 76 | 69 63 65 20 6e 61 6d 65 |same dev|ice name|
|00002110| 73 20 68 65 72 65 20 61 | 73 20 69 6e 20 74 68 65 |s here a|s in the|
|00002120| 20 66 69 6c 65 20 60 6e | 5f 66 61 73 27 2e 0a 58 | file `n|_fas'..X|
|00002130| 0a 58 20 20 20 20 20 20 | 20 4e 65 78 74 20 79 6f |.X | Next yo|
|00002140| 75 20 68 61 76 65 20 74 | 6f 20 6d 6f 64 69 66 79 |u have t|o modify|
|00002150| 20 74 68 65 20 63 6f 6e | 66 69 67 75 72 61 74 69 | the con|figurati|
|00002160| 6f 6e 20 66 69 6c 65 73 | 20 66 6f 72 20 79 6f 75 |on files| for you|
|00002170| 72 20 6f 72 69 67 69 6e | 61 6c 0a 58 20 20 20 20 |r origin|al.X |
|00002180| 20 20 20 61 73 79 20 64 | 72 69 76 65 72 20 74 6f | asy d|river to|
|00002190| 20 63 72 65 61 74 65 20 | 6f 6e 6c 79 20 74 68 6f | create |only tho|
|000021a0| 73 65 20 64 65 76 69 63 | 65 73 20 79 6f 75 20 6e |se devic|es you n|
|000021b0| 65 65 64 20 66 6f 72 20 | 74 68 65 20 44 4f 53 0a |eed for |the DOS.|
|000021c0| 58 20 20 20 20 20 20 20 | 65 6d 75 6c 61 74 6f 72 |X |emulator|
|000021d0| 2e 20 4d 61 6b 65 20 73 | 75 72 65 20 74 68 61 74 |. Make s|ure that|
|000021e0| 20 74 68 65 20 61 73 79 | 20 64 72 69 76 65 72 20 | the asy| driver |
|000021f0| 6f 6e 6c 79 20 63 6f 6e | 74 72 6f 6c 73 20 70 6f |only con|trols po|
|00002200| 72 74 73 20 61 6e 64 0a | 58 20 20 20 20 20 20 20 |rts and.|X |
|00002210| 69 6e 74 65 72 72 75 70 | 74 20 76 65 63 74 6f 72 |interrup|t vector|
|00002220| 73 20 6e 6f 74 20 75 73 | 65 64 20 62 79 20 74 68 |s not us|ed by th|
|00002230| 65 20 46 41 53 20 64 72 | 69 76 65 72 2e 20 49 66 |e FAS dr|iver. If|
|00002240| 20 79 6f 75 20 64 6f 6e | 27 74 20 6e 65 65 64 0a | you don|'t need.|
|00002250| 58 20 20 20 20 20 20 20 | 74 68 65 20 61 73 79 20 |X |the asy |
|00002260| 64 72 69 76 65 72 20 61 | 74 20 61 6c 6c 20 79 6f |driver a|t all yo|
|00002270| 75 20 63 61 6e 20 65 78 | 63 6c 75 64 65 20 69 74 |u can ex|clude it|
|00002280| 20 66 72 6f 6d 20 74 68 | 65 20 6b 65 72 6e 65 6c | from th|e kernel|
|00002290| 2e 0a 58 0a 58 20 20 20 | 20 20 20 20 54 6f 20 74 |..X.X | To t|
|000022a0| 65 6c 6c 20 74 68 65 20 | 6b 65 72 6e 65 6c 20 63 |ell the |kernel c|
|000022b0| 6f 6e 66 69 67 20 70 72 | 6f 67 72 61 6d 20 68 6f |onfig pr|ogram ho|
|000022c0| 77 20 74 6f 20 6c 69 6e | 6b 20 69 6e 20 74 68 65 |w to lin|k in the|
|000022d0| 20 46 41 53 20 64 72 69 | 76 65 72 0a 58 20 20 20 | FAS dri|ver.X |
|000022e0| 20 20 20 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 | you |have to |
|000022f0| 61 64 64 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |add the |followin|
|00002300| 67 20 6c 69 6e 65 20 74 | 6f 20 74 68 65 20 66 69 |g line t|o the fi|
|00002310| 6c 65 20 2f 65 74 63 2f | 63 6f 6e 66 2f 63 66 2e |le /etc/|conf/cf.|
|00002320| 64 2f 6d 64 65 76 69 63 | 65 3a 0a 58 0a 58 20 20 |d/mdevic|e:.X.X |
|00002330| 20 20 20 20 20 66 61 73 | 09 49 6f 63 72 77 69 09 | fas|.Iocrwi.|
|00002340| 69 48 63 74 09 66 61 73 | 09 30 09 34 09 31 09 31 |iHct.fas|.0.4.1.1|
|00002350| 36 09 2d 31 0a 58 0a 58 | 20 20 20 20 20 20 20 54 |6.-1.X.X| T|
|00002360| 68 65 20 36 74 68 20 66 | 69 65 6c 64 20 63 6f 6e |he 6th f|ield con|
|00002370| 74 61 69 6e 73 20 74 68 | 65 20 6d 61 6a 6f 72 20 |tains th|e major |
|00002380| 64 65 76 69 63 65 20 6e | 75 6d 62 65 72 20 6f 66 |device n|umber of|
|00002390| 20 74 68 65 20 64 72 69 | 76 65 72 2e 20 59 6f 75 | the dri|ver. You|
|000023a0| 0a 58 20 20 20 20 20 20 | 20 6d 61 79 20 63 68 61 |.X | may cha|
|000023b0| 6e 67 65 20 74 68 69 73 | 20 69 66 20 69 74 20 63 |nge this| if it c|
|000023c0| 6f 6c 6c 69 64 65 73 20 | 77 69 74 68 20 61 6e 6f |ollides |with ano|
|000023d0| 74 68 65 72 20 64 72 69 | 76 65 72 2e 0a 58 0a 58 |ther dri|ver..X.X|
|000023e0| 20 20 20 20 20 20 20 41 | 6c 6c 20 74 68 69 73 20 | A|ll this |
|000023f0| 69 73 20 69 6e 20 74 68 | 65 20 49 53 43 20 6d 61 |is in th|e ISC ma|
|00002400| 6e 75 61 6c 73 2e 20 52 | 65 61 64 20 74 68 65 6d |nuals. R|ead them|
|00002410| 20 63 61 72 65 66 75 6c | 6c 79 2e 0a 58 0a 58 20 | careful|ly..X.X |
|00002420| 20 20 20 20 20 20 4e 6f | 77 20 74 79 70 65 20 60 | No|w type `|
|00002430| 6d 61 6b 65 20 69 6e 73 | 74 61 6c 6c 27 20 61 6e |make ins|tall' an|
|00002440| 64 20 61 66 74 65 72 20 | 74 68 61 74 20 79 6f 75 |d after |that you|
|00002450| 20 61 72 65 20 72 65 61 | 64 79 20 74 6f 20 6c 69 | are rea|dy to li|
|00002460| 6e 6b 0a 58 20 20 20 20 | 20 20 20 61 20 6e 65 77 |nk.X | a new|
|00002470| 20 6b 65 72 6e 65 6c 2e | 20 52 65 66 65 72 20 74 | kernel.| Refer t|
|00002480| 6f 20 79 6f 75 72 20 73 | 79 73 74 65 6d 20 6d 61 |o your s|ystem ma|
|00002490| 6e 75 61 6c 73 20 6f 6e | 20 68 6f 77 20 74 6f 20 |nuals on| how to |
|000024a0| 64 6f 20 74 68 61 74 2e | 0a 58 0a 58 20 20 20 20 |do that.|.X.X |
|000024b0| 20 20 20 59 6f 75 20 6d | 61 79 20 68 61 76 65 20 | You m|ay have |
|000024c0| 74 6f 20 63 68 61 6e 67 | 65 20 66 69 6c 65 73 20 |to chang|e files |
|000024d0| 74 68 61 74 20 63 6f 6e | 74 61 69 6e 20 74 74 79 |that con|tain tty|
|000024e0| 2d 6e 61 6d 65 73 20 66 | 6f 72 20 73 6f 6d 65 0a |-names f|or some.|
|000024f0| 58 20 20 20 20 20 20 20 | 72 65 61 73 6f 6e 20 74 |X |reason t|
|00002500| 6f 20 74 68 65 20 6e 65 | 77 20 64 65 76 69 63 65 |o the ne|w device|
|00002510| 20 6e 61 6d 65 73 20 28 | 74 74 79 74 79 70 65 2c | names (|ttytype,|
|00002520| 20 44 65 76 69 63 65 73 | 20 65 74 63 2e 29 2e 20 | Devices| etc.). |
|00002530| 54 61 6b 65 0a 58 20 20 | 20 20 20 20 20 74 68 65 |Take.X | the|
|00002540| 20 6e 61 6d 65 73 20 66 | 72 6f 6d 20 60 6e 5f 66 | names f|rom `n_f|
|00002550| 61 73 27 2e 0a 58 0a 58 | 20 20 20 20 20 20 20 41 |as'..X.X| A|
|00002560| 66 74 65 72 20 79 6f 75 | 20 68 61 76 65 20 62 6f |fter you| have bo|
|00002570| 6f 74 65 64 20 74 68 65 | 20 6e 65 77 20 6b 65 72 |oted the| new ker|
|00002580| 6e 65 6c 2c 20 70 72 6f | 76 69 64 65 64 20 79 6f |nel, pro|vided yo|
|00002590| 75 72 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |ur confi|guration|
|000025a0| 0a 58 20 20 20 20 20 20 | 20 77 61 73 20 63 6f 72 |.X | was cor|
|000025b0| 72 65 63 74 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |rect, yo|u should|
|000025c0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 75 73 65 20 | be able| to use |
|000025d0| 74 68 65 20 73 65 72 69 | 61 6c 20 64 65 76 69 63 |the seri|al devic|
|000025e0| 65 73 2e 0a 58 0a 58 0a | 58 4f 74 68 65 72 20 66 |es..X.X.|XOther f|
|000025f0| 6c 61 76 6f 72 73 20 6f | 66 20 55 4e 49 58 0a 58 |lavors o|f UNIX.X|
|00002600| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002610| 3d 3d 3d 3d 3d 0a 58 0a | 58 43 68 65 63 6b 20 6f |=====.X.|XCheck o|
|00002620| 75 74 20 69 66 20 6f 6e | 65 20 6f 66 20 74 68 65 |ut if on|e of the|
|00002630| 20 61 62 6f 76 65 20 69 | 6e 73 74 61 6c 6c 61 74 | above i|nstallat|
|00002640| 69 6f 6e 20 73 63 68 65 | 6d 65 73 20 69 73 20 73 |ion sche|mes is s|
|00002650| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 65 0a 58 6f |imilar t|o the.Xo|
|00002660| 6e 65 20 79 6f 75 20 6e | 65 65 64 20 66 6f 72 20 |ne you n|eed for |
|00002670| 79 6f 75 72 20 73 79 73 | 74 65 6d 2e 20 4d 61 6b |your sys|tem. Mak|
|00002680| 65 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |e the ap|propriat|
|00002690| 65 20 63 68 61 6e 67 65 | 73 20 61 6e 64 20 74 72 |e change|s and tr|
|000026a0| 79 0a 58 6f 75 74 20 69 | 66 20 69 74 20 77 6f 72 |y.Xout i|f it wor|
|000026b0| 6b 73 2e 20 49 66 20 79 | 6f 75 72 20 73 79 73 74 |ks. If y|our syst|
|000026c0| 65 6d 20 69 73 20 65 6e | 74 69 72 65 6c 79 20 64 |em is en|tirely d|
|000026d0| 69 66 66 65 72 65 6e 74 | 20 79 6f 75 20 68 61 76 |ifferent| you hav|
|000026e0| 65 20 74 6f 0a 58 66 69 | 6e 64 20 6f 75 74 20 66 |e to.Xfi|nd out f|
|000026f0| 72 6f 6d 20 79 6f 75 72 | 20 6d 61 6e 75 61 6c 73 |rom your| manuals|
|00002700| 20 68 6f 77 20 74 6f 20 | 69 6e 73 74 61 6c 6c 20 | how to |install |
|00002710| 64 65 76 69 63 65 20 64 | 72 69 76 65 72 73 2e 20 |device d|rivers. |
|00002720| 42 75 74 20 69 66 0a 58 | 79 6f 75 20 75 73 65 20 |But if.X|you use |
|00002730| 61 20 55 4e 49 58 20 53 | 59 53 56 2f 33 38 36 20 |a UNIX S|YSV/386 |
|00002740| 33 2e 58 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 67 |3.X you |should g|
|00002750| 65 74 20 69 74 20 74 6f | 20 77 6f 72 6b 20 65 76 |et it to| work ev|
|00002760| 65 6e 74 75 61 6c 6c 79 | 2e 0a 58 0a 58 47 6f 6f |entually|..X.XGoo|
|00002770| 64 20 6c 75 63 6b 2e 0a | 53 48 41 52 5f 45 4f 46 |d luck..|SHAR_EOF|
|00002780| 0a 69 66 20 74 65 73 74 | 20 37 35 33 35 20 2d 6e |.if test| 7535 -n|
|00002790| 65 20 22 60 77 63 20 2d | 63 20 3c 20 27 49 4e 53 |e "`wc -|c < 'INS|
|000027a0| 54 41 4c 4c 41 54 49 4f | 4e 27 60 22 0a 74 68 65 |TALLATIO|N'`".the|
|000027b0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 65 |n..echo |shar: "e|
|000027c0| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|000027d0| 67 20 27 49 4e 53 54 41 | 4c 4c 41 54 49 4f 4e 27 |g 'INSTA|LLATION'|
|000027e0| 22 20 27 28 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |" '(shou|ld have |
|000027f0| 62 65 65 6e 20 37 35 33 | 35 20 63 68 61 72 61 63 |been 753|5 charac|
|00002800| 74 65 72 73 29 27 0a 66 | 69 0a 66 69 0a 65 63 68 |ters)'.f|i.fi.ech|
|00002810| 6f 20 73 68 61 72 3a 20 | 22 65 78 74 72 61 63 74 |o shar: |"extract|
|00002820| 69 6e 67 20 27 66 61 73 | 2e 63 27 22 20 27 28 35 |ing 'fas|.c'" '(5|
|00002830| 30 30 36 37 20 63 68 61 | 72 61 63 74 65 72 73 29 |0067 cha|racters)|
|00002840| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 66 61 |'.if tes|t -f 'fa|
|00002850| 73 2e 63 27 0a 74 68 65 | 6e 0a 09 65 63 68 6f 20 |s.c'.the|n..echo |
|00002860| 73 68 61 72 3a 20 22 77 | 69 6c 6c 20 6e 6f 74 20 |shar: "w|ill not |
|00002870| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00002880| 69 6e 67 20 66 69 6c 65 | 20 27 66 61 73 2e 63 27 |ing file| 'fas.c'|
|00002890| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|000028a0| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|000028b0| 20 3e 20 27 66 61 73 2e | 63 27 0a 58 2f 2a 20 46 | > 'fas.|c'.X/* F|
|000028c0| 41 53 20 46 69 6e 61 6c | 20 41 73 79 6e 63 20 53 |AS Final| Async S|
|000028d0| 6f 6c 75 74 69 6f 6e 20 | 64 72 69 76 65 72 20 66 |olution |driver f|
|000028e0| 6f 72 20 33 38 36 20 76 | 65 72 73 69 6f 6e 73 20 |or 386 v|ersions |
|000028f0| 6f 66 20 73 79 73 74 65 | 6d 20 56 20 55 4e 49 58 |of syste|m V UNIX|
|00002900| 20 2a 2f 0a 58 0a 58 2f | 2a 20 4f 72 69 67 69 6e | */.X.X/|* Origin|
|00002910| 61 6c 6c 79 20 77 72 69 | 74 74 65 6e 20 62 79 0a |ally wri|tten by.|
|00002920| 58 4a 69 6d 20 4d 75 72 | 72 61 79 20 20 20 20 20 |XJim Mur|ray |
|00002930| 20 20 20 20 20 20 20 20 | 20 65 6e 63 6f 72 65 21 | | encore!|
|00002940| 63 6c 6f 75 64 39 21 6a | 6a 6d 68 6f 6d 65 21 6a |cloud9!j|jmhome!j|
|00002950| 6a 6d 0a 58 32 20 4d 6f | 68 61 77 6b 20 43 69 72 |jm.X2 Mo|hawk Cir|
|00002960| 63 6c 65 20 20 20 20 20 | 20 20 20 20 68 61 72 76 |cle | harv|
|00002970| 61 72 64 21 6d 32 63 21 | 6a 6a 6d 68 6f 6d 65 21 |ard!m2c!|jjmhome!|
|00002980| 6a 6a 6d 0a 58 57 65 73 | 74 62 6f 72 6f 20 4d 61 |jjm.XWes|tboro Ma|
|00002990| 73 73 20 30 31 35 38 31 | 20 20 20 20 20 6a 6a 6d |ss 01581| jjm|
|000029a0| 25 6a 6a 6d 68 6f 6d 65 | 40 6d 32 63 2e 6d 32 63 |%jjmhome|@m2c.m2c|
|000029b0| 2e 6f 72 67 0a 58 55 53 | 41 20 20 20 20 20 20 20 |.org.XUS|A |
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 76 6f | | vo|
|000029d0| 69 63 65 20 28 35 30 38 | 29 20 33 36 36 2d 32 38 |ice (508|) 366-28|
|000029e0| 31 33 0a 58 2a 2f 0a 58 | 0a 58 2f 2a 20 43 75 72 |13.X*/.X|.X/* Cur|
|000029f0| 72 65 6e 74 20 61 75 74 | 68 6f 72 3a 0a 58 55 77 |rent aut|hor:.XUw|
|00002a00| 65 20 44 6f 65 72 69 6e | 67 09 09 67 65 6d 69 6e |e Doerin|g..gemin|
|00002a10| 69 40 67 65 6d 69 6e 69 | 78 2e 6d 62 78 2e 73 75 |i@gemini|x.mbx.su|
|00002a20| 62 2e 6f 72 67 0a 58 42 | 69 6c 6c 73 74 65 64 74 |b.org.XB|illstedt|
|00002a30| 65 72 20 50 66 61 64 20 | 31 37 20 42 0a 58 31 30 |er Pfad |17 B.X10|
|00002a40| 30 30 20 42 65 72 6c 69 | 6e 20 32 30 0a 58 57 65 |00 Berli|n 20.XWe|
|00002a50| 73 74 20 47 65 72 6d 61 | 6e 79 0a 58 2a 2f 0a 58 |st Germa|ny.X*/.X|
|00002a60| 0a 58 23 69 64 65 6e 74 | 09 22 40 28 23 29 66 61 |.X#ident|."@(#)fa|
|00002a70| 73 2e 63 09 32 2e 30 36 | 22 0a 58 0a 58 2f 2a 20 |s.c.2.06|".X.X/* |
|00002a80| 4e 6f 74 65 3a 20 54 68 | 69 73 20 73 6f 75 72 63 |Note: Th|is sourc|
|00002a90| 65 20 63 6f 64 65 20 77 | 61 73 20 71 75 69 74 65 |e code w|as quite|
|00002aa0| 20 68 65 61 76 69 6c 79 | 20 6f 70 74 69 6d 69 7a | heavily| optimiz|
|00002ab0| 65 64 20 66 6f 72 20 73 | 70 65 65 64 2e 20 59 6f |ed for s|peed. Yo|
|00002ac0| 75 0a 58 20 20 20 20 20 | 20 20 20 20 6d 61 79 20 |u.X | may |
|00002ad0| 77 6f 6e 64 65 72 20 74 | 68 61 74 20 72 65 67 69 |wonder t|hat regi|
|00002ae0| 73 74 65 72 20 76 61 72 | 69 61 62 6c 65 73 20 61 |ster var|iables a|
|00002af0| 72 65 6e 27 74 20 75 73 | 65 64 20 65 76 65 72 79 |ren't us|ed every|
|00002b00| 77 68 65 72 65 2e 0a 58 | 20 20 20 20 20 20 20 20 |where..X| |
|00002b10| 20 54 68 69 73 20 69 73 | 20 62 65 63 61 75 73 65 | This is| because|
|00002b20| 20 74 68 65 72 65 20 69 | 73 20 61 6e 20 6f 76 65 | there i|s an ove|
|00002b30| 72 68 65 61 64 20 69 6e | 20 6d 65 6d 6f 72 79 20 |rhead in| memory |
|00002b40| 61 63 63 65 73 73 65 73 | 0a 58 20 20 20 20 20 20 |accesses|.X |
|00002b50| 20 20 20 77 68 65 6e 20 | 75 73 69 6e 67 20 72 65 | when |using re|
|00002b60| 67 69 73 74 65 72 20 76 | 61 72 69 61 62 6c 65 73 |gister v|ariables|
|00002b70| 2e 20 41 73 20 79 6f 75 | 20 6d 61 79 20 6b 6e 6f |. As you| may kno|
|00002b80| 77 20 64 61 74 61 20 61 | 63 63 65 73 73 65 73 0a |w data a|ccesses.|
|00002b90| 58 20 20 20 20 20 20 20 | 20 20 75 73 75 61 6c 6c |X | usuall|
|00002ba0| 79 20 6e 65 65 64 20 6d | 75 63 68 20 6d 6f 72 65 |y need m|uch more|
|00002bb0| 20 77 61 69 74 20 73 74 | 61 74 65 73 20 6f 6e 20 | wait st|ates on |
|00002bc0| 74 68 65 20 6d 65 6d 6f | 72 79 20 62 75 73 20 74 |the memo|ry bus t|
|00002bd0| 68 61 6e 0a 58 20 20 20 | 20 20 20 20 20 20 63 6f |han.X | co|
|00002be0| 64 65 20 61 63 63 65 73 | 73 65 73 20 28 62 65 63 |de acces|ses (bec|
|00002bf0| 61 75 73 65 20 6f 66 20 | 70 61 67 65 20 6f 72 20 |ause of |page or |
|00002c00| 63 61 63 68 65 20 6d 69 | 73 73 65 73 29 2e 20 54 |cache mi|sses). T|
|00002c10| 68 65 72 65 66 6f 72 65 | 0a 58 20 20 20 20 20 20 |herefore|.X |
|00002c20| 20 20 20 73 61 76 69 6e | 67 20 73 6f 6d 65 20 64 | savin|g some d|
|00002c30| 61 74 61 20 61 63 63 65 | 73 73 65 73 20 68 61 73 |ata acce|sses has|
|00002c40| 20 68 69 67 68 65 72 20 | 70 72 69 6f 72 69 74 79 | higher |priority|
|00002c50| 20 74 68 61 6e 20 73 61 | 76 69 6e 67 0a 58 20 20 | than sa|ving.X |
|00002c60| 20 20 20 20 20 20 20 63 | 6f 64 65 20 61 63 63 65 | c|ode acce|
|00002c70| 73 73 65 73 2e 0a 58 0a | 58 20 20 20 20 20 20 20 |sses..X.|X |
|00002c80| 20 20 59 6f 75 20 6d 61 | 79 20 61 6c 73 6f 20 6e | You ma|y also n|
|00002c90| 6f 74 65 20 73 6f 6d 65 | 20 6e 6f 74 20 76 65 72 |ote some| not ver|
|00002ca0| 79 20 65 6c 65 67 61 6e | 74 20 63 6f 6e 73 74 72 |y elegan|t constr|
|00002cb0| 75 63 74 69 6f 6e 73 20 | 74 68 61 74 0a 58 20 20 |uctions |that.X |
|00002cc0| 20 20 20 20 20 20 20 6d | 61 79 20 62 65 20 69 6e | m|ay be in|
|00002cd0| 74 65 6e 74 69 6f 6e 61 | 6c 20 62 65 63 61 75 73 |tentiona|l becaus|
|00002ce0| 65 20 74 68 65 79 20 61 | 72 65 20 66 61 73 74 65 |e they a|re faste|
|00002cf0| 72 2e 20 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |r. If yo|u want t|
|00002d00| 6f 0a 58 20 20 20 20 20 | 20 20 20 20 6d 61 6b 65 |o.X | make|
|00002d10| 20 73 74 79 6c 65 20 69 | 6d 70 72 6f 76 65 6d 65 | style i|mproveme|
|00002d20| 6e 74 73 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 63 |nts you |should c|
|00002d30| 68 65 63 6b 20 74 68 65 | 20 61 73 73 65 6d 62 6c |heck the| assembl|
|00002d40| 65 72 20 6f 75 74 70 75 | 74 0a 58 20 20 20 20 20 |er outpu|t.X |
|00002d50| 20 20 20 20 77 68 65 74 | 68 65 72 20 74 68 69 73 | whet|her this|
|00002d60| 20 77 6f 75 6c 64 6e 27 | 74 20 73 6c 6f 77 20 74 | wouldn'|t slow t|
|00002d70| 68 69 6e 67 73 20 64 6f | 77 6e 2e 0a 58 0a 58 20 |hings do|wn..X.X |
|00002d80| 20 20 20 20 20 20 20 20 | 44 65 63 69 73 69 6f 6e | |Decision|
|00002d90| 73 20 66 6f 72 20 73 70 | 65 65 64 20 6f 70 74 69 |s for sp|eed opti|
|00002da0| 6d 69 7a 61 74 69 6f 6e | 20 77 65 72 65 20 62 61 |mization| were ba|
|00002db0| 73 65 64 20 6f 6e 20 61 | 73 73 65 6d 62 6c 65 72 |sed on a|ssembler|
|00002dc0| 0a 58 20 20 20 20 20 20 | 20 20 20 6c 69 73 74 69 |.X | listi|
|00002dd0| 6e 67 73 20 70 72 6f 64 | 75 63 65 64 20 62 79 20 |ngs prod|uced by |
|00002de0| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 55 4e 49 |the stan|dard UNI|
|00002df0| 58 20 56 20 33 2e 58 2f | 33 38 36 20 43 20 63 6f |X V 3.X/|386 C co|
|00002e00| 6d 70 69 6c 65 72 2e 0a | 58 2a 2f 0a 58 0a 58 23 |mpiler..|X*/.X.X#|
|00002e10| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 66 61 73 |include |<sys/fas|
|00002e20| 2e 68 3e 0a 58 0a 58 23 | 69 66 20 21 64 65 66 69 |.h>.X.X#|if !defi|
|00002e30| 6e 65 64 20 28 5f 5f 47 | 4e 55 43 5f 5f 29 0a 58 |ned (__G|NUC__).X|
|00002e40| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 69 6e |#include| <sys/in|
|00002e50| 6c 69 6e 65 2e 68 3e 0a | 58 0a 58 2f 2a 20 54 68 |line.h>.|X.X/* Th|
|00002e60| 69 73 20 69 73 20 61 20 | 74 65 72 72 69 62 6c 65 |is is a |terrible|
|00002e70| 20 75 67 6c 79 20 6b 6c | 75 64 67 65 20 74 6f 20 | ugly kl|udge to |
|00002e80| 73 70 65 65 64 20 75 70 | 20 74 68 65 20 60 69 6e |speed up| the `in|
|00002e90| 62 27 20 61 6e 64 20 60 | 6f 75 74 62 27 0a 58 20 |b' and `|outb'.X |
|00002ea0| 20 20 66 75 6e 63 74 69 | 6f 6e 73 2e 20 49 2e 65 | functi|ons. I.e|
|00002eb0| 2e 2c 20 6f 72 69 67 69 | 6e 61 6c 6c 79 2c 20 74 |., origi|nally, t|
|00002ec0| 68 65 20 60 6f 75 74 62 | 27 20 69 6e 6c 69 6e 65 |he `outb|' inline|
|00002ed0| 20 66 75 6e 63 74 69 6f | 6e 20 68 61 64 20 61 6e | functio|n had an|
|00002ee0| 0a 58 20 20 20 6f 76 65 | 72 68 65 61 64 20 6f 66 |.X ove|rhead of|
|00002ef0| 20 66 6f 75 72 20 64 61 | 74 61 20 6d 65 6d 6f 72 | four da|ta memor|
|00002f00| 79 20 61 63 63 65 73 73 | 65 73 20 66 6f 72 20 70 |y access|es for p|
|00002f10| 61 72 61 6d 65 74 65 72 | 20 70 61 73 73 69 6e 67 |arameter| passing|
|00002f20| 2e 20 54 68 69 73 0a 58 | 20 20 20 70 61 72 61 6d |. This.X| param|
|00002f30| 65 74 65 72 20 70 61 73 | 73 69 6e 67 20 61 63 74 |eter pas|sing act|
|00002f40| 75 61 6c 6c 79 20 63 6f | 6e 73 75 6d 65 64 20 6d |ually co|nsumed m|
|00002f50| 6f 72 65 20 63 6c 6f 63 | 6b 20 63 79 63 6c 65 73 |ore cloc|k cycles|
|00002f60| 20 74 68 61 6e 20 74 68 | 65 0a 58 20 20 20 61 73 | than th|e.X as|
|00002f70| 73 65 6d 62 6c 65 72 20 | 60 6f 75 74 62 27 20 63 |sembler |`outb' c|
|00002f80| 6f 6d 6d 61 6e 64 20 69 | 74 73 65 6c 66 2e 20 41 |ommand i|tself. A|
|00002f90| 6c 74 68 6f 75 67 68 20 | 74 68 69 73 20 73 6f 6c |lthough |this sol|
|00002fa0| 75 74 69 6f 6e 20 63 61 | 6e 27 74 0a 58 20 20 20 |ution ca|n't.X |
|00002fb0| 70 72 65 76 65 6e 74 20 | 75 6e 6e 65 73 73 65 73 |prevent |unnesses|
|00002fc0| 73 61 72 79 20 72 65 67 | 69 73 74 65 72 20 6d 6f |sary reg|ister mo|
|00002fd0| 76 65 73 20 69 74 20 6c | 69 6d 69 74 73 20 74 68 |ves it l|imits th|
|00002fe0| 65 6d 20 61 74 20 6c 65 | 61 73 74 20 74 6f 0a 58 |em at le|ast to.X|
|00002ff0| 20 20 20 72 65 67 69 73 | 74 65 72 20 74 6f 20 72 | regis|ter to r|
|00003000| 65 67 69 73 74 65 72 20 | 6d 6f 76 65 73 20 74 68 |egister |moves th|
|00003010| 61 74 20 61 72 65 20 6d | 75 63 68 20 66 61 73 74 |at are m|uch fast|
|00003020| 65 72 2e 20 59 6f 75 20 | 6e 65 65 64 20 61 0a 58 |er. You |need a.X|
|00003030| 20 20 20 6c 69 6e 65 20 | 6c 69 6b 65 20 74 68 65 | line |like the|
|00003040| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 6e 20 74 68 | followi|ng in th|
|00003050| 65 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 20 70 61 |e declar|ation pa|
|00003060| 72 74 20 6f 66 20 65 76 | 65 72 79 0a 58 20 20 20 |rt of ev|ery.X |
|00003070| 66 75 6e 63 74 69 6f 6e | 20 74 68 61 74 20 75 73 |function| that us|
|00003080| 65 73 20 60 69 6e 62 27 | 20 6f 72 20 60 6f 75 74 |es `inb'| or `out|
|00003090| 62 27 20 63 61 6c 6c 73 | 3a 0a 58 0a 58 09 52 45 |b' calls|:.X.X.RE|
|000030a0| 47 56 41 52 3b 0a 58 0a | 58 20 20 20 54 68 69 73 |GVAR;.X.|X This|
|000030b0| 20 68 61 63 6b 20 73 68 | 6f 75 6c 64 20 77 6f 72 | hack sh|ould wor|
|000030c0| 6b 20 77 69 74 68 20 65 | 76 65 72 79 20 63 6f 6d |k with e|very com|
|000030d0| 70 69 6c 65 72 20 74 68 | 61 74 20 6b 6e 6f 77 73 |piler th|at knows|
|000030e0| 20 61 62 6f 75 74 20 74 | 68 65 0a 58 20 20 20 55 | about t|he.X U|
|000030f0| 4e 49 58 20 56 20 33 2e | 58 2f 33 38 36 20 73 74 |NIX V 3.|X/386 st|
|00003100| 61 6e 64 61 72 64 20 63 | 6f 6d 70 69 6c 65 72 27 |andard c|ompiler'|
|00003110| 73 20 69 6e 6c 69 6e 65 | 20 61 73 73 65 6d 62 6c |s inline| assembl|
|00003120| 65 72 20 64 69 72 65 63 | 74 69 76 65 73 2e 0a 58 |er direc|tives..X|
|00003130| 2a 2f 0a 58 0a 58 61 73 | 6d 09 76 6f 69 64 20 6c |*/.X.Xas|m.void l|
|00003140| 6f 61 64 61 6c 20 28 76 | 61 6c 29 0a 58 7b 0a 58 |oadal (v|al).X{.X|
|00003150| 25 72 65 67 09 76 61 6c | 3b 0a 58 09 6d 6f 76 6c |%reg.val|;.X.movl|
|00003160| 09 76 61 6c 2c 25 65 61 | 78 0a 58 25 6d 65 6d 09 |.val,%ea|x.X%mem.|
|00003170| 76 61 6c 3b 0a 58 09 6d | 6f 76 62 09 76 61 6c 2c |val;.X.m|ovb.val,|
|00003180| 25 61 6c 0a 58 7d 0a 58 | 0a 58 61 73 6d 09 76 6f |%al.X}.X|.Xasm.vo|
|00003190| 69 64 20 6c 6f 61 64 64 | 78 20 28 76 61 6c 29 0a |id loadd|x (val).|
|000031a0| 58 7b 0a 58 25 72 65 67 | 09 76 61 6c 3b 0a 58 09 |X{.X%reg|.val;.X.|
|000031b0| 6d 6f 76 6c 09 76 61 6c | 2c 25 65 64 78 0a 58 25 |movl.val|,%edx.X%|
|000031c0| 6d 65 6d 09 76 61 6c 3b | 0a 58 09 6d 6f 76 77 09 |mem.val;|.X.movw.|
|000031d0| 76 61 6c 2c 25 64 78 0a | 58 7d 0a 58 0a 58 61 73 |val,%dx.|X}.X.Xas|
|000031e0| 6d 09 76 6f 69 64 20 6f | 75 74 62 79 74 65 20 28 |m.void o|utbyte (|
|000031f0| 29 0a 58 7b 0a 58 09 6f | 75 74 62 09 28 25 64 78 |).X{.X.o|utb.(%dx|
|00003200| 29 0a 58 7d 0a 58 0a 58 | 61 73 6d 09 69 6e 74 20 |).X}.X.X|asm.int |
|00003210| 69 6e 62 79 74 65 20 28 | 29 0a 58 7b 0a 58 09 78 |inbyte (|).X{.X.x|
|00003220| 6f 72 6c 09 25 65 61 78 | 2c 25 65 61 78 0a 58 09 |orl.%eax|,%eax.X.|
|00003230| 69 6e 62 09 28 25 64 78 | 29 0a 58 7d 0a 58 0a 58 |inb.(%dx|).X}.X.X|
|00003240| 2f 2a 20 54 68 65 20 70 | 6f 72 74 20 70 61 72 61 |/* The p|ort para|
|00003250| 6d 65 74 65 72 20 6f 66 | 20 74 68 65 20 60 6f 75 |meter of| the `ou|
|00003260| 74 62 27 20 6d 61 63 72 | 6f 20 6d 75 73 74 20 62 |tb' macr|o must b|
|00003270| 65 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 70 72 65 |e one of| the pre|
|00003280| 64 65 66 69 6e 65 64 0a | 58 20 20 20 70 6f 72 74 |defined.|X port|
|00003290| 20 6d 61 63 72 6f 73 20 | 66 72 6f 6d 20 60 66 61 | macros |from `fa|
|000032a0| 73 2e 68 27 20 6f 72 20 | 61 20 73 69 6d 70 6c 65 |s.h' or |a simple|
|000032b0| 20 75 69 6e 74 20 76 61 | 72 69 61 62 6c 65 20 28 | uint va|riable (|
|000032c0| 6e 6f 20 69 6e 64 69 72 | 65 63 74 69 6f 6e 0a 58 |no indir|ection.X|
|000032d0| 20 20 20 69 73 20 61 6c | 6c 6f 77 65 64 29 2e 20 | is al|lowed). |
|000032e0| 41 64 64 69 74 69 6f 6e | 61 6c 6c 79 2c 20 60 66 |Addition|ally, `f|
|000032f0| 69 70 27 20 6d 75 73 74 | 20 62 65 20 61 20 72 65 |ip' must| be a re|
|00003300| 67 69 73 74 65 72 20 76 | 61 72 69 61 62 6c 65 20 |gister v|ariable |
|00003310| 69 6e 20 74 68 65 0a 58 | 20 20 20 66 75 6e 63 74 |in the.X| funct|
|00003320| 69 6f 6e 73 20 77 68 65 | 72 65 20 60 6f 75 74 62 |ions whe|re `outb|
|00003330| 27 20 69 73 20 75 73 65 | 64 2e 20 54 68 69 73 20 |' is use|d. This |
|00003340| 70 72 65 76 65 6e 74 73 | 20 74 68 65 20 64 65 73 |prevents| the des|
|00003350| 74 72 75 63 74 69 6f 6e | 20 6f 66 20 74 68 65 0a |truction| of the.|
|00003360| 58 20 20 20 60 65 61 78 | 27 20 43 50 55 20 72 65 |X `eax|' CPU re|
|00003370| 67 69 73 74 65 72 20 77 | 68 69 6c 65 20 6c 6f 61 |gister w|hile loa|
|00003380| 64 69 6e 67 20 74 68 65 | 20 60 65 64 78 27 20 72 |ding the| `edx' r|
|00003390| 65 67 69 73 74 65 72 20 | 77 69 74 68 20 74 68 65 |egister |with the|
|000033a0| 20 70 6f 72 74 0a 58 20 | 20 20 61 64 64 72 65 73 | port.X | addres|
|000033b0| 73 2e 20 54 68 69 73 20 | 69 73 20 68 69 67 68 6c |s. This |is highl|
|000033c0| 79 20 63 6f 6d 70 69 6c | 65 72 20 69 6d 70 6c 65 |y compil|er imple|
|000033d0| 6d 65 6e 74 61 74 69 6f | 6e 20 73 70 65 63 69 66 |mentatio|n specif|
|000033e0| 69 63 2e 0a 58 2a 2f 0a | 58 23 64 65 66 69 6e 65 |ic..X*/.|X#define|
|000033f0| 20 6f 75 74 62 28 70 6f | 72 74 2c 76 61 6c 29 20 | outb(po|rt,val) |
|00003400| 28 72 65 67 76 61 72 20 | 3d 20 28 76 61 6c 29 2c |(regvar |= (val),|
|00003410| 20 6c 6f 61 64 61 6c 20 | 28 72 65 67 76 61 72 29 | loadal |(regvar)|
|00003420| 2c 20 72 65 67 76 61 72 | 20 3d 20 28 70 6f 72 74 |, regvar| = (port|
|00003430| 29 2c 20 6c 6f 61 64 64 | 78 20 28 72 65 67 76 61 |), loadd|x (regva|
|00003440| 72 29 2c 20 6f 75 74 62 | 79 74 65 20 28 29 29 0a |r), outb|yte ()).|
|00003450| 58 0a 58 23 64 65 66 69 | 6e 65 20 69 6e 62 28 70 |X.X#defi|ne inb(p|
|00003460| 6f 72 74 29 20 28 72 65 | 67 76 61 72 20 3d 20 28 |ort) (re|gvar = (|
|00003470| 70 6f 72 74 29 2c 20 6c | 6f 61 64 64 78 20 28 72 |port), l|oaddx (r|
|00003480| 65 67 76 61 72 29 2c 20 | 69 6e 62 79 74 65 20 28 |egvar), |inbyte (|
|00003490| 29 29 0a 58 0a 58 23 64 | 65 66 69 6e 65 20 52 45 |)).X.X#d|efine RE|
|000034a0| 47 56 41 52 20 72 65 67 | 69 73 74 65 72 20 75 69 |GVAR reg|ister ui|
|000034b0| 6e 74 09 72 65 67 76 61 | 72 0a 58 0a 58 2f 2a 20 |nt.regva|r.X.X/* |
|000034c0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |This fun|ction in|
|000034d0| 73 65 72 74 73 20 74 68 | 65 20 61 64 64 72 65 73 |serts th|e addres|
|000034e0| 73 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 61 |s optimi|zation a|
|000034f0| 73 73 65 6d 62 6c 65 72 | 20 70 73 65 75 64 6f 2d |ssembler| pseudo-|
|00003500| 6f 70 0a 58 20 20 20 77 | 68 65 72 65 76 65 72 20 |op.X w|herever |
|00003510| 63 61 6c 6c 65 64 2e 0a | 58 2a 2f 0a 58 0a 58 61 |called..|X*/.X.Xa|
|00003520| 73 6d 09 76 6f 69 64 20 | 6f 70 74 69 6d 20 28 29 |sm.void |optim ()|
|00003530| 0a 58 7b 0a 58 09 2e 6f | 70 74 69 6d 0a 58 7d 0a |.X{.X..o|ptim.X}.|
|00003540| 58 0a 58 2f 2a 20 54 68 | 69 73 20 64 75 6d 6d 79 |X.X/* Th|is dummy|
|00003550| 20 66 75 6e 63 74 69 6f | 6e 20 68 61 73 20 6e 6f | functio|n has no|
|00003560| 74 68 69 6e 67 20 74 6f | 20 64 6f 20 62 75 74 20 |thing to| do but |
|00003570| 74 6f 20 63 61 6c 6c 20 | 6f 70 74 69 6d 20 73 6f |to call |optim so|
|00003580| 20 74 68 61 74 0a 58 20 | 20 20 74 68 65 20 60 2e | that.X | the `.|
|00003590| 6f 70 74 69 6d 27 20 61 | 73 73 65 6d 62 6c 65 72 |optim' a|ssembler|
|000035a0| 20 70 73 65 75 64 6f 2d | 6f 70 20 77 69 6c 6c 20 | pseudo-|op will |
|000035b0| 62 65 20 69 6e 63 6c 75 | 64 65 64 20 69 6e 20 74 |be inclu|ded in t|
|000035c0| 68 65 20 61 73 73 65 6d | 62 6c 65 72 0a 58 20 20 |he assem|bler.X |
|000035d0| 20 66 69 6c 65 2e 20 54 | 68 69 73 20 6d 75 73 74 | file. T|his must|
|000035e0| 20 62 65 20 74 68 65 20 | 66 69 72 73 74 20 6f 66 | be the |first of|
|000035f0| 20 61 6c 6c 20 66 75 6e | 63 74 69 6f 6e 73 2e 0a | all fun|ctions..|
|00003600| 58 2a 2f 0a 58 0a 58 23 | 69 66 20 64 65 66 69 6e |X*/.X.X#|if defin|
|00003610| 65 64 20 28 4f 50 54 49 | 4d 29 09 2f 2a 20 44 65 |ed (OPTI|M)./* De|
|00003620| 66 69 6e 65 20 66 6f 72 | 20 75 50 6f 72 74 2c 20 |fine for| uPort, |
|00003630| 49 53 43 20 64 6f 65 73 | 6e 27 74 20 6b 6e 6f 77 |ISC does|n't know|
|00003640| 20 61 62 6f 75 74 20 2a | 2f 0a 58 73 74 61 74 69 | about *|/.Xstati|
|00003650| 63 20 76 6f 69 64 09 09 | 2f 2a 20 60 2e 6f 70 74 |c void..|/* `.opt|
|00003660| 69 6d 27 2c 20 62 75 74 | 20 68 61 73 20 74 75 72 |im', but| has tur|
|00003670| 6e 65 64 20 6f 6e 20 6f | 70 74 69 6d 69 7a 61 74 |ned on o|ptimizat|
|00003680| 69 6f 6e 20 62 79 20 2a | 2f 0a 58 64 75 6d 6d 79 |ion by *|/.Xdummy|
|00003690| 20 28 29 09 09 2f 2a 20 | 64 65 66 61 75 6c 74 2c | ()../* |default,|
|000036a0| 20 73 6f 20 77 65 20 64 | 6f 6e 27 74 20 6e 65 65 | so we d|on't nee|
|000036b0| 64 20 69 74 20 74 68 65 | 72 65 20 61 6e 79 77 61 |d it the|re anywa|
|000036c0| 79 2e 20 2a 2f 0a 58 7b | 0a 58 09 6f 70 74 69 6d |y. */.X{|.X.optim|
|000036d0| 20 28 29 3b 0a 58 7d 0a | 58 23 65 6e 64 69 66 0a | ();.X}.|X#endif.|
|000036e0| 58 0a 58 23 65 6c 73 65 | 0a 58 0a 58 23 64 65 66 |X.X#else|.X.X#def|
|000036f0| 69 6e 65 20 52 45 47 56 | 41 52 0a 58 0a 58 65 78 |ine REGV|AR.X.Xex|
|00003700| 74 65 72 6e 20 75 69 6e | 74 09 69 6e 62 20 28 29 |tern uin|t.inb ()|
|00003710| 3b 0a 58 65 78 74 65 72 | 6e 20 76 6f 69 64 09 6f |;.Xexter|n void.o|
|00003720| 75 74 62 20 28 29 3b 0a | 58 0a 58 23 65 6e 64 69 |utb ();.|X.X#endi|
|00003730| 66 0a 58 0a 58 2f 2a 20 | 66 75 6e 63 74 69 6f 6e |f.X.X/* |function|
|00003740| 73 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 74 68 |s provid|ed by th|
|00003750| 69 73 20 64 72 69 76 65 | 72 20 2a 2f 0a 58 69 6e |is drive|r */.Xin|
|00003760| 74 09 09 66 61 73 69 6e | 69 74 20 28 29 3b 0a 58 |t..fasin|it ();.X|
|00003770| 69 6e 74 09 09 66 61 73 | 6f 70 65 6e 20 28 29 3b |int..fas|open ();|
|00003780| 0a 58 69 6e 74 09 09 66 | 61 73 63 6c 6f 73 65 20 |.Xint..f|asclose |
|00003790| 28 29 3b 0a 58 69 6e 74 | 09 09 66 61 73 72 65 61 |();.Xint|..fasrea|
|000037a0| 64 20 28 29 3b 0a 58 69 | 6e 74 09 09 66 61 73 77 |d ();.Xi|nt..fasw|
|000037b0| 72 69 74 65 20 28 29 3b | 0a 58 69 6e 74 09 09 66 |rite ();|.Xint..f|
|000037c0| 61 73 69 6f 63 74 6c 20 | 28 29 3b 0a 58 69 6e 74 |asioctl |();.Xint|
|000037d0| 09 09 66 61 73 69 6e 74 | 72 20 28 29 3b 0a 58 73 |..fasint|r ();.Xs|
|000037e0| 74 61 74 69 63 20 69 6e | 74 09 66 61 73 5f 70 72 |tatic in|t.fas_pr|
|000037f0| 6f 63 20 28 29 3b 0a 58 | 73 74 61 74 69 63 20 76 |oc ();.X|static v|
|00003800| 6f 69 64 09 66 61 73 5f | 70 61 72 61 6d 20 28 29 |oid.fas_|param ()|
|00003810| 3b 0a 58 73 74 61 74 69 | 63 20 76 6f 69 64 09 66 |;.Xstati|c void.f|
|00003820| 61 73 5f 6d 70 72 6f 63 | 20 28 29 3b 0a 58 73 74 |as_mproc| ();.Xst|
|00003830| 61 74 69 63 20 75 69 6e | 74 09 66 61 73 5f 72 70 |atic uin|t.fas_rp|
|00003840| 72 6f 63 20 28 29 3b 0a | 58 73 74 61 74 69 63 20 |roc ();.|Xstatic |
|00003850| 76 6f 69 64 09 66 61 73 | 5f 78 70 72 6f 63 20 28 |void.fas|_xproc (|
|00003860| 29 3b 0a 58 73 74 61 74 | 69 63 20 69 6e 74 09 66 |);.Xstat|ic int.f|
|00003870| 61 73 5f 72 78 66 65 72 | 20 28 29 3b 0a 58 73 74 |as_rxfer| ();.Xst|
|00003880| 61 74 69 63 20 69 6e 74 | 09 66 61 73 5f 78 78 66 |atic int|.fas_xxf|
|00003890| 65 72 20 28 29 3b 0a 58 | 73 74 61 74 69 63 20 76 |er ();.X|static v|
|000038a0| 6f 69 64 09 66 61 73 5f | 63 6d 64 20 28 29 3b 0a |oid.fas_|cmd ();.|
|000038b0| 58 73 74 61 74 69 63 20 | 76 6f 69 64 09 66 61 73 |Xstatic |void.fas|
|000038c0| 5f 6f 70 65 6e 5f 64 65 | 76 69 63 65 20 28 29 3b |_open_de|vice ();|
|000038d0| 0a 58 73 74 61 74 69 63 | 20 76 6f 69 64 09 66 61 |.Xstatic| void.fa|
|000038e0| 73 5f 63 6c 6f 73 65 5f | 64 65 76 69 63 65 20 28 |s_close_|device (|
|000038f0| 29 3b 0a 58 73 74 61 74 | 69 63 20 69 6e 74 09 66 |);.Xstat|ic int.f|
|00003900| 61 73 5f 74 65 73 74 5f | 64 65 76 69 63 65 20 28 |as_test_|device (|
|00003910| 29 3b 0a 58 0a 58 2f 2a | 20 66 75 6e 63 74 69 6f |);.X.X/*| functio|
|00003920| 6e 73 20 75 73 65 64 20 | 62 79 20 74 68 69 73 20 |ns used |by this |
|00003930| 64 72 69 76 65 72 20 2a | 2f 0a 58 65 78 74 65 72 |driver *|/.Xexter|
|00003940| 6e 20 76 6f 69 64 09 74 | 74 72 73 74 72 74 20 28 |n void.t|trstrt (|
|00003950| 29 3b 0a 58 65 78 74 65 | 72 6e 20 76 6f 69 64 09 |);.Xexte|rn void.|
|00003960| 74 74 69 6e 69 74 20 28 | 29 3b 0a 58 65 78 74 65 |ttinit (|);.Xexte|
|00003970| 72 6e 20 69 6e 74 09 74 | 74 69 6f 63 6f 6d 20 28 |rn int.t|tiocom (|
|00003980| 29 3b 0a 58 65 78 74 65 | 72 6e 20 76 6f 69 64 09 |);.Xexte|rn void.|
|00003990| 74 74 79 66 6c 75 73 68 | 20 28 29 3b 0a 58 65 78 |ttyflush| ();.Xex|
|000039a0| 74 65 72 6e 20 75 69 6e | 74 09 73 70 6c 74 74 79 |tern uin|t.spltty|
|000039b0| 20 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 75 69 6e | ();.Xex|tern uin|
|000039c0| 74 09 73 70 6c 78 20 28 | 29 3b 0a 58 65 78 74 65 |t.splx (|);.Xexte|
|000039d0| 72 6e 20 69 6e 74 09 73 | 6c 65 65 70 20 28 29 3b |rn int.s|leep ();|
|000039e0| 0a 58 65 78 74 65 72 6e | 20 76 6f 69 64 09 77 61 |.Xextern| void.wa|
|000039f0| 6b 65 75 70 20 28 29 3b | 0a 58 65 78 74 65 72 6e |keup ();|.Xextern|
|00003a00| 20 76 6f 69 64 09 73 69 | 67 6e 61 6c 20 28 29 3b | void.si|gnal ();|
|00003a10| 0a 58 65 78 74 65 72 6e | 20 75 69 6e 74 09 74 69 |.Xextern| uint.ti|
|00003a20| 6d 65 6f 75 74 20 28 29 | 3b 0a 58 65 78 74 65 72 |meout ()|;.Xexter|
|00003a30| 6e 20 76 6f 69 64 09 75 | 6e 74 69 6d 65 6f 75 74 |n void.u|ntimeout|
|00003a40| 20 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 76 6f 69 | ();.Xex|tern voi|
|00003a50| 64 09 64 65 6c 61 79 20 | 28 29 3b 0a 58 65 78 74 |d.delay |();.Xext|
|00003a60| 65 72 6e 20 76 6f 69 64 | 09 70 72 69 6e 74 66 20 |ern void|.printf |
|00003a70| 28 29 3b 0a 58 0a 58 2f | 2a 20 74 68 65 20 66 6f |();.X.X/|* the fo|
|00003a80| 6c 6c 6f 77 69 6e 67 20 | 73 74 75 66 66 20 69 73 |llowing |stuff is|
|00003a90| 20 64 65 66 69 6e 65 64 | 20 69 6e 20 73 70 61 63 | defined| in spac|
|00003aa0| 65 2e 63 20 2a 2f 0a 58 | 65 78 74 65 72 6e 20 75 |e.c */.X|extern u|
|00003ab0| 69 6e 74 09 66 61 73 5f | 70 68 79 73 69 63 61 6c |int.fas_|physical|
|00003ac0| 5f 75 6e 69 74 73 3b 0a | 58 65 78 74 65 72 6e 20 |_units;.|Xextern |
|00003ad0| 75 69 6e 74 09 66 61 73 | 5f 70 6f 72 74 20 5b 5d |uint.fas|_port []|
|00003ae0| 3b 0a 58 65 78 74 65 72 | 6e 20 75 69 6e 74 09 66 |;.Xexter|n uint.f|
|00003af0| 61 73 5f 76 65 63 20 5b | 5d 3b 0a 58 65 78 74 65 |as_vec [|];.Xexte|
|00003b00| 72 6e 20 75 69 6e 74 09 | 66 61 73 5f 6d 63 62 20 |rn uint.|fas_mcb |
|00003b10| 5b 5d 3b 0a 58 65 78 74 | 65 72 6e 20 75 69 6e 74 |[];.Xext|ern uint|
|00003b20| 09 66 61 73 5f 6d 6f 64 | 65 6d 20 5b 5d 3b 0a 58 |.fas_mod|em [];.X|
|00003b30| 65 78 74 65 72 6e 20 75 | 69 6e 74 09 66 61 73 5f |extern u|int.fas_|
|00003b40| 66 6c 6f 77 20 5b 5d 3b | 0a 58 65 78 74 65 72 6e |flow [];|.Xextern|
|00003b50| 20 75 69 6e 74 09 66 61 | 73 5f 69 6e 74 5f 61 63 | uint.fa|s_int_ac|
|00003b60| 6b 5f 70 6f 72 74 20 5b | 5d 3b 0a 58 65 78 74 65 |k_port [|];.Xexte|
|00003b70| 72 6e 20 75 69 6e 74 09 | 66 61 73 5f 69 6e 74 5f |rn uint.|fas_int_|
|00003b80| 61 63 6b 20 5b 5d 3b 0a | 58 65 78 74 65 72 6e 20 |ack [];.|Xextern |
|00003b90| 75 69 6e 74 09 66 61 73 | 5f 6d 75 78 5f 61 63 6b |uint.fas|_mux_ack|
|00003ba0| 5f 70 6f 72 74 20 5b 5d | 3b 0a 58 65 78 74 65 72 |_port []|;.Xexter|
|00003bb0| 6e 20 75 69 6e 74 09 66 | 61 73 5f 6d 75 78 5f 61 |n uint.f|as_mux_a|
|00003bc0| 63 6b 20 5b 5d 3b 0a 58 | 65 78 74 65 72 6e 20 73 |ck [];.X|extern s|
|00003bd0| 74 72 75 63 74 20 66 61 | 73 5f 69 6e 66 6f 09 66 |truct fa|s_info.f|
|00003be0| 61 73 5f 69 6e 66 6f 20 | 5b 5d 3b 0a 58 65 78 74 |as_info |[];.Xext|
|00003bf0| 65 72 6e 20 73 74 72 75 | 63 74 20 74 74 79 09 66 |ern stru|ct tty.f|
|00003c00| 61 73 5f 74 74 79 20 5b | 5d 3b 0a 58 65 78 74 65 |as_tty [|];.Xexte|
|00003c10| 72 6e 20 73 74 72 75 63 | 74 20 66 61 73 5f 69 6e |rn struc|t fas_in|
|00003c20| 66 6f 09 2a 66 61 73 5f | 69 6e 66 6f 5f 70 74 72 |fo.*fas_|info_ptr|
|00003c30| 20 5b 5d 3b 0a 58 65 78 | 74 65 72 6e 20 73 74 72 | [];.Xex|tern str|
|00003c40| 75 63 74 20 74 74 79 09 | 2a 66 61 73 5f 74 74 79 |uct tty.|*fas_tty|
|00003c50| 5f 70 74 72 20 5b 5d 3b | 0a 58 2f 2a 20 65 6e 64 |_ptr [];|.X/* end|
|00003c60| 20 6f 66 20 73 70 61 63 | 65 2e 63 20 72 65 66 65 | of spac|e.c refe|
|00003c70| 72 65 6e 63 65 73 20 2a | 2f 0a 58 0a 58 2f 2a 20 |rences *|/.X.X/* |
|00003c80| 66 61 73 5f 69 73 5f 69 | 6e 69 74 74 65 64 0a 58 |fas_is_i|nitted.X|
|00003c90| 20 20 20 46 6c 61 67 20 | 74 6f 20 69 6e 64 69 63 | Flag |to indic|
|00003ca0| 61 74 65 20 74 68 61 74 | 20 77 65 20 68 61 76 65 |ate that| we have|
|00003cb0| 20 62 65 65 6e 20 74 68 | 72 75 20 69 6e 69 74 2e | been th|ru init.|
|00003cc0| 0a 58 20 20 20 54 68 69 | 73 20 69 73 20 72 65 61 |.X Thi|s is rea|
|00003cd0| 6c 79 20 6f 6e 6c 79 20 | 6e 65 63 65 73 73 61 72 |ly only |necessar|
|00003ce0| 79 20 66 6f 72 20 73 79 | 73 74 65 6d 73 20 74 68 |y for sy|stems th|
|00003cf0| 61 74 20 75 73 65 20 61 | 73 79 70 75 74 63 68 61 |at use a|syputcha|
|00003d00| 72 0a 58 20 20 20 61 6e | 64 20 61 73 79 67 65 74 |r.X an|d asyget|
|00003d10| 63 68 61 72 20 62 75 74 | 20 69 74 20 64 6f 65 73 |char but| it does|
|00003d20| 6e 27 74 20 68 75 72 74 | 20 74 6f 20 68 61 76 65 |n't hurt| to have|
|00003d30| 20 69 74 20 61 6e 79 77 | 61 79 2e 0a 58 2a 2f 0a | it anyw|ay..X*/.|
|00003d40| 58 69 6e 74 09 66 61 73 | 5f 69 73 5f 69 6e 69 74 |Xint.fas|_is_init|
|00003d50| 74 65 64 20 3d 20 46 41 | 4c 53 45 3b 0a 58 0a 58 |ted = FA|LSE;.X.X|
|00003d60| 2f 2a 20 61 72 72 61 79 | 20 6f 66 20 70 6f 69 6e |/* array| of poin|
|00003d70| 74 65 72 73 20 74 6f 20 | 74 68 65 20 66 69 72 73 |ters to |the firs|
|00003d80| 74 20 66 61 73 5f 69 6e | 66 6f 20 73 74 72 75 63 |t fas_in|fo struc|
|00003d90| 74 75 72 65 20 66 6f 72 | 20 65 61 63 68 0a 58 20 |ture for| each.X |
|00003da0| 20 20 69 6e 74 65 72 72 | 75 70 74 20 76 65 63 74 | interr|upt vect|
|00003db0| 6f 72 0a 58 2a 2f 0a 58 | 73 74 61 74 69 63 20 73 |or.X*/.X|static s|
|00003dc0| 74 72 75 63 74 20 66 61 | 73 5f 69 6e 66 6f 09 2a |truct fa|s_info.*|
|00003dd0| 66 61 73 5f 66 69 72 73 | 74 5f 69 6e 74 5f 75 73 |fas_firs|t_int_us|
|00003de0| 65 72 20 5b 4e 55 4d 5f | 49 4e 54 5f 56 45 43 54 |er [NUM_|INT_VECT|
|00003df0| 4f 52 53 5d 3b 0a 58 0a | 58 2f 2a 20 74 68 65 20 |ORS];.X.|X/* the |
|00003e00| 76 61 6c 75 65 73 20 66 | 6f 72 20 74 68 65 20 76 |values f|or the v|
|00003e10| 61 72 69 6f 75 73 20 62 | 61 75 64 20 72 61 74 65 |arious b|aud rate|
|00003e20| 73 20 2a 2f 0a 58 73 74 | 61 74 69 63 20 75 69 6e |s */.Xst|atic uin|
|00003e30| 74 09 66 61 73 5f 73 70 | 65 65 64 73 20 5b 43 42 |t.fas_sp|eeds [CB|
|00003e40| 41 55 44 20 2b 20 31 5d | 20 3d 0a 58 7b 09 30 2c |AUD + 1]| =.X{.0,|
|00003e50| 09 09 09 42 41 55 44 5f | 42 41 53 45 2f 35 30 2c |...BAUD_|BASE/50,|
|00003e60| 0a 58 09 42 41 55 44 5f | 42 41 53 45 2f 37 35 2c |.X.BAUD_|BASE/75,|
|00003e70| 09 09 42 41 55 44 5f 42 | 41 53 45 2f 31 31 30 2c |..BAUD_B|ASE/110,|
|00003e80| 0a 58 09 28 32 2a 42 41 | 55 44 5f 42 41 53 45 2b |.X.(2*BA|UD_BASE+|
|00003e90| 31 33 34 29 2f 32 36 39 | 2c 09 42 41 55 44 5f 42 |134)/269|,.BAUD_B|
|00003ea0| 41 53 45 2f 31 35 30 2c | 0a 58 09 42 41 55 44 5f |ASE/150,|.X.BAUD_|
|00003eb0| 42 41 53 45 2f 32 30 30 | 2c 09 09 42 41 55 44 5f |BASE/200|,..BAUD_|
|00003ec0| 42 41 53 45 2f 33 30 30 | 2c 0a 58 09 42 41 55 44 |BASE/300|,.X.BAUD|
|00003ed0| 5f 42 41 53 45 2f 36 30 | 30 2c 09 09 42 41 55 44 |_BASE/60|0,..BAUD|
|00003ee0| 5f 42 41 53 45 2f 31 32 | 30 30 2c 0a 58 09 42 41 |_BASE/12|00,.X.BA|
|00003ef0| 55 44 5f 42 41 53 45 2f | 31 38 30 30 2c 09 09 42 |UD_BASE/|1800,..B|
|00003f00| 41 55 44 5f 42 41 53 45 | 2f 32 34 30 30 2c 0a 58 |AUD_BASE|/2400,.X|
|00003f10| 09 42 41 55 44 5f 42 41 | 53 45 2f 34 38 30 30 2c |.BAUD_BA|SE/4800,|
|00003f20| 09 09 42 41 55 44 5f 42 | 41 53 45 2f 39 36 30 30 |..BAUD_B|ASE/9600|
|00003f30| 2c 0a 58 09 42 41 55 44 | 5f 42 41 53 45 2f 31 39 |,.X.BAUD|_BASE/19|
|00003f40| 32 30 30 2c 09 42 41 55 | 44 5f 42 41 53 45 2f 33 |200,.BAU|D_BASE/3|
|00003f50| 38 34 30 30 0a 58 7d 3b | 0a 58 0a 58 2f 2a 20 74 |8400.X};|.X.X/* t|
|00003f60| 69 6d 65 20 66 6f 72 20 | 6f 6e 65 20 63 68 61 72 |ime for |one char|
|00003f70| 61 63 74 65 72 20 74 6f | 20 63 6f 6d 70 6c 65 74 |acter to| complet|
|00003f80| 65 6c 79 20 6c 65 61 76 | 65 20 74 68 65 20 74 72 |ely leav|e the tr|
|00003f90| 61 6e 73 6d 69 74 74 65 | 72 20 73 68 69 66 74 20 |ansmitte|r shift |
|00003fa0| 72 65 67 69 73 74 65 72 | 20 2a 2f 0a 58 73 74 61 |register| */.Xsta|
|00003fb0| 74 69 63 20 75 69 6e 74 | 09 66 61 73 5f 63 74 69 |tic uint|.fas_cti|
|00003fc0| 6d 65 73 20 5b 43 42 41 | 55 44 20 2b 20 31 5d 20 |mes [CBA|UD + 1] |
|00003fd0| 3d 0a 58 7b 09 31 2c 09 | 09 48 5a 2a 31 35 2f 35 |=.X{.1,.|.HZ*15/5|
|00003fe0| 30 2b 32 2c 0a 58 09 48 | 5a 2a 31 35 2f 37 35 2b |0+2,.X.H|Z*15/75+|
|00003ff0| 32 2c 09 48 5a 2a 31 35 | 2f 31 31 30 2b 32 2c 0a |2,.HZ*15|/110+2,.|
|00004000| 58 09 48 5a 2a 33 30 2f | 32 36 39 2b 32 2c 09 48 |X.HZ*30/|269+2,.H|
|00004010| 5a 2a 31 35 2f 31 35 30 | 2b 32 2c 0a 58 09 48 5a |Z*15/150|+2,.X.HZ|
|00004020| 2a 31 35 2f 32 30 30 2b | 32 2c 09 48 5a 2a 31 35 |*15/200+|2,.HZ*15|
|00004030| 2f 33 30 30 2b 32 2c 0a | 58 09 48 5a 2a 31 35 2f |/300+2,.|X.HZ*15/|
|00004040| 36 30 30 2b 32 2c 09 48 | 5a 2a 31 35 2f 31 32 30 |600+2,.H|Z*15/120|
|00004050| 30 2b 32 2c 0a 58 09 48 | 5a 2a 31 35 2f 31 38 30 |0+2,.X.H|Z*15/180|
|00004060| 30 2b 32 2c 09 48 5a 2a | 31 35 2f 32 34 30 30 2b |0+2,.HZ*|15/2400+|
|00004070| 32 2c 0a 58 09 48 5a 2a | 31 35 2f 34 38 30 30 2b |2,.X.HZ*|15/4800+|
|00004080| 32 2c 09 48 5a 2a 31 35 | 2f 39 36 30 30 2b 32 2c |2,.HZ*15|/9600+2,|
|00004090| 0a 58 09 48 5a 2a 31 35 | 2f 31 39 32 30 30 2b 32 |.X.HZ*15|/19200+2|
|000040a0| 2c 09 48 5a 2a 31 35 2f | 33 38 34 30 30 2b 32 0a |,.HZ*15/|38400+2.|
|000040b0| 58 7d 3b 0a 58 0a 58 2f | 2a 20 64 79 6e 61 6d 69 |X};.X.X/|* dynami|
|000040c0| 63 61 6c 6c 79 20 61 64 | 61 70 74 20 78 6d 69 74 |cally ad|apt xmit|
|000040d0| 20 62 75 66 66 65 72 20 | 73 69 7a 65 20 74 6f 20 | buffer |size to |
|000040e0| 62 61 75 64 20 72 61 74 | 65 20 74 6f 20 70 72 65 |baud rat|e to pre|
|000040f0| 76 65 6e 74 20 6c 6f 6e | 67 20 62 75 66 66 65 72 |vent lon|g buffer|
|00004100| 0a 58 20 20 20 64 72 61 | 69 6e 73 20 61 74 20 6c |.X dra|ins at l|
|00004110| 6f 77 20 73 70 65 65 64 | 73 0a 58 20 20 20 54 68 |ow speed|s.X Th|
|00004120| 65 73 65 20 76 61 6c 75 | 65 73 20 61 72 65 20 63 |ese valu|es are c|
|00004130| 68 65 63 6b 65 64 20 61 | 67 61 69 6e 73 74 20 62 |hecked a|gainst b|
|00004140| 6f 75 6e 64 61 72 69 65 | 73 20 61 6e 64 20 77 69 |oundarie|s and wi|
|00004150| 6c 6c 20 62 65 20 6d 6f | 64 69 66 69 65 64 20 69 |ll be mo|dified i|
|00004160| 66 0a 58 20 20 20 6e 65 | 63 65 73 73 61 72 79 20 |f.X ne|cessary |
|00004170| 62 65 66 6f 72 65 20 75 | 73 65 2e 20 43 68 65 63 |before u|se. Chec|
|00004180| 6b 69 6e 67 20 69 73 20 | 64 6f 6e 65 20 69 6e 20 |king is |done in |
|00004190| 66 61 73 5f 70 61 72 61 | 6d 20 28 29 2e 20 44 72 |fas_para|m (). Dr|
|000041a0| 61 69 6e 20 74 69 6d 65 | 0a 58 20 20 20 69 73 20 |ain time|.X is |
|000041b0| 61 62 6f 75 74 20 35 20 | 73 65 63 6f 6e 64 73 20 |about 5 |seconds |
|000041c0| 77 69 74 68 20 63 6f 6e | 74 69 6e 75 6f 75 73 20 |with con|tinuous |
|000041d0| 63 68 61 72 61 63 74 65 | 72 20 66 6c 6f 77 2e 0a |characte|r flow..|
|000041e0| 58 2a 2f 0a 58 73 74 61 | 74 69 63 20 75 69 6e 74 |X*/.Xsta|tic uint|
|000041f0| 09 66 61 73 5f 78 62 75 | 66 5f 73 69 7a 65 20 5b |.fas_xbu|f_size [|
|00004200| 43 42 41 55 44 20 2b 20 | 31 5d 20 3d 0a 58 7b 09 |CBAUD + |1] =.X{.|
|00004210| 30 2c 09 09 35 30 2f 32 | 2c 0a 58 09 37 35 2f 32 |0,..50/2|,.X.75/2|
|00004220| 2c 09 09 31 31 30 2f 32 | 2c 0a 58 09 32 36 39 2f |,..110/2|,.X.269/|
|00004230| 34 2c 09 09 31 35 30 2f | 32 2c 0a 58 09 32 30 30 |4,..150/|2,.X.200|
|00004240| 2f 32 2c 09 09 33 30 30 | 2f 32 2c 0a 58 09 36 30 |/2,..300|/2,.X.60|
|00004250| 30 2f 32 2c 09 09 31 32 | 30 30 2f 32 2c 0a 58 09 |0/2,..12|00/2,.X.|
|00004260| 31 38 30 30 2f 32 2c 09 | 09 32 34 30 30 2f 32 2c |1800/2,.|.2400/2,|
|00004270| 0a 58 09 34 38 30 30 2f | 32 2c 09 09 39 36 30 30 |.X.4800/|2,..9600|
|00004280| 2f 32 2c 0a 58 09 31 39 | 32 30 30 2f 32 2c 09 33 |/2,.X.19|200/2,.3|
|00004290| 38 34 30 30 2f 32 0a 58 | 7d 3b 0a 58 0a 58 2f 2a |8400/2.X|};.X.X/*|
|000042a0| 20 6c 6f 6f 6b 75 70 20 | 74 61 62 6c 65 20 66 6f | lookup |table fo|
|000042b0| 72 20 6d 69 6e 6f 72 20 | 64 65 76 69 63 65 20 6e |r minor |device n|
|000042c0| 75 6d 62 65 72 20 2d 3e | 20 6f 70 65 6e 20 6d 6f |umber ->| open mo|
|000042d0| 64 65 20 66 6c 61 67 73 | 20 74 72 61 6e 73 6c 61 |de flags| transla|
|000042e0| 74 69 6f 6e 20 2a 2f 0a | 58 73 74 61 74 69 63 20 |tion */.|Xstatic |
|000042f0| 75 69 6e 74 09 66 61 73 | 5f 6f 70 65 6e 5f 6d 6f |uint.fas|_open_mo|
|00004300| 64 65 73 20 5b 31 36 5d | 20 3d 0a 58 7b 0a 58 09 |des [16]| =.X{.X.|
|00004310| 4f 53 5f 4f 50 45 4e 5f | 46 4f 52 5f 44 49 41 4c |OS_OPEN_|FOR_DIAL|
|00004320| 4f 55 54 20 7c 20 4f 53 | 5f 46 41 4b 45 5f 43 41 |OUT | OS|_FAKE_CA|
|00004330| 52 52 5f 4f 4e 20 7c 20 | 4f 53 5f 43 4c 4f 43 41 |RR_ON | |OS_CLOCA|
|00004340| 4c 2c 0a 58 09 4f 53 5f | 4f 50 45 4e 5f 46 4f 52 |L,.X.OS_|OPEN_FOR|
|00004350| 5f 44 49 41 4c 4f 55 54 | 20 7c 20 4f 53 5f 46 41 |_DIALOUT| | OS_FA|
|00004360| 4b 45 5f 43 41 52 52 5f | 4f 4e 20 7c 20 4f 53 5f |KE_CARR_|ON | OS_|
|00004370| 43 4c 4f 43 41 4c 20 7c | 20 4f 53 5f 48 57 5f 48 |CLOCAL || OS_HW_H|
|00004380| 41 4e 44 53 48 41 4b 45 | 2c 0a 58 09 4f 53 5f 4f |ANDSHAKE|,.X.OS_O|
|00004390| 50 45 4e 5f 46 4f 52 5f | 44 49 41 4c 4f 55 54 20 |PEN_FOR_|DIALOUT |
|000043a0| 7c 20 4f 53 5f 46 41 4b | 45 5f 43 41 52 52 5f 4f || OS_FAK|E_CARR_O|
|000043b0| 4e 2c 0a 58 09 4f 53 5f | 4f 50 45 4e 5f 46 4f 52 |N,.X.OS_|OPEN_FOR|
|000043c0| 5f 44 49 41 4c 4f 55 54 | 20 7c 20 4f 53 5f 46 41 |_DIALOUT| | OS_FA|
|000043d0| 4b 45 5f 43 41 52 52 5f | 4f 4e 20 7c 20 4f 53 5f |KE_CARR_|ON | OS_|
|000043e0| 48 57 5f 48 41 4e 44 53 | 48 41 4b 45 2c 0a 58 09 |HW_HANDS|HAKE,.X.|
|000043f0| 4f 53 5f 4f 50 45 4e 5f | 46 4f 52 5f 44 49 41 4c |OS_OPEN_|FOR_DIAL|
|00004400| 4f 55 54 20 7c 20 4f 53 | 5f 43 48 45 43 4b 5f 43 |OUT | OS|_CHECK_C|
|00004410| 41 52 52 5f 4f 4e 5f 4f | 50 45 4e 2c 0a 58 09 4f |ARR_ON_O|PEN,.X.O|
|00004420| 53 5f 4f 50 45 4e 5f 46 | 4f 52 5f 44 49 41 4c 4f |S_OPEN_F|OR_DIALO|
|00004430| 55 54 20 7c 20 4f 53 5f | 43 48 45 43 4b 5f 43 41 |UT | OS_|CHECK_CA|
|00004440| 52 52 5f 4f 4e 5f 4f 50 | 45 4e 20 7c 20 4f 53 5f |RR_ON_OP|EN | OS_|
|00004450| 48 57 5f 48 41 4e 44 53 | 48 41 4b 45 2c 0a 58 09 |HW_HANDS|HAKE,.X.|
|00004460| 4f 53 5f 4f 50 45 4e 5f | 46 4f 52 5f 44 49 41 4c |OS_OPEN_|FOR_DIAL|
|00004470| 4f 55 54 20 7c 20 4f 53 | 5f 43 48 45 43 4b 5f 43 |OUT | OS|_CHECK_C|
|00004480| 41 52 52 5f 4f 4e 5f 4f | 50 45 4e 20 7c 20 4f 53 |ARR_ON_O|PEN | OS|
|00004490| 5f 46 41 4b 45 5f 43 41 | 52 52 5f 4f 4e 2c 0a 58 |_FAKE_CA|RR_ON,.X|
|000044a0| 09 4f 53 5f 4f 50 45 4e | 5f 46 4f 52 5f 44 49 41 |.OS_OPEN|_FOR_DIA|
|000044b0| 4c 4f 55 54 20 7c 20 4f | 53 5f 43 48 45 43 4b 5f |LOUT | O|S_CHECK_|
|000044c0| 43 41 52 52 5f 4f 4e 5f | 4f 50 45 4e 20 7c 20 4f |CARR_ON_|OPEN | O|
|000044d0| 53 5f 46 41 4b 45 5f 43 | 41 52 52 5f 4f 4e 20 7c |S_FAKE_C|ARR_ON ||
|000044e0| 20 4f 53 5f 48 57 5f 48 | 41 4e 44 53 48 41 4b 45 | OS_HW_H|ANDSHAKE|
|000044f0| 2c 0a 58 09 4f 53 5f 4f | 50 45 4e 5f 46 4f 52 5f |,.X.OS_O|PEN_FOR_|
|00004500| 47 45 54 54 59 20 7c 20 | 4f 53 5f 57 41 49 54 5f |GETTY | |OS_WAIT_|
|00004510| 4f 50 45 4e 20 7c 20 4f | 53 5f 4e 4f 5f 44 49 41 |OPEN | O|S_NO_DIA|
|00004520| 4c 4f 55 54 2c 0a 58 09 | 4f 53 5f 4f 50 45 4e 5f |LOUT,.X.|OS_OPEN_|
|00004530| 46 4f 52 5f 47 45 54 54 | 59 20 7c 20 4f 53 5f 57 |FOR_GETT|Y | OS_W|
|00004540| 41 49 54 5f 4f 50 45 4e | 20 7c 20 4f 53 5f 4e 4f |AIT_OPEN| | OS_NO|
|00004550| 5f 44 49 41 4c 4f 55 54 | 20 7c 20 4f 53 5f 48 57 |_DIALOUT| | OS_HW|
|00004560| 5f 48 41 4e 44 53 48 41 | 4b 45 2c 0a 58 09 4f 53 |_HANDSHA|KE,.X.OS|
|00004570| 5f 4f 50 45 4e 5f 46 4f | 52 5f 47 45 54 54 59 20 |_OPEN_FO|R_GETTY |
|00004580| 7c 20 4f 53 5f 57 41 49 | 54 5f 4f 50 45 4e 20 7c || OS_WAI|T_OPEN ||
|00004590| 20 4f 53 5f 4e 4f 5f 44 | 49 41 4c 4f 55 54 20 7c | OS_NO_D|IALOUT ||
|000045a0| 20 4f 53 5f 55 4e 42 4c | 4f 43 4b 5f 45 4e 41 42 | OS_UNBL|OCK_ENAB|
|000045b0| 4c 45 2c 0a 58 09 4f 53 | 5f 4f 50 45 4e 5f 46 4f |LE,.X.OS|_OPEN_FO|
|000045c0| 52 5f 47 45 54 54 59 20 | 7c 20 4f 53 5f 57 41 49 |R_GETTY || OS_WAI|
|000045d0| 54 5f 4f 50 45 4e 20 7c | 20 4f 53 5f 4e 4f 5f 44 |T_OPEN || OS_NO_D|
|000045e0| 49 41 4c 4f 55 54 20 7c | 20 4f 53 5f 55 4e 42 4c |IALOUT || OS_UNBL|
|000045f0| 4f 43 4b 5f 45 4e 41 42 | 4c 45 20 7c 20 4f 53 5f |OCK_ENAB|LE | OS_|
|00004600| 48 57 5f 48 41 4e 44 53 | 48 41 4b 45 2c 0a 58 09 |HW_HANDS|HAKE,.X.|
|00004610| 4f 53 5f 4f 50 45 4e 5f | 46 4f 52 5f 47 45 54 54 |OS_OPEN_|FOR_GETT|
|00004620| 59 20 7c 20 4f 53 5f 57 | 41 49 54 5f 4f 50 45 4e |Y | OS_W|AIT_OPEN|
|00004630| 2c 0a 58 09 4f 53 5f 4f | 50 45 4e 5f 46 4f 52 5f |,.X.OS_O|PEN_FOR_|
|00004640| 47 45 54 54 59 20 7c 20 | 4f 53 5f 57 41 49 54 5f |GETTY | |OS_WAIT_|
|00004650| 4f 50 45 4e 20 7c 20 4f | 53 5f 48 57 5f 48 41 4e |OPEN | O|S_HW_HAN|
|00004660| 44 53 48 41 4b 45 2c 0a | 58 09 4f 53 5f 4f 50 45 |DSHAKE,.|X.OS_OPE|
|00004670| 4e 5f 46 4f 52 5f 47 45 | 54 54 59 20 7c 20 4f 53 |N_FOR_GE|TTY | OS|
|00004680| 5f 57 41 49 54 5f 4f 50 | 45 4e 20 7c 20 4f 53 5f |_WAIT_OP|EN | OS_|
|00004690| 55 4e 42 4c 4f 43 4b 5f | 45 4e 41 42 4c 45 2c 0a |UNBLOCK_|ENABLE,.|
|000046a0| 58 09 4f 53 5f 4f 50 45 | 4e 5f 46 4f 52 5f 47 45 |X.OS_OPE|N_FOR_GE|
|000046b0| 54 54 59 20 7c 20 4f 53 | 5f 57 41 49 54 5f 4f 50 |TTY | OS|_WAIT_OP|
|000046c0| 45 4e 20 7c 20 4f 53 5f | 55 4e 42 4c 4f 43 4b 5f |EN | OS_|UNBLOCK_|
|000046d0| 45 4e 41 42 4c 45 20 7c | 20 4f 53 5f 48 57 5f 48 |ENABLE || OS_HW_H|
|000046e0| 41 4e 44 53 48 41 4b 45 | 0a 58 7d 3b 0a 58 0a 58 |ANDSHAKE|.X};.X.X|
|000046f0| 2f 2a 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |/* The f|ollowing|
|00004700| 20 64 65 66 69 6e 65 73 | 20 61 72 65 20 75 73 65 | defines| are use|
|00004710| 64 20 74 6f 20 74 61 6b | 65 20 61 70 61 72 74 20 |d to tak|e apart |
|00004720| 74 68 65 20 6d 69 6e 6f | 72 20 64 65 76 69 63 65 |the mino|r device|
|00004730| 20 6e 75 6d 62 65 72 73 | 2e 20 2a 2f 0a 58 23 64 | numbers|. */.X#d|
|00004740| 65 66 69 6e 65 20 47 45 | 54 5f 55 4e 49 54 28 64 |efine GE|T_UNIT(d|
|00004750| 65 76 29 09 09 28 28 64 | 65 76 29 20 26 20 30 78 |ev)..((d|ev) & 0x|
|00004760| 30 66 29 0a 58 23 64 65 | 66 69 6e 65 20 47 45 54 |0f).X#de|fine GET|
|00004770| 5f 4f 50 45 4e 5f 4d 4f | 44 45 28 64 65 76 29 09 |_OPEN_MO|DE(dev).|
|00004780| 28 66 61 73 5f 6f 70 65 | 6e 5f 6d 6f 64 65 73 20 |(fas_ope|n_modes |
|00004790| 5b 28 28 64 65 76 29 20 | 3e 3e 20 34 29 20 26 20 |[((dev) |>> 4) & |
|000047a0| 30 78 30 66 5d 29 0a 58 | 0a 58 2f 2a 20 6c 6f 63 |0x0f]).X|.X/* loc|
|000047b0| 6b 20 64 65 76 69 63 65 | 20 61 67 61 69 6e 73 74 |k device| against|
|000047c0| 20 63 6f 6e 63 75 72 72 | 65 6e 74 20 75 73 65 20 | concurr|ent use |
|000047d0| 2a 2f 0a 58 23 64 65 66 | 69 6e 65 20 67 65 74 5f |*/.X#def|ine get_|
|000047e0| 64 65 76 69 63 65 5f 6c | 6f 63 6b 28 66 69 70 29 |device_l|ock(fip)|
|000047f0| 20 5c 0a 58 7b 5c 0a 58 | 09 2f 2a 20 73 6c 65 65 | \.X{\.X|./* slee|
|00004800| 70 20 77 68 69 6c 65 20 | 64 65 76 69 63 65 20 69 |p while |device i|
|00004810| 73 20 75 73 65 64 20 62 | 79 20 61 6e 20 6f 74 68 |s used b|y an oth|
|00004820| 65 72 20 70 72 6f 63 65 | 73 73 20 2a 2f 5c 0a 58 |er proce|ss */\.X|
|00004830| 09 77 68 69 6c 65 20 28 | 28 66 69 70 29 2d 3e 64 |.while (|(fip)->d|
|00004840| 65 76 69 63 65 5f 66 6c | 61 67 73 2e 69 20 26 20 |evice_fl|ags.i & |
|00004850| 44 46 5f 44 45 56 49 43 | 45 5f 4c 4f 43 4b 45 44 |DF_DEVIC|E_LOCKED|
|00004860| 29 5c 0a 58 09 09 28 76 | 6f 69 64 29 20 73 6c 65 |)\.X..(v|oid) sle|
|00004870| 65 70 28 28 63 61 64 64 | 72 5f 74 29 20 26 28 66 |ep((cadd|r_t) &(f|
|00004880| 69 70 29 2d 3e 64 65 76 | 69 63 65 5f 66 6c 61 67 |ip)->dev|ice_flag|
|00004890| 73 2e 69 2c 20 50 5a 45 | 52 4f 20 2d 20 31 29 3b |s.i, PZE|RO - 1);|
|000048a0| 5c 0a 58 09 28 66 69 70 | 29 2d 3e 64 65 76 69 63 |\.X.(fip|)->devic|
|000048b0| 65 5f 66 6c 61 67 73 2e | 73 20 7c 3d 20 44 46 5f |e_flags.|s |= DF_|
|000048c0| 44 45 56 49 43 45 5f 4c | 4f 43 4b 45 44 3b 5c 0a |DEVICE_L|OCKED;\.|
|000048d0| 58 7d 0a 58 0a 58 2f 2a | 20 72 65 6c 65 61 73 65 |X}.X.X/*| release|
|000048e0| 20 64 65 76 69 63 65 20 | 2a 2f 0a 58 23 64 65 66 | device |*/.X#def|
|000048f0| 69 6e 65 20 72 65 6c 65 | 61 73 65 5f 64 65 76 69 |ine rele|ase_devi|
|00004900| 63 65 5f 6c 6f 63 6b 28 | 66 69 70 29 20 5c 0a 58 |ce_lock(|fip) \.X|
|00004910| 7b 5c 0a 58 09 28 66 69 | 70 29 2d 3e 64 65 76 69 |{\.X.(fi|p)->devi|
|00004920| 63 65 5f 66 6c 61 67 73 | 2e 73 20 26 3d 20 7e 44 |ce_flags|.s &= ~D|
|00004930| 46 5f 44 45 56 49 43 45 | 5f 4c 4f 43 4b 45 44 3b |F_DEVICE|_LOCKED;|
|00004940| 5c 0a 58 09 2f 2a 20 77 | 61 6b 65 75 70 20 74 68 |\.X./* w|akeup th|
|00004950| 65 20 70 72 6f 63 65 73 | 73 20 74 68 61 74 20 6d |e proces|s that m|
|00004960| 61 79 20 77 61 69 74 20 | 66 6f 72 20 74 68 69 73 |ay wait |for this|
|00004970| 20 64 65 76 69 63 65 20 | 2a 2f 5c 0a 58 09 77 61 | device |*/\.X.wa|
|00004980| 6b 65 75 70 20 28 28 63 | 61 64 64 72 5f 74 29 20 |keup ((c|addr_t) |
|00004990| 26 28 66 69 70 29 2d 3e | 64 65 76 69 63 65 5f 66 |&(fip)->|device_f|
|000049a0| 6c 61 67 73 2e 69 29 3b | 5c 0a 58 7d 0a 58 0a 58 |lags.i);|\.X}.X.X|
|000049b0| 2f 2a 20 66 61 73 69 6e | 69 74 0a 58 20 20 20 54 |/* fasin|it.X T|
|000049c0| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 63 68 65 63 |his rout|ine chec|
|000049d0| 6b 73 20 66 6f 72 20 74 | 68 65 20 70 72 65 73 65 |ks for t|he prese|
|000049e0| 6e 73 65 20 6f 66 20 74 | 68 65 20 64 65 76 69 63 |nse of t|he devic|
|000049f0| 65 73 20 69 6e 20 74 68 | 65 20 66 61 73 5f 70 6f |es in th|e fas_po|
|00004a00| 72 74 0a 58 20 20 20 61 | 72 72 61 79 20 61 6e 64 |rt.X a|rray and|
|00004a10| 20 69 66 20 74 68 65 20 | 64 65 76 69 63 65 20 69 | if the |device i|
|00004a20| 73 20 70 72 65 73 65 6e | 74 20 74 65 73 74 73 20 |s presen|t tests |
|00004a30| 61 6e 64 20 69 6e 69 74 | 69 61 6c 69 7a 65 73 20 |and init|ializes |
|00004a40| 69 74 2e 0a 58 20 20 20 | 44 75 72 69 6e 67 20 74 |it..X |During t|
|00004a50| 68 65 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |he initi|alizatio|
|00004a60| 6e 20 69 66 20 74 68 65 | 20 64 65 76 69 63 65 20 |n if the| device |
|00004a70| 69 73 20 64 65 74 65 72 | 6d 69 6e 65 64 20 74 6f |is deter|mined to|
|00004a80| 20 62 65 20 61 0a 58 20 | 20 20 4e 53 31 36 35 35 | be a.X | NS1655|
|00004a90| 30 41 20 63 68 69 70 20 | 74 68 65 20 44 46 5f 44 |0A chip |the DF_D|
|00004aa0| 45 56 49 43 45 5f 48 41 | 53 5f 46 49 46 4f 20 66 |EVICE_HA|S_FIFO f|
|00004ab0| 6c 61 67 20 69 73 20 73 | 65 74 20 61 6e 64 20 74 |lag is s|et and t|
|00004ac0| 68 65 20 46 49 46 4f 20 | 77 69 6c 6c 0a 58 20 20 |he FIFO |will.X |
|00004ad0| 20 62 65 20 75 73 65 64 | 2e 0a 58 0a 58 20 20 20 | be used|..X.X |
|00004ae0| 41 74 20 62 6f 6f 74 20 | 74 69 6d 65 20 79 6f 75 |At boot |time you|
|00004af0| 20 77 69 6c 6c 20 73 65 | 65 20 61 20 73 74 61 74 | will se|e a stat|
|00004b00| 75 73 20 6d 65 73 73 61 | 67 65 20 6f 6e 20 74 68 |us messa|ge on th|
|00004b10| 65 20 73 63 72 65 65 6e | 20 77 69 74 68 20 61 20 |e screen| with a |
|00004b20| 73 74 72 69 6e 67 0a 58 | 20 20 20 6f 66 20 73 79 |string.X| of sy|
|00004b30| 6d 62 6f 6c 73 20 74 68 | 61 74 20 73 68 6f 77 20 |mbols th|at show |
|00004b40| 74 68 65 20 69 6e 69 74 | 20 73 74 61 74 65 20 6f |the init| state o|
|00004b50| 66 20 74 68 65 20 70 6f | 72 74 73 2e 20 54 68 65 |f the po|rts. The|
|00004b60| 20 73 79 6d 62 6f 6c 73 | 20 61 72 65 20 61 73 0a | symbols| are as.|
|00004b70| 58 20 20 20 66 6f 6c 6c | 6f 77 73 3a 0a 58 0a 58 |X foll|ows:.X.X|
|00004b80| 20 20 20 20 20 20 2d 20 | 20 20 6e 6f 74 20 64 65 | - | not de|
|00004b90| 66 69 6e 65 64 20 69 6e | 20 74 68 65 20 66 61 73 |fined in| the fas|
|00004ba0| 5f 70 6f 72 74 20 61 72 | 72 61 79 0a 58 20 20 20 |_port ar|ray.X |
|00004bb0| 20 20 20 3f 20 20 20 63 | 61 6e 27 74 20 69 6e 69 | ? c|an't ini|
|00004bc0| 74 69 61 6c 69 7a 65 20 | 70 6f 72 74 0a 58 20 20 |tialize |port.X |
|00004bd0| 20 20 20 20 21 20 20 20 | 70 6f 72 74 20 74 65 73 | ! |port tes|
|00004be0| 74 20 70 72 6f 63 65 64 | 75 72 65 20 66 61 69 6c |t proced|ure fail|
|00004bf0| 65 64 0a 58 20 20 20 20 | 20 20 2a 20 20 20 70 6f |ed.X | * po|
|00004c00| 72 74 20 69 73 20 69 6e | 69 74 69 61 6c 69 7a 65 |rt is in|itialize|
|00004c10| 64 0a 58 20 20 20 20 20 | 20 46 20 20 20 70 6f 72 |d.X | F por|
|00004c20| 74 20 69 73 20 69 6e 69 | 74 69 61 6c 69 7a 65 64 |t is ini|tialized|
|00004c30| 20 61 6e 64 20 68 61 73 | 20 46 49 46 4f 73 20 28 | and has| FIFOs (|
|00004c40| 4e 53 31 36 35 35 30 29 | 0a 58 0a 58 20 20 20 54 |NS16550)|.X.X T|
|00004c50| 68 69 73 20 69 73 20 63 | 6f 6e 76 65 6e 69 65 6e |his is c|onvenien|
|00004c60| 74 20 74 6f 20 63 68 65 | 63 6b 20 77 68 65 74 68 |t to che|ck wheth|
|00004c70| 65 72 20 79 6f 75 20 68 | 61 76 65 20 65 6e 74 65 |er you h|ave ente|
|00004c80| 72 65 64 20 74 68 65 20 | 70 72 6f 70 65 72 20 70 |red the |proper p|
|00004c90| 6f 72 74 0a 58 20 20 20 | 62 61 73 65 20 61 64 64 |ort.X |base add|
|00004ca0| 72 65 73 73 65 73 20 69 | 6e 20 73 70 61 63 65 2e |resses i|n space.|
|00004cb0| 63 2e 0a 58 2a 2f 0a 58 | 0a 58 69 6e 74 0a 58 66 |c..X*/.X|.Xint.Xf|
|00004cc0| 61 73 69 6e 69 74 20 28 | 29 0a 58 7b 0a 58 09 72 |asinit (|).X{.X.r|
|00004cd0| 65 67 69 73 74 65 72 20 | 73 74 72 75 63 74 20 66 |egister |struct f|
|00004ce0| 61 73 5f 69 6e 66 6f 09 | 2a 66 69 70 3b 0a 58 09 |as_info.|*fip;.X.|
|00004cf0| 72 65 67 69 73 74 65 72 | 20 75 69 6e 74 09 75 6e |register| uint.un|
|00004d00| 69 74 3b 0a 58 09 75 69 | 6e 74 09 6c 6f 67 69 63 |it;.X.ui|nt.logic|
|00004d10| 61 6c 5f 75 6e 69 74 73 | 3b 0a 58 09 75 69 6e 74 |al_units|;.X.uint|
|00004d20| 09 70 6f 72 74 3b 0a 58 | 09 63 68 61 72 09 70 6f |.port;.X|.char.po|
|00004d30| 72 74 5f 73 74 61 74 20 | 5b 4d 41 58 5f 55 4e 49 |rt_stat |[MAX_UNI|
|00004d40| 54 53 20 2b 20 31 5d 3b | 0a 58 09 52 45 47 56 41 |TS + 1];|.X.REGVA|
|00004d50| 52 3b 0a 58 0a 58 09 69 | 66 20 28 66 61 73 5f 69 |R;.X.X.i|f (fas_i|
|00004d60| 73 5f 69 6e 69 74 74 65 | 64 29 0a 58 09 09 72 65 |s_initte|d).X..re|
|00004d70| 74 75 72 6e 28 30 29 3b | 0a 58 0a 58 09 66 61 73 |turn(0);|.X.X.fas|
|00004d80| 5f 69 73 5f 69 6e 69 74 | 74 65 64 20 3d 20 54 52 |_is_init|ted = TR|
|00004d90| 55 45 3b 0a 58 0a 58 09 | 66 6f 72 20 28 75 6e 69 |UE;.X.X.|for (uni|
|00004da0| 74 20 3d 20 30 2c 20 6c | 6f 67 69 63 61 6c 5f 75 |t = 0, l|ogical_u|
|00004db0| 6e 69 74 73 20 3d 20 66 | 61 73 5f 70 68 79 73 69 |nits = f|as_physi|
|00004dc0| 63 61 6c 5f 75 6e 69 74 | 73 20 2a 20 32 3b 0a 58 |cal_unit|s * 2;.X|
|00004dd0| 09 09 75 6e 69 74 20 3c | 20 6c 6f 67 69 63 61 6c |..unit <| logical|
|00004de0| 5f 75 6e 69 74 73 3b 20 | 75 6e 69 74 2b 2b 29 0a |_units; |unit++).|
|00004df0| 58 09 09 66 61 73 5f 74 | 74 79 5f 70 74 72 20 5b |X..fas_t|ty_ptr [|
|00004e00| 75 6e 69 74 5d 20 3d 20 | 26 66 61 73 5f 74 74 79 |unit] = |&fas_tty|
|00004e10| 20 5b 75 6e 69 74 5d 3b | 0a 58 0a 58 09 66 6f 72 | [unit];|.X.X.for|
|00004e20| 20 28 75 6e 69 74 20 3d | 20 30 3b 20 75 6e 69 74 | (unit =| 0; unit|
|00004e30| 20 3c 20 66 61 73 5f 70 | 68 79 73 69 63 61 6c 5f | < fas_p|hysical_|
|00004e40| 75 6e 69 74 73 3b 20 75 | 6e 69 74 2b 2b 29 0a 58 |units; u|nit++).X|
|00004e50| 09 7b 0a 58 09 09 66 61 | 73 5f 69 6e 66 6f 5f 70 |.{.X..fa|s_info_p|
|00004e60| 74 72 20 5b 75 6e 69 74 | 5d 20 3d 20 66 69 70 20 |tr [unit|] = fip |
|00004e70| 3d 20 26 66 61 73 5f 69 | 6e 66 6f 20 5b 75 6e 69 |= &fas_i|nfo [uni|
|00004e80| 74 5d 3b 0a 58 09 09 70 | 6f 72 74 5f 73 74 61 74 |t];.X..p|ort_stat|
|00004e90| 20 5b 75 6e 69 74 5d 20 | 3d 20 27 2d 27 3b 0a 58 | [unit] |= '-';.X|
|00004ea0| 09 09 69 66 20 28 70 6f | 72 74 20 3d 20 66 61 73 |..if (po|rt = fas|
|00004eb0| 5f 70 6f 72 74 20 5b 75 | 6e 69 74 5d 29 0a 58 09 |_port [u|nit]).X.|
|00004ec0| 09 7b 0a 58 09 09 09 2f | 2a 20 69 6e 69 74 20 61 |.{.X.../|* init a|
|00004ed0| 6c 6c 20 6f 66 20 69 74 | 73 20 70 6f 72 74 73 20 |ll of it|s ports |
|00004ee0| 2a 2f 0a 58 09 09 09 66 | 69 70 2d 3e 75 61 72 74 |*/.X...f|ip->uart|
|00004ef0| 5f 70 6f 72 74 5f 30 20 | 3d 20 70 6f 72 74 3b 0a |_port_0 |= port;.|
|00004f00| 58 09 09 09 66 69 70 2d | 3e 75 61 72 74 5f 70 6f |X...fip-|>uart_po|
|00004f10| 72 74 5f 31 20 3d 20 70 | 6f 72 74 20 2b 20 31 3b |rt_1 = p|ort + 1;|
|00004f20| 0a 58 09 09 09 66 69 70 | 2d 3e 75 61 72 74 5f 70 |.X...fip|->uart_p|
|00004f30| 6f 72 74 5f 32 20 3d 20 | 70 6f 72 74 20 2b 20 32 |ort_2 = |port + 2|
|00004f40| 3b 0a 58 09 09 09 66 69 | 70 2d 3e 75 61 72 74 5f |;.X...fi|p->uart_|
|00004f50| 70 6f 72 74 5f 33 20 3d | 20 70 6f 72 74 20 2b 20 |port_3 =| port + |
|00004f60| 33 3b 0a 58 09 09 09 66 | 69 70 2d 3e 75 61 72 74 |3;.X...f|ip->uart|
|00004f70| 5f 70 6f 72 74 5f 34 20 | 3d 20 70 6f 72 74 20 2b |_port_4 |= port +|
|00004f80| 20 34 3b 0a 58 09 09 09 | 66 69 70 2d 3e 75 61 72 | 4;.X...|fip->uar|
|00004f90| 74 5f 70 6f 72 74 5f 35 | 20 3d 20 70 6f 72 74 20 |t_port_5| = port |
|00004fa0| 2b 20 35 3b 0a 58 09 09 | 09 66 69 70 2d 3e 75 61 |+ 5;.X..|.fip->ua|
|00004fb0| 72 74 5f 70 6f 72 74 5f | 36 20 3d 20 70 6f 72 74 |rt_port_|6 = port|
|00004fc0| 20 2b 20 36 3b 0a 58 09 | 09 09 66 69 70 2d 3e 69 | + 6;.X.|..fip->i|
|00004fd0| 6e 74 5f 61 63 6b 5f 70 | 6f 72 74 20 3d 20 66 61 |nt_ack_p|ort = fa|
|00004fe0| 73 5f 69 6e 74 5f 61 63 | 6b 5f 70 6f 72 74 20 5b |s_int_ac|k_port [|
|00004ff0| 75 6e 69 74 5d 3b 0a 58 | 09 09 09 66 69 70 2d 3e |unit];.X|...fip->|
|00005000| 69 6e 74 5f 61 63 6b 20 | 3d 20 66 61 73 5f 69 6e |int_ack |= fas_in|
|00005010| 74 5f 61 63 6b 20 5b 75 | 6e 69 74 5d 3b 0a 58 09 |t_ack [u|nit];.X.|
|00005020| 09 09 66 69 70 2d 3e 76 | 65 63 20 3d 20 66 61 73 |..fip->v|ec = fas|
|00005030| 5f 76 65 63 20 5b 75 6e | 69 74 5d 3b 0a 58 09 09 |_vec [un|it];.X..|
|00005040| 09 66 69 70 2d 3e 6d 6f | 64 65 6d 2e 69 20 3d 20 |.fip->mo|dem.i = |
|00005050| 66 61 73 5f 6d 6f 64 65 | 6d 20 5b 75 6e 69 74 5d |fas_mode|m [unit]|
|00005060| 3b 0a 58 09 09 09 66 69 | 70 2d 3e 66 6c 6f 77 2e |;.X...fi|p->flow.|
|00005070| 69 20 3d 20 66 61 73 5f | 66 6c 6f 77 20 5b 75 6e |i = fas_|flow [un|
|00005080| 69 74 5d 3b 0a 58 09 09 | 09 66 69 70 2d 3e 72 65 |it];.X..|.fip->re|
|00005090| 63 76 5f 72 69 6e 67 5f | 70 75 74 5f 70 74 72 20 |cv_ring_|put_ptr |
|000050a0| 3d 20 66 69 70 2d 3e 72 | 65 63 76 5f 62 75 66 66 |= fip->r|ecv_buff|
|000050b0| 65 72 3b 0a 58 09 09 09 | 66 69 70 2d 3e 72 65 63 |er;.X...|fip->rec|
|000050c0| 76 5f 72 69 6e 67 5f 74 | 61 6b 65 5f 70 74 72 20 |v_ring_t|ake_ptr |
|000050d0| 3d 20 66 69 70 2d 3e 72 | 65 63 76 5f 62 75 66 66 |= fip->r|ecv_buff|
|000050e0| 65 72 3b 0a 58 09 09 09 | 66 69 70 2d 3e 78 6d 69 |er;.X...|fip->xmi|
|000050f0| 74 5f 72 69 6e 67 5f 70 | 75 74 5f 70 74 72 20 3d |t_ring_p|ut_ptr =|
|00005100| 20 66 69 70 2d 3e 78 6d | 69 74 5f 62 75 66 66 65 | fip->xm|it_buffe|
|00005110| 72 3b 0a 58 09 09 09 66 | 69 70 2d 3e 78 6d 69 74 |r;.X...f|ip->xmit|
|00005120| 5f 72 69 6e 67 5f 74 61 | 6b 65 5f 70 74 72 20 3d |_ring_ta|ke_ptr =|
|00005130| 20 66 69 70 2d 3e 78 6d | 69 74 5f 62 75 66 66 65 | fip->xm|it_buffe|
|00005140| 72 3b 0a 58 0a 58 09 09 | 09 66 69 70 2d 3e 69 65 |r;.X.X..|.fip->ie|
|00005150| 72 2e 63 20 3d 20 49 45 | 5f 4e 4f 4e 45 3b 09 2f |r.c = IE|_NONE;./|
|00005160| 2a 20 64 69 73 61 62 6c | 65 20 61 6c 6c 20 69 6e |* disabl|e all in|
|00005170| 74 73 20 2a 2f 0a 58 09 | 09 09 6f 75 74 62 20 28 |ts */.X.|..outb (|
|00005180| 49 4e 54 5f 45 4e 41 42 | 4c 45 5f 50 4f 52 54 2c |INT_ENAB|LE_PORT,|
|00005190| 20 66 69 70 2d 3e 69 65 | 72 2e 69 29 3b 0a 58 09 | fip->ie|r.i);.X.|
|000051a0| 09 09 69 66 20 28 69 6e | 62 20 28 49 4e 54 5f 45 |..if (in|b (INT_E|
|000051b0| 4e 41 42 4c 45 5f 50 4f | 52 54 29 20 21 3d 20 66 |NABLE_PO|RT) != f|
|000051c0| 69 70 2d 3e 69 65 72 2e | 69 29 0a 58 09 09 09 7b |ip->ier.|i).X...{|
|000051d0| 0a 58 09 09 09 09 70 6f | 72 74 5f 73 74 61 74 20 |.X....po|rt_stat |
|000051e0| 5b 75 6e 69 74 5d 20 3d | 20 27 3f 27 3b 0a 58 09 |[unit] =| '?';.X.|
|000051f0| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 09 2f 2a 20 |...conti|nue;./* |
|00005200| 61 20 68 61 72 64 77 61 | 72 65 20 65 72 72 6f 72 |a hardwa|re error|
|00005210| 20 2a 2f 0a 58 09 09 09 | 7d 0a 58 0a 58 09 09 09 | */.X...|}.X.X...|
|00005220| 69 66 20 28 21 66 61 73 | 5f 74 65 73 74 5f 64 65 |if (!fas|_test_de|
|00005230| 76 69 63 65 20 28 66 69 | 70 29 29 0a 58 09 09 09 |vice (fi|p)).X...|
|00005240| 7b 0a 58 09 09 09 09 70 | 6f 72 74 5f 73 74 61 74 |{.X....p|ort_stat|
|00005250| 20 5b 75 6e 69 74 5d 20 | 3d 20 27 21 27 3b 0a 58 | [unit] |= '!';.X|
|00005260| 09 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 09 2f 2a |....cont|inue;./*|
|00005270| 20 61 20 68 61 72 64 77 | 61 72 65 20 65 72 72 6f | a hardw|are erro|
|00005280| 72 20 2a 2f 0a 58 09 09 | 09 7d 0a 58 0a 58 09 09 |r */.X..|.}.X.X..|
|00005290| 09 66 69 70 2d 3e 6c 63 | 72 2e 63 20 3d 20 30 3b |.fip->lc|r.c = 0;|
|000052a0| 0a 58 09 09 09 6f 75 74 | 62 20 28 4c 49 4e 45 5f |.X...out|b (LINE_|
|000052b0| 43 54 4c 5f 50 4f 52 54 | 2c 20 66 69 70 2d 3e 6c |CTL_PORT|, fip->l|
|000052c0| 63 72 2e 69 29 3b 0a 58 | 09 09 09 66 69 70 2d 3e |cr.i);.X|...fip->|
|000052d0| 6d 63 72 2e 69 20 3d 20 | 66 61 73 5f 6d 63 62 20 |mcr.i = |fas_mcb |
|000052e0| 5b 75 6e 69 74 5d 3b 0a | 58 09 09 09 6f 75 74 62 |[unit];.|X...outb|
|000052f0| 20 28 4d 44 4d 5f 43 54 | 4c 5f 50 4f 52 54 2c 20 | (MDM_CT|L_PORT, |
|00005300| 66 69 70 2d 3e 6d 63 72 | 2e 69 29 3b 0a 58 0a 58 |fip->mcr|.i);.X.X|
|00005310| 09 09 09 70 6f 72 74 5f | 73 74 61 74 20 5b 75 6e |...port_|stat [un|
|00005320| 69 74 5d 20 3d 20 27 2a | 27 3b 0a 58 0a 58 09 09 |it] = '*|';.X.X..|
|00005330| 09 2f 2a 20 6c 65 74 27 | 73 20 73 65 65 20 69 66 |./* let'|s see if|
|00005340| 20 69 74 27 73 20 61 6e | 20 4e 53 31 36 35 35 30 | it's an| NS16550|
|00005350| 20 2a 2f 0a 58 09 09 09 | 6f 75 74 62 20 28 46 49 | */.X...|outb (FI|
|00005360| 46 4f 5f 43 54 4c 5f 50 | 4f 52 54 2c 20 53 54 41 |FO_CTL_P|ORT, STA|
|00005370| 4e 44 41 52 44 5f 46 49 | 46 4f 5f 49 4e 49 54 29 |NDARD_FI|FO_INIT)|
|00005380| 3b 0a 58 09 09 09 69 66 | 20 28 21 28 7e 69 6e 62 |;.X...if| (!(~inb|
|00005390| 20 28 49 4e 54 5f 49 44 | 5f 50 4f 52 54 29 20 26 | (INT_ID|_PORT) &|
|000053a0| 20 49 49 5f 46 49 46 4f | 5f 45 4e 41 42 4c 45 44 | II_FIFO|_ENABLED|
|000053b0| 29 29 0a 58 09 09 09 7b | 0a 58 09 09 09 09 66 69 |)).X...{|.X....fi|
|000053c0| 70 2d 3e 64 65 76 69 63 | 65 5f 66 6c 61 67 73 2e |p->devic|e_flags.|
|000053d0| 73 20 7c 3d 20 44 46 5f | 44 45 56 49 43 45 5f 48 |s |= DF_|DEVICE_H|
|000053e0| 41 53 5f 46 49 46 4f 3b | 0a 58 09 09 09 09 70 6f |AS_FIFO;|.X....po|
|000053f0| 72 74 5f 73 74 61 74 20 | 5b 75 6e 69 74 5d 20 3d |rt_stat |[unit] =|
|00005400| 20 27 46 27 3b 0a 58 09 | 09 09 7d 0a 58 09 09 09 | 'F';.X.|..}.X...|
|00005410| 2f 2a 20 63 6c 65 61 72 | 20 61 6e 64 20 64 69 73 |/* clear| and dis|
|00005420| 61 62 6c 65 20 74 68 65 | 20 46 49 46 4f 20 2a 2f |able the| FIFO */|
|00005430| 0a 58 09 09 09 6f 75 74 | 62 20 28 46 49 46 4f 5f |.X...out|b (FIFO_|
|00005440| 43 54 4c 5f 50 4f 52 54 | 2c 20 53 54 41 4e 44 41 |CTL_PORT|, STANDA|
|00005450| 52 44 5f 46 49 46 4f 5f | 43 4c 45 41 52 29 3b 0a |RD_FIFO_|CLEAR);.|
|00005460| 58 0a 58 09 09 09 2f 2a | 20 63 6c 65 61 72 20 70 |X.X.../*| clear p|
|00005470| 6f 74 65 6e 74 69 61 6c | 20 69 6e 74 65 72 72 75 |otential| interru|
|00005480| 70 74 73 20 2a 2f 0a 58 | 09 09 09 69 6e 62 20 28 |pts */.X|...inb (|
|00005490| 4d 44 4d 5f 53 54 41 54 | 55 53 5f 50 4f 52 54 29 |MDM_STAT|US_PORT)|
|000054a0| 3b 0a 58 09 09 09 69 6e | 62 20 28 52 43 56 5f 44 |;.X...in|b (RCV_D|
|000054b0| 41 54 41 5f 50 4f 52 54 | 29 3b 0a 58 09 09 09 69 |ATA_PORT|);.X...i|
|000054c0| 6e 62 20 28 52 43 56 5f | 44 41 54 41 5f 50 4f 52 |nb (RCV_|DATA_POR|
|000054d0| 54 29 3b 0a 58 09 09 09 | 69 6e 62 20 28 4c 49 4e |T);.X...|inb (LIN|
|000054e0| 45 5f 53 54 41 54 55 53 | 5f 50 4f 52 54 29 3b 0a |E_STATUS|_PORT);.|
|000054f0| 58 09 09 09 69 6e 62 20 | 28 49 4e 54 5f 49 44 5f |X...inb |(INT_ID_|
|00005500| 50 4f 52 54 29 3b 0a 58 | 09 09 09 69 66 20 28 49 |PORT);.X|...if (I|
|00005510| 4e 54 5f 41 43 4b 5f 50 | 4f 52 54 29 0a 58 09 09 |NT_ACK_P|ORT).X..|
|00005520| 09 09 6f 75 74 62 20 28 | 49 4e 54 5f 41 43 4b 5f |..outb (|INT_ACK_|
|00005530| 50 4f 52 54 2c 20 66 69 | 70 2d 3e 69 6e 74 5f 61 |PORT, fi|p->int_a|
|00005540| 63 6b 29 3b 0a 58 09 09 | 09 69 66 20 28 70 6f 72 |ck);.X..|.if (por|
|00005550| 74 20 3d 20 66 61 73 5f | 6d 75 78 5f 61 63 6b 5f |t = fas_|mux_ack_|
|00005560| 70 6f 72 74 20 5b 66 69 | 70 2d 3e 76 65 63 5d 29 |port [fi|p->vec])|
|00005570| 0a 58 09 09 09 09 6f 75 | 74 62 20 28 70 6f 72 74 |.X....ou|tb (port|
|00005580| 2c 20 66 61 73 5f 6d 75 | 78 5f 61 63 6b 20 5b 66 |, fas_mu|x_ack [f|
|00005590| 69 70 2d 3e 76 65 63 5d | 29 3b 0a 58 0a 58 09 09 |ip->vec]|);.X.X..|
|000055a0| 09 2f 2a 20 73 68 6f 77 | 20 74 68 61 74 20 69 74 |./* show| that it|
|000055b0| 20 69 73 20 70 72 65 73 | 65 6e 74 20 61 6e 64 20 | is pres|ent and |
|000055c0| 63 6f 6e 66 69 67 75 72 | 65 64 20 2a 2f 0a 58 09 |configur|ed */.X.|
|000055d0| 09 09 66 69 70 2d 3e 64 | 65 76 69 63 65 5f 66 6c |..fip->d|evice_fl|
|000055e0| 61 67 73 2e 73 20 7c 3d | 20 44 46 5f 44 45 56 49 |ags.s |=| DF_DEVI|
|000055f0| 43 45 5f 43 4f 4e 46 49 | 47 55 52 45 44 3b 0a 58 |CE_CONFI|GURED;.X|
|00005600| 09 09 7d 0a 58 09 7d 0a | 58 0a 58 23 69 66 20 64 |..}.X.}.|X.X#if d|
|00005610| 65 66 69 6e 65 64 20 28 | 4e 45 45 44 5f 50 55 54 |efined (|NEED_PUT|
|00005620| 5f 47 45 54 43 48 41 52 | 29 0a 58 09 66 69 70 20 |_GETCHAR|).X.fip |
|00005630| 3d 20 26 66 61 73 5f 69 | 6e 66 6f 20 5b 30 5d 3b |= &fas_i|nfo [0];|
|00005640| 0a 58 09 66 69 70 2d 3e | 6d 63 72 2e 63 20 7c 3d |.X.fip->|mcr.c |=|
|00005650| 20 49 4e 49 54 49 41 4c | 5f 4d 44 4d 5f 43 4f 4e | INITIAL|_MDM_CON|
|00005660| 54 52 4f 4c 3b 0a 58 09 | 6f 75 74 62 20 28 4d 44 |TROL;.X.|outb (MD|
|00005670| 4d 5f 43 54 4c 5f 50 4f | 52 54 2c 20 66 69 70 2d |M_CTL_PO|RT, fip-|
|00005680| 3e 6d 63 72 2e 69 29 3b | 0a 58 0a 58 09 66 69 70 |>mcr.i);|.X.X.fip|
|00005690| 2d 3e 6c 63 72 2e 63 20 | 3d 20 49 4e 49 54 49 41 |->lcr.c |= INITIA|
|000056a0| 4c 5f 4c 49 4e 45 5f 43 | 4f 4e 54 52 4f 4c 3b 0a |L_LINE_C|ONTROL;.|
|000056b0| 58 09 6f 75 74 62 20 28 | 4c 49 4e 45 5f 43 54 4c |X.outb (|LINE_CTL|
|000056c0| 5f 50 4f 52 54 2c 20 66 | 69 70 2d 3e 6c 63 72 2e |_PORT, f|ip->lcr.|
|000056d0| 69 20 7c 20 4c 43 5f 45 | 4e 41 42 4c 45 5f 44 49 |i | LC_E|NABLE_DI|
|000056e0| 56 49 53 4f 52 29 3b 0a | 58 09 6f 75 74 62 20 28 |VISOR);.|X.outb (|
|000056f0| 44 49 56 49 53 4f 52 5f | 4c 53 42 5f 50 4f 52 54 |DIVISOR_|LSB_PORT|
|00005700| 2c 20 49 4e 49 54 49 41 | 4c 5f 42 41 55 44 5f 52 |, INITIA|L_BAUD_R|
|00005710| 41 54 45 29 3b 0a 58 09 | 6f 75 74 62 20 28 44 49 |ATE);.X.|outb (DI|
|00005720| 56 49 53 4f 52 5f 4d 53 | 42 5f 50 4f 52 54 2c 20 |VISOR_MS|B_PORT, |
|00005730| 28 49 4e 49 54 49 41 4c | 5f 42 41 55 44 5f 52 41 |(INITIAL|_BAUD_RA|
|00005740| 54 45 29 20 3e 3e 20 38 | 29 3b 0a 58 09 6f 75 74 |TE) >> 8|);.X.out|
|00005750| 62 20 28 4c 49 4e 45 5f | 43 54 4c 5f 50 4f 52 54 |b (LINE_|CTL_PORT|
|00005760| 2c 20 66 69 70 2d 3e 6c | 63 72 2e 69 29 3b 0a 58 |, fip->l|cr.i);.X|
|00005770| 23 65 6e 64 69 66 0a 58 | 0a 58 09 70 6f 72 74 5f |#endif.X|.X.port_|
|00005780| 73 74 61 74 20 5b 75 6e | 69 74 5d 20 3d 20 27 5c |stat [un|it] = '\|
|00005790| 30 27 3b 0a 58 09 70 72 | 69 6e 74 66 20 28 22 5c |0';.X.pr|intf ("\|
|000057a0| 6e 46 41 53 20 32 2e 30 | 36 2e 30 20 61 73 79 6e |nFAS 2.0|6.0 asyn|
|000057b0| 63 20 64 72 69 76 65 72 | 3a 20 50 6f 72 74 20 30 |c driver|: Port 0|
|000057c0| 2d 25 64 20 69 6e 69 74 | 20 73 74 61 74 65 20 69 |-%d init| state i|
|000057d0| 73 20 5b 25 73 5d 5c 6e | 5c 6e 22 2c 0a 58 09 09 |s [%s]\n|\n",.X..|
|000057e0| 09 75 6e 69 74 20 2d 20 | 31 2c 0a 58 09 09 09 70 |.unit - |1,.X...p|
|000057f0| 6f 72 74 5f 73 74 61 74 | 29 3b 0a 58 0a 58 09 72 |ort_stat|);.X.X.r|
|00005800| 65 74 75 72 6e 28 30 29 | 3b 0a 58 7d 0a 58 0a 58 |eturn(0)|;.X}.X.X|
|00005810| 2f 2a 20 4f 70 65 6e 20 | 61 20 6c 69 6e 65 20 2a |/* Open |a line *|
|00005820| 2f 0a 58 0a 58 2f 2a 20 | 54 68 65 72 65 20 61 72 |/.X.X/* |There ar|
|00005830| 65 20 61 20 66 65 77 20 | 64 69 66 66 65 72 65 6e |e a few |differen|
|00005840| 63 65 73 20 62 65 74 77 | 65 65 6e 20 74 68 69 73 |ces betw|een this|
|00005850| 20 61 6e 64 20 61 20 6e | 6f 72 6d 61 6c 20 73 65 | and a n|ormal se|
|00005860| 72 69 61 6c 0a 58 20 20 | 20 64 65 76 69 63 65 2e |rial.X | device.|
|00005870| 0a 58 0a 58 20 20 20 46 | 6f 72 20 65 61 63 68 20 |.X.X F|or each |
|00005880| 70 68 79 73 69 63 61 6c | 20 70 6f 72 74 20 74 68 |physical| port th|
|00005890| 65 72 65 20 61 72 65 20 | 74 77 6f 20 6c 6f 67 69 |ere are |two logi|
|000058a0| 63 61 6c 20 6d 69 6e 6f | 72 20 64 65 76 69 63 65 |cal mino|r device|
|000058b0| 73 2e 0a 58 20 20 20 46 | 6f 72 20 65 61 63 68 20 |s..X F|or each |
|000058c0| 6c 6f 67 69 63 61 6c 20 | 6d 69 6e 6f 72 20 64 65 |logical |minor de|
|000058d0| 76 69 63 65 20 74 68 65 | 72 65 20 61 72 65 20 73 |vice the|re are s|
|000058e0| 65 76 65 72 61 6c 20 6f | 70 65 72 61 74 69 6e 67 |everal o|perating|
|000058f0| 20 6d 6f 64 65 73 0a 58 | 20 20 20 74 68 61 74 20 | modes.X| that |
|00005900| 61 72 65 20 73 65 6c 65 | 63 74 65 64 20 62 79 20 |are sele|cted by |
|00005910| 73 6f 6d 65 20 6f 66 20 | 74 68 65 20 68 69 67 68 |some of |the high|
|00005920| 65 72 20 62 69 74 73 20 | 6f 66 20 74 68 65 20 6d |er bits |of the m|
|00005930| 69 6e 6f 72 0a 58 20 20 | 20 64 65 76 69 63 65 20 |inor.X | device |
|00005940| 6e 75 6d 62 65 72 2e 20 | 4f 6e 6c 79 20 6f 6e 65 |number. |Only one|
|00005950| 20 6c 6f 67 69 63 61 6c | 20 6d 69 6e 6f 72 20 64 | logical| minor d|
|00005960| 65 76 69 63 65 20 63 61 | 6e 20 62 65 20 6f 70 65 |evice ca|n be ope|
|00005970| 6e 20 61 74 0a 58 20 20 | 20 74 68 65 20 73 61 6d |n at.X | the sam|
|00005980| 65 20 74 69 6d 65 2e 0a | 58 0a 58 20 2d 20 4d 69 |e time..|X.X - Mi|
|00005990| 6e 6f 72 20 64 65 76 69 | 63 65 73 20 74 68 61 74 |nor devi|ces that|
|000059a0| 20 2a 64 6f 6e 27 74 2a | 20 62 6c 6f 63 6b 20 6f | *don't*| block o|
|000059b0| 6e 20 6f 70 65 6e 20 69 | 66 20 6e 6f 20 63 61 72 |n open i|f no car|
|000059c0| 72 69 65 72 20 69 73 20 | 70 72 65 73 65 6e 74 3a |rier is |present:|
|000059d0| 0a 58 0a 58 09 42 69 74 | 6d 61 70 3a 20 20 20 30 |.X.X.Bit|map: 0|
|000059e0| 20 6d 20 6d 20 68 20 78 | 20 78 20 78 20 78 0a 58 | m m h x| x x x.X|
|000059f0| 0a 58 09 20 20 20 60 6d | 20 6d 27 20 61 72 65 20 |.X. `m| m' are |
|00005a00| 74 68 65 20 6d 6f 64 65 | 20 62 69 74 73 20 61 73 |the mode| bits as|
|00005a10| 20 66 6f 6c 6c 6f 77 73 | 3a 0a 58 0a 58 09 20 20 | follows|:.X.X. |
|00005a20| 20 20 30 20 30 20 20 20 | 54 68 65 20 63 61 72 72 | 0 0 |The carr|
|00005a30| 69 65 72 20 73 69 67 6e | 61 6c 20 69 73 20 74 6f |ier sign|al is to|
|00005a40| 74 61 6c 6c 79 20 69 67 | 6e 6f 72 65 64 2e 20 57 |tally ig|nored. W|
|00005a50| 69 74 68 20 63 61 72 72 | 69 65 72 20 68 69 67 68 |ith carr|ier high|
|00005a60| 2d 3e 6c 6f 77 0a 58 09 | 09 20 20 2a 6e 6f 2a 20 |->low.X.|. *no* |
|00005a70| 53 49 47 48 55 50 20 73 | 69 67 6e 61 6c 20 69 73 |SIGHUP s|ignal is|
|00005a80| 20 67 65 6e 65 72 61 74 | 65 64 2e 0a 58 09 20 20 | generat|ed..X. |
|00005a90| 20 20 30 20 31 20 20 20 | 41 66 74 65 72 20 61 6e | 0 1 |After an|
|00005aa0| 20 69 6e 69 74 69 61 6c | 20 6f 70 65 6e 2c 20 74 | initial| open, t|
|00005ab0| 68 65 20 63 61 72 72 69 | 65 72 20 73 69 67 6e 61 |he carri|er signa|
|00005ac0| 6c 20 69 73 20 69 67 6e | 6f 72 65 64 2e 0a 58 09 |l is ign|ored..X.|
|00005ad0| 09 20 20 41 6c 74 68 6f | 75 67 68 2c 20 63 61 72 |. Altho|ugh, car|
|00005ae0| 72 69 65 72 20 68 69 67 | 68 2d 3e 6c 6f 77 20 67 |rier hig|h->low g|
|00005af0| 65 6e 65 72 61 74 65 73 | 20 61 20 53 49 47 48 55 |enerates| a SIGHU|
|00005b00| 50 20 73 69 67 6e 61 6c | 2e 20 46 72 6f 6d 0a 58 |P signal|. From.X|
|00005b10| 09 09 20 20 74 68 65 72 | 65 6f 6e 20 74 68 65 20 |.. ther|eon the |
|00005b20| 64 65 76 69 63 65 20 69 | 73 20 63 61 72 72 69 65 |device i|s carrie|
|00005b30| 72 20 63 6f 6e 74 72 6f | 6c 6c 65 64 20 75 6e 74 |r contro|lled unt|
|00005b40| 69 6c 20 74 68 65 20 6c | 61 73 74 0a 58 09 09 20 |il the l|ast.X.. |
|00005b50| 20 70 72 6f 63 65 73 73 | 20 68 61 73 20 63 6c 6f | process| has clo|
|00005b60| 73 65 64 20 74 68 65 20 | 64 65 76 69 63 65 2e 20 |sed the |device. |
|00005b70| 41 6e 20 69 6f 63 74 6c | 20 63 61 6c 6c 20 77 69 |An ioctl| call wi|
|00005b80| 74 68 20 61 20 54 43 53 | 45 54 41 2a 0a 58 20 20 |th a TCS|ETA*.X |
|00005b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ba0| 63 6f 6d 6d 61 6e 64 20 | 72 65 73 65 74 73 20 74 |command |resets t|
|00005bb0| 68 65 20 64 65 76 69 63 | 65 20 74 6f 20 69 67 6e |he devic|e to ign|
|00005bc0| 6f 72 65 20 63 61 72 72 | 69 65 72 20 61 67 61 69 |ore carr|ier agai|
|00005bd0| 6e 20 75 6e 74 69 6c 20 | 74 68 65 0a 58 20 20 20 |n until |the.X |
|00005be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 6e | | n|
|00005bf0| 65 78 74 20 63 61 72 72 | 69 65 72 20 68 69 67 68 |ext carr|ier high|
|00005c00| 2d 3e 6c 6f 77 2e 0a 58 | 09 20 20 20 20 31 20 30 |->low..X|. 1 0|
|00005c10| 20 20 20 54 68 65 20 64 | 65 76 69 63 65 20 69 73 | The d|evice is|
|00005c20| 20 63 61 72 72 69 65 72 | 20 63 6f 6e 74 72 6f 6c | carrier| control|
|00005c30| 6c 65 64 2e 20 41 64 64 | 69 74 69 6f 6e 61 6c 6c |led. Add|itionall|
|00005c40| 79 2c 20 69 66 20 6f 6e | 20 6f 70 65 6e 0a 58 09 |y, if on| open.X.|
|00005c50| 09 20 20 74 68 65 20 63 | 61 72 72 69 65 72 20 73 |. the c|arrier s|
|00005c60| 69 67 6e 61 6c 20 69 73 | 20 6c 6f 77 2c 20 61 20 |ignal is| low, a |
|00005c70| 53 49 47 48 55 50 20 73 | 69 67 6e 61 6c 20 69 73 |SIGHUP s|ignal is|
|00005c80| 20 73 65 6e 74 0a 58 20 | 20 20 20 20 20 20 20 20 | sent.X | |
|00005c90| 20 20 20 20 20 20 20 20 | 20 69 6d 6d 65 64 69 61 | | immedia|
|00005ca0| 74 65 6c 79 2e 0a 58 09 | 20 20 20 20 31 20 31 20 |tely..X.| 1 1 |
|00005cb0| 20 20 54 68 65 20 64 65 | 76 69 63 65 20 62 65 68 | The de|vice beh|
|00005cc0| 61 76 65 73 20 74 68 65 | 20 73 61 6d 65 20 61 73 |aves the| same as|
|00005cd0| 20 77 69 74 68 20 6d 6f | 64 65 20 60 30 20 31 27 | with mo|de `0 1'|
|00005ce0| 2e 20 41 64 64 69 74 69 | 6f 6e 61 6c 6c 79 2c 0a |. Additi|onally,.|
|00005cf0| 58 09 09 20 20 69 66 20 | 6f 6e 20 6f 70 65 6e 20 |X.. if |on open |
|00005d00| 74 68 65 20 63 61 72 72 | 69 65 72 20 73 69 67 6e |the carr|ier sign|
|00005d10| 61 6c 20 69 73 20 6c 6f | 77 2c 20 61 20 53 49 47 |al is lo|w, a SIG|
|00005d20| 48 55 50 20 73 69 67 6e | 61 6c 20 69 73 20 73 65 |HUP sign|al is se|
|00005d30| 6e 74 0a 58 09 09 20 20 | 69 6d 6d 65 64 69 61 74 |nt.X.. |immediat|
|00005d40| 65 6c 79 2e 0a 58 0a 58 | 20 2d 20 4d 69 6e 6f 72 |ely..X.X| - Minor|
|00005d50| 20 64 65 76 69 63 65 73 | 20 74 68 61 74 20 2a 64 | devices| that *d|
|00005d60| 6f 2a 20 62 6c 6f 63 6b | 20 6f 6e 20 6f 70 65 6e |o* block| on open|
|00005d70| 20 69 66 20 6e 6f 20 63 | 61 72 72 69 65 72 20 69 | if no c|arrier i|
|00005d80| 73 20 70 72 65 73 65 6e | 74 3a 0a 58 0a 58 09 42 |s presen|t:.X.X.B|
|00005d90| 69 74 6d 61 70 3a 20 20 | 20 31 20 6d 20 6d 20 68 |itmap: | 1 m m h|
|00005da0| 20 78 20 78 20 78 20 78 | 0a 58 0a 58 09 20 20 20 | x x x x|.X.X. |
|00005db0| 60 6d 20 6d 27 20 61 72 | 65 20 74 68 65 20 6d 6f |`m m' ar|e the mo|
|00005dc0| 64 65 20 62 69 74 73 20 | 61 73 20 66 6f 6c 6c 6f |de bits |as follo|
|00005dd0| 77 73 3a 0a 58 0a 58 09 | 20 20 20 20 30 20 30 20 |ws:.X.X.| 0 0 |
|00005de0| 20 20 54 68 65 20 64 65 | 76 69 63 65 20 69 73 20 | The de|vice is |
|00005df0| 63 61 72 72 69 65 72 20 | 63 6f 6e 74 72 6f 6c 6c |carrier |controll|
|00005e00| 65 64 2e 0a 58 09 20 20 | 20 20 30 20 31 20 20 20 |ed..X. | 0 1 |
|00005e10| 54 68 65 20 64 65 76 69 | 63 65 20 69 73 20 63 61 |The devi|ce is ca|
|00005e20| 72 72 69 65 72 20 63 6f | 6e 74 72 6f 6c 6c 65 64 |rrier co|ntrolled|
|00005e30| 2e 20 41 6e 20 75 6e 62 | 6c 6f 63 6b 20 73 69 67 |. An unb|lock sig|
|00005e40| 6e 61 6c 20 77 61 6b 65 | 73 0a 58 20 20 20 20 20 |nal wake|s.X |
|00005e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 75 70 20 | | up |
|00005e60| 74 68 65 20 77 61 69 74 | 69 6e 67 20 6f 70 65 6e |the wait|ing open|
|00005e70| 20 61 6e 64 20 49 2f 4f | 20 69 73 20 70 6f 73 73 | and I/O| is poss|
|00005e80| 69 62 6c 65 20 72 65 67 | 61 72 64 6c 65 73 73 20 |ible reg|ardless |
|00005e90| 6f 66 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |of.X | |
|00005ea0| 20 20 20 20 20 20 63 61 | 72 72 69 65 72 20 75 6e | ca|rrier un|
|00005eb0| 74 69 6c 20 61 20 63 61 | 72 72 69 65 72 20 68 69 |til a ca|rrier hi|
|00005ec0| 67 68 2d 3e 6c 6f 77 2e | 20 54 68 65 72 65 61 66 |gh->low.| Thereaf|
|00005ed0| 74 65 72 20 74 68 65 20 | 64 65 76 69 63 65 0a 58 |ter the |device.X|
|00005ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ef0| 20 20 69 73 20 61 67 61 | 69 6e 20 66 75 6c 6c 79 | is aga|in fully|
|00005f00| 20 63 61 72 72 69 65 72 | 20 63 6f 6e 74 72 6f 6c | carrier| control|
|00005f10| 6c 65 64 2e 0a 58 09 20 | 20 20 20 31 20 30 20 20 |led..X. | 1 0 |
|00005f20| 20 53 61 6d 65 20 61 73 | 20 6d 6f 64 65 20 60 30 | Same as| mode `0|
|00005f30| 20 30 27 2c 20 62 75 74 | 20 61 20 70 61 72 61 6c | 0', but| a paral|
|00005f40| 6c 65 6c 20 6e 6f 6e 2d | 62 6c 6f 63 6b 69 6e 67 |lel non-|blocking|
|00005f50| 20 6f 70 65 6e 0a 58 09 | 09 20 20 69 73 20 70 6f | open.X.|. is po|
|00005f60| 73 73 69 62 6c 65 20 77 | 68 69 6c 65 20 77 61 69 |ssible w|hile wai|
|00005f70| 74 69 6e 67 20 66 6f 72 | 20 63 61 72 72 69 65 72 |ting for| carrier|
|00005f80| 2e 0a 58 09 20 20 20 20 | 31 20 31 20 20 20 53 61 |..X. |1 1 Sa|
|00005f90| 6d 65 20 61 73 20 6d 6f | 64 65 20 60 30 20 31 27 |me as mo|de `0 1'|
|00005fa0| 2c 20 62 75 74 20 61 20 | 70 61 72 61 6c 6c 65 6c |, but a |parallel|
|00005fb0| 20 6e 6f 6e 2d 62 6c 6f | 63 6b 69 6e 67 20 6f 70 | non-blo|cking op|
|00005fc0| 65 6e 0a 58 09 09 20 20 | 69 73 20 70 6f 73 73 69 |en.X.. |is possi|
|00005fd0| 62 6c 65 20 77 68 69 6c | 65 20 77 61 69 74 69 6e |ble whil|e waitin|
|00005fe0| 67 20 66 6f 72 20 63 61 | 72 72 69 65 72 2e 0a 58 |g for ca|rrier..X|
|00005ff0| 0a 58 20 2d 20 44 65 73 | 63 72 69 70 74 69 6f 6e |.X - Des|cription|
|00006000| 20 6f 66 20 74 68 65 20 | 72 65 6d 61 69 6e 69 6e | of the |remainin|
|00006010| 67 20 62 69 74 73 20 6f | 66 20 74 68 65 20 62 69 |g bits o|f the bi|
|00006020| 74 6d 61 70 3a 0a 58 0a | 58 09 20 20 20 60 68 27 |tmap:.X.|X. `h'|
|00006030| 20 20 20 20 49 66 20 73 | 65 74 20 74 6f 20 60 31 | If s|et to `1|
|00006040| 27 2c 20 74 68 65 20 64 | 65 76 69 63 65 20 68 61 |', the d|evice ha|
|00006050| 73 20 68 61 72 64 77 61 | 72 65 20 68 61 6e 64 73 |s hardwa|re hands|
|00006060| 68 61 6b 65 2e 20 52 65 | 66 65 72 0a 58 09 09 20 |hake. Re|fer.X.. |
|00006070| 20 74 6f 20 74 68 65 20 | 60 73 70 61 63 65 2e 63 | to the |`space.c|
|00006080| 27 20 66 69 6c 65 20 74 | 6f 20 64 65 74 65 72 6d |' file t|o determ|
|00006090| 69 6e 65 20 77 68 69 63 | 68 20 70 6f 72 74 20 73 |ine whic|h port s|
|000060a0| 69 67 6e 61 6c 73 0a 58 | 09 09 20 20 61 72 65 20 |ignals.X|.. are |
|000060b0| 61 63 74 75 61 6c 6c 79 | 20 75 73 65 64 20 66 6f |actually| used fo|
|000060c0| 72 20 74 68 61 74 20 70 | 75 72 70 6f 73 65 2e 0a |r that p|urpose..|
|000060d0| 58 09 20 20 20 60 78 20 | 78 20 78 20 78 27 0a 58 |X. `x |x x x'.X|
|000060e0| 09 09 20 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |.. This| is the |
|000060f0| 70 68 79 73 69 63 61 6c | 20 70 6f 72 74 20 6e 75 |physical| port nu|
|00006100| 6d 62 65 72 2e 20 54 68 | 69 73 20 64 72 69 76 65 |mber. Th|is drive|
|00006110| 72 20 73 75 70 70 6f 72 | 74 73 0a 58 09 09 20 20 |r suppor|ts.X.. |
|00006120| 75 70 20 74 6f 20 31 36 | 20 70 6f 72 74 73 2e 20 |up to 16| ports. |
|00006130| 49 66 20 79 6f 75 20 6e | 65 65 64 20 6d 6f 72 65 |If you n|eed more|
|00006140| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 75 73 65 |, you sh|ould use|
|00006150| 20 61 6e 0a 58 09 09 20 | 20 69 6e 74 65 6c 6c 69 | an.X.. | intelli|
|00006160| 67 65 6e 74 20 73 65 72 | 69 61 6c 20 63 61 72 64 |gent ser|ial card|
|00006170| 20 62 65 63 61 75 73 65 | 20 6d 6f 72 65 20 74 68 | because| more th|
|00006180| 61 6e 20 31 36 20 64 65 | 76 69 63 65 73 0a 58 09 |an 16 de|vices.X.|
|00006190| 09 20 20 77 69 6c 6c 20 | 65 61 74 20 75 70 20 74 |. will |eat up t|
|000061a0| 6f 20 6d 75 63 68 20 43 | 50 55 20 74 69 6d 65 20 |o much C|PU time |
|000061b0| 77 69 74 68 20 74 68 69 | 73 20 64 75 6d 62 2d 70 |with thi|s dumb-p|
|000061c0| 6f 72 74 20 61 70 70 72 | 6f 61 63 68 2e 0a 58 0a |ort appr|oach..X.|
|000061d0| 58 20 2d 20 4e 6f 74 65 | 3a 20 49 66 20 61 20 64 |X - Note|: If a d|
|000061e0| 65 76 69 63 65 20 69 73 | 20 63 61 72 72 69 65 72 |evice is| carrier|
|000061f0| 20 63 6f 6e 74 72 6f 6c | 6c 65 64 2c 20 74 68 69 | control|led, thi|
|00006200| 73 20 69 6d 70 6c 69 65 | 73 20 74 68 65 20 67 65 |s implie|s the ge|
|00006210| 6e 65 72 61 74 69 6f 6e | 20 6f 66 0a 58 09 20 61 |neration| of.X. a|
|00006220| 20 53 49 47 48 55 50 20 | 73 69 67 6e 61 6c 20 77 | SIGHUP |signal w|
|00006230| 69 74 68 20 65 76 65 72 | 79 20 63 61 72 72 69 65 |ith ever|y carrie|
|00006240| 72 20 68 69 67 68 2d 3e | 6c 6f 77 2e 20 54 68 69 |r high->|low. Thi|
|00006250| 73 20 69 73 20 6f 66 20 | 63 6f 75 72 73 65 20 6f |s is of |course o|
|00006260| 6e 6c 79 0a 58 09 20 74 | 72 75 65 20 69 66 20 74 |nly.X. t|rue if t|
|00006270| 68 65 20 43 4c 4f 43 41 | 4c 20 66 6c 61 67 20 69 |he CLOCA|L flag i|
|00006280| 73 20 2a 6e 6f 74 2a 20 | 73 65 74 2e 0a 58 0a 58 |s *not* |set..X.X|
|00006290| 09 20 49 66 20 79 6f 75 | 20 75 73 65 20 6d 6f 72 |. If you| use mor|
|000062a0| 65 20 74 68 61 6e 20 61 | 20 66 65 77 20 70 6f 72 |e than a| few por|
|000062b0| 74 73 20 61 6e 64 20 79 | 6f 75 20 68 61 76 65 20 |ts and y|ou have |
|000062c0| 61 20 68 69 67 68 20 76 | 6f 6c 75 6d 65 20 6f 66 |a high v|olume of|
|000062d0| 0a 58 09 20 72 65 63 65 | 69 76 65 72 20 64 61 74 |.X. rece|iver dat|
|000062e0| 61 20 61 74 20 61 20 68 | 69 67 68 20 62 61 75 64 |a at a h|igh baud|
|000062f0| 20 72 61 74 65 2c 20 74 | 68 65 20 70 6f 72 74 73 | rate, t|he ports|
|00006300| 20 6d 61 79 20 6c 6f 73 | 65 20 63 68 61 72 61 63 | may los|e charac|
|00006310| 74 65 72 73 2e 0a 58 09 | 20 54 68 69 73 20 69 73 |ters..X.| This is|
|00006320| 20 73 69 6d 70 6c 79 20 | 61 20 68 61 72 64 77 61 | simply |a hardwa|
|00006330| 72 65 20 6c 69 6d 69 74 | 61 74 69 6f 6e 20 61 6e |re limit|ation an|
|00006340| 64 20 63 61 6e 27 74 20 | 62 65 20 63 75 72 65 64 |d can't |be cured|
|00006350| 20 62 79 20 61 6e 79 0a | 58 09 20 73 6f 66 74 77 | by any.|X. softw|
|00006360| 61 72 65 2e 20 42 75 74 | 20 74 68 65 72 65 20 69 |are. But| there i|
|00006370| 73 20 61 20 70 69 6e 2d | 74 6f 2d 70 69 6e 20 63 |s a pin-|to-pin c|
|00006380| 6f 6d 70 61 74 69 62 6c | 65 20 72 65 70 6c 61 63 |ompatibl|e replac|
|00006390| 65 6d 65 6e 74 0a 58 09 | 20 66 6f 72 20 74 68 65 |ement.X.| for the|
|000063a0| 20 69 38 32 35 30 20 61 | 6e 64 20 4e 53 31 36 34 | i8250 a|nd NS164|
|000063b0| 35 30 20 64 65 76 69 63 | 65 73 2e 20 49 74 27 73 |50 devic|es. It's|
|000063c0| 20 74 68 65 20 4e 53 31 | 36 35 35 30 20 61 6e 64 | the NS1|6550 and|
|000063d0| 20 68 61 73 0a 58 09 20 | 73 65 70 61 72 61 74 65 | has.X. |separate|
|000063e0| 20 31 36 2d 63 68 61 72 | 61 63 74 65 72 20 49 2f | 16-char|acter I/|
|000063f0| 4f 20 46 49 46 4f 73 2e | 20 54 68 69 73 20 77 69 |O FIFOs.| This wi|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.