summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/kudzu/files')
-rw-r--r--sys-apps/kudzu/files/1.2.52-remove-pci-device-class.patch32
-rw-r--r--sys-apps/kudzu/files/1.2.52-remove-pci-fill-class.patch21
-rw-r--r--sys-apps/kudzu/files/1.2.52-remove-sata-ata-storage-classes.patch45
-rw-r--r--sys-apps/kudzu/files/digest-kudzu-1.2.523
-rw-r--r--sys-apps/kudzu/files/sunlance.patch11
5 files changed, 112 insertions, 0 deletions
diff --git a/sys-apps/kudzu/files/1.2.52-remove-pci-device-class.patch b/sys-apps/kudzu/files/1.2.52-remove-pci-device-class.patch
new file mode 100644
index 000000000000..08c81d1d659f
--- /dev/null
+++ b/sys-apps/kudzu/files/1.2.52-remove-pci-device-class.patch
@@ -0,0 +1,32 @@
+device_class only exists as a patch to Red Hat pciutils. This diff is based on
+reversing r1.108.
+
+-Donnie Berkholz <dberkholz@gentoo.org>
+
+--- pci.c.orig 2006-09-01 14:39:55.000000000 -0700
++++ pci.c 2006-09-01 14:41:28.000000000 -0700
+@@ -297,7 +297,7 @@
+ #endif
+ unsigned int devtype, command;
+
+- devtype = p->device_class;
++ devtype = config[PCI_CLASS_DEVICE+1] << 8 | config[PCI_CLASS_DEVICE];
+ if (p->irq || pciToKudzu(devtype) != CLASS_VIDEO) {
+ return 0;
+ }
+@@ -420,13 +420,13 @@
+ dev->subDeviceId = subdev;
+ dev->pciType = bustype;
+ asprintf(&t,"v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x",p->vendor_id,p->device_id,
+- subvend, subdev,(u_int8_t)(p->device_class >> 8),(u_int8_t)(p->device_class),config[PCI_CLASS_PROG]);
++ subvend, subdev,(u_int8_t)(config[PCI_CLASS_DEVICE+1] << 8),(u_int8_t)(config[PCI_CLASS_DEVICE]),config[PCI_CLASS_PROG]);
+ drv = aliasSearch(aliases, "pci", t);
+ x_drv = aliasSearch(aliases, "pcivideo", t);
+ free(t);
+ if (drv)
+ dev->driver = strdup(drv);
+- devtype = p->device_class;
++ devtype = config[PCI_CLASS_DEVICE+1] << 8 | config[PCI_CLASS_DEVICE];
+ if (x_drv) {
+ dev->classprivate = strdup(x_drv);
+ }
diff --git a/sys-apps/kudzu/files/1.2.52-remove-pci-fill-class.patch b/sys-apps/kudzu/files/1.2.52-remove-pci-fill-class.patch
new file mode 100644
index 000000000000..6ac45885e9cf
--- /dev/null
+++ b/sys-apps/kudzu/files/1.2.52-remove-pci-fill-class.patch
@@ -0,0 +1,21 @@
+Remove a class that only exists as a patch to Red Hat pciutils.
+
+-Donnie Berkholz <dberkholz@gentoo.org>
+
+Index: pci.c
+===================================================================
+RCS file: /usr/local/CVS/kudzu/pci.c,v
+retrieving revision 1.110
+retrieving revision 1.109
+diff -u -b -B -r1.110 -r1.109
+--- pci.c 8 Sep 2004 19:00:57 -0000 1.110
++++ pci.c 3 Sep 2004 21:14:39 -0000 1.109
+@@ -746,7 +748,7 @@
+ subvend = config[PCI_SUBSYSTEM_VENDOR_ID+1] << 8 | config[PCI_SUBSYSTEM_VENDOR_ID];
+ subdev = config[PCI_SUBSYSTEM_ID+1] << 8 | config[PCI_SUBSYSTEM_ID];
+ }
+- pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_CLASS | PCI_FILL_IRQ | PCI_FILL_BASES | PCI_FILL_ROM_BASE | PCI_FILL_SIZES);
++ pci_fill_info(p, PCI_FILL_IDENT | PCI_FILL_IRQ | PCI_FILL_BASES | PCI_FILL_ROM_BASE | PCI_FILL_SIZES);
+ bustype = PCI_NORMAL;
+ for (bridgenum=0; cardbus_bridges[bridgenum]; bridgenum++) {
+ if (p->bus == cardbus_bridges[bridgenum])
diff --git a/sys-apps/kudzu/files/1.2.52-remove-sata-ata-storage-classes.patch b/sys-apps/kudzu/files/1.2.52-remove-sata-ata-storage-classes.patch
new file mode 100644
index 000000000000..21824e950ae6
--- /dev/null
+++ b/sys-apps/kudzu/files/1.2.52-remove-sata-ata-storage-classes.patch
@@ -0,0 +1,45 @@
+Remove some storage classes that only exist as patches to Red Hat pciutils.
+
+-Donnie Berkholz <dberkholz@gentoo.org>
+
+Index: pci.c
+===================================================================
+RCS file: /usr/local/CVS/kudzu/pci.c,v
+retrieving revision 1.141
+retrieving revision 1.140
+diff -u -b -B -r1.141 -r1.140
+--- pci.c 9 Aug 2006 17:47:46 -0000 1.141
++++ pci.c 28 Feb 2006 19:49:56 -0000 1.140
+@@ -142,10 +142,6 @@
+ return PCI_CLASS_BRIDGE_CARDBUS;
+ case CLASS_IDE:
+ return PCI_CLASS_STORAGE_IDE;
+- case CLASS_ATA:
+- return PCI_CLASS_STORAGE_ATA;
+- case CLASS_SATA:
+- return PCI_CLASS_STORAGE_SATA;
+ default:
+ return 0;
+ }
+@@ -170,10 +166,6 @@
+ return CLASS_FLOPPY;
+ case PCI_CLASS_STORAGE_RAID:
+ return CLASS_RAID;
+- case PCI_CLASS_STORAGE_ATA:
+- return CLASS_ATA;
+- case PCI_CLASS_STORAGE_SATA:
+- return CLASS_SATA;
+ case PCI_CLASS_MULTIMEDIA_AUDIO:
+ /* HD Audio */
+ case 0x0403:
+@@ -360,9 +352,7 @@
+ (probeClass & CLASS_FIREWIRE) ||
+ (probeClass & CLASS_SOCKET) ||
+ (probeClass & CLASS_CAPTURE) ||
+- (probeClass & CLASS_RAID) ||
+- (probeClass & CLASS_ATA) ||
+- (probeClass & CLASS_SATA)) {
++ (probeClass & CLASS_RAID)) {
+ pacc = pci_alloc();
+ if (!pacc) return devlist;
+ if (!getAliases(aliases, "pci")) {
diff --git a/sys-apps/kudzu/files/digest-kudzu-1.2.52 b/sys-apps/kudzu/files/digest-kudzu-1.2.52
new file mode 100644
index 000000000000..ecf39dde4171
--- /dev/null
+++ b/sys-apps/kudzu/files/digest-kudzu-1.2.52
@@ -0,0 +1,3 @@
+MD5 e7f6b605cb376e9033238fc87872ea30 kudzu-1.2.52-1.src.rpm 225268
+RMD160 0d6e37599d729808c8608ca400185c146dab53d1 kudzu-1.2.52-1.src.rpm 225268
+SHA256 5767dd6403d9850ea66ec9fa615745053a8d66ce10ca81c093a5b8796ff6b0cb kudzu-1.2.52-1.src.rpm 225268
diff --git a/sys-apps/kudzu/files/sunlance.patch b/sys-apps/kudzu/files/sunlance.patch
new file mode 100644
index 000000000000..f1f9e43aa821
--- /dev/null
+++ b/sys-apps/kudzu/files/sunlance.patch
@@ -0,0 +1,11 @@
+diff -urN kudzu-1.1.62.orig/sbus.c kudzu-1.1.62/sbus.c
+--- kudzu-1.1.62.orig/sbus.c 2003-03-24 17:39:14.000000000 -0500
++++ kudzu-1.1.62/sbus.c 2005-07-12 09:50:06.000000000 -0400
+@@ -162,6 +162,7 @@
+ devClass = CLASS_NETWORK;
+ } else if (!strcmp(prop, "le")) {
+ type = "Sun Lance Ethernet";
++ module = "sunlance";
+ devClass = CLASS_NETWORK;
+ } else if (!strcmp(prop, "qe")) {
+ prop = prom_getproperty("channel#", &len);