Re: Help Requested with patching "drivers/pci/quirks.c"

From: Randy.Dunlap
Date: Sun Sep 26 2004 - 19:06:34 EST


On Mon, 27 Sep 2004 11:53:00 +1200 Roberts-Thomson, James wrote:

| Randy Dunlap wrote:
|
| > Try "lspci -n".
|
| OK, on the 2.4.27 machine, lspci displays an entry for the SMBus device
| (once the p4b_smbus module is loaded), thus:
|
| 0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus
| Controller (rev 01)
|
| which lspci -n identifies as
|
| 0000:00:1f.3 Class 0c05: 8086:24c3 (rev 01)
|
| In pci_ids.h, 0x0c05 is "PCI_CLASS_SERIAL_SMBUS", and "24c3" is a
| "PCI_DEVICE_ID_INTEL_82801DB_3". So, thanks to your help, I've found the
| dev->device entry I need; but where do I get the dev->subsystem_device value
| from? I'm willing to believe I have the information and that I just don't
| recognise what it is - that is my problem.

Yes, lspci will show that also.

lspci -x -d 8086:24c3 (2443 in my case, below)

0000:00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 05)
00: 86 80 43 24 01 00 80 02 05 00 05 0c 00 00 00 00
vv vv dd dd
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: a1 ef 00 00 00 00 00 00 00 00 00 00 86 80 54 50
yy yy zz zz
30: 00 00 00 00 00 00 00 00 00 00 00 00 09 02 00 00

Vendor ID is vvvv. Device ID is dddd.
Subsystem vendor ID is yyyy and subsystem device ID is zzzz.
All multi-byte fields are in low-high order (little endian)
(in the PCI header).

--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/