|
RTEMS 6.1-rc2
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
19#ifndef __AT91RM9200_EMAC_H__
20#define __AT91RM9200_EMAC_H__
67#define EMAC_CTL_LB BIT0
68#define EMAC_CTL_LBL BIT1
69#define EMAC_CTL_RE BIT2
70#define EMAC_CTL_TE BIT3
71#define EMAC_CTL_MPE BIT4
72#define EMAC_CTL_CSR BIT5
73#define EMAC_CTL_ISR BIT6
74#define EMAC_CTL_WES BIT7
75#define EMAC_CTL_BP BIT8
78#define EMAC_CFG_SPD BIT0
79#define EMAC_CFG_FD BIT1
80#define EMAC_CFG_BR BIT2
81#define EMAC_CFG_CAF BIT4
82#define EMAC_CFG_NBC BIT5
83#define EMAC_CFG_MTI BIT6
84#define EMAC_CFG_UNI BIT7
85#define EMAC_CFG_BIG BIT8
86#define EMAC_CFG_EAE BIT9
87#define EMAC_CFG_CLK_8 (0 << 10)
88#define EMAC_CFG_CLK_16 (1 << 10)
89#define EMAC_CFG_CLK_32 (2 << 10)
90#define EMAC_CFG_CLK_64 (3 << 10)
91#define EMAC_CFG_CLK_MASK (3 << 10)
92#define EMAC_CFG_RTY BIT12
93#define EMAC_CFG_RMII BIT13
101#define EMAC_TCR_LEN(_x_) ((_x_ & 0x7FF) << 0)
102#define EMAC_TCR_NCRC BIT15
105#define EMAC_TSR_OVR BIT0
106#define EMAC_TSR_COL BIT1
107#define EMAC_TSR_RLE BIT2
108#define EMAC_TSR_TXIDLE BIT3
109#define EMAC_TSR_BNQ BIT4
110#define EMAC_TSR_COMP BIT5
111#define EMAC_TSR_UND BIT6
114#define EMAC_RSR_BNA BIT0
115#define EMAC_RSR_REC BIT1
116#define EMAC_RSR_OVR BIT2
124#define EMAC_INT_DONE BIT0
125#define EMAC_INT_RCOM BIT1
126#define EMAC_INT_RBNA BIT2
127#define EMAC_INT_TOVR BIT3
128#define EMAC_INT_TUND BIT4
129#define EMAC_INT_RTRY BIT5
130#define EMAC_INT_TBRE BIT6
131#define EMAC_INT_TCOM BIT7
132#define EMAC_INT_TIDLE BIT8
133#define EMAC_INT_LINK BIT9
134#define EMAC_INT_ROVR BIT10
135#define EMAC_INT_ABT BIT11
138#define EMAC_MAN_DATA(_x_) ((_x_ & 0xFFFF) << 0)
139#define EMAC_MAN_CODE (0x2 << 16)
140#define EMAC_MAN_REGA(_x_) ((_x_ & 0x1F) << 18)
141#define EMAC_MAN_PHYA(_x_) ((_x_ & 0x1F) << 23)
142#define EMAC_MAN_WRITE (0x1 << 28)
143#define EMAC_MAN_READ (0x2 << 28)
144#define EMAC_MAN_HIGH BIT30
145#define EMAC_MAN_LOW BIT31
151#define RXBUF_ADD_BASE_MASK 0xfffffffc
152#define RXBUF_ADD_WRAP BIT1
153#define RXBUF_ADD_OWNED BIT0
156#define RXBUF_STAT_BCAST BIT31
157#define RXBUF_STAT_MULTI BIT30
158#define RXBUF_STAT_UNI BIT29
159#define RXBUF_STAT_EXT BIT28
160#define RXBUF_STAT_UNK BIT27
161#define RXBUF_STAT_LOC1 BIT26
162#define RXBUF_STAT_LOC2 BIT25
163#define RXBUF_STAT_LOC3 BIT24
164#define RXBUF_STAT_LOC4 BIT23
165#define RXBUF_STAT_LEN_MASK 0x7ff