/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* MII overrides for other PHYs.
*/
#include "miipriv.h"
static const struct {
const char *vendor;
} other_vendors[] = {
{ 0, NULL }
};
static const struct {
const char *desc;
} other_phys[] = {
/*
* Altima phys are standard compliant.
* AMD Am79C874 and Am79C875 phys are work-alikes.
*/
/*
* AMD phys are pretty much standard.
*/
/*
* Davicom phys are standard compliant.
*/
/*
* IC Plus phy is standard compliant.
*/
/*
* ICS phys need double read (bits are latched), have some
* faster polling support, and support for automatic power down.
* The framework deals with the first, we don't need the second,
* and the third is set to default anyway, so we don't need to
* use any special handling.
*/
{ 0, 0, NULL },
};
{
/*
* IDs are technically optional, but all discrete PHYs
* should have them.
*/
}
for (int i = 0; other_vendors[i].vendor; i++) {
for (int j = 0; other_phys[j].desc; j++) {
return (B_TRUE);
}
}
/* PHY from this vendor isn't known to us */
return (B_FALSE);
}
}
return (B_FALSE);
}