1 .TH setpci 8 "19 April 98" "pciutils-1.03" "Linux PCI Utilities"
4 lspci \- configure PCI devices
14 is a utility for querying and configuring PCI devices. It requires Linux kernel 2.1.82
15 or newer as it uses the /proc/bus/pci interface.
17 All numbers are entered in hexadecimal notation.
24 to be verbose and display detailed information about configuration space accesses.
29 not to complain when there's nothing to do (when no devices are selected).
30 This option is intended for use in widely-distributed configuration scripts
31 where it's uncertain whether the device in question is present in the machine
35 `Demo mode' -- simulate configuration space accesses instead of really doing them.
38 to see what your complex sequence of
40 operations does before you actually execute it.
44 Before each sequence of operations you need to select which devices you wish that
47 .B -s [[<bus>]:][<slot>][.[<func>]]
48 Select devices in specified bus, slot and function. Each component of the device
49 address can be omitted or set as "*" meaning "any value". All numbers are
50 hexadecimal. E.g., "0:" means all devices on bus 0, "0" means all functions of device 0
51 on any bus, "0.3" selects third function of device 0 on all busses and ".4" selects only
52 fourth function of each device.
54 .B -d [<vendor>]:[<device>]
55 Select devices with specified vendor and device ID. Both ID's are given in
56 hexadecimal and may be omitted or given as "*" meaning "any value".
60 To query value of a configuration register, just name it (either by typing its name or
61 by typing register address with optional
66 suffix specifying register width as byte, word or longword).
68 To set a register, write
72 is the same you would use to query the register and
74 is a comma-separated list of values you want to write starting with the given
80 knows the following configuration register names. See PCI bus specs for their precise
82 .B /usr/include/linux/pci.h
147 CB_SUBSYSTEM_VENDOR_ID
153 `setpci -d *:* latency_timer=40' sets the latency timer to 64 (40 hexadecimal).
155 `setpci -s 0 device_id vendor_id' lists ID's of devices in slot 0 in all busses.
157 `setpci -s 12:3.4 34.l=1,2,3' writes longword 1 to register 34, 2 to register 35
158 and 3 to register 35 of device at bus 12, slot 3, function 4.
161 The Linux PCI Utilities are maintained by Martin Mares <mj@atrey.karlin.mff.cuni.cz>.