From 7affd8af8a0d79ddf0b430004322c859111caeb5 Mon Sep 17 00:00:00 2001 From: adrian Date: Wed, 2 May 2012 01:14:15 +0000 Subject: [PATCH] Introduce an enum which encapsulates the PHY interface types that can be configured. --- sys/mips/atheros/ar71xxreg.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/mips/atheros/ar71xxreg.h b/sys/mips/atheros/ar71xxreg.h index dd2fa234db9e..bddd46ea7697 100644 --- a/sys/mips/atheros/ar71xxreg.h +++ b/sys/mips/atheros/ar71xxreg.h @@ -267,6 +267,13 @@ #define AR91XX_REV_ID_REVISION_MASK 0x3 #define AR91XX_REV_ID_REVISION_SHIFT 2 +typedef enum { + AR71XX_MII_MODE_NONE = 0, + AR71XX_MII_MODE_GMII, + AR71XX_MII_MODE_MII, + AR71XX_MII_MODE_RGMII, + AR71XX_MII_MODE_RMII, +} ar71xx_mii_mode; /* * AR71xx MII control region */ @@ -288,7 +295,6 @@ #define MII1_CTRL_IF_RGMII 0 #define MII1_CTRL_IF_RMII 1 - /* * GigE adapters region */