mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Diego Calleja <diegocg@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: [script] Human-readable of supported pci hardware
Date: Wed, 22 Nov 2006 22:07:07 +0100	[thread overview]
Message-ID: <20061122220707.ee78fc7d.diegocg@gmail.com> (raw)

I've written a small (python) script that takes that info from
/lib/modules/`uname -r`/modules.pcimap, looks up the PCIIDs in the pciid
database (placed in /usr/share/misc/pci.ids in ubuntu, change the path if
your system is different) and generates a list of human-readable hardware
that each module supports (obviously the in-kernel stuff isn't included
in the list). I've never seen a util that does this, and I though people
may be interested in this crappy script

This only gives a list of supported "pci devices". It's easy to extend
it to print also usb devices, and it'd be also possible for ieee1394
or isapnp cards if there were a "id" database available.

It be possible to dump the data in a database and do queries like "what
sound cards does linux support?" But right now pretty much every driver
except a few ones doesn't seem to set the pci_device_id.class field.

The script is at: http://www.terra.es/personal/diegocg/list-kernel-hardware.py


Obligatory screenshot:

Driver: snd-ymfpci
        Device: YMF-724 (deviceid 0004); made by Yamaha Corporation (vendorid 1073)
        Device: YMF-724F [DS-1 Audio Controller] (deviceid 000d); made by Yamaha Corporation (vendorid 1073)
        Device: DS1L Audio (deviceid 000a); made by Yamaha Corporation (vendorid 1073)
        Device: YMF-740C [DS-1L Audio Controller] (deviceid 000c); made by Yamaha Corporation (vendorid 1073)
        Device: YMF-744B [DS-1S Audio Controller] (deviceid 0010); made by Yamaha Corporation (vendorid 1073)
        Device: YMF-754 [DS-1E Audio Controller] (deviceid 0012); made by Yamaha Corporation (vendorid 1073)


A full list for a default ubuntu kernel can be found at:
http://www.terra.es/personal/diegocg/list.txt
(obviously, to get a list of all the pci hardware supported by the
kernel you'd need to compile a "allmodconfig" kernel)

                 reply	other threads:[~2006-11-22 21:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061122220707.ee78fc7d.diegocg@gmail.com \
    --to=diegocg@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome