Messages in this thread Patch in this message | | | Date | Wed, 15 Dec 1999 17:00:19 +0100 | From | Serge Robyns <> | Subject | patch for maestro 2E for Linux 2.3.33 |
| |
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <br>Hi, <p>This is a patch to port Zach's maestro driver V 0.13 to the 2.3.33 kernel. <p>Sincerly, <p>Serge <br> <br> <pre>-- _______________ / \ | Serge Robyns \_______________________________ | \ | RC&S (Robyns Consulting & Services) \ | 139, avenue De Fre | | 1180 Uccle - Belgium | | \|/ | | phone: +32(477)29.66.97 -O- fax: +1(801)469-9358 | | /|\ | | | | \|/ <a href="mailto:serge.robyns@advalvas.be">mailto:serge.robyns@advalvas.be</a> \|/ | \___/o\____ <a href="http://web.wanadoo.be/rc.s/">http://web.wanadoo.be/rc.s/</a> ____/o\____/</pre> <p> </html> --- maestro.c Thu Nov 18 19:29:12 1999 +++ maestro-2.3.33.c Wed Dec 15 16:41:29 1999 @@ -195,6 +195,12 @@ #else + #ifdef MODULE + #include <linux/module.h> + #ifdef MODVERSIONS + #include <linux/modversions.h> + #endif + #endif #define SILLY_PCI_BASE_ADDRESS(PCIDEV) (PCIDEV->resource[0].start) #define SILLY_INIT_SEM(SEM) init_MUTEX(&SEM) #define SILLY_MAKE_INIT(FUNC) __init FUNC @@ -216,7 +222,10 @@ #include <linux/poll.h> #include <asm/uaccess.h> #include <asm/hardirq.h> + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) #include <asm/spinlock.h> +#endif #ifdef CONFIG_APM #include <linux/apm_bios.h> @@ -2372,7 +2381,12 @@ } else #endif return -EINVAL; + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) if (vma->vm_offset != 0) +#else + if (vma->vm_pgoff != 0) +#endif return -EINVAL; size = vma->vm_end - vma->vm_start; if (size > (PAGE_SIZE << db->buforder))
| |