Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Note 78Q2121.
details: https://anonhg.NetBSD.org/src/rev/a795fd275e31
branches: trunk
changeset: 476138:a795fd275e31
user: soren <soren%NetBSD.org@localhost>
date: Tue Sep 07 19:29:52 1999 +0000
description:
Note 78Q2121.
diffstat:
sys/dev/mii/miidevs | 3 ++-
sys/dev/mii/miidevs.h | 4 +++-
sys/dev/mii/tqphy.c | 11 +++++++----
3 files changed, 12 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 9ec362cb697c -r a795fd275e31 sys/dev/mii/miidevs
--- a/sys/dev/mii/miidevs Tue Sep 07 18:27:58 1999 +0000
+++ b/sys/dev/mii/miidevs Tue Sep 07 19:29:52 1999 +0000
@@ -1,4 +1,4 @@
-$NetBSD: miidevs,v 1.7 1999/09/04 23:58:55 soren Exp $
+$NetBSD: miidevs,v 1.8 1999/09/07 19:29:52 soren Exp $
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -123,3 +123,4 @@
/* TDK Semiconductor PHYs */
model TSC 78Q2120 0x0014 78Q2120 10/100 media interface
+model TSC 78Q2121 0x0015 78Q2121 100baseTX media interface
diff -r 9ec362cb697c -r a795fd275e31 sys/dev/mii/miidevs.h
--- a/sys/dev/mii/miidevs.h Tue Sep 07 18:27:58 1999 +0000
+++ b/sys/dev/mii/miidevs.h Tue Sep 07 19:29:52 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: miidevs.h,v 1.7 1999/09/04 23:59:32 soren Exp $ */
+/* $NetBSD: miidevs.h,v 1.8 1999/09/07 19:29:52 soren Exp $ */
/*
* THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
@@ -147,3 +147,5 @@
/* TDK Semiconductor PHYs */
#define MII_MODEL_TSC_78Q2120 0x0014
#define MII_STR_TSC_78Q2120 "78Q2120 10/100 media interface"
+#define MII_MODEL_TSC_78Q2121 0x0015
+#define MII_STR_TSC_78Q2121 "78Q2121 100baseTX media interface"
diff -r 9ec362cb697c -r a795fd275e31 sys/dev/mii/tqphy.c
--- a/sys/dev/mii/tqphy.c Tue Sep 07 18:27:58 1999 +0000
+++ b/sys/dev/mii/tqphy.c Tue Sep 07 19:29:52 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tqphy.c,v 1.1 1999/09/05 01:26:02 soren Exp $ */
+/* $NetBSD: tqphy.c,v 1.2 1999/09/07 19:29:52 soren Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -106,9 +106,12 @@
{
struct mii_attach_args *ma = aux;
- if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_TSC &&
- MII_MODEL(ma->mii_id2) == MII_MODEL_TSC_78Q2120)
- return (10);
+ if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_TSC)
+ switch MII_MODEL(ma->mii_id2) {
+ case MII_MODEL_TSC_78Q2120:
+ /* case MII_MODEL_TSC_78Q2121: */
+ return (10);
+ }
return (0);
}
Home |
Main Index |
Thread Index |
Old Index