MirBSD manpage: pcitweak(1)


PCITWEAK(1)         UNIX Programmer's Manual          PCITWEAK(1)

NAME

     pcitweak - read/write PCI config space

SYNOPSIS

     pcitweak -l
     pcitweak -r PCI-ID [-b|-h] offset
     pcitweak -w PCI-ID [-b|-h] offset value

DESCRIPTION

     Pcitweak is a utility that can be used to examine or change
     registers in the PCI configuration space.  On most platforms
     pcitweak can only be run by the root user.

OPTIONS

     -l      Probe the PCI buses and print a line for each
             detected device.  Each line contains the bus loca-
             tion (bus:device:function), chip vendor/device, card
             (subsystem) vendor/card, revision, class and header
             type.  All values printed are in hexadecimal.

     -r PCI-ID
             Read the PCI configuration space register at offset
             for the PCI device at bus location PCI-ID. PCI-ID
             should be given in the form bus:device:function,
             with each value in hexadecimal.  By default, a 32-
             bit register is read.

     -w PCI-ID
             Write value to the PCI configuration space register
             at offset for the PCI device at bus location PCI-ID.
             PCI-ID should be given in the form
             bus:device:function, with each value in hexadecimal.
             By default, a 32-bit register is written.

     -b      Read or write an 8-bit value (byte).

     -h      Read or write a 16-bit value (halfword).

SEE ALSO

     scanpci(1)

AUTHORS

     David Dawes (dawes@xfree86.org).

XFree86                   Version 4.5.0                         1

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.