diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-10-17 23:01:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-10-17 23:01:13 +0000 |
commit | 10be8d07882a7ed8dc61af6036d04cca961a3579 (patch) | |
tree | d7ff5683182f65bbfa1dd951e69c80e646a98955 /sys/dev/mii/urlphy.c | |
parent | 6f0acdac6415e329f7cf87cdc5310409fcf5444e (diff) |
model internal phy chunk on the one from rlphy
Diffstat (limited to 'sys/dev/mii/urlphy.c')
-rw-r--r-- | sys/dev/mii/urlphy.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/mii/urlphy.c b/sys/dev/mii/urlphy.c index 4a8e9dba273..74f4b04a539 100644 --- a/sys/dev/mii/urlphy.c +++ b/sys/dev/mii/urlphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: urlphy.c,v 1.6 2004/09/29 09:51:07 dlg Exp $ */ +/* $OpenBSD: urlphy.c,v 1.7 2004/10/17 23:01:12 deraadt Exp $ */ /* $NetBSD: urlphy.c,v 1.1 2002/03/28 21:07:53 ichiro Exp $ */ /* * Copyright (c) 2001, 2002 @@ -105,6 +105,12 @@ urlphy_attach(struct device *parent, struct device *self, void *aux) struct mii_attach_args *ma = aux; struct mii_data *mii = ma->mii_data; + if (MII_MODEL(ma->mii_id2) == MII_MODEL_REALTEK_RTL8201L) { + printf(": %s, rev. %d\n", MII_STR_REALTEK_RTL8201L, + MII_REV(ma->mii_id2)); + } else + printf(": RTL internal phy\n"); + DPRINTF(("%s: %s: enter\n", sc->mii_dev.dv_xname, __func__)); sc->mii_inst = mii->mii_instance; |