diff options
author | Iyappan Subramanian <isubramanian@apm.com> | 2014-10-13 17:05:34 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-14 16:09:21 -0400 |
commit | 32f784b50e14c653ad0f010fbd5921a5f8caf846 (patch) | |
tree | 5a74da124c31096e97fc7221698e1e49bf2cb08d /drivers/net/ethernet/apm/xgene/xgene_enet_main.h | |
parent | dc8385f0c0f46ca18c1c8ab59c9f565dc7cfa6bf (diff) | |
download | blackbird-op-linux-32f784b50e14c653ad0f010fbd5921a5f8caf846.tar.gz blackbird-op-linux-32f784b50e14c653ad0f010fbd5921a5f8caf846.zip |
drivers: net: xgene: Add SGMII based 1GbE support
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: Keyur Chudgar <kchudgar@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/apm/xgene/xgene_enet_main.h')
-rw-r--r-- | drivers/net/ethernet/apm/xgene/xgene_enet_main.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.h b/drivers/net/ethernet/apm/xgene/xgene_enet_main.h index 10b03a1f16e9..874e5a01161f 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.h +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.h @@ -39,6 +39,9 @@ #define NUM_PKT_BUF 64 #define NUM_BUFPOOL 32 +#define PHY_POLL_LINK_ON (10 * HZ) +#define PHY_POLL_LINK_OFF (PHY_POLL_LINK_ON / 5) + /* software context of a descriptor ring */ struct xgene_enet_desc_ring { struct net_device *ndev; @@ -118,6 +121,13 @@ struct xgene_enet_pdata { struct delayed_work link_work; }; +struct xgene_indirect_ctl { + void __iomem *addr; + void __iomem *ctl; + void __iomem *cmd; + void __iomem *cmd_done; +}; + /* Set the specified value into a bit-field defined by its starting position * and length within a single u64. */ |