patch for maestro 2E for Linux 2.3.33

Serge Robyns (serge.robyns@advalvas.be)
Wed, 15 Dec 1999 17:00:19 +0100


This is a multi-part message in MIME format.
--------------14C65E6EE5C6DC2906701283
Content-Type: multipart/alternative;
boundary="------------29CEBB269A57069D7630B0BD"

--------------29CEBB269A57069D7630B0BD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

This is a patch to port Zach's maestro driver V 0.13 to the 2.3.33 kernel.

Sincerly,

Serge

--
 _______________
/               \
|  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 |
|                         /|\                      |
|                                                  |
|   \|/   mailto:serge.robyns@advalvas.be   \|/    |
\___/o\____ http://web.wanadoo.be/rc.s/ ____/o\____/

--------------29CEBB269A57069D7630B0BD Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">  
Hi,

This is a  patch to port Zach's maestro driver V 0.13 to the 2.3.33 kernel.

Sincerly,

Serge
 
 

-- 
 _______________
/               \
|  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 |
|                         /|\                      |
|                                                  |
|   \|/   mailto:serge.robyns@advalvas.be   \|/    |
\___/o\____ http://web.wanadoo.be/rc.s/ ____/o\____/
 

  --------------29CEBB269A57069D7630B0BD-- --------------14C65E6EE5C6DC2906701283 Content-Type: text/plain; charset=us-ascii; name="patchfile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patchfile" --- 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 + #ifdef MODVERSIONS + #include + #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 #include #include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) #include +#endif #ifdef CONFIG_APM #include @@ -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)) --------------14C65E6EE5C6DC2906701283-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/