EasyManua.ls Logo

Broadcom BCM5722 - Figure 36: Firmware Image Moved to Scratch Pad;Rxmbuf; Table 41: Addressing Perspectives

Broadcom BCM5722
593 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BCM5722 Programmer’s Guide
10/15/07
Broadcom Corporation
Page 93 Firmware Download Document 5722-PG101-R
The programmer needs to move these sections to the scratch pad that is reserved out of RXMBUF memory. This is the
binary image that the RISC core executes. The following figure shows a conceptual layout of the scratch pad/RXMBUF and
how the header file sections are moved to the scratch pads/RXMBUF. Three sections are moved.
Figure 36: Firmware Image Moved to Scratch Pad/RXMBUF
The programmer should be careful when moving the header file data to the scratch pad/RXMBUF. The variables
t3FwDataAddr, t3FwRodataAddr, and t2FwTextAddr are all RISC Core relative addresses; the host must translate each
address to a BCM5722 Ethernet controller’s register space region. In summary, the address offsets in the header file are
relative to the local memory address ranges specified in Table 41 for the RX and TX RISC respectively. The following
formula may be used to convert address data:
RX Register Address = 0x30000 + (fwHeaderFileAddress & 0xFFFF)
RXMBUF Address = 0x10000 + (fwHeaderFileAddress & 0xFFFF)
Table 41: Addressing Perspectives
Memory Type Host Perspective RX RISC Perspective
RX RISC scratchpad 0x30000–0x33FFF 0x08000000–0x08003FFF
RXMBUF 0x10000–0x1DFFF 0x10000–0x1DFFF
Internal Memory 0x000000–0x01FFFF 0x00000000–0x0001FFFF
RISC Scratchpad
t3FwText[ (t3FwTextLen/4) + 1 ]
t3FwTextLen
t3FwTextAddr
t3FwRodata[ (t3FwRodataLen/4) + 1] t3FwRodataLen
t3FwRodataAddr
t3FwData[ (t3FwDataLen/4) + 1 ] t3FwDataLen
t3FwDataAddr
#1
#2
#3
RISC Scratchpad/RXMBUF

Table of Contents