Lines Matching defs:xgbe_prv_data
1051 struct xgbe_prv_data { struct
1052 struct net_device *netdev;
1053 struct pci_dev *pcidev;
1054 struct platform_device *platdev;
1055 struct acpi_device *adev;
1056 struct device *dev;
1057 struct platform_device *phy_platdev;
1058 struct device *phy_dev;
1061 struct xgbe_version_data *vdata;
1064 unsigned int use_acpi;
1067 void __iomem *xgmac_regs; /* XGMAC CSRs */
1068 void __iomem *xpcs_regs; /* XPCS MMD registers */
1069 void __iomem *rxtx_regs; /* SerDes Rx/Tx CSRs */
1070 void __iomem *sir0_regs; /* SerDes integration registers (1/2) */
1071 void __iomem *sir1_regs; /* SerDes integration registers (2/2) */
1072 void __iomem *xprop_regs; /* XGBE property registers */
1073 void __iomem *xi2c_regs; /* XGBE I2C CSRs */
1076 unsigned int pp0;
1077 unsigned int pp1;
1078 unsigned int pp2;
1079 unsigned int pp3;
1080 unsigned int pp4;
1083 spinlock_t lock;
1086 spinlock_t xpcs_lock;
1087 unsigned int xpcs_window_def_reg;
1088 unsigned int xpcs_window_sel_reg;
1089 unsigned int xpcs_window;
1090 unsigned int xpcs_window_size;
1091 unsigned int xpcs_window_mask;
1094 struct mutex rss_mutex;
1097 unsigned long dev_state;
1100 unsigned long tx_sec_period;
1101 unsigned long tx_ded_period;
1102 unsigned long rx_sec_period;
1103 unsigned long rx_ded_period;
1104 unsigned long desc_sec_period;
1105 unsigned long desc_ded_period;
1107 unsigned int tx_sec_count;
1108 unsigned int tx_ded_count;
1109 unsigned int rx_sec_count;
1110 unsigned int rx_ded_count;
1111 unsigned int desc_ded_count;
1112 unsigned int desc_sec_count;
1114 int dev_irq;
1115 int ecc_irq;
1116 int i2c_irq;
1117 int channel_irq[XGBE_MAX_DMA_CHANNELS];
1119 unsigned int per_channel_irq;
1120 unsigned int irq_count;
1121 unsigned int channel_irq_count;
1122 unsigned int channel_irq_mode;
1124 char ecc_name[IFNAMSIZ + 32];
1126 struct xgbe_hw_if hw_if;
1127 struct xgbe_phy_if phy_if;
1128 struct xgbe_desc_if desc_if;
1129 struct xgbe_i2c_if i2c_if;
1132 unsigned int coherent;
1133 unsigned int arcr;
1134 unsigned int awcr;
1135 unsigned int awarcr;
1138 struct workqueue_struct *dev_workqueue;
1139 struct work_struct service_work;
1140 struct timer_list service_timer;
1143 struct xgbe_channel *channel[XGBE_MAX_DMA_CHANNELS];
1144 unsigned int tx_max_channel_count;
1145 unsigned int rx_max_channel_count;
1146 unsigned int channel_count;
1147 unsigned int tx_ring_count;
1148 unsigned int tx_desc_count;
1149 unsigned int rx_ring_count;
1150 unsigned int rx_desc_count;
1152 unsigned int new_tx_ring_count;
1153 unsigned int new_rx_ring_count;
1155 unsigned int tx_max_q_count;
1156 unsigned int rx_max_q_count;
1157 unsigned int tx_q_count;
1158 unsigned int rx_q_count;
1161 unsigned int blen;
1162 unsigned int pbl;
1163 unsigned int aal;
1164 unsigned int rd_osr_limit;
1165 unsigned int wr_osr_limit;
1168 unsigned int tx_sf_mode;
1169 unsigned int tx_threshold;
1170 unsigned int tx_osp_mode;
1171 unsigned int tx_max_fifo_size;
1174 unsigned int rx_sf_mode;
1175 unsigned int rx_threshold;
1176 unsigned int rx_max_fifo_size;
1179 unsigned int tx_usecs;
1180 unsigned int tx_frames;
1183 unsigned int rx_riwt;
1184 unsigned int rx_usecs;
1185 unsigned int rx_frames;
1188 unsigned int rx_buf_size;
1191 unsigned int pause_autoneg;
1192 unsigned int tx_pause;
1193 unsigned int rx_pause;
1194 unsigned int rx_rfa[XGBE_MAX_QUEUES];
1195 unsigned int rx_rfd[XGBE_MAX_QUEUES];
1198 u8 rss_key[XGBE_RSS_HASH_KEY_SIZE];
1199 u32 rss_table[XGBE_RSS_MAX_TABLE_SIZE];
1200 u32 rss_options;
1203 u16 vxlan_port;
1206 unsigned char mac_addr[ETH_ALEN];
1207 netdev_features_t netdev_features;
1208 struct napi_struct napi;
1209 struct xgbe_mmc_stats mmc_stats;
1210 struct xgbe_ext_stats ext_stats;
1213 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
1216 struct clk *sysclk;
1217 unsigned long sysclk_rate;
1218 struct clk *ptpclk;
1219 unsigned long ptpclk_rate;
1222 spinlock_t tstamp_lock;
1223 struct ptp_clock_info ptp_clock_info;
1224 struct ptp_clock *ptp_clock;
1225 struct hwtstamp_config tstamp_config;
1226 struct cyclecounter tstamp_cc;
1227 struct timecounter tstamp_tc;
1228 unsigned int tstamp_addend;
1229 struct work_struct tx_tstamp_work;
1230 struct sk_buff *tx_tstamp_skb;
1231 u64 tx_tstamp;
1234 struct ieee_ets *ets;
1235 struct ieee_pfc *pfc;
1236 unsigned int q2tc_map[XGBE_MAX_QUEUES];
1237 unsigned int prio2q_map[IEEE_8021QAZ_MAX_TCS];
1238 unsigned int pfcq[XGBE_MAX_QUEUES];
1239 unsigned int pfc_rfa;
1240 u8 num_tcs;
1243 struct xgbe_hw_features hw_feat;
1246 struct work_struct restart_work;
1247 struct work_struct stopdev_work;
1250 unsigned int power_down;
1253 u32 msg_enable;
1256 phy_interface_t phy_mode;
1257 int phy_link;
1258 int phy_speed;
1261 unsigned int phy_started;
1262 void *phy_data;
1263 struct xgbe_phy phy;
1264 int mdio_mmd;
1265 unsigned long link_check;
1266 struct completion mdio_complete;
1268 unsigned int kr_redrv;
1270 char an_name[IFNAMSIZ + 32];
1271 struct workqueue_struct *an_workqueue;
1273 int an_irq;
1274 struct work_struct an_irq_work;
1277 unsigned int an_int;
1278 unsigned int an_status;
1279 struct mutex an_mutex;
1280 enum xgbe_an an_result;
1281 enum xgbe_an an_state;
1282 enum xgbe_rx kr_state;
1283 enum xgbe_rx kx_state;
1284 struct work_struct an_work;
1285 unsigned int an_again;
1286 unsigned int an_supported;
1287 unsigned int parallel_detect;
1288 unsigned int fec_ability;
1289 unsigned long an_start;
1290 unsigned long kr_start_time;
1291 enum xgbe_an_mode an_mode;
1294 struct xgbe_i2c i2c;
1295 struct mutex i2c_mutex;
1296 struct completion i2c_complete;
1297 char i2c_name[IFNAMSIZ + 32];
1299 unsigned int lpm_ctrl; /* CTRL1 for resume */
1301 unsigned int isr_as_tasklet;
1302 struct tasklet_struct tasklet_dev;
1303 struct tasklet_struct tasklet_ecc;
1327 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument