5 functional description, 1 buffer descriptors, 1 driver/dma operation with buffer descriptors – Motorola ColdFire MCF5281 User Manual

Page 335: 5 functional description -25, 1 buffer descriptors -25, 1 driver/dma operation with buffer descriptors -25

Advertising
background image

Fast Ethernet Controller (FEC)

Freescale Semiconductor

17-25

To minimize bus utilization (descriptor fetches), it is recommended that EMRBR be greater than or equal
to 256 bytes.

The EMRBR register is undefined at reset and must be initialized by the user.

17.5

Functional Description

This section describes the operation of the FEC, beginning with the buffer descriptors, the hardware and
software initialization sequence, then the software (Ethernet driver) interface for transmitting and
receiving frames.

Following the software initialization and operation sections are sections providing a detailed description
of the functions of the FEC.

17.5.1

Buffer Descriptors

This section provides a description of the operation of the driver/DMA via the buffer descriptors. It is
followed by a detailed description of the receive and transmit descriptor fields.

17.5.1.1

Driver/DMA Operation with Buffer Descriptors

The data for the FEC frames resides in one or more memory buffers external to the FEC. Associated with
each buffer is a buffer descriptor (BD), which contains a starting address (32-bit aligned pointer), data
length, and status/control information (which contains the current state for the buffer). To permit
maximum user flexibility, the BDs are also located in external memory and are read by the FEC DMA
engine.

IPSBAR

Offset:

0x1188

Access: User read/write

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10

9

8

7

6

5

4

3

2

1

0

R 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

R_BUF_SIZE

0 0

0

0

W

Reset — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

Figure 17-24. Receive Buffer Size Register (EMRBR)

Table 17-28. EMRBR Field Descriptions

Field

Description

31–11

Reserved, must be cleared.

10–4

R_BUF_SIZE

Maximum size of receive buffer size in bytes. To minimize bus utilization (descriptor fetches), set this field to 256
bytes (0x10) or larger.
0x10 256 + 15 bytes (minimum size recommended)
0x11 272 + 15 bytes
...
0x7F 2032 + 15 bytes. The FEC writes up to 2047 bytes in the receive buffer. If data larger than 2047 is

received, the FEC truncates it and shows 0x7FF in the receive descriptor

3–0

Reserved, must be cleared.

MCF5282 and MCF5216 ColdFire Microcontroller User’s Manual, Rev. 3

Advertising
This manual is related to the following products: