Broadcom NetXtreme Ethernet Adapter • Diagnostic User’s Guide
page 92
Broadcom Confidential and Proprietary
10.84 mwrite
cmd:
mwrite
Description:
Write PHY registers via MII Management interface
Syntax:
mwrtie <addr > <data>
Address range: 0x00 – 0x1F
Example:
1.
Write 0x15 to MII register 2
0:> mwrite 2 15
10.85 mread
cmd:
mread
Description:
Read PHY registers via MII Management interface
Syntax
: mread <begin>[-<end> | <len>]
Address range: 0x00 – 0x1F
Example:
1. Read MII register 0
0:> mread 0
00: 1100
2 Read MII registers 0 to 10
0:> mread 0-10
00: 1100 7949 0020 6051 01e1 0000 0004 2001
08: 0000 0300 0000 0000 0000 0000 0000 3000
10: 0002
3.
Read 5 MII registers start from register 0
0:> mread 0 5
00: 1100 7949 0020 6051 01e1
10.86 mdev
cmd:
mdev
Description:
Select current PHY to be accessed. The default device ID is 0x01. If no
parameter is entered, it displays current phy address setting.
Syntax:
mdev [<phy_id>]
Example: