From 1bada7078492d10d93c240265cc4a80d92be91b8 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 30 Sep 2005 14:45:10 +0000 Subject: Add macros which follow the miidevs design pattern to make it easier to construct tables for mii_phy_match. --- sys/dev/mii/miivar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/mii/miivar.h') diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index f6c759c..f1d16f7 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -161,6 +161,9 @@ struct mii_phydesc { u_int32_t mpd_model; /* the PHY's model */ const char *mpd_name; /* the PHY's name */ }; +#define MII_PHY_DESC(a, b) { MII_OUI_ ## a, MII_MODEL_ ## a ## _ ## b, \ + MII_STR_ ## a ## _ ## b } +#define MII_PHY_END { 0, 0, NULL } /* * An array of these structures map MII media types to BMCR/ANAR settings. -- cgit v1.1