gld.9f (d042c5a26452797afc4fe8c2ceddebff94d88745) | gld.9f (c40d33be34d8bd92100aad1cfae8c1aaeee375d6) |
---|---|
1'\" te 2.\" Copyright (c) 2003, Sun Microsystems, Inc. 3.\" All Rights Reserved 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.\" 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.\" 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] | 1'\" te 2.\" Copyright (c) 2003, Sun Microsystems, Inc. 3.\" All Rights Reserved 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.\" 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.\" 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.SH NAME 9gld, gld_mac_alloc, gld_mac_free, gld_register, gld_unregister, gld_recv, 10gld_sched, gld_intr \- Generic LAN Driver service routines 11.SH SYNOPSIS | 8.SH NAME 9gld, gld_mac_alloc, gld_mac_free, gld_register, gld_unregister, gld_recv, 10gld_sched, gld_intr \- Generic LAN Driver service routines 11.SH SYNOPSIS |
12.LP | |
13.nf 14#include <sys/gld.h> 15 16\fBgld_mac_info_t *\fR\fBgld_mac_alloc\fR(\fBdev_info_t *\fR\fIdip\fR); 17.fi 18 19.LP 20.nf --- 26 unchanged lines hidden (view full) --- 47.fi 48 49.LP 50.nf 51\fBvoid\fR \fBgld_linkstate\fR(\fBgld_mac_info_t *\fR\fImacinfo\fR, \fBint32_t\fR \fInewstate\fR); 52.fi 53 54.SH INTERFACE LEVEL | 12.nf 13#include <sys/gld.h> 14 15\fBgld_mac_info_t *\fR\fBgld_mac_alloc\fR(\fBdev_info_t *\fR\fIdip\fR); 16.fi 17 18.LP 19.nf --- 26 unchanged lines hidden (view full) --- 46.fi 47 48.LP 49.nf 50\fBvoid\fR \fBgld_linkstate\fR(\fBgld_mac_info_t *\fR\fImacinfo\fR, \fBint32_t\fR \fInewstate\fR); 51.fi 52 53.SH INTERFACE LEVEL |
55.sp 56.LP | |
57Solaris architecture specific (Solaris DDI). 58.SH PARAMETERS | 54Solaris architecture specific (Solaris DDI). 55.SH PARAMETERS |
59.sp | |
60.ne 2 61.na 62\fB\fImacinfo\fR \fR 63.ad 64.RS 13n 65Pointer to a \fBgld_mac_info\fR(9S) structure. 66.RE 67 --- 29 unchanged lines hidden (view full) --- 97.na 98\fB\fInewstate\fR \fR 99.ad 100.RS 13n 101Media link state. 102.RE 103 104.SH DESCRIPTION | 56.ne 2 57.na 58\fB\fImacinfo\fR \fR 59.ad 60.RS 13n 61Pointer to a \fBgld_mac_info\fR(9S) structure. 62.RE 63 --- 29 unchanged lines hidden (view full) --- 93.na 94\fB\fInewstate\fR \fR 95.ad 96.RS 13n 97Media link state. 98.RE 99 100.SH DESCRIPTION |
105.sp 106.LP | |
107\fBgld_mac_alloc\fR(\|) allocates a new \fBgld_mac_info\fR(9S) structure and 108returns a pointer to it. Some of the GLD-private elements of the structure may 109be initialized before \fBgld_mac_alloc\fR(\|) returns; all other elements are 110initialized to zero. The device driver must initialize some structure members, 111as described in \fBgld_mac_info\fR(9S), before passing the mac_info pointer to 112\fBgld_register\fR(\|). 113.sp 114.LP --- 144 unchanged lines hidden (view full) --- 259.ad 260.RS 26n 261The status of the media link is unknown. 262.RE 263 264.sp 265.LP 266If a driver calls \fBgld_linkstate()\fR, it must also set the GLD_CAP_LINKSTATE | 101\fBgld_mac_alloc\fR(\|) allocates a new \fBgld_mac_info\fR(9S) structure and 102returns a pointer to it. Some of the GLD-private elements of the structure may 103be initialized before \fBgld_mac_alloc\fR(\|) returns; all other elements are 104initialized to zero. The device driver must initialize some structure members, 105as described in \fBgld_mac_info\fR(9S), before passing the mac_info pointer to 106\fBgld_register\fR(\|). 107.sp 108.LP --- 144 unchanged lines hidden (view full) --- 253.ad 254.RS 26n 255The status of the media link is unknown. 256.RE 257 258.sp 259.LP 260If a driver calls \fBgld_linkstate()\fR, it must also set the GLD_CAP_LINKSTATE |
267bit in the gldm_capabilties field of the \fBgld_mac_info\fR(9S) structure. | 261bit in the gldm_capabilities field of the \fBgld_mac_info\fR(9S) structure. |
268.SH RETURN VALUES | 262.SH RETURN VALUES |
269.sp 270.LP | |
271\fBgld_mac_alloc\fR(\|) returns a pointer to a new \fBgld_mac_info\fR(9S) 272structure. 273.sp 274.LP 275\fBgld_register\fR(\|) and \fBgld_unregister\fR(\|) return: 276.sp 277.ne 2 278.na --- 11 unchanged lines hidden (view full) --- 290.RS 16n 291on failure. 292.RE 293 294.sp 295.LP 296\fBgld_intr\fR(\|) returns a value appropriate for an interrupt handler. 297.SH SEE ALSO | 263\fBgld_mac_alloc\fR(\|) returns a pointer to a new \fBgld_mac_info\fR(9S) 264structure. 265.sp 266.LP 267\fBgld_register\fR(\|) and \fBgld_unregister\fR(\|) return: 268.sp 269.ne 2 270.na --- 11 unchanged lines hidden (view full) --- 282.RS 16n 283on failure. 284.RE 285 286.sp 287.LP 288\fBgld_intr\fR(\|) returns a value appropriate for an interrupt handler. 289.SH SEE ALSO |
298.sp 299.LP | |
300\fBgld\fR(7D), \fBgld\fR(9E), \fBgld_mac_info\fR(9S), \fBgld_stats\fR(9S), 301\fBdlpi\fR(7P), \fBattach\fR(9E), \fBddi_add_intr\fR(9F) 302.sp 303.LP 304\fIWriting Device Drivers\fR | 290\fBgld\fR(7D), \fBgld\fR(9E), \fBgld_mac_info\fR(9S), \fBgld_stats\fR(9S), 291\fBdlpi\fR(7P), \fBattach\fR(9E), \fBddi_add_intr\fR(9F) 292.sp 293.LP 294\fIWriting Device Drivers\fR |