pci-database: pcimap (NEW) - /lib/modules/`uname -r`/modules.pcima...

glen glen at pld-linux.org
Thu Dec 21 17:56:05 CET 2006


Author: glen                         Date: Thu Dec 21 16:56:05 2006 GMT
Module: pci-database                  Tag: HEAD
---- Log message:
- /lib/modules/`uname -r`/modules.pcimap parser. currently only for snd.pci

---- Files affected:
pci-database:
   pcimap (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: pci-database/pcimap
diff -u /dev/null pci-database/pcimap:1.1
--- /dev/null	Thu Dec 21 17:56:05 2006
+++ pci-database/pcimap	Thu Dec 21 17:56:00 2006
@@ -0,0 +1,16 @@
+#!/bin/awk -f
+BEGIN {
+	if (ARGC == 1) {
+		print "Usage:\npcimap modules.pcimap\n"
+		exit;
+	}
+}
+
+/^snd-/ {
+	# 1022746d snd-intel8x0
+	module = $1
+	vendor = $2
+	device = $3
+	pos = 7
+	printf("%s%s %s\n", substr(vendor, pos), substr(device, pos), module);
+}
================================================================


More information about the pld-cvs-commit mailing list