Electronic Components Datasheet Search
  English  ▼

X  

UM0851 Datasheet(PDF) 46 Page - STMicroelectronics

Part # UM0851
Description  SPEAr is a family of highly customizable ARM-based embedded
PDF  245 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0851 Datasheet(HTML) 46 Page - STMicroelectronics

Back Button UM0851 Datasheet HTML 42Page - STMicroelectronics UM0851 Datasheet HTML 43Page - STMicroelectronics UM0851 Datasheet HTML 44Page - STMicroelectronics UM0851 Datasheet HTML 45Page - STMicroelectronics UM0851 Datasheet HTML 46Page - STMicroelectronics UM0851 Datasheet HTML 47Page - STMicroelectronics UM0851 Datasheet HTML 48Page - STMicroelectronics UM0851 Datasheet HTML 49Page - STMicroelectronics UM0851 Datasheet HTML 50Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 46 / 245 page
background image
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);



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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