]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - share/man/man4/man4.arm/npe.4
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / share / man / man4 / man4.arm / npe.4
1 .\"
2 .\" Copyright (c) 2006 Sam Leffler, Errno Consulting
3 .\"
4 .\" All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\"
15 .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD$
27 .\"
28 .Dd December 4, 2006
29 .Dt NPE 4 arm
30 .Os
31 .Sh NAME
32 .Nm npe
33 .Nd "Intel XScale Network Processing Engine (NPE) Ethernet device driver"
34 .Sh SYNOPSIS
35 To compile this driver into the kernel,
36 place the following lines in your
37 kernel configuration file:
38 .Bd -ragged -offset indent
39 .Cd "device npe"
40 .Cd "device npe_fw"
41 .Cd "device firmware"
42 .Cd "device qmgr"
43 .Cd "device miibus"
44 .Ed
45 .Sh DESCRIPTION
46 The
47 .Nm
48 driver provides support for Ethernet adapters based on the Intel
49 XScale Network Processing Engine (NPE).
50 The NPE must be loaded with firmware that is typically distributed
51 with boards that have this part.
52 Otherwise the firmware may be obtained at no cost from the Intel web site.
53 .Pp
54 The
55 .Nm
56 driver supports the following media types:
57 .Bl -tag -width ".Cm full-duplex"
58 .It Cm autoselect
59 Enable autoselection of the media type and options.
60 .It Cm 10baseT/UTP
61 Set 10Mbps operation.
62 .It Cm 100baseTX
63 Set 100Mbps (Fast Ethernet) operation.
64 .El
65 .Pp
66 The
67 .Nm
68 driver supports the following media options:
69 .Bl -tag -width ".Cm full-duplex"
70 .It Cm full-duplex
71 Set full duplex operation.
72 .El
73 .Pp
74 The
75 .Nm
76 driver supports polled operation when the system is
77 configured with device polling support,
78 .Xr polling 4 .
79 Note that for multi-port configurations polling and interrupt-style
80 operation should not be combined as one of the hardware queues
81 is shared by all ports.
82 .Pp
83 For further information on configuring this device, see
84 .Xr ifconfig 8 .
85 .\".Pp
86 .\"The
87 .\".Nm
88 .\"driver supports reception and transmission of extended frames
89 .\"for
90 .\".Xr vlan 4 .
91 .\"This capability of
92 .\".Nm
93 .\"can be controlled by means of the
94 .\".Cm vlanmtu
95 .\"parameter
96 .\"to
97 .\".Xr ifconfig 8 .
98 .Sh HARDWARE
99 The adapters supported by the
100 .Nm
101 driver exist only on boards that have an XScale processor.
102 .Sh DIAGNOSTICS
103 .Bl -diag
104 .It "npe%d: unit %d not supported"
105 The unit is larger than the maximum number built into the driver.
106 This should not happen as
107 .Nm
108 devices are not really probed for; they are statically enumerated.
109 .It "npe%d: Cannot find my PHY."
110 The associated PHY did not appear while probing the MII bus.
111 The relationship between PHYs and NPEs is statically defined
112 in the driver and may require alterations to the driver for new boards.
113 .It "npe%d: unable to allocate memory for %s ... buffers"
114 There is not enough memory available for allocation.
115 The driver pre-allocated memory during attach so this should not happen.
116 .It "npe%d: remember to fix rx q setup"
117 See
118 .Sx BUGS
119 below.
120 .It "npe%d: free mbuf at entry %u"
121 An mbuf was unexpectedly found on the device queue; the index of
122 the queue entry is printed.
123 .It "npe%d: too many fragments %u"
124 A frame was dropped on transmit because it was too fragmented and
125 the logic to de-fragment failed.
126 This should not happen.
127 .It "npe%d: device timeout"
128 The device has stopped responding to the network, or there is a problem with
129 the network connection (cable).
130 .El
131 .Pp
132 Other diagnostics exist and are not listed here;
133 they should be self-explanatory.
134 .Sh SEE ALSO
135 .Xr altq 4 ,
136 .Xr arp 4 ,
137 .Xr miibus 4 ,
138 .Xr netintro 4 ,
139 .Xr polling 4 ,
140 .Xr qmgr 4 ,
141 .\".Xr vlan 4 ,
142 .Xr ifconfig 8
143 .Sh HISTORY
144 The
145 .Nm
146 device driver first appeared in
147 .Fx 6.3 .
148 .Sh CAVEATS
149 This driver has been tested only with dual-port boards using the IXP425
150 such as the Gateworks Avila 2348.
151 Some changes to the driver may be required for other configurations.
152 .Sh BUGS
153 The hardware queues are not properly flushed when the interface
154 is marked down.
155 .Pp
156 The assignment of receive traffic classes to hardware queues
157 is presently incomplete.
158 Only the first 4 classes are assigned while there are 8 total.
159 The driver will print
160 .Dq Li "remember to fix rx q setup"
161 on startup as a reminder.
162 For the moment it is not a problem as all traffic arrives classified
163 with class 0.