Does anyone know anything about setpci examples of commands or anything i am looking into this because i was think of just building my own hardware detection tool instead of useing Arch linux's hwd tool.

What i am trying to do is quorie a pci dev and depending on the vender id returned would depend on what module was loaded or tested for that dev.

See what i am saying.

Example:

Watcom graphire tablet.

Setpci returns a vinder id of say #4o5954 <-------Just an example

My Hardware.rb config script see's this vender id looks it up in the pci database.

Sayss ohhhohhh Watcom tablet.

And ask if you wish to set up the watcom tablet
if yes then all steps to setting a wacom tablet are performed.


One more thing could you all (lspci -x)

00:00.0 Host bridge: Silicon Integrated Systems [SiS] 730 Host (rev 02)
00: 39 10 30 07 07 00 10 22 02 00 00 06 00 20 80 00
10: 00 00 00 d0 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 c0 00 00 00 00 00 00 00 00 00 00 00

00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00: 39 10 13 55 05 00 00 00 d0 80 01 01 00 10 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 01 ff 00 00 00 00 00 00 00 00 00 00 39 10 13 55
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:01.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge)
00: 39 10 18 00 0f 00 00 02 00 00 01 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:01.1 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 10/100 Ethe
rnet (rev 82)
00: 39 10 00 09 07 01 90 02 82 00 00 02 00 40 00 00
10: 01 d0 00 00 00 b0 ff cf 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 39 10 00 09
30: 00 00 fc cf 40 00 00 00 00 00 00 00 0b 03 34 0b

00:01.2 USB Controller: Silicon Integrated Systems [SiS] 7001 (rev 07)
00: 39 10 01 70 17 01 80 02 07 10 03 0c 08 40 00 00
10: 00 c0 ff cf 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 39 10 01 70
30: 00 00 00 00 00 00 00 00 00 00 00 00 03 04 00 50

00:01.3 USB Controller: Silicon Integrated Systems [SiS] 7001 (rev 07)
00: 39 10 01 70 17 01 80 02 07 10 03 0c 08 40 00 00
10: 00 d0 ff cf 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 39 10 00 70
30: 00 00 00 00 00 00 00 00 00 00 00 00 03 04 00 50

00:01.4 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS PCI Au
dio Accelerator (rev 02)
00: 39 10 18 70 07 00 90 02 02 00 01 04 00 40 00 00
10: 01 d4 00 00 00 e0 ff cf 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 39 10 18 70
30: 00 00 00 00 dc 00 00 00 00 00 00 00 0b 02 02 18

00:02.0 PCI bridge: Silicon Integrated Systems [SiS] 5591/5592 AGP
00: 39 10 01 00 27 01 00 00 00 00 04 06 00 00 01 00
10: 00 00 00 00 00 00 00 00 00 01 01 00 a0 b0 00 20
20: e0 cf e0 cf c0 c7 c0 cf 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0e 00

00:09.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00: f6 13 11 01 05 01 10 02 10 00 01 04 00 40 00 00
10: 01 cc 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 ab 17 04 06
30: 00 00 00 00 c0 00 00 00 00 00 00 00 05 01 02 18

01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF
00: 02 10 46 54 87 00 b0 02 00 00 00 03 08 40 00 00
10: 08 00 00 c8 01 b8 00 00 00 c0 ef cf 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 02 10 08 04
30: 00 00 ec cf 50 00 00 00 00 00 00 00 05 01 08 00

These are my results i want to compare a couple to mine.

Hre is a little more info on devices & drivers http://www.scs.carleton.ca/~barbeau/...TP/ALP/WDD.pdf