X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=setpci.man;h=665abec2f8a261ae3e014eafc67ece83fc7a3473;hb=8b122188dfd404984eb360e8d876682fe7eb1613;hp=0ea45823b14d27ba7c0c3bd3477badd9ce7b28e1;hpb=9b50f808d1ff9bab21a1c8f68fe8c119393ac75b;p=pciutils.git diff --git a/setpci.man b/setpci.man index 0ea4582..665abec 100644 --- a/setpci.man +++ b/setpci.man @@ -1,5 +1,4 @@ .TH setpci 8 "@TODAY@" "@VERSION@" "The PCI Utilities" -.IX setpci .SH NAME setpci \- configure PCI devices .SH SYNOPSIS @@ -46,6 +45,13 @@ to verify that your complex sequence of .B setpci operations does what you think it should do. .TP +.B -r +Avoids bus scan if each operation selects a specific device (uses the +.B -s +selector with specific domain, bus, slot, and function). This is faster, +but if the device does not exist, it fails instead of matching an empty +set of devices. +.TP .B --version Show .I setpci @@ -115,7 +121,7 @@ options of the same kind are specified, the rightmost one overrides the others. .PP There are two kinds of operations: reads and writes. To read a register, just specify its name. Writes have the form -.IR name = value , value ... +.IR name = value , value ...\& where each .I value is either a hexadecimal number or an expression of type @@ -148,10 +154,13 @@ identifier of the capability in hexadecimal. Each of the previous formats can be followed by \fB+offset\fP to add an offset (a hex number) to the address. This feature can be useful for addressing of registers living within a capability, or to modify parts of standard registers. -\IP \(bu -Finally, you should append a width specifier \fB.B\fP, \fB.W\fP, or \fB.L\fP to choose -how many bytes (1, 2, or 4) should be transferred. The width can be omitted if you are +.IP \(bu +To choose how many bytes (1, 2, or 4) should be transferred, you should append a width +specifier \fB.B\fP, \fB.W\fP, or \fB.L\fP. The width can be omitted if you are referring to a register by its name and the width of the register is well known. +.IP \(bu +Finally, if a capability exists multiple times you can choose which one to target using +\fB@number\fP. Indexing starts at 0. .PP All names of registers and width specifiers are case-insensitive.