diff options
author | Warner Losh <imp@FreeBSD.org> | 2005-09-30 14:45:10 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2005-09-30 14:45:10 +0000 |
commit | a1039f82ae1f7b7f19a0c4a442ac56b037035cea (patch) | |
tree | d0194f61b7fb38f6e5ff8793427f38d3ddec1ba0 /sys/dev/mii/miivar.h | |
parent | 4041bad612070d8d4b34e5f35def565f66e8533d (diff) |
Add macros which follow the miidevs design pattern to make it easier
to construct tables for mii_phy_match.
Notes
Notes:
svn path=/head/; revision=150755
Diffstat (limited to 'sys/dev/mii/miivar.h')
-rw-r--r-- | sys/dev/mii/miivar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index f6c759c40e93..f1d16f705a88 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. |