Print this page
12309 errors in section 9e of the manual

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9e/mac_capab_transceiver.9e
          +++ new/usr/src/man/man9e/mac_capab_transceiver.9e
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  .\" You may only use this file in accordance with the terms of version
   5    5  .\" 1.0 of the CDDL.
   6    6  .\"
   7    7  .\" A full copy of the text of the CDDL should have accompanied this
   8    8  .\" source.  A copy of the CDDL is also available via the Internet at
   9    9  .\" http://www.illumos.org/license/CDDL.
  10   10  .\"
  11   11  .\"
  12   12  .\" Copyright (c) 2017, Joyent, Inc.
  13   13  .\"
  14      -.Dd Nov 26, 2017
       14 +.Dd February 15, 2020
  15   15  .Dt MAC_CAPAB_TRANSCEIVER 9E
  16   16  .Os
  17   17  .Sh NAME
  18   18  .Nm mac_capab_transceiver ,
  19   19  .Nm mct_info ,
  20   20  .Nm mct_read
  21   21  .Nd MAC capability for networking transceivers
  22   22  .Sh SYNOPSIS
  23   23  .In sys/mac_provider.h
  24   24  .Vt typedef struct mac_capab_transceiver mac_capab_transceiver_t;
↓ open down ↓ 124 lines elided ↑ open up ↑
 149  149  .El
 150  150  .Ss MAC Capability Structure
 151  151  When the device driver's
 152  152  .Xr mc_getcapab 9E
 153  153  function entry point is called with the capability requested set to
 154  154  .Sy MAC_CAPAB_TRANSCEIVER ,
 155  155  then the value of the capability structure is the following structure:
 156  156  .Bd -literal -offset indent
 157  157  typedef struct mac_capab_transceiver {
 158  158          uint_t  mct_flags;
 159      -        uint_t  mct_ntransceiveres;
      159 +        uint_t  mct_ntransceivers;
 160  160          int     (*mct_info)(void *driver, uint_t id,
 161  161                      mac_transceiver_info_t *infop),
 162  162          int     (*mct_read)(void *driver, uint_t id, uint_t page,
 163  163                      void *buf, size_t nbytes, off_t offset,
 164  164                      size_t *nread)
 165  165  } mac_capab_transceiver_t;
 166  166  .Ed
 167  167  .Pp
 168  168  If the device driver supports the
 169  169  .Sy MAC_CAPAB_TRANSCEIVER
↓ open down ↓ 8 lines elided ↑ open up ↑
 178  178  .Vt mct_flags
 179  179  to include all of the currently known extensions.
 180  180  The driver should intersect this list with the set that they actually
 181  181  support.
 182  182  At this time, no such features are defined and the driver should set the
 183  183  member to
 184  184  .Sy 0 .
 185  185  .It Sy mct_ntransceivers
 186  186  The value of
 187  187  .Sy mct_ntransceivers
 188      -indicates that the number of transceivers present in the device.
      188 +indicates the number of transceivers present in the device.
 189  189  For most devices, it is expected that this value will be set to one.
 190  190  However, some devices do support multiple transceivers and PHYs that
 191  191  show up behind a single logical MAC.
 192  192  .Pp
 193  193  It is expected that this value will not change across the lifetime of
 194  194  the device being attached.
 195  195  It is important to remember that this represents the total possible
 196  196  number of transceivers in the device, not how many are currently present
 197  197  and powered on.
 198  198  .Pp
↓ open down ↓ 25 lines elided ↑ open up ↑
 224  224  See the description above of
 225  225  .Sy mct_ntransceivers
 226  226  for more information on how the IDs are determined.
 227  227  .Pp
 228  228  The driver should then proceed to fill in basic information by calling
 229  229  the functions described in the section
 230  230  .Sx Information Functions .
 231  231  After successfully calling all of the functions, the driver should
 232  232  return
 233  233  .Sy 0 .
 234      -Othewrise, it should return the appropriate error number.
      234 +Otherwise, it should return the appropriate error number.
 235  235  For a full list of error numbers, see
 236  236  .Xr Intro 2 .
 237  237  Common values are:
 238  238  .Bl -tag -width Er -offset width
 239  239  .It Er EINVAL
 240  240  The transceiver identifier
 241  241  .Fa id
 242  242  was invalid.
 243  243  .It Er ENOTSUP
 244  244  This instance of the devices does not support a transceiver.
↓ open down ↓ 163 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX