Lines Matching defs:bcm_enet_priv
194 struct bcm_enet_priv { struct
197 void __iomem *base;
200 int irq;
201 int irq_rx;
202 int irq_tx;
205 dma_addr_t rx_desc_dma;
206 dma_addr_t tx_desc_dma;
209 unsigned int rx_desc_alloc_size;
210 unsigned int tx_desc_alloc_size;
213 struct napi_struct napi;
216 int rx_chan;
219 int rx_ring_size;
222 struct bcm_enet_desc *rx_desc_cpu;
225 int rx_desc_count;
228 int rx_curr_desc;
231 int rx_dirty_desc;
234 unsigned int rx_skb_size;
237 struct sk_buff **rx_skb;
241 struct timer_list rx_timeout;
244 spinlock_t rx_lock;
248 int tx_chan;
251 int tx_ring_size;
254 int dma_maxburst;
257 struct bcm_enet_desc *tx_desc_cpu;
260 int tx_desc_count;
263 int tx_curr_desc;
266 int tx_dirty_desc;
269 struct sk_buff **tx_skb;
272 spinlock_t tx_lock;
277 int use_external_mii;
281 int has_phy;
282 int phy_id;
285 int has_phy_interrupt;
286 int phy_interrupt;
289 struct mii_bus *mii_bus;
290 int old_link;
291 int old_duplex;
292 int old_pause;
295 int force_speed_100;
296 int force_duplex_full;
299 int pause_auto;
300 int pause_rx;
301 int pause_tx;
304 struct bcm_enet_mib_counters mib;
308 struct work_struct mib_update_task;
311 struct mutex mib_update_lock;
314 struct clk *mac_clk;
317 struct clk *phy_clk;
320 struct net_device *net_dev;
323 struct platform_device *pdev;
326 unsigned int hw_mtu;
328 bool enet_is_sw;
331 int num_ports;
332 struct bcm63xx_enetsw_port used_ports[ENETSW_MAX_PORT];
333 int sw_port_link[ENETSW_MAX_PORT];
336 struct timer_list swphy_poll;
337 spinlock_t enetsw_mdio_lock;
340 u32 dma_chan_en_mask;
343 u32 dma_chan_int_mask;
346 bool dma_has_sram;
349 unsigned int dma_chan_width;
352 unsigned int dma_desc_shift;