Fix numerous spelling mistakes.
[dragonfly/vkernel-mp.git] / share / man / man4 / man4.i386 / ray.4
blob4d21f109e8b04439cfa138b4d01e4b0dec2db026
1 .\"
2 .\" Copyright (C) 2000
3 .\" Dr. Duncan McLennan Barclay, dmlb@ragnet.demon.co.uk.
4 .\"
5 .\"  All rights reserved.
6 .\"
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
9 .\" are met:
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\"    notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\"    notice, this list of conditions and the following disclaimer in the
14 .\"    documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the author nor the names of any co-contributors
16 .\"    may be used to endorse or promote products derived from this software
17 .\"    without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY DUNCAN BARCLAY AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED.  IN NO EVENT SHALL DUNCAN BARCLAY OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .\"  $FreeBSD: src/share/man/man4/man4.i386/ray.4,v 1.8.2.1 2001/10/23 07:25:48 ru Exp $
32 .\"  $DragonFly: src/share/man/man4/man4.i386/ray.4,v 1.3 2007/05/13 18:33:56 swildner Exp $
33 .\"
34 .Dd March 21, 2000
35 .Dt RAY 4 i386
36 .Os
37 .Sh NAME
38 .Nm ray
39 .Nd Raytheon Raylink/Webgear Aviator PCCard driver
40 .Sh SYNOPSIS
41 .Cd "device ray"
42 .Sh DESCRIPTION
43 The
44 .Nm
45 driver provides support for
46 .Tn "Raytheon Raylink"
47 adapters (commonly available as
48 .Tn "Webgear Aviator" ,
49 .Tn "Webgear Aviator Pro"
50 and
51 .Tn "Raylink PC Card"
52 devices.)
53 The core of the
54 .Tn Raylink
55 cards is a frequency hopping PHY with an
56 .Tn IEEE
57 802.11
58 style MAC that interacts with the host using shared memory and mailboxes.
59 .Pp
60 The
61 .Nm
62 driver currently supports ad-hoc operation mode and the
63 .Tn Aviator
64 cards.
65 Infrastructure mode, interworking with
66 .Tn "Windows 2000" Ns / Ns Tn Linux Ns / Ns Nx ,
67 .Tn "Raylink PC Cards"
68 and
69 .Tn "Aviator Pros"
70 is rudimentary and in active development.
71 The
72 .Nm
73 driver currently encapsulates all IP and ARP traffic as
74 .Tn Ethernet
75 2 frames within an
76 .Tn IEEE
77 802.11
78 frame.
79 Other translations will be forthcoming as needed.
80 Transmit speed is
81 selectable between 0.5Mbps, 1Mbp , 1.5Mbps or 2Mbps all with auto fallback.
82 .Pp
83 By default, the
84 .Nm
85 driver configures the card for ad-hoc operation.
86 In this mode,
87 stations can communicate amongst each other without the aid of an access
88 point.
89 To join a managed service set, the driver must be set for infrastructure mode
90 using the
91 .Xr raycontrol 8
92 utility.
93 .Pp
94 There are two known firmware versions; version 4 and version 5.
95 Version 4 firmware was shipped on the orignal
96 .Tn "Webgear Aviators"
97 Version 5 firmware is
98 used as part of the
99 .Tn "Windows 2000"
100 upgrade from
101 .Tn Webgear
102 and on the
103 .Tn "Aviator Pro" ,
105 .Tn "Raylink PC Cards"
106 cards.
107 Version 4 is not likely to be 100%
108 .Tn IEEE
109 802.11
110 compliant - version 5 should be.
112 For more information on configuring this device, see
113 .Xr ifconfig 8
115 .Xr raycontrol 8 .
116 .Sh DIAGNOSTICS
117 The following messages occur when there are problems
118 setting up the memory mapped buffers due to nits in
119 .Xr pccardd 8 .
120 .Bl -diag
121 .It "ray?: pccardd did not map CM - giving up"
122 See the
123 .Sx BUGS
124 section and contact the author for help enclosing a copy
125 of the output from
126 .Xr dmesg 8 .
127 This message only occurs on 3.x systems.
128 .It "ray?: fixing up CM ..."
129 .It "ray?: fixing up AM ..."
130 The driver is fixing up PCCard memory management after mis-configuration
132 .Xr pccardd 8 ,
133 benign.
136 .Bl -diag
137 On 4.x and -current systems the following messages can occur when the
138 memory mapped buffers are set up.
139 .It "ray?: allocated common memory:"
140 .It ".  start 0xd0000 count 0xc0000 flags 0x40"
141 Benign.
142 .It "ray?: allocated attribute memory:"
143 .It ".  start 0xdc000 count 0x1000 flags 0x50"
144 Benign.
145 .It "ray?: allocated irq:"
146 .It ".  start 0x9 count 0x1"
147 Benign.
148 .It "ray?: Cannot allocate attribute memory"
149 .It "ray?: Cannot allocate common memory"
150 .It "ray?: Cannot allocate irq"
151 .It "ray?: Failed to setup irq"
152 .It "ray?: CARD_SET_MEMORY_OFFSET returned 0x??"
153 .It "ray?: CARD_SET_RES_FLAGS returned 0x??"
154 See the
155 .Sx BUGS
156 section and contact the author for help enclosing a copy
157 of the output from
158 .Xr dmesg 8
159 in your email.
162 .Bl -diag
163 If the kernel is booted with the verbose flag turned on then the
164 extra information is printed when the driver is probed.
165 These messages are also seen when the
166 .Dv RAY_DBG_BOOTPARAM
167 bit in the
168 .Dv RAY_DEBUG
169 option is turned on, as is the case for all existing
170 versions of the driver.
171 .It "ray?: memory start 0x???? count 0x???? flags 0x???? offset 0x????"
172 Description of memory map settings on entry to the driver.
173 .It "ray?: irq start 0x???? count 0x????"
174 Description of irq settings on entry to the driver (only on 4.1 and
175 above).
178 On start-up the driver will report hardware failures thus:
179 .Bl -diag
180 .It "ray?: card failed self test: status 0x??<???>"
181 The card failed to come ready after it was plugged in to the PCCard
182 slot.
183 The most common cause of this message is incorrect PCCard memory
184 management (indicated by a status of 0xff or 0x55).
185 Bent cards might say that the receiver calibration failed.
186 If you are brave enough removing the
187 base of the case can resurrect cards (no warranties etc.).
188 .It "ray?: unsupported firmware version 0x??"
189 Self explanatory.
190 Contact the author for help enclosing a copy
191 of the output from
192 .Xr dmesg 8 .
195 The following messages are enabled using the
196 .Cm debug
197 option of
198 .Xr ifconfig 8 .
199 .Bl -diag
200 .It "ray?: cannot transmit - not running"
201 A packet was ready for transmission but the NIC is not connected to a
202 BSS.
203 May occur when removing the PCCard.
204 .It "ray?: cannot transmit - no network"
205 The wireless NIC has roamed from an access point and not connected with a new
206 one yet.
207 .It "ray?: cannot transmit - ECF busy"
208 The controller firmware was busy when a packet was about to be sent out.
209 It will be retried automatically.
210 .It "ray?: mbuf too long ??"
211 Should never happen, and if it does represents something wrong in the
212 generic ethernet driver in the kernel.
213 .It "ray?: could not pullup ether"
214 Problem with re-aligning mbufs.
215 Very unlikely to happen.
216 .It "ray?: unknown framing type ??"
217 An impossible error - mail the author.
218 .It "ray?: could not translate packet"
219 An error occurred when trying to re-frame a packet for transmission.
220 .It "ray?: ECF busy, dropping packet"
221 The NIC was busy just before a packet was to be transmitted.
222 .It "ray?: tx completed but status is fail"
223 Typically associated with transmissions to out of range NICs.
224 .It "ray?: packet too big or too small"
225 A received packet was impossibly small or too large to fit into an mbuf.
226 .It "ray?: MGETHDR failed"
227 The driver could not get a mbuf to store a received packet into.
228 Try increasing
229 .Dv MAXUSERS
230 in your kernel configuration.
231 .It "ray?: MCLGET failed"
232 The driver could not get a mbuf to store a received packet into.
233 Try increasing
234 .Dv MAXUSERS
235 in your kernel configuration.
236 .It "ray?: bad length current 0x?? pktlen 0x??"
237 The lengths of a fragmented packet were inconsistent.
238 .It "ray?: bad rcs index 0x??"
239 The index of the buffer used for part of a fragmented packet is
240 outside of the usable range.
241 .It "ray?: header not version 0 fc0 0x??"
242 The received
243 .Tn IEEE
244 802.11
245 packet had an unkown header type.
246 Represents link corruption or non standard nodes in the network.
247 .It "ray?: unknown packet fc0 0x??"
248 The received
249 .Tn IEEE
250 802.11
251 packet type is unknown.
252 Represents link corruption or non standard nodes in the network.
253 .It "ray?: reserved DATA packet subtype 0x??"
254 The received
255 .Tn IEEE
256 802.11
257 data packet has a reserved (i.e. not allowed) subtype.
258 Represents link corruption or non standard nodes in the network.
259 .It "ray?: MGT TODS/FROMDS wrong fc1 0x??"
260 The received
261 .Tn IEEE
262 802.11
263 management packet had a malformed header.
264 Represents link corruption or non standard nodes in the network.
265 .It "ray?: unexpected MGT packet subtype 0x??"
266 The received
267 .Tn IEEE
268 802.11
269 management packet was of a subtype that the NIC
270 should have processed.
271 Benign, but might represent buggy firmware.
272 .It "ray?: reserved MGT packet subtype 0x??"
273 The received
274 .Tn IEEE
275 802.11
276 management packet has a reserved (i.e. not allowed)
277 subtype.
278 Represents link corruption or non standard nodes in the network.
279 .It "ray?: open system authentication request"
280 Self explanatory and for testing
281 .Tn "Aviator Pro"
282 interworking.
283 .It "ray?: authentication failed with status ??"
284 Self explanatory and currently represents a bug as the driver never
285 requests authentication.
286 .It "ray?: shared key authentication request"
287 Self explanatory and for testing
288 .Tn "Aviator Pro"
289 interworking.
290 .It "ray?: reserved authentication subtype 0x??"
291 An authentication request has been received for a reserved (i.e. not allowed)
292 subtype.
293 Represents link corruption or non standard nodes in the network.
294 .It "ray?: CTL TODS/FROMDS wrong fc1 0x??"
295 The received
296 .Tn IEEE
297 802.11
298 management packet had a malformed header.
299 Represents link corruption or non standard nodes in the network.
300 .It "ray?: unexpected CTL packet subtype 0x??"
301 The received
302 .Tn IEEE
303 802.11
304 control packet was of a subtype that the NIC
305 should have processed.
306 Benign, but might represent buggy firmware.
307 .It "ray?: reserved CTL packet subtype 0x??"
308 The received
309 .Tn IEEE
310 802.11
311 control packet has a reserved (i.e. not allowed)
312 subtype.
313 Represents link corruption or non standard nodes in the network.
314 .It "ray?: bad ccs index 0x??"
315 The NIC has generated an interrupt with an incorrect control block.
316 .It "ray?: unexpected UPDATE_APM"
317 .It "ray?: unexpected TEST_MEM"
318 .It "ray?: unexpected SHUTDOWN"
319 .It "ray?: unexpected DUMP_MEM"
320 .It "ray?: unexpected START_TIMER"
321 The NIC has generated an interrupt signalling that
322 the indicated command has completed.
323 At present these commands are never
324 issued by the driver, so they represent firmware/hardware/driver bugs.
325 .It "ray?: unknown command 0x??"
326 The NIC has generated an interrupt for an unknown command completion.
327 Represents firmware/hardware/driver bugs.
328 .It "ray?: unexpected JAPAN_CALL_SIGNAL"
329 The NIC has generated an interrupt with a control block requesting
330 processing of a packet that is only ever used in Japanese RCR
331 certification tests.
332 Represents firmware/hardware/driver bugs unless you
333 are trying to certify the NICs in Japan (in which case you would have to
334 of modified the driver and this manual is out of date).
335 .It "ray?: spinning"
336 The controller firmware was busy when a command was about to be issued.
337 If the driver spins for too long then it will panic.
338 See the
339 .Sx BUGS
340 section for details.
341 .It "ray?: freeing free ccs 0x??"
342 Benign warning that may occur when the NIC is ejected.
344 .Sh SEE ALSO
345 .Xr arp 4 ,
346 .Xr netintro 4 ,
347 .Xr ifconfig 8 ,
348 .Xr pccardd 8 ,
349 .Xr raycontrol 8
350 .Sh HISTORY
353 device driver first appeared in
354 .Fx 3.3 .
355 .Sh AUTHORS
356 .An -nosplit
357 Early versions of this
359 driver were a port of the
361 driver by
362 .An "Christian E. Hopps" .
363 The driver
364 was re-structured by
365 .An Duncan Barclay Aq dmlb@FreeBSD.org ,
366 so that
367 .Xr dhclient 8
368 would work.
369 .Sh BUGS
370 Infra-structure mode is not supported yet.
371 The driver is likely to panic if it is set into this mode.
372 Testers are encouraged to contact the
373 author.
375 Currently
377 has a small problem managing and setting up the correct memory maps.
378 However, this driver should reset the
379 memory maps correctly - it works around
380 .Xr pccardd 8
381 (where it reads the CIS for common memory, sets it all up
382 and then throws it all away assuming the card is an
383 .Xr ed 4
384 driver...).
385 Note that this could be dangerous (because it doesn't interact with
386 .Xr pccardd 8 )
387 if you use other memory mapped cards at the same time or have
388 SCSI cards with on-board BIOS.
390 More encapsulations and translations could be supported, but they have
391 little value unless someone can demonstrate that the
393 cards will communicate with other manufacturers cards.
394 Version 4 and
395 firmware is not
396 .Tn IEEE
397 802.11
398 compliant, but version 5 is.
400 To communicate with
401 .Tn Windows
402 machines ensure that the
403 .Tn Windows
404 machine
405 creates the BSS/IBSS.
407 The driver currently panics on some errors that it should recover from.
408 These will be removed RSN.