41.7.1.2 Receive Buffer List
Receive data is written to areas of data (i.e., buffers) in system memory. These buffers are listed in another data structure that also resides in main memory. This data structure (receive buffer queue) is a sequence of descriptor entries as defined in Table 1-6 “Receive Buffer Descriptor Entry”.
The Receive Buffer Queue Pointer register points to this data structure.
To create the list of buffers:
- Allocate a number (N) of buffers of X bytes in system memory, where X is the DMA buffer length programmed in the DMA Configuration register.
- Allocate an area 8N bytes for the receive buffer descriptor list in system memory and create N entries in this list. Mark all entries in this list as owned by GMAC, i.e., bit 0 of word 0 set to 0.
- Mark the last descriptor in the queue with the wrap bit (bit 1 in word 0 set to 1).
- Write address of receive buffer descriptor list and control information to GMAC register receive buffer queue pointer
- The receive circuits can then be enabled by writing to the address recognition registers and the Network Control register.