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_buf_size;
237 unsigned int rx_buf_offset;
240 unsigned int rx_frag_size;
243 void **rx_buf;
247 struct timer_list rx_timeout;
250 spinlock_t rx_lock;
254 int tx_chan;
257 int tx_ring_size;
260 int dma_maxburst;
263 struct bcm_enet_desc *tx_desc_cpu;
266 int tx_desc_count;
269 int tx_curr_desc;
272 int tx_dirty_desc;
275 struct sk_buff **tx_skb;
278 spinlock_t tx_lock;
283 int use_external_mii;
287 int has_phy;
288 int phy_id;
291 int has_phy_interrupt;
292 int phy_interrupt;
295 struct mii_bus *mii_bus;
296 int old_link;
297 int old_duplex;
298 int old_pause;
301 int force_speed_100;
302 int force_duplex_full;
305 int pause_auto;
306 int pause_rx;
307 int pause_tx;
310 struct bcm_enet_mib_counters mib;
314 struct work_struct mib_update_task;
317 struct mutex mib_update_lock;
320 struct clk *mac_clk;
323 struct clk *phy_clk;
326 struct net_device *net_dev;
329 struct platform_device *pdev;
332 unsigned int hw_mtu;
334 bool enet_is_sw;
337 int num_ports;
338 struct bcm63xx_enetsw_port used_ports[ENETSW_MAX_PORT];
339 int sw_port_link[ENETSW_MAX_PORT];
342 struct timer_list swphy_poll;
343 spinlock_t enetsw_mdio_lock;
346 u32 dma_chan_en_mask;
349 u32 dma_chan_int_mask;
352 bool dma_has_sram;
355 unsigned int dma_chan_width;
358 unsigned int dma_desc_shift;