Programming Model
17.4.14.2.5 Truncation
When the receive frame length exceeds 2047 bytes the frame is truncated and the TR bit is
set in the receive BD.
17.5 Programming Model
This section gives an overview of the registers, followed by a description of the buffers.
The FEC is programmed by a combination of control/status registers (CSRs) and buffer
descriptors. The CSRs are used for mode control and to extract global status information.
The descriptors are used to pass data buffers and related buffer information between the
hardware and software.
17.5.1 Top Level Module Memory Map
The FEC implementation requires a 1-Kbyte memory map space. This is divided into 2
sections of 512 bytes each. The first is used for control/status registers. The second contains
event/statistic counters held in the MIB block. Table 17-9 defines the top level memory
map.
IPSBAR + 0x1000-11FF
IPSBAR + 0x1200-13FF
17.5.2 Detailed Memory Map (Control/Status Registers)
Table 17-10 shows the FEC register memory map with each register address, name, and a
brief description.
IPSBAR
Offset
0x1004
0x1008
0x1010
0x1014
0x1024
0x1040
0x1044
0x1064
17-20
Table 17-9. Module Memory Map
Address
Table 17-10. FEC Register Memory Map
Name
EIR
EIMR
RDAR
TDAR
ECR
MDATA
MSCR
MIBC
MCF5282 User's Manual
Function
Control/Status Registers
MIB Block Counters
Width
Description
32
Interrupt Event Register
32
Interrupt Mask Register
32
Receive Descriptor Active Register
32
Transmit Descriptor Active Register
32
Ethernet Control Register
32
MII Data Register
32
MII Speed Control Register
32
MIB Control/Status Register
MOTOROLA