aboutsummaryrefslogtreecommitdiff
path: root/ja_JP.eucJP/man/man4/man4.i386/cx.4
blob: ee0117b86262a9f10a801ca00406db2a6bbfb5d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
.\"
.\"	%Id: cx.4,v 1.4 1997/06/23 04:02:37 steve Exp %
.\" $FreeBSD$
.\"
.Dd December 12, 1994
.Dt CX 4 i386
.Os FreeBSD
.Sh ̾
.Nm cx ,
.Nm if_cx
.Nd Ʊ/Ʊ Cronyx-Sigma ץɥ饤
.Sh 
.Cd "device cx0 at isa? port 0x240 irq 15 drq 7"
.Cd "device cx1 at isa? port 0x260 irq 12 drq 6"
.Cd pseudo-device sppp
.Pp
i/o ١ɥ쥹ϡܡɾΥѤꤵޤ
DMA ͥȳߥꥯֹϡ
ץ˥եȥꤵޤ
̾ͤϰʲ̤Ǥ
.Pp
.Bl -tag -compact -width Port
.It Port
0x240, 0x260, 0x280, 0x300, 0x320, 0x380
.It IRQ
3, 5, 7, 10, 11, 12, 15
.It DMA
5, 6, 7
.Sh 
Cronyx-Sigma ɥ饤Фϥǥ 100,
400, 500, 401, 404, 410, 440, 703, 801, 810, 840 򥵥ݡȤޤ
ǥ뤬ۤʤȡͥΥåȤۤʤޤ
.Pp
.Bl -tag -compact -width Cronyx-Sigma-999
.It ǥ
ͥ
.It Cronyx-Sigma-100
0
.It Cronyx-Sigma-400
4, 5, 6, 7
.It Cronyx-Sigma-500       
0, 4, 5, 6, 7
.It Cronyx-Sigma-401       
0, 1, 2, 3
.It Cronyx-Sigma-404       
0, 1, 2, 3
.It Cronyx-Sigma-410       
0, 1, 2, 3
.It Cronyx-Sigma-440       
0, 1, 2, 3
.It Cronyx-Sigma-703       
0, 1, 2, 4, 5, 6, 7
.It Cronyx-Sigma-801       
0, 1, 2, 3, 4, 5, 6, 7
.It Cronyx-Sigma-810       
0, 1, 2, 3, 4, 5, 6, 7
.It Cronyx-Sigma-840       
0, 1, 2, 3, 4, 5, 6, 7
.El
.Pp
դĤΥץϡܡɴ³Ѥûѥ֥³뤳ȤǤޤ
դĤ³줿ץϡƱ IRQ  DMA ͥѤ
ɥ饤Ф鸫ФҤȤĤ 16 ͥޥץ쥯Ȥưޤ
³줿ܡɤ ``ޥ'' ˡ⤦ ``졼'' ˤʤޤ
.Pp
졼֤ˤʤäܡɤΥͥϡ
ɥ饤Фˤä 8 Ϥޤֹ椬Ƥޤ
ȤХǥ 100  ǥ 500 ³ȡ
0, 8, 12, 13, 14, 15 ֤Υֹͥ椬Ƥޤ
.Pp
RS-232C 󥿥եĥͥϡ
Ʊ⡼ɤƱ⡼ɤΤɤǤư뤳Ȥǽ
(cxconfig 桼ƥƥˤäƥեȥŪ򤷤ޤ) Ǥꡢ
Τ ``˥Сͥ'' ȸƤФޤ
.Pp
Cronyx-Sigma ץѤΥǥХüե
.Pa /dev/*
ϡ
.Xr MAKEDEV 8
ˤäƺޤ
ȤСʲΤ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ȥǥ (DSR) 
.It TIOCM_CTS 
ǽ (CTS) 
.It TIOCM_CD  
ǡꥢп (CD) 
.It TIOCM_DTR 
ǡüǥ (DTR) 
.It TIOCM_RTS 
׵ (RTS) 
.El
.El
.Sh Ʊɥ饤
.Pp
Ʊͥȥ˥Сͥϡ
.Xr cxconfig 8
桼ƥƥˤäƱ⡼ɤꤹȡ
ͥåȥ󥿥ե ``cx#''
(#  0  47 ޤǤΥֹͥ) ȤƥǽǤ
٤ƤɸŪʥͥåȥ󥿥եѥ᡼ϡ
.Xr ifconfig 8
ˤäǽǤ
ޤ
.Xr cxconfig 8
ޥɤϡĥ줿ͥ륪ץѹ䡢
̥٥Υեȥץȥ
(PpP  Cisco HDLC ʤ) ˻Ѥޤ
.Pp
˥СͥƱ⡼ɤǤƱ⡼ɤǤѤ뤳ȤǤޤ
ǥեȤǤƱ⡼ɤꤵƤꡢ⡼ɤ
.Xr cxconfig 8
桼ƥƥˤäѹǽǤ
ͥ뤬ӥ (Ʊͥ뤬ץ֤ξ䡢
ͥåȥ󥿥եư (up) ξ)
δ֡⡼ɤϥ֥åޤ
.Sh Ʊݥȥġݥȥץȥ
.Pp
Cronyx-Sigma ɥ饤ФϡȤ߹ߤƱݥȥġݥȥץȥ
(sppp) Ѥޤ
ܥץȥˤϡPpP/HDLC  Cisco/HDLCkeepalive ѥåȤˤ
ưŪʥͥФ⥵ݡȤƤޤ
sppp ץȥ륻åȤΩ⥸塼ȤƼ졢
¾ƱꥢͥΥɥ饤ФˤäƻѤ뤳ȤǽǤ
BSD/386 (BSDI) Ѥ
ɥ饤ФǤϡOS ¦ǼƤŪƱץȥΥåȤ
ǽǤץȥ륻åȤϡ``cxconfig ext'' ޥ
(
.Xr cxconfig 8
򻲾) ˤäǽǤ
.Sh ͥ륪ץδ
.Pp
.Xr cxconfig 8
桼ƥƥϡͥ륪ץꤹΤ˻Ѥޤ
ͥ륪ץϡ̾ڥ졼ƥ󥰥ƥबưݤ (Ȥ
.Pa /etc/rc
եʤɤ) ꤵޤ
٤Ƥξˤơ
٤ƤΥץ󤬰̣ĤȤϸ¤ʤȤդƤ
ޤ
ץˤäƤϡ
ͥ⤷ϥץΤΥϥ󥰥åפθˤʤޤ
.Pp
ºݤΥͥ륪ץ浡ǽϡ
ǥХüե /dev/cronyx Ф
Ĥ ioctl ͳǼƤꡢʲ ioctl ѤǤޤ
.Pp
.Bl -tag -width CXIOCXXXXXXX -compact
.It CXIOCGETMODE
ͥ륪ץͤޤ
.It CXIOCSETMODE
ͥ륪ץͤꤷޤ
.El
.Pp
ioctl ΥǡϰʲΥץ¤ΤΥɥ쥹ޤ:
.Bd -literal
typedef struct {
    unsigned char board;   /* ץֹǤꡢ0..2 */
    unsigned char channel; /* ֹͥǤꡢ0..15 */
    unsigned char type;    /* ͥ륿 (ɤ߹) */
    unsigned char iftype;  /* chan0 󥿥ե */
    unsigned long rxbaud;  /* ® */
    unsigned long txbaud;  /* ž® */
    cx_chan_mode_t mode;   /* ͥ⡼ */
    cx_chan_opt_t opt;     /* ̤Υͥ륪ץ */
    cx_opt_async_t aopt;   /* Ʊ⡼ɥץ */
    cx_opt_hdlc_t hopt;    /* hdlc ⡼ɥץ */
    cx_opt_bisync_t bopt;  /* bisync ⡼ɥץ */
    cx_opt_x21_t xopt;     /* x.21 ⡼ɥץ */
    cx_soft_opt_t sopt;    /* եȥץȾ֥ե饰 */
} cx_options_t;            /* 桼ǽʥץ */
.Ed
.Pp
.Bl -tag -width rxbaudxxx
.It Fa board
0..2 Ρץֹ
.It Fa channel
0..15 Ρֹͥ
.It Fa type
ͥΥ (ɤ߼Ѥΰ)
.It Fa iftype
0  ( 8 ) ͥΥ󥿥եס 0 - RS-232, 1 - RS-449/V.35
.It Fa rxbaud
ܡ졼
.It Fa txbaud
ܡ졼
.It Fa mode
ͥ⡼: Ʊ/HDLC/Bisync/X.21
.It Fa opt
̤Υͥ륪ץ
.It Fa aopt
Ʊ⡼ɥץ
.It Fa hopt
HDLC ⡼ɥץ
.It Fa bopt
Bisync ⡼ɥץ
.It Fa xopt
X.21 ⡼ɥץ
.It Fa sopt
եȥץȥ륪ץ
.El
.Sh Ϣե
.Bl -tag -width /dev/cxXXXX -compact
.It Pa /dev/cx??
Ʊͥ
.It Pa /dev/cronyx
ͥ륪ץѤΥǥХüե
.El
.Pp
ɥ饤ФޤǤ륽եϰʲ̤Ǥ:
.Pp
.Bl -tag -width /dev/cxXXXX -compact
.It Pa /sys/i386/isa/cronyx.c
.It Pa /sys/i386/isa/cx.c
.It Pa /sys/i386/isa/if_cx.c
.It Pa /sys/i386/isa/cronyx.h
.It Pa /sys/i386/isa/cxreg.h
.It Pa /sys/net/if_spppsubr.c
.It Pa /sys/net/if_sppp.h
.El
.Sh Ϣ
.Xr cxconfig 8 ,
.Xr ifconfig 8