|
53 | 53 | #define FEC_R_FSTART 0x150 /* FIFO receive start reg */
|
54 | 54 | #define FEC_R_DES_START_1 0x160 /* Receive descriptor ring 1 */
|
55 | 55 | #define FEC_X_DES_START_1 0x164 /* Transmit descriptor ring 1 */
|
| 56 | +#define FEC_R_BUFF_SIZE_1 0x168 /* Maximum receive buff ring1 size */ |
56 | 57 | #define FEC_R_DES_START_2 0x16c /* Receive descriptor ring 2 */
|
57 | 58 | #define FEC_X_DES_START_2 0x170 /* Transmit descriptor ring 2 */
|
| 59 | +#define FEC_R_BUFF_SIZE_2 0x174 /* Maximum receive buff ring2 size */ |
58 | 60 | #define FEC_R_DES_START_0 0x180 /* Receive descriptor ring */
|
59 | 61 | #define FEC_X_DES_START_0 0x184 /* Transmit descriptor ring */
|
60 |
| -#define FEC_R_BUFF_SIZE 0x188 /* Maximum receive buff size */ |
| 62 | +#define FEC_R_BUFF_SIZE_0 0x188 /* Maximum receive buff size */ |
61 | 63 | #define FEC_R_FIFO_RSFL 0x190 /* Receive FIFO section full threshold */
|
62 | 64 | #define FEC_R_FIFO_RSEM 0x194 /* Receive FIFO section empty threshold */
|
63 | 65 | #define FEC_R_FIFO_RAEM 0x198 /* Receive FIFO almost empty threshold */
|
|
165 | 167 | #define FEC_X_DES_START_0 0x3d4 /* Transmit descriptor ring */
|
166 | 168 | #define FEC_X_DES_START_1 FEC_X_DES_START_0
|
167 | 169 | #define FEC_X_DES_START_2 FEC_X_DES_START_0
|
168 |
| -#define FEC_R_BUFF_SIZE 0x3d8 /* Maximum receive buff size */ |
| 170 | +#define FEC_R_BUFF_SIZE_0 0x3d8 /* Maximum receive buff size */ |
| 171 | +#define FEC_R_BUFF_SIZE_1 FEC_R_BUFF_SIZE_0 |
| 172 | +#define FEC_R_BUFF_SIZE_2 FEC_R_BUFF_SIZE_0 |
169 | 173 | #define FEC_FIFO_RAM 0x400 /* FIFO RAM buffer */
|
170 | 174 | /* Not existed in real chip
|
171 | 175 | * Just for pass build.
|
@@ -285,6 +289,9 @@ struct bufdesc_ex {
|
285 | 289 | #define FEC_X_DES_START(X) (((X) == 1) ? FEC_X_DES_START_1 : \
|
286 | 290 | (((X) == 2) ? \
|
287 | 291 | FEC_X_DES_START_2 : FEC_X_DES_START_0))
|
| 292 | +#define FEC_R_BUFF_SIZE(X) (((X) == 1) ? FEC_R_BUFF_SIZE_1 : \ |
| 293 | + (((X) == 2) ? \ |
| 294 | + FEC_R_BUFF_SIZE_2 : FEC_R_BUFF_SIZE_0)) |
288 | 295 | #define FEC_R_DES_ACTIVE(X) (((X) == 1) ? FEC_R_DES_ACTIVE_1 : \
|
289 | 296 | (((X) == 2) ? \
|
290 | 297 | FEC_R_DES_ACTIVE_2 : FEC_R_DES_ACTIVE_0))
|
|
0 commit comments