From 46932c7f70fea89e13a7703e23a7e3eaa1c8bb22 Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 16 Feb 2005 05:56:39 +0000 Subject: On second though, print the OUI, model and revision. This is the same information that's in the id1 and id2 fields we were using, but is in a form that the drivers will be using in their matching routines. --- sys/dev/mii/mii.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/mii') diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 02f56b4..51e2ffc 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -202,7 +202,9 @@ miibus_child_pnpinfo_str(device_t bus, device_t child, char *buf, size_t buflen) { struct mii_attach_args *maa = device_get_ivars(child); - snprintf(buf, buflen, "id1=0x%x id2=0x%x", maa->mii_id1, maa->mii_id2); + snprintf(buf, buflen, "oui=0x%x model=0x%x rev=0x%x", + MII_OUI(maa->mii_id1, maa->mii_id2), + MII_MODEL(maa->mii_id2), MII_REV(maa->mii_id2)); return (0); } -- cgit v1.1