Thursday, May 10, 2012

Identifying the vendor and device id using lspci

Devices are mainly identified using a pair of hexadecimal numbers, like 1425:4801
The 4 first hexadecimal digits represent are the Vendor ID (1425)
The 4 last hexadecimal digits represent the Device ID (4801)


To find the vendor and device id, you can use the lspci command
lspci -n

OR
lspci -nn
Output for lspci -nn

10:00.0 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.1 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.2 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.3 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4001]
10:00.4 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4401]
10:00.5 SCSI storage controller [0100]: Chelsio Communications Inc T420-CR Unified Wire Storage Controller [1425:4501]
10:00.6 Fibre Channel [0c04]: Chelsio Communications Inc T420-CR Unified Wire Storage Controller [1425:4601]
10:00.7 Ethernet controller [0200]: Chelsio Communications Inc Device [1425:0000]
10:01.0 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4801]
10:01.4 Ethernet controller [0200]: Chelsio Communications Inc T420-CR Unified Wire Ethernet Controller [1425:4801]

No comments: