1 .\" Contributed by Niki A. Rahimi, LTC Security Development
2 .\" narahimi@us.ibm.com
3 .\" May be freely distributed.
5 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
6 .\" all rights reserved.
7 .\" Translated Sat Jun 19 17:51:11 JST 2004
8 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
10 .TH PCICONFIG_READ 2 2003-07-14 "Linux" "Linux Programmer's Manual"
12 pciconfig_read, pciconfig_write, pciconfig_iobase \- pci デバイス情報を扱う
17 .BI "int pciconfig_read(unsigned long " bus ", unsigned long " dfn ,
18 .BI " unsigned long " off ", unsigned long " len ", void *" buf );
19 .BI "int pciconfig_write(unsigned long " bus ", unsigned long " dfn ,
20 .BI " unsigned long " off ", unsigned long " len ", void *" buf );
21 .BI "int pciconfig_iobase(long " which ", unsigned long " bus ,
22 .BI " unsigned long " devfn );
26 PCI デバイスとのやり取り (interaction) は
27 カーネル PCI レイヤですでに処理されているので、
28 通常はこららの関数をユーザ空間からアクセスする必要はない。
39 .BR pciconfig_write ()
48 .BR pciconfig_iobase ()
50 メモリオフセット (prep のようなものでは、この値は 0xc0000000 である) と
51 PIO サイクルの IO ベースの物理アドレスを取得する。
52 また、もしあるならば ISA hole の物理アドレスを取得する。
61 .BR pciconfig_write ()
67 .BR pciconfig_iobase ()
69 の値に基づいて、物理メモリ内の様々な I/O 領域の位置情報が返される。
72 .BR IOBASE_BRIDGE_NUMBER ,
84 .BR pciconfig_iobase ()
91 .BR pciconfig_iobase ()
92 の場合、でホース (hose) の値が NULL である。
93 他の呼び出しの場合、スロット (slot) が見つからない。
96 このシステムはこれらの呼び出しを実装していない。
102 .BR pciconfig_iobase ()
113 .BR pciconfig_iobase ()
116 これらの呼び出しは Linux 特有のものであり、
117 Linux 2.0.26/2.1.11 から使用可能である。