summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/miivar.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-30 14:45:10 +0000
committerimp <imp@FreeBSD.org>2005-09-30 14:45:10 +0000
commit1bada7078492d10d93c240265cc4a80d92be91b8 (patch)
treed0194f61b7fb38f6e5ff8793427f38d3ddec1ba0 /sys/dev/mii/miivar.h
parentd2e8ad6a1665dd4d11638551b898c848b1722ef6 (diff)
downloadFreeBSD-src-1bada7078492d10d93c240265cc4a80d92be91b8.zip
FreeBSD-src-1bada7078492d10d93c240265cc4a80d92be91b8.tar.gz
Add macros which follow the miidevs design pattern to make it easier
to construct tables for mii_phy_match.
Diffstat (limited to 'sys/dev/mii/miivar.h')
-rw-r--r--sys/dev/mii/miivar.h3
1 files changed, 3 insertions, 0 deletions
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.
OpenPOWER on IntegriCloud