/*
* 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 (C) 2003-2005 Chelsio Communications. All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI" /* xpak.c */
#include "cphy.h"
#include "elmer0.h"
/* ARGSUSED */
{
return 0;
}
/* ARGSUSED */
{
return 0;
}
/* ARGSUSED */
{
return 0;
}
/* ARGSUSED */
{
return 0;
}
/* ARGSUSED */
{
return 0;
}
/* ARGSUSED */
{
if (link_ok)
*link_ok = 1;
if (speed)
*speed = SPEED_10000;
if (duplex)
*duplex = DUPLEX_FULL;
if (fc)
return 0;
}
{
}
#ifdef C99_NOT_SUPPORTED
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
};
#else
.destroy = xpak_destroy,
.reset = xpak_reset,
};
#endif
/* ARGSUSED */
{
if (!cphy)
return NULL;
return cphy;
}
{
val &= ~4;
DELAY_MS(100);
/*
* Errata #26 states to wait 5 seconds after reset before transceiver
* becomes operational.
*/
DELAY_MS(5000);
/* Now lets enable the Laser. Delay 100us
* as defined in XPAK errata.
*/
val |= 0x8000;
DELAY_US(100);
return 0;
}
};