⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setpci.man

📁 linux~{OBOTJ>KySP~}pci~{Ih18~}
💻 MAN
字号:
.TH setpci 8 "@TODAY@" "@VERSION@" "Linux PCI Utilities".IX setpci.SH NAMEsetpci \- configure PCI devices.SH SYNOPSIS.B setpci.RB [ options ].B devices.BR operations ....SH DESCRIPTION.PP.B setpciis a utility for querying and configuring PCI devices.All numbers are entered in hexadecimal notation..SH OPTIONS.TP.B -vTells.I setpcito be verbose and display detailed information about configuration space accesses..TP.B -fTells.I setpcinot to complain when there's nothing to do (when no devices are selected).This option is intended for use in widely-distributed configuration scriptswhere it's uncertain whether the device in question is present in the machineor not..TP.B -D`Demo mode' -- simulate configuration space accesses instead of really doing them.It's useful to try.B setpci -vDto see what your complex sequence of.B setpcioperations does before you actually execute it..TP.B --versionShows.I setpciversion. This option should be used standalone..SH DEVICE SELECTION.PPBefore each sequence of operations you need to select which devices you wish thatoperation to affect..TP.B -s [[<bus>]:][<slot>][.[<func>]]Select devices in specified bus, slot and function. Each component of the deviceaddress can be omitted or set as "*" meaning "any value". All numbers arehexadecimal.  E.g., "0:" means all devices on bus 0, "0" means all functions of device 0on any bus, "0.3" selects third function of device 0 on all busses and ".4" selects onlyfourth function of each device..TP.B -d [<vendor>]:[<device>]Select devices with specified vendor and device ID. Both ID's are given inhexadecimal and may be omitted or given as "*" meaning "any value"..SH OPERATIONS.PPTo query value of a configuration register, just name it (either by typing its name orby typing register address with optional.BR .B ,.B .Wor.B .Lsuffix specifying register width as byte, word or longword)..PPTo set a register, write.BR reg = valueswhere.B regis the same you would use to query the register and.B valuesis a comma-separated list of values you want to write starting with the givenaddress..SH REGISTER NAMES.PP.B setpciknows the following configuration register names. See PCI bus specs for their precisemeaning or consult.B /usr/include/linux/pci.hfor few comments..PP.nfVENDOR_IDDEVICE_IDCOMMANDSTATUSREVISIONCLASS_PROGCLASS_DEVICECACHE_LINE_SIZELATENCY_TIMERHEADER_TYPEBISTBASE_ADDRESS_0BASE_ADDRESS_1BASE_ADDRESS_2BASE_ADDRESS_3BASE_ADDRESS_4BASE_ADDRESS_5CARDBUS_CISSUBSYSTEM_VENDOR_IDSUBSYSTEM_IDROM_ADDRESSINTERRUPT_LINEINTERRUPT_PINMIN_GNTMAX_LATPRIMARY_BUSSECONDARY_BUSSUBORDINATE_BUSSEC_LATENCY_TIMERIO_BASEIO_LIMITSEC_STATUSMEMORY_BASEMEMORY_LIMITPREF_MEMORY_BASEPREF_MEMORY_LIMITPREF_BASE_UPPER32PREF_LIMIT_UPPER32IO_BASE_UPPER16IO_LIMIT_UPPER16BRIDGE_ROM_ADDRESSBRIDGE_CONTROLCB_CARDBUS_BASECB_CAPABILITIESCB_SEC_STATUSCB_BUS_NUMBERCB_CARDBUS_NUMBERCB_SUBORDINATE_BUSCB_CARDBUS_LATENCYCB_MEMORY_BASE_0CB_MEMORY_LIMIT_0CB_MEMORY_BASE_1CB_MEMORY_LIMIT_1CB_IO_BASE_0CB_IO_BASE_0_HICB_IO_LIMIT_0CB_IO_LIMIT_0_HICB_IO_BASE_1CB_IO_BASE_1_HICB_IO_LIMIT_1CB_IO_LIMIT_1_HICB_SUBSYSTEM_VENDOR_IDCB_SUBSYSTEM_IDCB_LEGACY_MODE_BASE.SH PCILIB OPTIONSThe PCI utilities use PCILIB (a portable library providing platform-independentfunctions for PCI configuration space access) to talk to the PCI cards. The followingoptions control parameters of the library, especially what access method it uses.By default, PCILIB uses the first available access method and displays no debuggingmessages. Each switch is accompanied by a list of hardware/software configurationsit's supported in..TP.B -P <dir>Force use of Linux /proc/bus/pci style configuration access, using.B <dir>instead of /proc/bus/pci. (Linux 2.1 or newer only).TP.B -H1Use direct hardware access via Intel configuration mechanism 1. (i386 and compatible only).TP.B -H2Use direct hardware access via Intel configuration mechanism 2. Warning: This methodis able to address only first 16 devices on any bus and it seems to be veryunrealiable in many cases. (i386 and compatible only).TP.B -SUse PCI access syscalls. (Linux on Alpha and UltraSparc only).TP.B -F <file>Extract all information from given file containing output of lspci -x. This is veryuseful for analysis of user-supplied bug reports, because you can display thehardware configuration in any way you want without disturbing the user withrequests for more dumps. (All systems).TP.B -GIncrease debug level of the library. (All systems).SH EXAMPLES.PP`setpci -d *:* latency_timer=40' sets the latency timer to 64 (40 hexadecimal)..PP`setpci -s 0 device_id vendor_id' lists ID's of devices in slot 0 in all busses..PP`setpci -s 12:3.4 3c.l=1,2,3' writes longword 1 to register 3c, 2 to register 3dand 3 to register 3e of device at bus 12, slot 3, function 4..SH SEE ALSO.BR lspci (8).SH AUTHORThe Linux PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -