summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2001-07-02 05:08:29 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2001-07-02 05:08:29 +0000
commitaa0b5ba2dc9706461c17d13058572644d6d49a2a (patch)
treebc8bdd325a22314687d25e3968fbef9affb9b836 /sys
parent1acff79b49d42d5434c739f3676e53395f7d489e (diff)
Print out correct version string
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mii/nsgphy.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c
index 42c410b06df..4658c8124d0 100644
--- a/sys/dev/mii/nsgphy.c
+++ b/sys/dev/mii/nsgphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nsgphy.c,v 1.1 2001/06/08 02:19:30 nate Exp $ */
+/* $OpenBSD: nsgphy.c,v 1.2 2001/07/02 05:08:28 nate Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 2001
@@ -109,8 +109,17 @@ nsgphyattach(parent, self, aux)
struct mii_attach_args *ma = aux;
struct mii_data *mii = ma->mii_data;
- printf(": %s, rev. %d\n", MII_STR_NATSEMI_DP83861,
- MII_REV(ma->mii_id2));
+ switch(MII_MODEL(ma->mii_id2)) {
+ case MII_MODEL_NATSEMI_DP83861:
+ printf(": %s, rev. %d\n", MII_STR_NATSEMI_DP83861,
+ MII_REV(ma->mii_id2));
+ break;
+
+ case MII_MODEL_NATSEMI_DP83891:
+ printf(": %s, rev. %d\n", MII_STR_NATSEMI_DP83891,
+ MII_REV(ma->mii_id2));
+ break;
+ }
sc->mii_inst = mii->mii_instance;
sc->mii_phy = ma->mii_phyno;