2003-07-15 11:58:23 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 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-07-15 11:58:23 +00:00
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.\" patm(4) man page
|
|
|
|
.\"
|
|
|
|
.Dd July 15, 2003
|
|
|
|
.Dt PATM 4
|
2004-07-06 07:02:31 +00:00
|
|
|
.Os
|
2003-07-15 11:58:23 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm patm
|
2004-07-08 10:31:12 +00:00
|
|
|
.Nd "device driver for IDT77252 based ATM interfaces (ProSum and IDT)"
|
2003-07-15 11:58:23 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd device patm
|
|
|
|
.Cd device utopia
|
|
|
|
.Cd device atm
|
2004-07-08 10:31:12 +00:00
|
|
|
.Pp
|
2003-07-15 11:58:23 +00:00
|
|
|
.Cd options NATM
|
|
|
|
.Cd options LIBMBPOOL
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2003-07-21 07:51:29 +00:00
|
|
|
device driver supports ATM cards based on the IDT77252 chip.
|
|
|
|
It has been tested with ProSum's ProATM-155 cards and with IDT's evaluation
|
|
|
|
boards.
|
2003-07-15 11:58:23 +00:00
|
|
|
The driver interfaces with the
|
|
|
|
.Xr natm 4
|
|
|
|
framework,
|
|
|
|
.Xr netgraph 4
|
|
|
|
and HARP.
|
2004-07-03 18:29:24 +00:00
|
|
|
It provides only PVC services.
|
|
|
|
Signalling, ATMARP, ILMI and other
|
2003-07-15 11:58:23 +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
|
2004-07-03 18:29:24 +00:00
|
|
|
The driver supports UBR, CBR, VBR and ABR traffic.
|
|
|
|
Supported AALs are:
|
2003-07-21 07:51:29 +00:00
|
|
|
AAL0 (cell payloads), AAL5 and raw AAL.
|
|
|
|
The driver supports opening of VCI/VPI 0/0 in RX, raw AAL-mode.
|
|
|
|
This VC will receive all incoming cells (even those with non-zero GFC
|
|
|
|
fields and VPI/VCI values outside the allowed range) that are not
|
|
|
|
claimed by other open connections.
|
|
|
|
This may be used for monitoring purposes.
|
2003-07-15 11:58:23 +00:00
|
|
|
.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.patm Ns Ar N Ns Va .istats
|
2003-07-15 11:58:23 +00:00
|
|
|
Returns a list of
|
2004-07-08 10:31:12 +00:00
|
|
|
.Vt uint32_t
|
2003-07-15 11:58:23 +00:00
|
|
|
statistic counters with internal driver statistics.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.patm Ns Ar N Ns Va .eeprom
|
2003-07-15 11:58:23 +00:00
|
|
|
This is a read-only variable containing the contents of the on-board EEPROM
|
|
|
|
device.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.patm Ns Ar N Ns Va .lbuf_max
|
2003-07-15 11:58:23 +00:00
|
|
|
This puts an upper limit on the number of large receive buffers the
|
2003-07-21 07:51:29 +00:00
|
|
|
driver will allocate.
|
2004-07-08 10:31:12 +00:00
|
|
|
This is a read-only variable that can be set via a
|
|
|
|
.Xr loader 8
|
|
|
|
tunable.
|
|
|
|
.It Va hw.atm.patm Ns Ar N Ns Va .tx_maxmaps
|
2003-07-15 11:58:23 +00:00
|
|
|
This is the upper limit of transmission DMA maps the driver will allocate.
|
2004-07-08 10:31:12 +00:00
|
|
|
This is read-only but may be set via a
|
|
|
|
.Xr loader 8
|
|
|
|
tunable.
|
|
|
|
.It Va hw.atm.patm Ns Ar N Ns Va .debug
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2004-07-03 18:29:24 +00:00
|
|
|
These are debugging flags.
|
|
|
|
See
|
2004-07-08 10:31:12 +00:00
|
|
|
.Pa src/sys/dev/patm/if_patmvar.h
|
2003-07-21 07:51:29 +00:00
|
|
|
for the possible flags.
|
2004-07-08 10:31:12 +00:00
|
|
|
This may be initialized via a
|
|
|
|
.Xr loader 8
|
|
|
|
tunable.
|
|
|
|
.It Va hw.atm.patm Ns Ar N Ns Va .regs
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2003-07-15 11:58:23 +00:00
|
|
|
Returns the current values of the card's registers.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.atm.patm Ns Ar N Ns Va .tsq
|
2003-07-15 11:58:23 +00:00
|
|
|
Returns the transmit status queue.
|
|
|
|
.El
|
|
|
|
.Pp
|
2004-07-08 10:31:12 +00:00
|
|
|
When loaded, the driver initializes several variables from
|
|
|
|
.Xr loader 8
|
|
|
|
tunables:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va hw.patm Ns Ar N Ns Va .lbuf_max
|
|
|
|
This initializes the corresponding
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable and defines an upper
|
2003-07-15 11:58:23 +00:00
|
|
|
limit on the number of large receive buffers (mbuf clusters).
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.patm Ns Ar N Ns Va .tx_maxmaps
|
|
|
|
This initializes the corresponding
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable and is the maximum
|
2003-07-15 11:58:23 +00:00
|
|
|
number of DMA maps for transmission that the driver will allocated.
|
2004-07-08 10:31:12 +00:00
|
|
|
.It Va hw.patm Ns Ar N Ns Va .debug
|
|
|
|
.Bf Em
|
|
|
|
(Only if debugging enabled.)
|
|
|
|
.Ef
|
2003-07-15 11:58:23 +00:00
|
|
|
Initializes the debugging flags.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The driver supports the media options
|
2004-07-08 10:31:12 +00:00
|
|
|
.Cm sdh , noscramb
|
2003-07-15 11:58:23 +00:00
|
|
|
and
|
2004-07-08 10:31:12 +00:00
|
|
|
.Cm unassigned
|
2003-07-15 11:58:23 +00:00
|
|
|
(see
|
|
|
|
.Xr utopia 4 )
|
2003-07-21 07:51:29 +00:00
|
|
|
when the card is a 155MBit card.
|
|
|
|
Both PMC-Sierra S/UNI and IDT77155 PHY chips are supported for these cards.
|
|
|
|
For 25MBit cards the IDT77105 is supported.
|
2003-07-15 11:58:23 +00:00
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
.Bd -literal
|
|
|
|
patm1: <NICStAR (77222/77252) ATM adapter> port 0xc000-0xc0ff mem 0xf8000000-0xf83fffff,0xf4000000-0xf4000fff irq 11 at device 8.0 on pci2
|
|
|
|
patm1: IDT77252 155MBit interface; idt77252 Rev. G; IDT77155 PHY
|
|
|
|
patm1: 128K x 32 SRAM; 4096 connections
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr natm 4 ,
|
|
|
|
.Xr natmip 4 ,
|
|
|
|
.Xr utopia 4
|
2010-05-13 12:07:55 +00:00
|
|
|
.Sh ACKNOWLEDGEMENTS
|
|
|
|
Thanks to Christian Bucari from ProSum for lending two of these cards to enable
|
|
|
|
the development of this driver.
|
|
|
|
Thanks also for answering my questions.
|
|
|
|
.Sh AUTHORS
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Harti Brandt Aq Mt harti@FreeBSD.org
|
2003-07-15 11:58:23 +00:00
|
|
|
.Sh CAVEATS
|
|
|
|
The card fails to generate an interrupt if a cell is received in AAL0 mode
|
2003-07-21 07:51:29 +00:00
|
|
|
that has the MSB of the PTI field cleared.
|
|
|
|
Therefore cells will be delivered on the next receive interrupt which can happen
|
|
|
|
either when the receive status queue is full, or a cell with the last bit of
|
|
|
|
the PTI set is received.
|
2003-07-15 11:58:23 +00:00
|
|
|
.Pp
|
|
|
|
Although the card supports AAL3/4 the driver does not.
|
|
|
|
.Pp
|
|
|
|
The rate tables used by this driver are not the tables recommended by IDT
|
2003-07-21 07:51:29 +00:00
|
|
|
(they are wrong anyway).
|
|
|
|
The driver's tables are slightly more aggressive than IDT's.
|
|
|
|
That means, that the actual cell rate can be slightly higher than the
|
|
|
|
specified.
|
|
|
|
This is in contrast to the IDT tables where cell rates 5% less than the
|
|
|
|
allowed one have been observed.
|
|
|
|
This can be changed by changing the program that generates these tables,
|
|
|
|
found in
|
|
|
|
.Pa /usr/src/sys/dev/patm/genrtab ,
|
|
|
|
and regenerating them.
|
2003-07-15 11:58:23 +00:00
|
|
|
.Pp
|
|
|
|
The reported media for the 155MBit cards will always be OC3/MM, because
|
2003-07-21 07:51:29 +00:00
|
|
|
there is no (known to me) way to figure out the actual medium.
|
|
|
|
The medium should really be coded in the EEPROM by the manufacturer.
|
2003-07-15 11:58:23 +00:00
|
|
|
.Pp
|
|
|
|
The Tx cell counter in the utopia statistics is wrong, because the chip
|
2003-07-21 07:51:29 +00:00
|
|
|
uses idle cells for spacing and the PHY counts these cells.
|
|
|
|
While there is a configuration option for the chip to switch of these cells
|
2003-07-15 11:58:23 +00:00
|
|
|
and, according to the documentation, this should not influence cell spacing,
|
2004-07-08 10:31:12 +00:00
|
|
|
it does, so the driver lets the chip generate idle cells.
|