当前位置: 首页> 财经> 股票 > 使用setpci 读取/修改pci寄存器

使用setpci 读取/修改pci寄存器

时间:2025/8/1 11:54:48来源:https://blog.csdn.net/hongfuhaocomon/article/details/139918781 浏览次数:2次

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>:         
关键字:使用setpci 读取/修改pci寄存器

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: