This manual page is part of the Computer Hardware Understanding Development (CHUD) Tools.

These tools are an optional part of Xcode Tools version 3.2. To obtain these tools:

  • Install the Xcode Tools from developer.apple.com.

  • Enable the CHUD package during installation.

If you are running a version of Xcode Tools other than 3.2, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



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

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.