Programmer's Guide
10/15/07
Example Code Snippet (from ASF Firmware)
/* Poll buffer manager hardware diag register 3 (0x4454) for our mbuf pointer value */
while(trp->BufMgr.MbufPoolAddr + (((trp->BufMgr.Hwdiag[2]>>16) & 0x1ff) << 7) !=
(u32)pmbuf);
MAC A
DDRESS
The MAC address registers, starting at offset 0x0410, contain the MAC addresses of the NIC. These registers are usually
initialized with a default MAC address extracted from the NIC's NVRAM when it is first powered up. The host software may
overwrite the default MAC address by writing to the MAC registers with a new MAC address.
register format.
The BCM5722 Ethernet controller allows a NIC to have up to four MAC addresses (offset 0x410–0x42F) that are used for
hardware packet reception filtering. However, most host software will initialize the registers of the four MAC addresses to
the same MAC address since a NIC usually has only one MAC address.
When flow control is enabled on the BCM5722 Ethernet controller, the MAC Address 0 is used as the source address for
sending PAUSE frames (see
Register Name
Mac_Address_0
Mac_Address_1
Mac_Address_2
Mac_Address_3
Document
5722-PG101-R
S
/C
ETUP
ONFIGURATION
"Pause Control Frame" on page
Table 42: Mac Address Registers
Offset
0x0410
0x0414
0x0418
0x041c
0x0420
0x0424
0x0428
0x042c
Bro adco m Co rp or atio n
517).
31
24
23
16
Unused
Octet 2
Octet 3
Unused
Octet 2
Octet 3
Unused
Octet 2
Octet 3
Unused
Octet 2
Octet 3
MAC Address Setup/Configuration
BCM5722
Table 42
illustrates the MAC
15
8
7
Octet 0
Octet 1
Octet 4
Octet 5
Octet 0
Octet 1
Octet 4
Octet 5
Octet 0
Octet 1
Octet 4
Octet 5
Octet 0
Octet 1
Octet 4
Octet 5
Page 96
0
Need help?
Do you have a question about the BCM5722 and is the answer not in the manual?