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

📄 setpci.man

📁 The PCI Utilities package contains a library for portable access to PCI bus configuration registers
💻 MAN
字号:
.TH setpci 8 "@TODAY@" "@VERSION@" "The 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.Root privileges are necessary for almost all operations, excluding readsof the standard header of the configuration space on some operating systems.Please see.BR lspci(8)for details on access rights..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' -- don't write anything to the configuration registers.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 stand-alone..SH DEVICE SELECTION.PPBefore each sequence of operations you need to select which devices you wish thatoperation to affect..TP.B -s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]]Show only devices in the specified domain (in case your machine has several host bridges,they can either share a common bus number space or each of them can address a PCI domainof its own; domains are numbered from 0 to ffff), bus (0 to ff), slot (0 to 1f) and function (0 to 7).Each component of the device address can be omitted or set to "*", both 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 buses and ".4" shows onlythe fourth 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 "*", both 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 as you would use to query the register and.B valuesis a comma-separated list of values you want to write starting with the givenaddress. Each value to be written can be specified either as a hexadecimal numberor as a.BR bits : maskpair which causes the bits corresponding to binary ones in the.B maskto be changed to values of the corresponding bits in the.B bits..SH REGISTER NAMES.PP.B setpciknows the following configuration register names. See PCI bus specifications for their precisemeaning or consult.B header.hor.B /usr/include/linux/pci.hfor a couple of 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. Pleasesee.BR lspci(8)for a list of switches controlling behavior of the library..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 buses..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..PP`setpci -s 13:8.4 40.b=50:d0,04:0c,ff' works on bus 13, device 8, function4: turns bit 7 off and bits 6 and 4 on in the byte register 40; turnsbit 3 off and bit 2 on in the byte register 41; sets byte register42 to ff..SH SEE ALSO.BR lspci (8).SH AUTHORThe PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.

⌨️ 快捷键说明

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