REGGIE_SE(1) BSD General Commands Manual REGGIE_SE(1)
NAME
reggie_se -- read and modify hardware registers
SYNOPSIS
reggie_se [-d dev] [-D type] [-i index] [-r] [-w val] [-s n] [-S val] [-c n] [-C] [-l] [-x] [-b b:e]
[-v] [-h]
USAGE
To read a register:
reggie_se -r [-d devclass] [-D devname] [-i index] [-v] -n register_name
reggie_se -r [-d devclass] [-D devname] [-i index] [-v] -a register_addr -B reg_size
To write a register:
reggie_se -w value [-d devclass] [-D devname] [-i index] [-v] -n register_name
reggie_se -w value [-d devclass] [-D devname] [-i index] [-v] -a register_addr -B reg_size
To set a bit or range of bits:
reggie_se -s bit_index [-d devclass] [-D devname] [-i index] [-v] -n register_name
reggie_se -s bit_index [-d devclass] [-D devname] [-i index] [-v] -a register_addr -B reg_size
reggie_se -S value -b b:e [-d devclass] [-D devname] [-i index] [-v] -n register_name
reggie_se -S value -b b:e [-d devclass] [-D devname] [-i index] [-v] -a register_addr -B
reg_size
To clear a bit or range of bits:
reggie_se -c bit_index [-d devclass] [-D devname] [-i index] [-v] -n register_name
reggie_se -c bit_index [-d devclass] [-D devname] [-i index] [-v] -a register_addr -B reg_size
reggie_se -C -b b:e [-d devclass] [-D devname] [-i index] [-v] -n register_name
reggie_se -C -b b:e [-d devclass] [-D devname] [-i index] [-v] -a register_addr -B reg_size
To get a list of available registers:
reggie_se -l [-d devclass] [-D devname]
User supplied values are interpreted as follows:
Hexadecimal (base-16) if prefixed by '0x' or '0X'
Octal (base-8) if prefixed by '0o' or '0O'
Binary (base-2) if prefixed by '0b' or '0B'
Decimal (base-10) if no prefix
DESCRIPTION
reggie_se is used to read and modify hardware registers and physical memory.
-d dev specify target device by class
c cpu (DEFAULT)
p pci device
-D type specify target device by name
CPU: 750, 750FXDDR1, 750FXDDR2, 7400, 7410, 7450, 7455, 7447A, 7457, 970
Memory: PhysAddr
Expansion: PCI
-i index
a target all devices (e.g. CPUn)
n target only device at index n (e.g. -i 0 = CPU0)
-r read register
-w val write val to register
-s n set register bit n
-S val set register bit range to val (specify bit range with -b option)
-c n clear register bit n
-C clear register bit range (specify bit range with -b option)
-l list registers and exit
-x list expansion devices (PCI) and exit
-b begin:end
specify bit index range from begin to end for -S and -C actions
-v verbose mode (prints bit definitions)
-h print usage information and exit
Darwin July 30, 2004 Darwin
|