setpci
setpci是一个查询和修改pci寄存器的linux 命令:
root@PTWH0108:~# setpci --help
Usage: setpci [<options>] (<device>+ <reg>[=<values>]*)*General options:
-f Don't complain if there's nothing to do
-v Be verbose
-D List changes, don't commit them
--dumpregs Dump all known register names and exitPCI access options:
-A <method> Use the specified PCI access method (see `-A help' for a list)
-O <par>=<val> Set PCI access parameter (see `-O help' for a list)
-G Enable PCI access debugging
-H <mode> Use direct hardware access (<mode> = 1 or 2)Setting commands:
<device>: -s [[[<domain>]:][<bus>]:][<slot>][.[<func>]]-d [<vendor>]:[<device>]
<reg>: <base>[+<offset>][.(B|W|L)][@<number>]
<base>: