1. lspci

  1. 系統: Linux Mandrake 8.0 路徑: /usr/bin/lspci

  2. shared library:

/lib/libc.so.6
/lib/ld-linux.so.2

  1. 用途說明: 列出所有的 PCI 裝置

  2. 參數:

用法: lspci []

-v 詳細資訊
-n 顯示數字ID's
-b 匯流排觀點 (PCI 位址及 IRQ值,而不是 CPU 所見的位址)
-x 傾印設定空間的十六進位碼
-s 只顯示所選插槽的裝置
-d []:[] 只顯示所選裝置
-t 顯示匯流排樹狀圖
-m 產生機器可讀的輸出
-i 使用特定的 ID 資料庫,而不是 /usr/share/pci.ids
-M 啟動 `bus mapping' 模式 (具危險性; 只有 root 能使用)
-P 使用所選的目錄,而不是 /proc/bus/pci
-H 使用直接硬體存取 ( = 1 or 2)
-F 從檔案中讀取設定資料
-G 啟動 PCI 存取除錯模式

  1. 範例:

下 lspci 這個指令,就可以看到有關 PCI 裝置的訊息,在我的電腦是下列的訊息:

00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (re

v 03)

00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev

  1. 00:07.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)

00:07.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)

00:07.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)

00:07.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)

00:0e.0 Multimedia audio controller: ESS Technology ES1969 Solo-1 Audiodrive

(rev 01)

00:12.0 Communication controller: Motorola SM56 PCI Modem 00:14.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 1

  1. 01:00.0 VGA compatible controller: nVidia Corporation Vanta [NV6] (rev 15)


如果有 driver 抓到那個裝置,就會有 (rev xx) 的訊息,像我的 PCI Modem 就沒有 Driver,所以就沒有那個訊息,而使用 lspci -x,就可以看到 PCI 十六進位的設定訊息, 如果說不要看所有 PCI 裝置,而是要看某個特定裝置,那就下 lspci -s 0:1.0 -x,就可 以看到個別裝置的設定