
-CentOS- | -Ubuntu-
PCIデバイス
周辺機器を使用するとき、PCIスロットに接続する。
PCIスロットに接続するタイプの周辺機器のことをPCIデバイスという。
「lspci」コマンドの書式
書式 |
---|
lspci [オプション] |
オプション名 | 説明 |
---|---|
-v | 詳細な情報を出力する。 |
PCIデバイスの情報を確認する
$ lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
.
.
.
PCIデバイスの詳細情報を確認する
$ lspci -v
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
Subsystem: Dell 4th Gen Core Processor DRAM Controller
Flags: bus master, fast devsel, latency 0
Capabilities:
Kernel driver in use: hsw_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 25
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: f6000000-f70fffff
Prefetchable memory behind bridge: 00000000e8000000-00000000f1ffffff
Capabilities:
Kernel driver in use: pcieport
Kernel modules: shpchp
.
.
.
USBデバイス
周辺機器を使用するとき、USBポートに接続する。
SBポートに接続するタイプの周辺機器のことをUSBデバイスという。
「lsusb」コマンドの書式
書式 |
---|
lsusb [オプション] |
オプション名 | 説明 |
---|---|
-v | 詳細な情報を出力する。 |
USBデバイスの情報を確認する
$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. -1-
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -2-
.
.
.
USBデバイスの詳細情報を確認する
$ lsusb -v
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -2-
Couldn’t open device, some information will be missing
Device Descriptor:
bLength 18
.
.
.
- USBデバイスはUSBハブを介して、USBホストコントローラー(本体とデバイスの接続を管理するハードウェア)で管理される。
- USBデバイスを接続した状態での「lsusb」コマンドを実行すると接続しているデバイス情報を確認できる。
デバイスクラス
USBデバイスの分類に応じてデバイスクラスというものがある。
デバイスクラスごとに乱用ドライバが用意されて、これによってUSBデバイスを認識している。
主なデバイスクラス
デバイスクラス | 主なデバイス |
---|---|
Audio | マイク、スピーカー |
HID(Human Interface devices) | キーボード、マウス |
Mass Storage | ハードディスク、USBメモリ |
Hub | USBハブ |
参照元情報