Broadcom NetXtreme Ethernet Adapter • Diagnostic User’s Guide
page 190
Broadcom Confidential and Proprietary
12. TCL Environment Variables
The B57diag utility provides numerous environment settings for users to develop their own
testing and configuration scripts. Tcl environment variables are accessed using the syntax
$::<array_name>(<array_idx>).
12.1 env
This environment variable inherits the setting from DOS. Depending upon what is set while
in the DOS environment, users can also retrieve the DOS setting via this variable. For
example, $::env(COMSPEC) could be C:\COMMAND.COM.
12.2 nx1
This variable maintains information for the currently selected device. Note that these
variables are meant to be read-only, and they will change as users switch from one device to
another.
•
$::nx1(BASE_ADDR) – the base address of the selected device (e.g. 0xffbe0000)
•
$::nx1(BASE_ADDR_HIGH) – the top 32 bits of the base address of the selected device
(e.g. 0x0)
•
$::nx1(BASE_ADDR_LOW) – the bottom 32 bits of the base address of the selected
device (e.g. 0xffbe0000)
•
$::nx1(BUS) – the bus, device, and function number of the selected device (e.g.
“00:0b:0”)
•
$::nx1(BUS_TYPE) – the type of PCI bus on which the selected device resides (e.g.
PCIX-64, PCIE-1)
•
$::nx1(PCI_SPEED) – the speed of the PCI bus on which the selected device resides
(e.g. 250
2.5G, 500
5.0G, 33
33MHz, 66
66MHz)
•
$::nx1(CHIP_BUILD) – always “ASIC”
•
$::nx1(CHIP_REV) – the chip revision of the selected device (e.g. “A0”)
•
$::nx1(CPU) – always “Rx”
•
$::nx1(DEV) – currently selected device (value = 0, 1, … )
•
$::nx1(DIAG_VER) – the version of this diagnostic program in string (e.g. “14.65”)
•
$::nx1(DRV_STATE) – the current state of the driver (e.g. “UNLOAD”, “LOAD”)