Section: The PCI Utilities (8)
Updated: 10 November 2013
setpci [options] devices operations...
setpci is a utility for querying and configuring PCI devices.
All numbers are entered in hexadecimal notation.
Root privileges are necessary for almost all operations, excluding reads of the standard header of the configuration space on some operating systems. Please see lspci?(8) for details on access rights.
Before each sequence of operations you need to select which devices you wish that operation to affect.
When -s and -d are combined, only devices that match both criteria are selected. When multiple options of the same kind are specified, the rightmost one overrides the others.
There are two kinds of operations: reads and writes. To read a register, just specify its name. Writes have the form name=value,value... where each value is either a hexadecimal number or an expression of type data:mask where both data and mask are hexadecimal numbers. In the latter case, only the bits corresponding to binary ones in the mask are changed (technically, this is a read-modify-write operation).
There are several ways how to identity a register:
All names of registers and width specifiers are case-insensitive.
The PCI Utilities are maintained by Martin Mares <[email protected]>.
Tutoriais de Tecnologia Web