summaryrefslogtreecommitdiffstats
path: root/convert/xf86PciInfo2pcitable.c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-17 20:04:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-17 20:04:23 +0000
commitf53cfc2c3d8b2ddaaa22b1355eeb42d81133e903 (patch)
tree29fbdada7a6109ea74cd01456ed6538d2fcccf55 /convert/xf86PciInfo2pcitable.c
parentaad9e607fd8975b6c8204b196d67d27777616d6c (diff)
downloadldetect-lst-f53cfc2c3d8b2ddaaa22b1355eeb42d81133e903.tar
ldetect-lst-f53cfc2c3d8b2ddaaa22b1355eeb42d81133e903.tar.gz
ldetect-lst-f53cfc2c3d8b2ddaaa22b1355eeb42d81133e903.tar.bz2
ldetect-lst-f53cfc2c3d8b2ddaaa22b1355eeb42d81133e903.tar.xz
ldetect-lst-f53cfc2c3d8b2ddaaa22b1355eeb42d81133e903.zip
- drop getting info from XFree86 (XFree now uses http://pciids.sourceforge.net/)
- nicer getting of kernel's info
Diffstat (limited to 'convert/xf86PciInfo2pcitable.c')
-rw-r--r--convert/xf86PciInfo2pcitable.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/convert/xf86PciInfo2pcitable.c b/convert/xf86PciInfo2pcitable.c
deleted file mode 100644
index 30374b79..00000000
--- a/convert/xf86PciInfo2pcitable.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* take xc/programs/Xserver/hw/xfree86/common/xf86PciInfo.h in XFree86-4 */
-#include "xf86PciInfo.h"
-
-const char *vendor2text(int id) {
- SymTabRec *p;
- for (p = xf86PCIVendorNameInfoData; p->token; p++)
- if (p->token == id) return p->name;
- fprintf(stderr, "error, bad vendor id\n");
- exit(1);
-}
-
-main() {
- pciVendorDeviceInfo *p;
-
- for (p = xf86PCIVendorInfoData; p->VendorID; p++) {
- struct pciDevice *q;
- const char *vendor = vendor2text(p->VendorID);
- for (q = p->Device; q->DeviceID; q++) {
- printf("0x%04x\t0x%04x\t\"unknown\"\t\"%s|%s\"\n", p->VendorID, q->DeviceID, vendor, q->DeviceName);
- }
- }
-}