summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-05-02 01:14:15 +0000
committeradrian <adrian@FreeBSD.org>2012-05-02 01:14:15 +0000
commit7affd8af8a0d79ddf0b430004322c859111caeb5 (patch)
tree03a2e48f032500ee7f1edbfc7d160129fb6c66b2 /sys/mips/atheros
parent06cf74a20ccf547fa776829b60be5b3c32e8e33d (diff)
downloadFreeBSD-src-7affd8af8a0d79ddf0b430004322c859111caeb5.zip
FreeBSD-src-7affd8af8a0d79ddf0b430004322c859111caeb5.tar.gz
Introduce an enum which encapsulates the PHY interface types that can be
configured.
Diffstat (limited to 'sys/mips/atheros')
-rw-r--r--sys/mips/atheros/ar71xxreg.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/mips/atheros/ar71xxreg.h b/sys/mips/atheros/ar71xxreg.h
index dd2fa23..bddd46e 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
*/
OpenPOWER on IntegriCloud