nxge_espc.c revision 14ea4bb737263733ad80a36b4f73f681c30a6b45
/*
* CDDL HEADER START
*
* 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.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <nxge_impl.h>
#include <nxge_mac.h>
#include <npi_espc.h>
#include <nxge_espc.h>
static void
static void
struct ether_addr *final_mac)
{
int i, j;
}
}
{
"==> nxge_espc_mac_addr_get, port[%d]",
port_num));
if (npi_status != NPI_SUCCESS) {
"nxge_espc_mac_addr_get, port[%d] failed",
port_num));
goto exit;
}
"Got MAC Addr: %2x:%2x:%2x:%2x:%2x%:%2x%c \n",
exit:
"status [0x%x]", status));
return (status);
}
{
if (npi_status != NPI_SUCCESS) {
}
"status [0x%x]", status));
return (status);
}
{
if (npi_status != NPI_SUCCESS) {
}
"ports [0x%x]", nports));
"status [0x%x]", status));
return (status);
}
{
port_num));
port_num);
if (npi_status != NPI_SUCCESS) {
goto exit;
}
switch (phy_type) {
case ESC_PHY_10G_FIBER:
break;
case ESC_PHY_10G_COPPER:
break;
case ESC_PHY_1G_FIBER:
break;
case ESC_PHY_1G_COPPER:
break;
case ESC_PHY_NONE:
status = NXGE_ERROR;
"No phy type set"));
break;
default:
status = NXGE_ERROR;
"Unknown phy type [%d]", phy_type));
break;
}
exit:
"status [0x%x]", status));
return (status);
}
{
if (npi_status != NPI_SUCCESS) {
}
"status [0x%x]", status));
return (status);
}