2003-06-17 16:14:31 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2001-2003
|
|
|
|
.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus).
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2004-07-08 10:31:12 +00:00
|
|
|
.\" Author: Hartmut Brandt <harti@FreeBSD.org>
|
2003-06-17 16:14:31 +00:00
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.\" hatm(4) man page
|
|
|
|
.\"
|
|
|
|
.Dd May 15, 2003
|
|
|
|
.Dt HATM 4
|
2004-07-06 07:02:31 +00:00
|
|
|
.Os
|
2003-06-17 16:14:31 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm hatm
|
2004-07-08 10:31:12 +00:00
|
|
|
.Nd "device driver for Fore/Marconi HE155 and HE622 ATM interfaces"
|
2003-06-17 16:14:31 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd device hatm
|
|
|
|
.Cd device utopia
|
2003-06-25 16:04:19 +00:00
|
|
|
.Cd device atm
|
2004-07-08 10:31:12 +00:00
|
|
|
.Pp
|
2003-06-17 16:14:31 +00:00
|
|
|
.Cd options NATM
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
device driver supports the FORE (now Marconi) HE155 and HE622 ATM interface
|
|
|
|
cards.
|
|
|
|
The driver interfaces with the
|
|
|
|
.Xr natm 4
|
|
|
|
framework,
|
|
|
|
.Xr netgraph 4
|
|
|
|
and the HARP ATM stack.
|
2004-07-03 18:29:24 +00:00
|
|
|
It provides only PVC services.
|
|
|
|
Signalling, ATMARP, ILMI and other
|
2003-06-17 16:14:31 +00:00
|
|
|
higher layer protocols are implemented using
|
|
|
|
.Xr netgraph 4
|
|
|
|
or HARP.
|
|
|
|
.Pp
|
|
|
|
For configuring the card for IP see
|
|
|
|
.Xr natmip 4 .
|
|
|
|
.Pp
|
|
|
|
The following sysctls are recognized by the driver additionally to those
|
|
|
|
handled by
|
|
|
|
.Xr utopia 4 :
|
2004-07-08 10:31:12 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va hw.atm.hatm.natm_traffic
|
2004-07-03 18:29:24 +00:00
|
|
|
This is the traffic type to be used for NATM pvc connections.
|
|
|
|
The type of
|
2003-06-17 16:14:31 +00:00
|
|
|
this variable is integer and it must have one of the values 0 (UBR) or 1 (CBR).
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm.natm_pcr
|
2003-06-17 16:14:31 +00:00
|
|
|
This is the peak cell rate to be used for NATM CBR connections.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .stats
|
2003-06-17 16:14:31 +00:00
|
|
|
Contains an array of
|
|
|
|
.Vt uint32_t
|
|
|
|
with device specific statistics.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .istats
|
2003-06-17 16:14:31 +00:00
|
|
|
Contains an array of
|
|
|
|
.Vt uint32_t
|
|
|
|
with internal driver statistics.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .debug
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2004-07-03 18:29:24 +00:00
|
|
|
These are the debugging flags.
|
|
|
|
See
|
2004-07-08 10:31:12 +00:00
|
|
|
.Pa src/sys/dev/hatm/if_hatmvar.h
|
2003-06-17 16:14:31 +00:00
|
|
|
for the possible flags.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .tsr
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2004-07-03 18:29:24 +00:00
|
|
|
This is an array containing all transmission status registers.
|
|
|
|
For each of the
|
2003-06-17 16:14:31 +00:00
|
|
|
4096 possible VCCs there are 15 32-bit registers.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .tpd
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2003-06-17 16:14:31 +00:00
|
|
|
This is an array containing all on card current transmission packet descriptors.
|
|
|
|
For each of the 4096 possible VCCs there are 16 32-bit registers.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .mbox
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2003-06-17 16:14:31 +00:00
|
|
|
This is an array containing the mbox registers.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .cm
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2003-06-17 16:14:31 +00:00
|
|
|
This is an array containing all connection memory registers.
|
|
|
|
The first 32-bit integer of this array is the ABR base address.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .heregs
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2003-06-17 16:14:31 +00:00
|
|
|
This is an array containing all card registers including SUNI and the FLASH ROM.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.hatm Ns Ar N Ns Va .lbmem
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2003-06-17 16:14:31 +00:00
|
|
|
Returns the contents of the local memory.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The driver supports the media options
|
2004-07-08 10:31:12 +00:00
|
|
|
.Cm sdh , noscramb
|
2003-06-17 16:14:31 +00:00
|
|
|
and
|
2004-07-08 10:31:12 +00:00
|
|
|
.Cm unassigned
|
2003-06-17 16:14:31 +00:00
|
|
|
(see
|
2004-07-08 10:31:12 +00:00
|
|
|
.Xr utopia 4 ) .
|
2003-06-17 16:14:31 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
When attaching to a device the driver checks the kernel environment
|
|
|
|
(see
|
2004-07-08 10:31:12 +00:00
|
|
|
.Xr kenv 1 )
|
2004-07-03 18:29:24 +00:00
|
|
|
to see if the default queues sizes should be overwritten or not.
|
|
|
|
The
|
2003-06-17 16:14:31 +00:00
|
|
|
following variables are checked and interpreted as unsigned integer
|
|
|
|
values (in either radix):
|
2004-07-08 10:31:12 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbps0_size
|
2004-07-03 18:29:24 +00:00
|
|
|
Size of the small receive buffer pool 0.
|
|
|
|
This pool is used for all
|
|
|
|
except raw AAL connections.
|
|
|
|
The pool size must be a power of two between
|
|
|
|
4 and 8192 inclusive.
|
|
|
|
When attaching the driver allocates this number
|
2003-06-17 16:14:31 +00:00
|
|
|
of mbufs.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbps0_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt threshold for small receive buffer pool 0.
|
|
|
|
When the number of free
|
2003-06-17 16:14:31 +00:00
|
|
|
buffers in the pool falls below this threshold it generates an interrupt
|
|
|
|
so that the driver can refill the pool.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbpl0_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Size of the large receive buffer pool 0.
|
|
|
|
This pool is used for all
|
|
|
|
except raw AAL connections.
|
|
|
|
The pool size must be a power of two between
|
|
|
|
4 and 8192 inclusive.
|
|
|
|
When attaching the driver allocates this number
|
2003-06-17 16:14:31 +00:00
|
|
|
of mbufs with clusters.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbpl0_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt threshold for large receive buffer pool 0.
|
|
|
|
When the number of free
|
2003-06-17 16:14:31 +00:00
|
|
|
buffers in the pool falls below this threshold it generates an interrupt
|
|
|
|
so that the driver can refill the pool.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq0_size
|
2004-07-03 18:29:24 +00:00
|
|
|
Size of receive buffer return queue 0.
|
|
|
|
This queue is used to return buffers
|
|
|
|
filled with received frames to the driver.
|
|
|
|
The size must be a power of 2
|
2003-06-17 16:14:31 +00:00
|
|
|
between 1 and 16384 inclusive.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq0_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt threshold for receive buffer return queue 0.
|
|
|
|
This threshold
|
2003-06-17 16:14:31 +00:00
|
|
|
should only be triggered in exceptional cases.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq0_tout
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt timeout for receive buffer return queue 0.
|
|
|
|
An interrupt is generated
|
|
|
|
after this time if the queue is not empty.
|
|
|
|
The number is in internal card
|
2003-06-17 16:14:31 +00:00
|
|
|
ticks.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq0_pcnt
|
2004-07-03 18:29:24 +00:00
|
|
|
Packet count threshold for receive buffer return queue 0.
|
|
|
|
An interrupt
|
2003-06-17 16:14:31 +00:00
|
|
|
is generated if this number of packets is in the queue.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbps1_size
|
2004-07-03 18:29:24 +00:00
|
|
|
Size of the small receive buffer pool 1.
|
|
|
|
This pool is used for all
|
|
|
|
raw AAL connections.
|
|
|
|
The pool size must be a power of two between
|
|
|
|
4 and 8192 inclusive.
|
|
|
|
When attaching the driver allocates this number
|
2003-06-17 16:14:31 +00:00
|
|
|
of mbufs.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbps1_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt threshold for small receive buffer pool 1.
|
|
|
|
When the number of free
|
2003-06-17 16:14:31 +00:00
|
|
|
buffers in the pool falls below this threshold it generates an interrupt
|
|
|
|
so that the driver can refill the pool.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq1_size
|
2004-07-03 18:29:24 +00:00
|
|
|
Size of receive buffer return queue 1.
|
|
|
|
This queue is used to return buffers
|
|
|
|
filled with received cells to the driver.
|
|
|
|
The size must be a power of 2
|
2003-06-17 16:14:31 +00:00
|
|
|
between 1 and 16384 inclusive.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq1_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt threshold for receive buffer return queue 1.
|
|
|
|
This threshold
|
2003-06-17 16:14:31 +00:00
|
|
|
should only be triggered in exceptional cases.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq1_tout
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt timeout for receive buffer return queue 1.
|
|
|
|
An interrupt is generated
|
|
|
|
after this time if the queue is not empty.
|
|
|
|
The number is in internal card
|
2003-06-17 16:14:31 +00:00
|
|
|
ticks.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .rbrq1_pcnt
|
2004-07-03 18:29:24 +00:00
|
|
|
Packet count threshold for receive buffer return queue 0.
|
|
|
|
An interrupt
|
2003-06-17 16:14:31 +00:00
|
|
|
is generated if this number of cells is in the queue.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .irq0_size
|
2004-07-03 18:29:24 +00:00
|
|
|
Size of interrupt queue 0.
|
|
|
|
This must be a number between 1 and 1023 inclusive.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .irq0_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Interrupt retrigger threshold of interrupt queue 0.
|
|
|
|
A new interrupt is trigger
|
2003-06-17 16:14:31 +00:00
|
|
|
if the queue fill state reaches this threshold and the interrupt was no
|
|
|
|
served.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .tbrq0_size
|
2004-07-03 18:29:24 +00:00
|
|
|
Transmit buffer return queue 0 size.
|
|
|
|
This queue is used to feed back empty
|
|
|
|
buffers of transmitted frames back to the driver.
|
|
|
|
It must be a power of 2
|
2003-06-17 16:14:31 +00:00
|
|
|
between 1 and 4096 inclusive.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .tbrq0_thresh
|
2004-07-03 18:29:24 +00:00
|
|
|
Transmit buffer return queue 0 threshold.
|
|
|
|
An interrupt is generated if the
|
2003-06-17 16:14:31 +00:00
|
|
|
queue fill state reaches this point.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .tpdrq_size
|
2004-07-03 18:29:24 +00:00
|
|
|
Transmit descriptor ready queue size.
|
|
|
|
This queue is used by the driver
|
|
|
|
to feed transmit descriptors into the card.
|
|
|
|
The size must be a power of 2
|
2003-06-17 16:14:31 +00:00
|
|
|
between 1 and 16384 inclusive.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .tpdmax
|
2004-07-03 18:29:24 +00:00
|
|
|
Maximum number of active TPDs per connection.
|
|
|
|
This controls the maximum
|
2003-06-17 16:14:31 +00:00
|
|
|
number of outstanding packet chunks per connection and thus the maximum
|
2004-07-03 18:29:24 +00:00
|
|
|
delay packets can have because of queueing on the adapter.
|
|
|
|
If set to 0,
|
2003-06-17 16:14:31 +00:00
|
|
|
a connection can eat up all available TPDs.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.hatm Ns Ar N Ns Va .mbuf_max_pages
|
2003-10-29 15:07:10 +00:00
|
|
|
Maximum number of memory pages allocated to small external mbufs.
|
|
|
|
This must not be zero and not larger than 65536.
|
2003-06-17 16:14:31 +00:00
|
|
|
.El
|
2010-05-13 12:07:55 +00:00
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
.Bd -literal
|
|
|
|
hatm0: <FORE HE> mem 0xd2600000-0xd26fffff irq 9 at device 15.0 on pci2
|
|
|
|
hatm0: ForeRunnerHE 622, Rev. D, S/N 2949834, MAC=00:20:48:2d:02:ca
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr natm 4 ,
|
|
|
|
.Xr natmip 4 ,
|
|
|
|
.Xr utopia 4 ,
|
|
|
|
.Xr ifconfig 8 ,
|
|
|
|
.Xr route 8
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An Harti Brandt Aq harti@FreeBSD.org
|
2003-06-17 16:14:31 +00:00
|
|
|
.Sh CAVEATS
|
|
|
|
When putting a HE155 into a 64-bit 66MHz PCI slot the machine may hang.
|
2004-06-21 17:42:49 +00:00
|
|
|
This occurs very early in the POST so that even the display does not turn on.
|
2003-10-29 15:07:10 +00:00
|
|
|
The HE155 runs only in 33MHz slots (either 32 or 64-bit).
|
|
|
|
HE622 cards work just fine in 64-bit slots.
|
2003-06-17 16:14:31 +00:00
|
|
|
.Pp
|
|
|
|
The driver may not work with bounce buffer, because of
|
2004-07-08 10:31:12 +00:00
|
|
|
.Xr bus_dmamap_sync 9
|
2003-06-17 16:14:31 +00:00
|
|
|
missing the
|
|
|
|
.Fa offset
|
|
|
|
and
|
|
|
|
.Fa len
|
2004-07-08 10:31:12 +00:00
|
|
|
arguments the
|
|
|
|
.Nx
|
|
|
|
function has.
|