Lines Matching defs:xgbe_prv_data
1044 struct xgbe_prv_data { struct
1045 struct net_device *netdev;
1046 struct pci_dev *pcidev;
1047 struct platform_device *platdev;
1048 struct acpi_device *adev;
1049 struct device *dev;
1050 struct platform_device *phy_platdev;
1051 struct device *phy_dev;
1054 struct xgbe_version_data *vdata;
1057 unsigned int use_acpi;
1060 void __iomem *xgmac_regs; /* XGMAC CSRs */
1061 void __iomem *xpcs_regs; /* XPCS MMD registers */
1062 void __iomem *rxtx_regs; /* SerDes Rx/Tx CSRs */
1063 void __iomem *sir0_regs; /* SerDes integration registers (1/2) */
1064 void __iomem *sir1_regs; /* SerDes integration registers (2/2) */
1065 void __iomem *xprop_regs; /* XGBE property registers */
1066 void __iomem *xi2c_regs; /* XGBE I2C CSRs */
1069 unsigned int pp0;
1070 unsigned int pp1;
1071 unsigned int pp2;
1072 unsigned int pp3;
1073 unsigned int pp4;
1076 spinlock_t lock;
1079 spinlock_t xpcs_lock;
1080 unsigned int xpcs_window_def_reg;
1081 unsigned int xpcs_window_sel_reg;
1082 unsigned int xpcs_window;
1083 unsigned int xpcs_window_size;
1084 unsigned int xpcs_window_mask;
1087 struct mutex rss_mutex;
1090 unsigned long dev_state;
1093 unsigned long tx_sec_period;
1094 unsigned long tx_ded_period;
1095 unsigned long rx_sec_period;
1096 unsigned long rx_ded_period;
1097 unsigned long desc_sec_period;
1098 unsigned long desc_ded_period;
1100 unsigned int tx_sec_count;
1101 unsigned int tx_ded_count;
1102 unsigned int rx_sec_count;
1103 unsigned int rx_ded_count;
1104 unsigned int desc_ded_count;
1105 unsigned int desc_sec_count;
1107 int dev_irq;
1108 int ecc_irq;
1109 int i2c_irq;
1110 int channel_irq[XGBE_MAX_DMA_CHANNELS];
1112 unsigned int per_channel_irq;
1113 unsigned int irq_count;
1114 unsigned int channel_irq_count;
1115 unsigned int channel_irq_mode;
1117 char ecc_name[IFNAMSIZ + 32];
1119 struct xgbe_hw_if hw_if;
1120 struct xgbe_phy_if phy_if;
1121 struct xgbe_desc_if desc_if;
1122 struct xgbe_i2c_if i2c_if;
1125 unsigned int coherent;
1126 unsigned int arcr;
1127 unsigned int awcr;
1128 unsigned int awarcr;
1131 struct workqueue_struct *dev_workqueue;
1132 struct work_struct service_work;
1133 struct timer_list service_timer;
1136 struct xgbe_channel *channel[XGBE_MAX_DMA_CHANNELS];
1137 unsigned int tx_max_channel_count;
1138 unsigned int rx_max_channel_count;
1139 unsigned int channel_count;
1140 unsigned int tx_ring_count;
1141 unsigned int tx_desc_count;
1142 unsigned int rx_ring_count;
1143 unsigned int rx_desc_count;
1145 unsigned int new_tx_ring_count;
1146 unsigned int new_rx_ring_count;
1148 unsigned int tx_max_q_count;
1149 unsigned int rx_max_q_count;
1150 unsigned int tx_q_count;
1151 unsigned int rx_q_count;
1154 unsigned int blen;
1155 unsigned int pbl;
1156 unsigned int aal;
1157 unsigned int rd_osr_limit;
1158 unsigned int wr_osr_limit;
1161 unsigned int tx_sf_mode;
1162 unsigned int tx_threshold;
1163 unsigned int tx_osp_mode;
1164 unsigned int tx_max_fifo_size;
1167 unsigned int rx_sf_mode;
1168 unsigned int rx_threshold;
1169 unsigned int rx_max_fifo_size;
1172 unsigned int tx_usecs;
1173 unsigned int tx_frames;
1176 unsigned int rx_riwt;
1177 unsigned int rx_usecs;
1178 unsigned int rx_frames;
1181 unsigned int rx_buf_size;
1184 unsigned int pause_autoneg;
1185 unsigned int tx_pause;
1186 unsigned int rx_pause;
1187 unsigned int rx_rfa[XGBE_MAX_QUEUES];
1188 unsigned int rx_rfd[XGBE_MAX_QUEUES];
1191 u8 rss_key[XGBE_RSS_HASH_KEY_SIZE];
1192 u32 rss_table[XGBE_RSS_MAX_TABLE_SIZE];
1193 u32 rss_options;
1196 u16 vxlan_port;
1199 unsigned char mac_addr[ETH_ALEN];
1200 netdev_features_t netdev_features;
1201 struct napi_struct napi;
1202 struct xgbe_mmc_stats mmc_stats;
1203 struct xgbe_ext_stats ext_stats;
1206 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
1209 struct clk *sysclk;
1210 unsigned long sysclk_rate;
1211 struct clk *ptpclk;
1212 unsigned long ptpclk_rate;
1215 spinlock_t tstamp_lock;
1216 struct ptp_clock_info ptp_clock_info;
1217 struct ptp_clock *ptp_clock;
1218 struct hwtstamp_config tstamp_config;
1219 struct cyclecounter tstamp_cc;
1220 struct timecounter tstamp_tc;
1221 unsigned int tstamp_addend;
1222 struct work_struct tx_tstamp_work;
1223 struct sk_buff *tx_tstamp_skb;
1224 u64 tx_tstamp;
1227 struct ieee_ets *ets;
1228 struct ieee_pfc *pfc;
1229 unsigned int q2tc_map[XGBE_MAX_QUEUES];
1230 unsigned int prio2q_map[IEEE_8021QAZ_MAX_TCS];
1231 unsigned int pfcq[XGBE_MAX_QUEUES];
1232 unsigned int pfc_rfa;
1233 u8 num_tcs;
1236 struct xgbe_hw_features hw_feat;
1239 struct work_struct restart_work;
1240 struct work_struct stopdev_work;
1243 unsigned int power_down;
1246 u32 msg_enable;
1249 phy_interface_t phy_mode;
1250 int phy_link;
1251 int phy_speed;
1254 unsigned int phy_started;
1255 void *phy_data;
1256 struct xgbe_phy phy;
1257 int mdio_mmd;
1258 unsigned long link_check;
1259 struct completion mdio_complete;
1261 unsigned int kr_redrv;
1263 char an_name[IFNAMSIZ + 32];
1264 struct workqueue_struct *an_workqueue;
1266 int an_irq;
1267 struct work_struct an_irq_work;
1270 unsigned int an_int;
1271 unsigned int an_status;
1272 struct mutex an_mutex;
1273 enum xgbe_an an_result;
1274 enum xgbe_an an_state;
1275 enum xgbe_rx kr_state;
1276 enum xgbe_rx kx_state;
1277 struct work_struct an_work;
1278 unsigned int an_again;
1279 unsigned int an_supported;
1280 unsigned int parallel_detect;
1281 unsigned int fec_ability;
1282 unsigned long an_start;
1283 enum xgbe_an_mode an_mode;
1286 struct xgbe_i2c i2c;
1287 struct mutex i2c_mutex;
1288 struct completion i2c_complete;
1289 char i2c_name[IFNAMSIZ + 32];
1291 unsigned int lpm_ctrl; /* CTRL1 for resume */
1315 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument