miidevs revision 1.9
11.9Sthorpej$NetBSD: miidevs,v 1.9 1999/11/19 18:26:09 thorpej Exp $
21.1Sthorpej
31.1Sthorpej/*-
41.5Sthorpej * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
51.1Sthorpej * All rights reserved.
61.1Sthorpej *
71.1Sthorpej * This code is derived from software contributed to The NetBSD Foundation
81.1Sthorpej * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
91.1Sthorpej * NASA Ames Research Center.
101.1Sthorpej *
111.1Sthorpej * Redistribution and use in source and binary forms, with or without
121.1Sthorpej * modification, are permitted provided that the following conditions
131.1Sthorpej * are met:
141.1Sthorpej * 1. Redistributions of source code must retain the above copyright
151.1Sthorpej *    notice, this list of conditions and the following disclaimer.
161.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright
171.1Sthorpej *    notice, this list of conditions and the following disclaimer in the
181.1Sthorpej *    documentation and/or other materials provided with the distribution.
191.1Sthorpej * 3. All advertising materials mentioning features or use of this software
201.1Sthorpej *    must display the following acknowledgement:
211.1Sthorpej *	This product includes software developed by the NetBSD
221.1Sthorpej *	Foundation, Inc. and its contributors.
231.1Sthorpej * 4. Neither the name of The NetBSD Foundation nor the names of its
241.1Sthorpej *    contributors may be used to endorse or promote products derived
251.1Sthorpej *    from this software without specific prior written permission.
261.1Sthorpej *
271.1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
281.1Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
291.1Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
301.1Sthorpej * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
311.1Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
321.1Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
331.1Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
341.1Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
351.1Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
361.1Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
371.1Sthorpej * POSSIBILITY OF SUCH DAMAGE.
381.1Sthorpej */
391.1Sthorpej
401.1Sthorpej/*
411.6Sdrochner * List of known MII OUIs.
421.6Sdrochner * For a complete list see http://standards.ieee.org/regauth/oui/
431.6Sdrochner *
441.6Sdrochner * XXX Vendors do obviously not agree how OUIs (18 bit) are mapped
451.6Sdrochner * to the 16 bits available in the id registers. The MII_OUI() macro
461.6Sdrochner * in "mii.h" reflects the most obvious way. If a vendor uses a
471.6Sdrochner * different mapping, an "xx" prefixed OUI is defined here which is
481.6Sdrochner * mangled accordingly to compensate.
491.1Sthorpej */
501.1Sthorpej
511.6Sdrochneroui AMD				0x00001a	Advanced Micro Devices
521.9Sthorpejoui ENABLESEMI			0x0010dd	Enable Semiconductor
531.6Sdrochneroui DAVICOM			0x00606e	Davicom Semiconductor
541.6Sdrochneroui ICS				0x00a0be	Integrated Circuit Systems
551.1Sthorpejoui INTEL			0x00aa00	Intel
561.6Sdrochneroui LEVEL1			0x00207b	Level 1
571.1Sthorpejoui NATSEMI			0x080017	National Semiconductor
581.1Sthorpejoui QUALSEMI			0x006051	Quality Semiconductor
591.6Sdrochneroui SEEQ			0x00a07d	Seeq
601.6Sdrochneroui SIS				0x00e006	Silicon Integrated Systems
611.6Sdrochneroui TI				0x080028	Texas Instruments
621.7Ssorenoui TSC				0x00c039	TDK Semiconductor
631.6Sdrochner
641.6Sdrochner/* in the 79c873, AMD uses another OUI (which matches Davicom!) */
651.6Sdrochneroui xxAMD			0x00606e	Advanced Micro Devices
661.6Sdrochner
671.7Ssoren/* Some Intel 82553's use an alternative OUI. */
681.7Ssorenoui xxINTEL			0x00f800	Intel
691.7Ssoren
701.6Sdrochner/* some vendors have the bits swapped within bytes
711.6Sdrochner	(ie, ordered as on the wire) */
721.6Sdrochneroui xxICS			0x00057d	Integrated Circuit Systems
731.6Sdrochneroui xxSEEQ			0x0005be	Seeq
741.6Sdrochneroui xxSIS			0x000760	Silicon Integrated Systems
751.6Sdrochneroui xxTI			0x100014	Texas Instruments
761.6Sdrochner
771.6Sdrochner/* Level 1 is completely different - from right to left.
781.6Sdrochner	(Two bits get lost in the third OUI byte.) */
791.6Sdrochneroui xxLEVEL1			0x1e0400	Level 1
801.6Sdrochner
811.6Sdrochner/* Don't know what's going on here. */
821.6Sdrochneroui xxDAVICOM			0x006040	Davicom Semiconductor
831.6Sdrochner
841.1Sthorpej
851.1Sthorpej/*
861.1Sthorpej * List of known models.  Grouped by oui.
871.1Sthorpej */
881.3Sthorpej
891.3Sthorpej/* Advanced Micro Devices PHYs */
901.6Sdrochnermodel xxAMD 79C873		0x0000 Am79C873 10/100 media interface
911.6Sdrochnermodel AMD 79c973phy		0x0036 Am79c973 internal PHY
921.4Sthorpej
931.4Sthorpej/* Davicom Semiconductor PHYs */
941.6Sdrochnermodel xxDAVICOM DM9101		0x0000 DM9101 10/100 media interface
951.1Sthorpej
961.1Sthorpej/* Integrated Circuit Systems PHYs */
971.6Sdrochnermodel xxICS 1890		0x0002 ICS1890 10/100 media interface
981.1Sthorpej
991.1Sthorpej/* Intel PHYs */
1001.7Ssorenmodel xxINTEL I82553		0x0000 i82553 10/100 media interface
1011.1Sthorpejmodel INTEL I82555		0x0015 i82555 10/100 media interface
1021.7Ssorenmodel INTEL I82553		0x0035 i82553 10/100 media interface
1031.1Sthorpej
1041.1Sthorpej/* Level 1 PHYs */
1051.6Sdrochnermodel xxLEVEL1 LXT970		0x0000 LXT970 10/100 media interface
1061.1Sthorpej
1071.1Sthorpej/* National Semiconductor PHYs */
1081.1Sthorpejmodel NATSEMI DP83840		0x0000 DP83840 10/100 media interface
1091.1Sthorpejmodel NATSEMI DP83843		0x0001 DP83843 10/100 media interface
1101.1Sthorpej
1111.1Sthorpej/* Quality Semiconductor PHYs */
1121.1Sthorpejmodel QUALSEMI QS6612		0x0000 QS6612 10/100 media interface
1131.1Sthorpej
1141.1Sthorpej/* Seeq PHYs */
1151.6Sdrochnermodel xxSEEQ 80220		0x0003 Seeq 80220 10/100 media interface
1161.6Sdrochnermodel xxSEEQ 84220		0x0004 Seeq 84220 10/100 media interface
1171.5Sthorpej
1181.5Sthorpej/* Silicon Integrated Systems PHYs */
1191.6Sdrochnermodel xxSIS 900			0x0000 SiS 900 10/100 media interface
1201.1Sthorpej
1211.1Sthorpej/* Texas Instruments PHYs */
1221.6Sdrochnermodel xxTI TLAN10T		0x0001 ThunderLAN 10baseT media interface
1231.6Sdrochnermodel xxTI 100VGPMI		0x0002 ThunderLAN 100VG-AnyLan media interface
1241.7Ssoren
1251.7Ssoren/* TDK Semiconductor PHYs */
1261.7Ssorenmodel TSC 78Q2120		0x0014 78Q2120 10/100 media interface
1271.8Ssorenmodel TSC 78Q2121		0x0015 78Q2121 100baseTX media interface
128