summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/etc/pcitweak.man
blob: df177915e6b1c6a0ce590e1cd6c4a2cd68075dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.\" $XFree86: xc/programs/Xserver/hw/xfree86/etc/pcitweak.man,v 3.1 2000/07/30 17:12:21 dawes Exp $ 
.TH PCITWEAK 1 "Version 4.0.1"  "XFree86"
.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 ).