2 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
3 .\" all rights reserved.
4 .\" Translated Mon Mar 8 03:03:53 JST 2004
5 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
7 .\"WORD: PCI configuration space PCI 設定空間
11 .TH setpci 8 "04 January 2003" "pciutils-2.1.11" "Linux PCI Utilities"
15 .\"O setpci \- configure PCI devices
16 setpci \- PCI デバイスを設定する
28 .\"O is a utility for querying and configuring PCI devices.
30 は PCI デバイスの情報を取得したり設定したりするユーティリティである。
32 .\"O All numbers are entered in hexadecimal notation.
41 .\"O to be verbose and display detailed information about configuration space accesses.
43 に情況を詳細に報告させ、設定空間アクセスの詳細な情報を表示させる。
48 .\"O not to complain when there's nothing to do (when no devices are selected).
49 (デバイスが選択されなかったり) 何もすることがなくても、
52 .\"O This option is intended for use in widely-distributed configuration scripts
53 .\"O where it's uncertain whether the device in question is present in the machine
55 このオプションは広く配布されている設定スクリプトで使うことを意図している。
56 この設定スクリプトでは、問題としているデバイスが
57 マシンに存在するか否かが確かでないためである。
60 .\"O `Demo mode' -- simulate configuration space accesses instead of really doing them.
61 「デモモード」 -- 実際に実行しないで設定空間アクセスをシミュレートする。
62 .\"O It's useful to try
64 .\"O to see what your complex sequence of
66 .\"O operations does before you actually execute it.
71 操作のシーケンスが実行されるかを見ることができて、役に立つ。
76 .\"O version. This option should be used standalone.
81 .\"O .SH DEVICE SELECTION
84 .\"O Before each sequence of operations you need to select which devices you wish that
85 .\"O operation to affect.
86 操作のシーケンスの前に、操作の対象としたいデバイスを選択する必要がある。
88 .B -s [[<bus>]:][<slot>][.[<func>]]
89 .\"O Select devices in specified bus, slot and function. Each component of the device
90 .\"O address can be omitted or set as "*" meaning "any value". All numbers are
91 .\"O hexadecimal. E.g., "0:" means all devices on bus 0, "0" means all functions of device 0
92 .\"O on any bus, "0.3" selects third function of device 0 on all busses and ".4" selects only
93 .\"O fourth function of each device.
94 指定されたバス (bus)・スロット (slot)・機能 (func) のデバイスを選択する。
95 デバイスの指定の各要素は省略可能で、また "*" は「任意の値」を意味する。
97 例えば、"0:" はバス 0 の全てのデバイスを、
98 "0" は全てのバスのデバイス 0 で全ての機能を意味し、
99 "0.3" は全てのバスのデバイス 0 で 3 番目の機能を選択し、
100 ".4" は各デバイスの 4 番目の機能を選択する。
102 .B -d [<vendor>]:[<device>]
103 .\"O Select devices with specified vendor and device ID. Both ID's are given in
104 .\"O hexadecimal and may be omitted or given as "*" meaning "any value".
105 指定されたベンダ ID とデバイス ID を持つデバイスを選択する。
106 両 ID とも 16 進で与えられる。省略も可能である。
107 また、「任意の値」を意味する "*" を指定することも可能である。
112 .\"O To query value of a configuration register, just name it (either by typing its name or
113 .\"O by typing register address with optional
118 .\"O suffix specifying register width as byte, word or longword).
119 設定レジスタの値を取得するには、単に名前を指定すること
126 というバイト・ワード・ロングワードのレジスタ長を指定する
129 .\"O To set a register, write
130 .\"O .BR reg = values
133 .\"O is the same you would use to query the register and
135 .\"O is a comma-separated list of values you want to write starting with the given
142 はレジスタの情報を取得するのに使ったのと同じ書式であり、
144 は指定したアドレスを開始点として書き込むコンマ区切りの値のリストである。
146 .\"O .SH REGISTER NAMES
150 .\"O knows the following configuration register names. See PCI bus specs for their precise
151 .\"O meaning or consult
152 .\"O .B /usr/include/linux/pci.h
153 .\"O for few comments.
156 これらの正確な意味については、PCI バスの仕様を参照するか、
157 .B /usr/include/linux/pci.h
222 CB_SUBSYSTEM_VENDOR_ID
226 .\"O .SH PCILIB OPTIONS
228 .\"O The PCI utilities use PCILIB (a portable library providing platform-independent
229 .\"O functions for PCI configuration space access) to talk to the PCI cards. The following
230 .\"O options control parameters of the library, especially what access method it uses.
231 PCI utilities は PCI カードとやりとりをするために
232 PCILIB (PCI 設定空間にアクセスするための機能を提供する、
233 プラットフォームに依存せず移植性の高いライブラリ) を用いている。
234 .\"O By default, PCILIB uses the first available access method and displays no debugging
235 .\"O messages. Each switch is accompanied by a list of hardware/software configurations
236 .\"O it's supported in.
237 デフォルトでは、PCILIB はアクセス方法で可能なもののうち最初のものを用い、
239 各々のスイッチには、そのスイッチに対応している
240 ハードウェア/ソフトウェアの設定リストが付随する。
244 .\"O Force use of Linux /proc/bus/pci style configuration access, using
246 .\"O instead of /proc/bus/pci. (Linux 2.1 or newer only)
249 を使った Linux /proc/bus/pci スタイルの設定でアクセスを行わせる。
250 (Linux 2.1 またはそれ以降でのみ有効)
253 .\"O Use direct hardware access via Intel configuration mechanism 1. (i386 and compatible only)
254 インテル設定メカニズム 1 (Intel configuration mechanism 1) を使って、
255 ハードウェアに直接アクセスする。(i386 及びその互換でのみ有効)
258 .\"O Use direct hardware access via Intel configuration mechanism 2. Warning: This method
259 .\"O is able to address only first 16 devices on any bus and it seems to be very
260 .\"O unrealiable in many cases. (i386 and compatible only)
261 インテル設定メカニズム 2 (Intel configuration mechanism 2) を使って、
263 警告: この方法では各バスの最初の 16 デバイスしか扱えず、
264 多くの場合殆んど信頼できない。(i386 及びその互換でのみ有効)
267 .\"O Use PCI access syscalls. (Linux on Alpha and UltraSparc only)
268 PCI アクセスシステムコールを使う。(Alpha/Linux と UltraSparc でのみ有効)
271 .\"O Extract all information from given file containing output of lspci -x. This is very
272 .\"O useful for analysis of user-supplied bug reports, because you can display the
273 .\"O hardware configuration in any way you want without disturbing the user with
274 .\"O requests for more dumps. (All systems)
275 lspci -x の実行結果を格納しているファイルから、全ての情報を取り出す。
276 ユーザーから提供されたバグ報告の解析に役立つ。
277 なぜならば、さらなるダンプをユーザーに要求する事なく、
278 ハードウェアの設定をあなたの好きなやり方で表示する事ができる。
282 .\"O Increase debug level of the library. (All systems)
283 ライブラリのデバッグレベルを上げる。(全てのシステムで有効)
288 .\"O `setpci -d *:* latency_timer=40' sets the latency timer to 64 (40 hexadecimal).
289 `setpci -d *:* latency_timer=40' レイテンシタイマを
290 64 (16 進数の 40) に設定する。
292 .\"O `setpci -s 0 device_id vendor_id' lists ID's of devices in slot 0 in all busses.
293 `setpci -s 0 device_id vendor_id' 全てのバスのスロット 0 にある
296 .\"O `setpci -s 12:3.4 3c.l=1,2,3' writes longword 1 to register 3c, 2 to register 3d
297 .\"O and 3 to register 3e of device at bus 12, slot 3, function 4.
298 `setpci -s 12:3.4 3c.l=1,2,3' バス 12・スロット 3・機能 4 のデバイスの
299 レジスタ 3c にロングワード 1、レジスタ 3d に 2、
308 .\"O The Linux PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.
309 Linux PCI Utilities は Martin Mares <mj@ucw.cz> に