summaryrefslogtreecommitdiff
path: root/hw/xfree86/utils/pcitweak/pcitweak.man.pre
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/utils/pcitweak/pcitweak.man.pre')
-rw-r--r--hw/xfree86/utils/pcitweak/pcitweak.man.pre64
1 files changed, 64 insertions, 0 deletions
diff --git a/hw/xfree86/utils/pcitweak/pcitweak.man.pre b/hw/xfree86/utils/pcitweak/pcitweak.man.pre
new file mode 100644
index 000000000..f4bd8d405
--- /dev/null
+++ b/hw/xfree86/utils/pcitweak/pcitweak.man.pre
@@ -0,0 +1,64 @@
+.\" $XFree86: xc/programs/Xserver/hw/xfree86/etc/pcitweak.man,v 3.3 2001/01/27 18:20:56 dawes Exp $
+.TH PCITWEAK 1 __vendorversion__
+.SH NAME
+pcitweak - read/write PCI config space
+.SH SYNOPSIS
+.B pcitweak
+.B \-l
+.br
+.B pcitweak
+.B \-r
+.I PCI-ID
+.RB [ \-b | \-h ]
+.I offset
+.br
+.B pcitweak
+.B \-w
+.I PCI-ID
+.RB [ \-b | \-h ]
+.I offset
+.I value
+.SH DESCRIPTION
+.I Pcitweak
+is a utility that can be used to examine or change registers in the PCI
+configuration space. On most platfoms
+.I pcitweak
+can only be run by the root user.
+.SH OPTIONS
+.TP 8
+.B \-l
+Probe the PCI buses and print a line for each detected device. Each line
+contains the bus location (bus:device:function), chip vendor/device, card
+(subsystem) vendor/card, revision, class and header type. All values
+printed are in hexadecimal.
+.TP 8
+.BI "\-r " PCI-ID
+Read the PCI configuration space register at
+.I offset
+for the PCI device at bus location
+.IR PCI-ID .
+.I PCI-ID
+should be given in the form bus:device:function, with each value in
+hexadecimal. By default, a 32-bit register is read.
+.TP 8
+.BI "\-w " PCI-ID
+Write
+.I value
+to the PCI configuration space register at
+.I offset
+for the PCI device at bus location
+.IR PCI-ID .
+.I PCI-ID
+should be given in the form bus:device:function, with each value in
+hexadecimal. By default, a 32-bit register is written.
+.TP 8
+.B \-b
+Read or write an 8-bit value (byte).
+.TP 8
+.B \-h
+Read or write a 16-bit value (halfword).
+.SH "SEE ALSO"
+scanpci(1)
+.SH AUTHORS
+David Dawes
+.RI ( dawes@xfree86.org ).