hxge_vmac.c revision a512c5d1f2908d965887ad5494954ba2cf904bd2
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Use is subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_tx_vmac_init(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_rx_vmac_init(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_tx_vmac_enable(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_tx_vmac_disable(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_rx_vmac_enable(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_rx_vmac_disable(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_tx_vmac_reset(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_rx_vmac_reset(p_hxge_t hxgep);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosteruint_t hxge_vmac_intr(caddr_t arg1, caddr_t arg2);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterhxge_status_t hxge_set_promisc(p_hxge_t hxgep, boolean_t on);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster HXGE_DEBUG_MSG((hxgep, MAC_CTL, "==> hxge_link_init>"));
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The driver doesn't control the link.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * It is always 10Gb full duplex.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster HXGE_DEBUG_MSG((hxgep, MAC_CTL, "<== hxge_link_init"));
goto fail;
goto fail;
goto fail;
goto fail;
return (HXGE_OK);
fail:
return (status);
return (HXGE_ERROR);
return (HXGE_OK);
!= HPI_SUCCESS)
return (HXGE_ERROR);
return (HXGE_OK);
return (rv);
return (status);
return (status);
return (rv);
return (status);
return (status);
return (HXGE_OK);
return (HXGE_OK);
return (DDI_INTR_CLAIMED);
goto fail;
goto fail;
if (on)
return (HXGE_OK);
fail:
return (status);
int status = 0;
return (status);