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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9f/gld.9f
          +++ new/usr/src/man/man9f/gld.9f
   1    1  '\" te
   2    2  .\" Copyright (c) 2003, Sun Microsystems, Inc.
   3    3  .\" All Rights Reserved
   4    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5    5  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6    6  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH GLD 9F "Aug 28, 2003"
        7 +.TH GLD 9F "February 15, 2020"
   8    8  .SH NAME
   9    9  gld, gld_mac_alloc, gld_mac_free, gld_register, gld_unregister, gld_recv,
  10   10  gld_sched, gld_intr \- Generic LAN Driver service routines
  11   11  .SH SYNOPSIS
  12      -.LP
  13   12  .nf
  14   13  #include <sys/gld.h>
  15   14  
  16   15  \fBgld_mac_info_t *\fR\fBgld_mac_alloc\fR(\fBdev_info_t *\fR\fIdip\fR);
  17   16  .fi
  18   17  
  19   18  .LP
  20   19  .nf
  21   20  \fBvoid\fR \fBgld_mac_free\fR(\fBgld_mac_info_t *\fR\fImacinfo\fR);
  22   21  .fi
↓ open down ↓ 22 lines elided ↑ open up ↑
  45   44  .nf
  46   45  \fBuint_t\fR \fBgld_intr\fR(\fBcaddr_t);\fR
  47   46  .fi
  48   47  
  49   48  .LP
  50   49  .nf
  51   50  \fBvoid\fR \fBgld_linkstate\fR(\fBgld_mac_info_t *\fR\fImacinfo\fR, \fBint32_t\fR \fInewstate\fR);
  52   51  .fi
  53   52  
  54   53  .SH INTERFACE LEVEL
  55      -.sp
  56      -.LP
  57   54  Solaris architecture specific (Solaris DDI).
  58   55  .SH PARAMETERS
  59      -.sp
  60   56  .ne 2
  61   57  .na
  62   58  \fB\fImacinfo\fR \fR
  63   59  .ad
  64   60  .RS 13n
  65   61  Pointer to a \fBgld_mac_info\fR(9S) structure.
  66   62  .RE
  67   63  
  68   64  .sp
  69   65  .ne 2
↓ open down ↓ 25 lines elided ↑ open up ↑
  95   91  .sp
  96   92  .ne 2
  97   93  .na
  98   94  \fB\fInewstate\fR \fR
  99   95  .ad
 100   96  .RS 13n
 101   97  Media link state.
 102   98  .RE
 103   99  
 104  100  .SH DESCRIPTION
 105      -.sp
 106      -.LP
 107  101  \fBgld_mac_alloc\fR(\|) allocates a new \fBgld_mac_info\fR(9S) structure and
 108  102  returns a pointer to it. Some of the GLD-private elements of the structure may
 109  103  be initialized before \fBgld_mac_alloc\fR(\|) returns; all other elements are
 110  104  initialized to zero. The device driver must initialize some structure members,
 111  105  as described in \fBgld_mac_info\fR(9S), before passing the mac_info pointer to
 112  106  \fBgld_register\fR(\|).
 113  107  .sp
 114  108  .LP
 115  109  \fBgld_mac_free\fR(\|) frees a \fBgld_mac_info\fR(9S) structure previously
 116  110  allocated by \fBgld_mac_alloc\fR(\|).
↓ open down ↓ 140 lines elided ↑ open up ↑
 257  251  .na
 258  252  \fB\fBGLD_LINKSTATE_UNKNOWN\fR \fR
 259  253  .ad
 260  254  .RS 26n
 261  255  The status of the media link is unknown.
 262  256  .RE
 263  257  
 264  258  .sp
 265  259  .LP
 266  260  If a driver calls \fBgld_linkstate()\fR, it must also set the GLD_CAP_LINKSTATE
 267      -bit  in the  gldm_capabilties field of the \fBgld_mac_info\fR(9S) structure.
      261 +bit in the gldm_capabilities field of the \fBgld_mac_info\fR(9S) structure.
 268  262  .SH RETURN VALUES
 269      -.sp
 270      -.LP
 271  263  \fBgld_mac_alloc\fR(\|) returns a pointer to a new \fBgld_mac_info\fR(9S)
 272  264  structure.
 273  265  .sp
 274  266  .LP
 275  267  \fBgld_register\fR(\|) and \fBgld_unregister\fR(\|) return:
 276  268  .sp
 277  269  .ne 2
 278  270  .na
 279  271  \fB\fBDDI_SUCCESS\fR \fR
 280  272  .ad
↓ open down ↓ 7 lines elided ↑ open up ↑
 288  280  \fB\fBDDI_FAILURE\fR \fR
 289  281  .ad
 290  282  .RS 16n
 291  283  on failure.
 292  284  .RE
 293  285  
 294  286  .sp
 295  287  .LP
 296  288  \fBgld_intr\fR(\|) returns a value appropriate for an interrupt handler.
 297  289  .SH SEE ALSO
 298      -.sp
 299      -.LP
 300  290  \fBgld\fR(7D), \fBgld\fR(9E), \fBgld_mac_info\fR(9S), \fBgld_stats\fR(9S),
 301  291  \fBdlpi\fR(7P), \fBattach\fR(9E), \fBddi_add_intr\fR(9F)
 302  292  .sp
 303  293  .LP
 304  294  \fIWriting Device Drivers\fR
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX