Hi,
When porting gadget to kernel 2.4 from 2.6 , The files of DMA is difficult
to handle. I find the description about two API set in dma.c :
The revised OMAP DMA API in the 2.6 kernel is incompatible with the DMA
API in the 2.4. kernel because the rototypes of some existing functions were
changed. This incomplete backport of parts of the 2.6 API is to make it
easier to port OMAP drivers from the 2.6 kernel to the 2.4 kernel.
Regarding omap_set_dma_transfer_params function , the definition in 2.6 is
:
void omap_set_dma_transfer_params(int lch, int data_type, int elem_count,
int frame_count, int frame_sync, dma_device_t sync, int priority,
int auto_init, int repeat, int end_prog, int omap31_comp_disable,
int interrupt_enabled)
But the definition in 2.4 is:
void omap_set_dma_transfer_params(int lch, int data_type, int elem_count,
int frame_count, int sync_mode)
How to port OMAP DMA API from 2.6 to 2.4? Thanks a lot .
Best Regards
Terry
======= 2005-07-15 22:47:44 :=======
>You'll have to do the port yourself. There's no manual, but it should
>be straightforward to make the current code work on 2.4.20 ... the driver
>model stuff can just be removed, the main issue will be the DMA APIs
>which are different on 2.4 kernels.
>
>- Dave
= = = = = = = = = = = = = = = = = = = =