Lines Matching defs:xgbe_prv_data

1024 struct xgbe_prv_data {  struct
1025 struct net_device *netdev;
1026 struct pci_dev *pcidev;
1027 struct platform_device *platdev;
1028 struct acpi_device *adev;
1029 struct device *dev;
1030 struct platform_device *phy_platdev;
1031 struct device *phy_dev;
1034 struct xgbe_version_data *vdata;
1037 unsigned int use_acpi;
1040 void __iomem *xgmac_regs; /* XGMAC CSRs */
1041 void __iomem *xpcs_regs; /* XPCS MMD registers */
1042 void __iomem *rxtx_regs; /* SerDes Rx/Tx CSRs */
1043 void __iomem *sir0_regs; /* SerDes integration registers (1/2) */
1044 void __iomem *sir1_regs; /* SerDes integration registers (2/2) */
1045 void __iomem *xprop_regs; /* XGBE property registers */
1046 void __iomem *xi2c_regs; /* XGBE I2C CSRs */
1049 unsigned int pp0;
1050 unsigned int pp1;
1051 unsigned int pp2;
1052 unsigned int pp3;
1053 unsigned int pp4;
1056 spinlock_t lock;
1059 spinlock_t xpcs_lock;
1060 unsigned int xpcs_window_def_reg;
1061 unsigned int xpcs_window_sel_reg;
1062 unsigned int xpcs_window;
1063 unsigned int xpcs_window_size;
1064 unsigned int xpcs_window_mask;
1067 struct mutex rss_mutex;
1070 unsigned long dev_state;
1073 unsigned long tx_sec_period;
1074 unsigned long tx_ded_period;
1075 unsigned long rx_sec_period;
1076 unsigned long rx_ded_period;
1077 unsigned long desc_sec_period;
1078 unsigned long desc_ded_period;
1080 unsigned int tx_sec_count;
1081 unsigned int tx_ded_count;
1082 unsigned int rx_sec_count;
1083 unsigned int rx_ded_count;
1084 unsigned int desc_ded_count;
1085 unsigned int desc_sec_count;
1087 int dev_irq;
1088 int ecc_irq;
1089 int i2c_irq;
1090 int channel_irq[XGBE_MAX_DMA_CHANNELS];
1092 unsigned int per_channel_irq;
1093 unsigned int irq_count;
1094 unsigned int channel_irq_count;
1095 unsigned int channel_irq_mode;
1097 char ecc_name[IFNAMSIZ + 32];
1099 struct xgbe_hw_if hw_if;
1100 struct xgbe_phy_if phy_if;
1101 struct xgbe_desc_if desc_if;
1102 struct xgbe_i2c_if i2c_if;
1105 unsigned int coherent;
1106 unsigned int arcr;
1107 unsigned int awcr;
1108 unsigned int awarcr;
1111 struct workqueue_struct *dev_workqueue;
1112 struct work_struct service_work;
1113 struct timer_list service_timer;
1116 struct xgbe_channel *channel[XGBE_MAX_DMA_CHANNELS];
1117 unsigned int tx_max_channel_count;
1118 unsigned int rx_max_channel_count;
1119 unsigned int channel_count;
1120 unsigned int tx_ring_count;
1121 unsigned int tx_desc_count;
1122 unsigned int rx_ring_count;
1123 unsigned int rx_desc_count;
1125 unsigned int new_tx_ring_count;
1126 unsigned int new_rx_ring_count;
1128 unsigned int tx_max_q_count;
1129 unsigned int rx_max_q_count;
1130 unsigned int tx_q_count;
1131 unsigned int rx_q_count;
1134 unsigned int blen;
1135 unsigned int pbl;
1136 unsigned int aal;
1137 unsigned int rd_osr_limit;
1138 unsigned int wr_osr_limit;
1141 unsigned int tx_sf_mode;
1142 unsigned int tx_threshold;
1143 unsigned int tx_osp_mode;
1144 unsigned int tx_max_fifo_size;
1147 unsigned int rx_sf_mode;
1148 unsigned int rx_threshold;
1149 unsigned int rx_max_fifo_size;
1152 unsigned int tx_usecs;
1153 unsigned int tx_frames;
1156 unsigned int rx_riwt;
1157 unsigned int rx_usecs;
1158 unsigned int rx_frames;
1161 unsigned int rx_buf_size;
1164 unsigned int pause_autoneg;
1165 unsigned int tx_pause;
1166 unsigned int rx_pause;
1167 unsigned int rx_rfa[XGBE_MAX_QUEUES];
1168 unsigned int rx_rfd[XGBE_MAX_QUEUES];
1171 u8 rss_key[XGBE_RSS_HASH_KEY_SIZE];
1172 u32 rss_table[XGBE_RSS_MAX_TABLE_SIZE];
1173 u32 rss_options;
1176 unsigned int vxlan_port_set;
1177 unsigned int vxlan_offloads_set;
1178 unsigned int vxlan_force_disable;
1179 unsigned int vxlan_port_count;
1180 struct list_head vxlan_ports;
1181 u16 vxlan_port;
1182 netdev_features_t vxlan_features;
1185 unsigned char mac_addr[ETH_ALEN];
1186 netdev_features_t netdev_features;
1187 struct napi_struct napi;
1188 struct xgbe_mmc_stats mmc_stats;
1189 struct xgbe_ext_stats ext_stats;
1192 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
1195 struct clk *sysclk;
1196 unsigned long sysclk_rate;
1197 struct clk *ptpclk;
1198 unsigned long ptpclk_rate;
1201 spinlock_t tstamp_lock;
1202 struct ptp_clock_info ptp_clock_info;
1203 struct ptp_clock *ptp_clock;
1204 struct hwtstamp_config tstamp_config;
1205 struct cyclecounter tstamp_cc;
1206 struct timecounter tstamp_tc;
1207 unsigned int tstamp_addend;
1208 struct work_struct tx_tstamp_work;
1209 struct sk_buff *tx_tstamp_skb;
1210 u64 tx_tstamp;
1213 struct ieee_ets *ets;
1214 struct ieee_pfc *pfc;
1215 unsigned int q2tc_map[XGBE_MAX_QUEUES];
1216 unsigned int prio2q_map[IEEE_8021QAZ_MAX_TCS];
1217 unsigned int pfcq[XGBE_MAX_QUEUES];
1218 unsigned int pfc_rfa;
1219 u8 num_tcs;
1222 struct xgbe_hw_features hw_feat;
1225 struct work_struct restart_work;
1226 struct work_struct stopdev_work;
1229 unsigned int power_down;
1232 u32 msg_enable;
1235 phy_interface_t phy_mode;
1236 int phy_link;
1237 int phy_speed;
1240 unsigned int phy_started;
1241 void *phy_data;
1242 struct xgbe_phy phy;
1243 int mdio_mmd;
1244 unsigned long link_check;
1245 struct completion mdio_complete;
1247 unsigned int kr_redrv;
1249 char an_name[IFNAMSIZ + 32];
1250 struct workqueue_struct *an_workqueue;
1252 int an_irq;
1253 struct work_struct an_irq_work;
1256 unsigned int an_int;
1257 unsigned int an_status;
1258 struct mutex an_mutex;
1259 enum xgbe_an an_result;
1260 enum xgbe_an an_state;
1261 enum xgbe_rx kr_state;
1262 enum xgbe_rx kx_state;
1263 struct work_struct an_work;
1264 unsigned int an_again;
1265 unsigned int an_supported;
1266 unsigned int parallel_detect;
1267 unsigned int fec_ability;
1268 unsigned long an_start;
1269 enum xgbe_an_mode an_mode;
1272 struct xgbe_i2c i2c;
1273 struct mutex i2c_mutex;
1274 struct completion i2c_complete;
1275 char i2c_name[IFNAMSIZ + 32];
1277 unsigned int lpm_ctrl; /* CTRL1 for resume */
1301 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *); argument