Znyx Networks bh5700 User Manual

Page 323

Advertising
background image

connected (i.e., the one that is on the local PCI bus).

-r 10 Sets numeric radix for registers to 10. Default is 16.

-d <level> Set the level of debugging output produced by zreg.

The default level is 1. Setting the debug level higher produces
more output. The maximum level of output is currently 4.

OPERANDS

<reg> If no –i, -t, or –k option is specified, <reg> is chosen

from the en um ix54_reg_e. With the –i option, <reg> is chosen
from the enum ix54_xreg_e. With the –t and –k options, <reg> is

chosen from ix54_mem_e.

EXAMPLES

There are three types of accesses performed by zreg; scaler register, indexed register, and table.
For each of theses access types, values can be read or written. Content addressable memory
register access is the default. The following is an example of reading the CONFIG Register:

zreg 1

When running zreg on the embedded processor of the OpenArchitect switch, the <ppa> is
always 0, since the embedded CPU processor only controls the directly attached switch chip.
Since the default <ppa> is 0 the -p option is not needed.

To write a value to a register the -w flag is used and the data is read from standard input. The
following example writes 0x800000640 to the Aging Time Register:

echo 0x80000640 | zreg -w 49

If the zreg command is typed at the prompt, it waits for input from the user. You may also use
File I/O or shell scripts. The following example reads the MAC Packet Length Register for port
7:

zreg -i 7 2

SEE ALSO

zal, ztats

Ethernet Switch Blade User's Guide

release 3.2.2j

page 323

Advertising