/*
* 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" /* my3126.c */
#include "cphy.h"
#include "elmer0.h"
#include "suni1x10gexp_regs.h"
/* Port Reset */
/* ARGSUSED */
{
/*
* This can be done through registers. It is not required since
* a full chip reset is used.
*/
return (0);
}
/* ARGSUSED */
{
return (0);
return (0);
}
/* ARGSUSED */
{
return (0);
}
/* ARGSUSED */
{
return (0);
}
{
return (cphy_cause_link_change);
if (status & BMSR_LSTATUS) {
link_changed(adapter, 0);
}
/* We have only enabled link change interrupts so it
must be that
*/
}
(void) t1_tpi_read(adapter,
(void) t1_tpi_read(adapter,
} else {
}
return (cphy_cause_link_change);
}
/* ARGSUSED */
{
return (0);
}
/* To check the activity LED */
{
return (0);
if (*link_ok) {
// Light the LED.
} else {
// Turn off the LED.
}
*speed = SPEED_10000;
*duplex = DUPLEX_FULL;
/* need to add flow control */
if (fc)
return (0);
}
{
}
#ifdef C99_NOT_SUPPORTED
NULL,
NULL,
NULL,
NULL,
NULL,
};
#else
.reset = my3126_reset,
};
#endif
{
if (cphy)
(void (*)(void *))my3126_interrupt_handler,
cphy);
}
return (cphy);
}
/* Chip Reset */
{
val &= ~4;
DELAY_MS(100);
DELAY_MS(1000);
/* Now lets enable the Laser. Delay 100us */
val |= 0x8000;
DELAY_US(100);
return (0);
}
};