aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pasemi_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pasemi_mac.h')
-rw-r--r--drivers/net/pasemi_mac.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/pasemi_mac.h b/drivers/net/pasemi_mac.h
index 8bee2a664c83..99e7b9329a6f 100644
--- a/drivers/net/pasemi_mac.h
+++ b/drivers/net/pasemi_mac.h
@@ -59,6 +59,7 @@ struct pasemi_mac {
59 struct phy_device *phydev; 59 struct phy_device *phydev;
60 struct napi_struct napi; 60 struct napi_struct napi;
61 61
62 int bufsz; /* RX ring buffer size */
62 u8 type; 63 u8 type;
63#define MAC_TYPE_GMAC 1 64#define MAC_TYPE_GMAC 1
64#define MAC_TYPE_XAUI 2 65#define MAC_TYPE_XAUI 2
@@ -96,6 +97,9 @@ struct pasemi_mac_buffer {
96/* MAC CFG register offsets */ 97/* MAC CFG register offsets */
97enum { 98enum {
98 PAS_MAC_CFG_PCFG = 0x80, 99 PAS_MAC_CFG_PCFG = 0x80,
100 PAS_MAC_CFG_MACCFG = 0x84,
101 PAS_MAC_CFG_ADR0 = 0x8c,
102 PAS_MAC_CFG_ADR1 = 0x90,
99 PAS_MAC_CFG_TXP = 0x98, 103 PAS_MAC_CFG_TXP = 0x98,
100 PAS_MAC_IPC_CHNL = 0x208, 104 PAS_MAC_IPC_CHNL = 0x208,
101}; 105};
@@ -130,6 +134,18 @@ enum {
130#define PAS_MAC_CFG_PCFG_SPD_100M 0x00000001 134#define PAS_MAC_CFG_PCFG_SPD_100M 0x00000001
131#define PAS_MAC_CFG_PCFG_SPD_1G 0x00000002 135#define PAS_MAC_CFG_PCFG_SPD_1G 0x00000002
132#define PAS_MAC_CFG_PCFG_SPD_10G 0x00000003 136#define PAS_MAC_CFG_PCFG_SPD_10G 0x00000003
137
138#define PAS_MAC_CFG_MACCFG_TXT_M 0x70000000
139#define PAS_MAC_CFG_MACCFG_TXT_S 28
140#define PAS_MAC_CFG_MACCFG_PRES_M 0x0f000000
141#define PAS_MAC_CFG_MACCFG_PRES_S 24
142#define PAS_MAC_CFG_MACCFG_MAXF_M 0x00ffff00
143#define PAS_MAC_CFG_MACCFG_MAXF_S 8
144#define PAS_MAC_CFG_MACCFG_MAXF(x) (((x) << PAS_MAC_CFG_MACCFG_MAXF_S) & \
145 PAS_MAC_CFG_MACCFG_MAXF_M)
146#define PAS_MAC_CFG_MACCFG_MINF_M 0x000000ff
147#define PAS_MAC_CFG_MACCFG_MINF_S 0
148
133#define PAS_MAC_CFG_TXP_FCF 0x01000000 149#define PAS_MAC_CFG_TXP_FCF 0x01000000
134#define PAS_MAC_CFG_TXP_FCE 0x00800000 150#define PAS_MAC_CFG_TXP_FCE 0x00800000
135#define PAS_MAC_CFG_TXP_FC 0x00400000 151#define PAS_MAC_CFG_TXP_FC 0x00400000