| Electronic Components Datasheet Search |
|
UM0851 Datasheet(PDF) 46 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 Datasheet(HTML) 46 Page - STMicroelectronics |
|
46 / 245 page ![]() Communication device drivers UM0851 46/245 Doc ID 16604 Rev 2 dev->hard_start_xmit = spear_eth_start_xmit; dev->set_multicast_list = spear_eth_set_multicast_list; dev->change_mtu = &spear_eth_change_mtu; dev->dev_addr[0-5] = MAC ADDRESS; /* The private data structure use by the driver is */ struct spear_eth_priv { struct dma_mac_descr *txd_table; struct dma_mac_descr *rxd_table; dma_addr_t dma_tx_descrp; dma_addr_t dma_rx_descrp; volatile unsigned int rx_curr_descr_num; volatile unsigned int tx_curr_descr_num; volatile unsigned int tx_prev_descr_num; volatile signed int tx_mac_win_size; int tx_ring_count; int rx_ring_count; spinlock_t eth_lock; struct tasklet_struct rx_tasklet; struct tasklet_struct tx_tasklet; struct timer_list tmr_hotplug; /* MII interface info */ struct mii_if_info mii; /* OS defined structs */ struct net_device *dev; struct platform_device *pdev; struct net_device_stats stats; uint32_t gotcl; /* RX */ uint64_t hw_csum_err; uint64_t hw_csum_good; uint32_t gorcl; struct spear_hw_stats hw_stats; struct mii_phy phy; u8 spr_dma_rx_abnorm; struct clk *spear_eth_clk; int rx_skb_size; int rx_sync_size; struct resource *res; }; PHY framework for SPEAr The PHY abstraction layer in SPEAr provides a generic interface to support different PHYs. The interface is defined as spear_mii_phy_probe(struct mii_phy *phy, u8 address). It is used to probe for the PHY addresses from 0-31 across the set of known or generic PHY interfaces maintained in the PHY table structure (struct mii_phy_def). Below is a set of data structures used in the interface: struct mii_phy_def { u32 phy_id; /* Concatenated ID1 << 16 | ID2 */ u32 phy_id_mask; /* Significant bits */ u32 features; /* Ethtool SUPPORTED_* defines or 0 for autodetect */ int magic_aneg; /* Autoneg does all speed test for us */ const char *name; const struct mii_phy_ops *ops; }; struct mii_phy_ops { int (*init) (struct mii_phy * phy); |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |