summaryrefslogtreecommitdiff
path: root/drivers/net/fec_switch.h
diff options
context:
space:
mode:
authorXie Xiaobo <r63061@freescale.com>2010-12-24 17:09:47 +0800
committerFrank Li <Frank.Li@freescale.com>2010-12-24 18:59:08 +0800
commitcca29a03fc83751ed319df4b3c38ce2f4216ee0a (patch)
treecaa9b35ac7dee9767aec406b1d980a017328dc44 /drivers/net/fec_switch.h
parentcb1de64a82b1162663ef6c3b0e6487e50b245bd7 (diff)
ENGR00137362-2 L2Swtich: Add phy support for switch port1 and port2rel_imx_2.6.35_10.12.01_RC4
Because the 1588 stack and STP stack need to know the phy status, added phy support for switch port1 and port2. Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Diffstat (limited to 'drivers/net/fec_switch.h')
-rw-r--r--drivers/net/fec_switch.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/fec_switch.h b/drivers/net/fec_switch.h
index 7b9f6a180f6a..bb58c29c7490 100644
--- a/drivers/net/fec_switch.h
+++ b/drivers/net/fec_switch.h
@@ -64,6 +64,7 @@
#if (((RX_RING_SIZE + TX_RING_SIZE) * 8) > PAGE_SIZE)
#error "L2SWITCH: descriptor ring size constants too large"
#endif
+
/*-----------------------------------------------------------------------*/
struct esw_output_queue_status {
unsigned long ESW_MMSR;
@@ -639,12 +640,16 @@ struct switch_enet_private {
int learning_irqhandle_enable;
/* Phylib and MDIO interface */
struct mii_bus *mii_bus;
- struct phy_device *phy_dev;
+ struct phy_device *phy_dev[2];
int mii_timeout;
uint phy_speed;
int index;
- int link;
+ int link[2];
int full_duplex;
+ struct completion mdio_done;
+
+ int mac0_irq;
+ int mac1_irq;
};
struct switch_platform_private {