[Prism54-devel] [patch] patch to allow cvs version compiled and used under 2.6.11 kernel

Eero Volotinen eero.volotinen at pronics.com
Mon Apr 18 06:40:03 UTC 2005


> Sorry that I haven't yet fixed this on the latest svn repos. This
> looks good but should rather be fixed in prism54 compat file. If you
> get to do this send a patch and I'll appy. If not I'll do it when I
> get around to it. Thanks,

Sounds good solution: here it is:

--
Eero

diff -up prism54.old/prismcompat.h prism54/prismcompat.h
--- prism54.old/prismcompat.h   2005-04-17 17:54:06.210073000 +0300
+++ prism54/prismcompat.h       2005-04-18 09:36:29.577088128 +0300
@@ -27,6 +27,7 @@
 #ifndef _PRISM_COMPAT_H
 #define _PRISM_COMPAT_H

+#include <linux/version.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
 #include <linux/config.h>
@@ -44,6 +45,13 @@

 #define prism54_synchronize_irq(irq) synchronize_irq(irq)

+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9))
+#define pci_dma_sync_single(a,b,c,d) pci_dma_sync_single_for_cpu(a,b,c,d)
+#define pci_save_state(a,b) pci_save_state(a)
+#define pci_restore_state(a,b) pci_restore_state(a)
+#endif
+
+
 #define PRISM_FW_PDEV          &priv->pdev->dev

 #endif                         /* _PRISM_COMPAT_H */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel.2.6.11.patch
Type: application/octet-stream
Size: 760 bytes
Desc: not available
Url : http://prism54.org/pipermail/prism54-devel/attachments/20050418/15236fc8/kernel.2.6.11.obj


More information about the Prism54-devel mailing list