1 '\" te
   2 .\" Copyright 2011 Jason King.  All rights reserved.
   3 .\" Copyright (c) 2001-2007 by Garrett D'Amore.
   4 .\" Redistribution and use in source and binary forms, with or without
   5 .\" modification, are permitted provided that the following conditions are met:
   6 .\" 1. Redistributions of source code must retain the above copyright notice,
   7 .\"    this list of conditions and the following disclaimer.
   8 .\" 2. Redistributions in binary form must reproduce the above copyright notice,
   9 .\"    this list of conditions and the following disclaimer in the documentation
  10 .\"    and/or other materials provided with the distribution.
  11 .\" 3. Neither the name of the author nor the names of any co-contributors may
  12 .\"    be used to endorse or promote products derived from this software
  13 .\"    without specific prior written permission.
  14 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
  15 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  16 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  17 .\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  18 .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  19 .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  20 .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  21 .\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  22 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  23 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  24 .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
  25 .\" Portions Copyright (c) 2007 by Sun Microsystems, Inc.  All Rights Reserved.
  26 
  27 .TH "PCN" "7D" "Jan 10, 2020"
  28 .
  29 .SH "NAME"
  30 \fBpcn\fR \- PCnet Ethernet device driver
  31 .SH "SYNOPSIS"
  32 .nf
  33 \fB/dev/pcn\fR
  34 .fi
  35 
  36 .SH "DESCRIPTION"
  37 The \fBpcn\fR driver is a multi\-threaded, loadable, clonable GLDv3\-based
  38 STREAMS driver supporting the Data Link Provider Interface \fBdlpi\fR(7P) for
  39 the AMD PCnet family of Ethernet controllers.
  40 .SH "APPLICATION PROGRAMMING INTERFACE"
  41 The \fBpcn\fR driver can be used as either a "style 1" or a "style 2" Data Link
  42 Service Provider. Physical points of attachment (PPAs) are interpreted as the
  43 instance number of the \fBpcn\fR controller as assigned by the
  44 operating environment.
  45 .sp
  46 .LP
  47 The values returned by the driver in the \fBDL_INFO_ACK\fR response are:
  48 .RS +4
  49 .TP
  50 .ie t \(bu
  51 .el o
  52 Maximum SDU is 1500.
  53 .RE
  54 .RS +4
  55 .TP
  56 .ie t \(bu
  57 .el o
  58 Minimum SDU is 0.
  59 .RE
  60 .RS +4
  61 .TP
  62 .ie t \(bu
  63 .el o
  64 The dlsap address length is 8.
  65 .RE
  66 .RS +4
  67 .TP
  68 .ie t \(bu
  69 .el o
  70 MAC type is \fBDL_ETHER\fR.
  71 .RE
  72 .RS +4
  73 .TP
  74 .ie t \(bu
  75 .el o
  76 SAP length is \-2. The 6\-byte physical address is immediately followed by a
  77 2\-byte SAP.
  78 .RE
  79 .RS +4
  80 .TP
  81 .ie t \(bu
  82 .el o
  83 Service mode is \fBDL_CLDLS\fR.
  84 .RE
  85 .RS +4
  86 .TP
  87 .ie t \(bu
  88 .el o
  89 The broadcast address is the 6\-byte Ethernet broadcast address
  90 (\fBff:ff:ff:ff:ff:ff\fR).
  91 .SH "CONFIGURATION"
  92 The \fBpcn\fR driver performs auto-negotiation to select the link speed and
  93 mode.  Link speed may be 100Mbps full\-duplex, 100Mbps half\-duplex,
  94 10Mbps full\-duplex, or 10Mbps half\-duplex, depending on the hardware
  95 adapter type.  See the \fIIEEE802.3\fR standard for more information.
  96 .sp
  97 .LP
  98 The capabilities advertised by the \fBpcn\fR device can be set using
  99 \fBdladm\fR(1m).  The driver supports a number of parameters whose names
 100 begin with \fBen_\fR (see below).  Each of these parameters contains a
 101 boolean value that determines if the device advertises that mode of
 102 operations.  The \fBadv_autoneg_cap\fR parameter controls whether
 103 auto-negotiation is performed.  If \fBadv_autoneg_cap\fR is set to 0, the
 104 driver forces the mode of operation selected by the first non-zero
 105 parameter in priority order as shown below:
 106 .sp
 107 .in +2
 108 .nf
 109                             (highest priority/greatest throughput)
 110         en_100fdx_cap           100Mbps full duplex
 111         en_10fdx_cap            10Mbps full duplex
 112                          (lowest priority/least throughput)
 113 .fi
 114 .in -2
 115 
 116 .sp
 117 .LP
 118 All capabilities default to enabled.  Note that changing any capability
 119 parameter causes the link to go down while the link partners renegotiate
 120 the link speed/duplex using the newly changed capabilities.
 121 .SH "ATTRIBUTES"
 122 See \fBattributes\fR(5) for a description of the following attributes:
 123 .sp
 124 
 125 .sp
 126 .TS
 127 box;
 128 c | c
 129 l | l .
 130 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 131 _
 132 Architecture    x86
 133 _
 134 Interface Stability     Committed
 135 .TE
 136 
 137 .SH "FILES"
 138 .ne 2
 139 .na
 140 \fB/dev/pcn\fR
 141 .ad
 142 .sp .6
 143 .RS 4n
 144 Special character device.
 145 .RE
 146 
 147 .sp
 148 .ne 2
 149 .na
 150 \fB/kernel/drv/amd64/pcn\fR
 151 .ad
 152 .sp .6
 153 .RS 4n
 154 Device driver (x86)
 155 .RE
 156 
 157 .SH "SEE ALSO"
 158 \fBattributes\fR(5), \fBstreamio\fR(7I), \fBdlpi\fR(7p)
 159 .sp
 160 .LP
 161 \fIIEEE 802.3\fR \(em Institute of Electrical and Electronics Engineers, 2002