Mercurial > illumos > illumos-gate
changeset 11949:61dabb368ae6
6921538 misc/mii should support Altima PHYs
author | Steven Stallion <stallion@opensolaris.org> |
---|---|
date | Wed, 17 Mar 2010 20:58:41 -0700 |
parents | 350aa79a756e |
children | 27929c562084 |
files | usr/src/uts/common/io/mii/mii_other.c usr/src/uts/common/sys/miiregs.h |
diffstat | 2 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/mii/mii_other.c Wed Mar 17 18:26:34 2010 -0700 +++ b/usr/src/uts/common/io/mii/mii_other.c Wed Mar 17 20:58:41 2010 -0700 @@ -24,7 +24,7 @@ */ /* - * MII overrides for Quality Semiconductor PHYs. + * MII overrides for other PHYs. */ #include <sys/types.h> @@ -40,6 +40,7 @@ uint32_t oui; const char *vendor; } other_vendors[] = { + OUI(ALTIMA, "Altima Communications"), OUI(AMD, "Advanced Micro Devices"), OUI(AMD_2, "Advanced Micro Devices"), OUI(ATTANSIC, "Atheros/Attansic"), @@ -72,6 +73,14 @@ } other_phys[] = { /* + * Altima phys are standard compliant. + * AMD Am79C874 and Am79C875 phys are work-alikes. + */ + ID(ALTIMA, AC101, "AC101/Am79C874"), + ID(ALTIMA, AC101L, "AC101L"), + ID(ALTIMA, AM79C875, "Am79C875"), + + /* * AMD phys are pretty much standard. */ ID(AMD, AM79C901, "Am79C901"),
--- a/usr/src/uts/common/sys/miiregs.h Wed Mar 17 18:26:34 2010 -0700 +++ b/usr/src/uts/common/sys/miiregs.h Wed Mar 17 20:58:41 2010 -0700 @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -148,6 +148,7 @@ /* * PHY manufacturer OUIs */ +#define MII_OUI_ALTIMA 0x000895 #define MII_OUI_AMD 0x00001a #define MII_OUI_AMD_2 0x000058 #define MII_OUI_ATTANSIC 0x001374 @@ -171,6 +172,9 @@ /* * PHY models */ +#define MII_MODEL_ALTIMA_AC101 0x21 /* also Am79C874 */ +#define MII_MODEL_ALTIMA_AC101L 0x12 +#define MII_MODEL_ALTIMA_AM79C875 0x14 #define MII_MODEL_AMD_AM79C901 0x37 #define MII_MODEL_AMD_AM79C972 0x01