aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ucc_geth.h
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2009-02-04 19:42:12 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-04 19:42:35 -0500
commit1577ecef766650a57fceb171acee2b13cbfaf1d3 (patch)
treeb66df11d8815f95f815e65c3c3ffd32df81b8d43 /drivers/net/ucc_geth.h
parent9c46f6d42f1b5627c49a5906cb5b315ad8716ff0 (diff)
netdev: Merge UCC and gianfar MDIO bus drivers
The MDIO bus drivers for the UCC and gianfar ethernet controllers are essentially the same. There's no reason to duplicate that much code. Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ucc_geth.h')
-rw-r--r--drivers/net/ucc_geth.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/net/ucc_geth.h b/drivers/net/ucc_geth.h
index 16cbe42ba43c..66d18971fa0c 100644
--- a/drivers/net/ucc_geth.h
+++ b/drivers/net/ucc_geth.h
@@ -28,8 +28,6 @@
28#include <asm/ucc.h> 28#include <asm/ucc.h>
29#include <asm/ucc_fast.h> 29#include <asm/ucc_fast.h>
30 30
31#include "ucc_geth_mii.h"
32
33#define DRV_DESC "QE UCC Gigabit Ethernet Controller" 31#define DRV_DESC "QE UCC Gigabit Ethernet Controller"
34#define DRV_NAME "ucc_geth" 32#define DRV_NAME "ucc_geth"
35#define DRV_VERSION "1.1" 33#define DRV_VERSION "1.1"
@@ -184,6 +182,18 @@ struct ucc_geth {
184#define UCCE_RX_EVENTS (UCCE_RXF | UCC_GETH_UCCE_BSY) 182#define UCCE_RX_EVENTS (UCCE_RXF | UCC_GETH_UCCE_BSY)
185#define UCCE_TX_EVENTS (UCCE_TXB | UCC_GETH_UCCE_TXE) 183#define UCCE_TX_EVENTS (UCCE_TXB | UCC_GETH_UCCE_TXE)
186 184
185/* TBI defines */
186#define ENET_TBI_MII_CR 0x00 /* Control */
187#define ENET_TBI_MII_SR 0x01 /* Status */
188#define ENET_TBI_MII_ANA 0x04 /* AN advertisement */
189#define ENET_TBI_MII_ANLPBPA 0x05 /* AN link partner base page ability */
190#define ENET_TBI_MII_ANEX 0x06 /* AN expansion */
191#define ENET_TBI_MII_ANNPT 0x07 /* AN next page transmit */
192#define ENET_TBI_MII_ANLPANP 0x08 /* AN link partner ability next page */
193#define ENET_TBI_MII_EXST 0x0F /* Extended status */
194#define ENET_TBI_MII_JD 0x10 /* Jitter diagnostics */
195#define ENET_TBI_MII_TBICON 0x11 /* TBI control */
196
187/* UCC GETH MACCFG1 (MAC Configuration 1 Register) */ 197/* UCC GETH MACCFG1 (MAC Configuration 1 Register) */
188#define MACCFG1_FLOW_RX 0x00000020 /* Flow Control 198#define MACCFG1_FLOW_RX 0x00000020 /* Flow Control
189 Rx */ 199 Rx */