Lines Matching defs:xgbe_prv_data

1010 struct xgbe_prv_data {  struct
1011 if_t netdev;
1013 struct platform_device *pdev;
1014 struct acpi_device *adev;
1015 device_t dev;
1018 struct xgbe_version_data *vdata;
1021 unsigned int use_acpi;
1024 struct resource *xgmac_res; /* XGMAC CSRs */
1025 struct resource *xpcs_res; /* XPCS MMD registers */
1026 struct resource *rxtx_res; /* SerDes Rx/Tx CSRs */
1027 struct resource *sir0_res; /* SerDes integration registers (1/2) */
1028 struct resource *sir1_res; /* SerDes integration registers (2/2) */
1031 unsigned int pp0;
1032 unsigned int pp1;
1033 unsigned int pp2;
1034 unsigned int pp3;
1035 unsigned int pp4;
1038 bus_dma_tag_t dmat;
1041 spinlock_t xpcs_lock;
1042 unsigned int xpcs_window_def_reg;
1043 unsigned int xpcs_window_sel_reg;
1044 unsigned int xpcs_window;
1045 unsigned int xpcs_window_size;
1046 unsigned int xpcs_window_mask;
1049 struct mtx rss_mutex;
1052 unsigned long dev_state;
1055 unsigned long tx_sec_period;
1056 unsigned long tx_ded_period;
1057 unsigned long rx_sec_period;
1058 unsigned long rx_ded_period;
1059 unsigned long desc_sec_period;
1060 unsigned long desc_ded_period;
1062 unsigned int tx_sec_count;
1063 unsigned int tx_ded_count;
1064 unsigned int rx_sec_count;
1065 unsigned int rx_ded_count;
1066 unsigned int desc_ded_count;
1067 unsigned int desc_sec_count;
1069 struct if_irq dev_irq;
1071 struct resource *dev_irq_res;
1072 struct resource *ecc_irq_res;
1073 struct resource *i2c_irq_res;
1074 struct resource *an_irq_res;
1076 int ecc_rid;
1077 int i2c_rid;
1078 int an_rid;
1080 void *dev_irq_tag;
1081 void *ecc_irq_tag;
1082 void *i2c_irq_tag;
1083 void *an_irq_tag;
1085 struct resource *chan_irq_res[XGBE_MAX_DMA_CHANNELS];
1087 unsigned int per_channel_irq;
1088 unsigned int irq_count;
1089 unsigned int channel_irq_count;
1090 unsigned int channel_irq_mode;
1092 char ecc_name[IFNAMSIZ + 32];
1094 unsigned int isr_as_tasklet;
1095 struct xgbe_hw_if hw_if;
1096 struct xgbe_phy_if phy_if;
1097 struct xgbe_desc_if desc_if;
1098 struct xgbe_i2c_if i2c_if;
1101 unsigned int coherent;
1102 unsigned int arcr;
1103 unsigned int awcr;
1104 unsigned int awarcr;
1107 struct taskqueue *dev_workqueue;
1108 struct task service_work;
1109 struct callout service_timer;
1110 struct mtx timer_mutex;
1113 struct xgbe_channel *channel[XGBE_MAX_DMA_CHANNELS];
1114 unsigned int tx_max_channel_count;
1115 unsigned int rx_max_channel_count;
1116 unsigned int total_channel_count;
1117 unsigned int channel_count;
1118 unsigned int tx_ring_count;
1119 unsigned int tx_desc_count;
1120 unsigned int rx_ring_count;
1121 unsigned int rx_desc_count;
1123 unsigned int new_tx_ring_count;
1124 unsigned int new_rx_ring_count;
1126 unsigned int tx_max_q_count;
1127 unsigned int rx_max_q_count;
1128 unsigned int tx_q_count;
1129 unsigned int rx_q_count;
1132 unsigned int blen;
1133 unsigned int pbl;
1134 unsigned int aal;
1135 unsigned int rd_osr_limit;
1136 unsigned int wr_osr_limit;
1139 unsigned int tx_sf_mode;
1140 unsigned int tx_threshold;
1141 unsigned int tx_osp_mode;
1142 unsigned int tx_max_fifo_size;
1145 unsigned int rx_sf_mode;
1146 unsigned int rx_threshold;
1147 unsigned int rx_max_fifo_size;
1150 unsigned int tx_usecs;
1151 unsigned int tx_frames;
1154 unsigned int rx_riwt;
1155 unsigned int rx_usecs;
1156 unsigned int rx_frames;
1159 unsigned int rx_buf_size;
1162 unsigned int pause_autoneg;
1163 unsigned int tx_pause;
1164 unsigned int rx_pause;
1165 unsigned int rx_rfa[XGBE_MAX_QUEUES];
1166 unsigned int rx_rfd[XGBE_MAX_QUEUES];
1169 uint8_t rss_key[XGBE_RSS_HASH_KEY_SIZE];
1170 uint32_t rss_table[XGBE_RSS_MAX_TABLE_SIZE];
1171 uint32_t rss_options;
1172 unsigned int enable_rss;
1175 unsigned int vxlan_port_set;
1176 unsigned int vxlan_offloads_set;
1177 unsigned int vxlan_force_disable;
1178 unsigned int vxlan_port_count;
1179 uint16_t vxlan_port;
1180 uint64_t vxlan_features;
1183 unsigned char mac_addr[ETH_ALEN];
1184 uint64_t netdev_features;
1185 struct xgbe_mmc_stats mmc_stats;
1186 struct xgbe_ext_stats ext_stats;
1189 bitstr_t *active_vlans;
1190 unsigned int num_active_vlans;
1193 struct clk *sysclk;
1194 unsigned long sysclk_rate;
1195 struct clk *ptpclk;
1196 unsigned long ptpclk_rate;
1199 unsigned int q2tc_map[XGBE_MAX_QUEUES];
1200 unsigned int prio2q_map[IEEE_8021QAZ_MAX_TCS];
1203 struct xgbe_hw_features hw_feat;
1206 struct task restart_work;
1207 struct task stopdev_work;
1210 unsigned int power_down;
1213 uint32_t msg_enable;
1216 int phy_link;
1217 int phy_speed;
1220 unsigned int phy_started;
1221 void *phy_data;
1222 struct xgbe_phy phy;
1223 int mdio_mmd;
1224 unsigned long link_check;
1225 struct mtx mdio_mutex;
1226 unsigned int mdio_addr;
1228 unsigned int kr_redrv;
1230 char an_name[IFNAMSIZ + 32];
1231 struct taskqueue *an_workqueue;
1233 struct task an_irq_work;
1235 unsigned int speed_set;
1243 uint32_t serdes_blwc[XGBE_SPEEDS];
1244 uint32_t serdes_cdr_rate[XGBE_SPEEDS];
1245 uint32_t serdes_pq_skew[XGBE_SPEEDS];
1246 uint32_t serdes_tx_amp[XGBE_SPEEDS];
1247 uint32_t serdes_dfe_tap_cfg[XGBE_SPEEDS];
1248 uint32_t serdes_dfe_tap_ena[XGBE_SPEEDS];
1251 unsigned int an_int;
1252 unsigned int an_status;
1253 struct sx an_mutex;
1254 enum xgbe_an an_result;
1255 enum xgbe_an an_state;
1256 enum xgbe_rx kr_state;
1257 enum xgbe_rx kx_state;
1258 struct task an_work;
1259 unsigned int an_again;
1260 unsigned int an_supported;
1261 unsigned int parallel_detect;
1262 unsigned int fec_ability;
1263 unsigned long an_start;
1264 enum xgbe_an_mode an_mode;
1267 struct xgbe_i2c i2c;
1268 struct mtx i2c_mutex;
1269 bool i2c_complete;
1271 unsigned int lpm_ctrl; /* CTRL1 for resume */
1272 unsigned int an_cdr_track_early;
1274 uint64_t features;
1276 device_t axgbe_miibus;
1277 unsigned int sysctl_xgmac_reg;
1278 unsigned int sysctl_xpcs_mmd;
1279 unsigned int sysctl_xpcs_reg;
1281 unsigned int sysctl_xprop_reg;
1282 unsigned int sysctl_xi2c_reg;
1307 struct xgbe_prv_data pdata; argument