Commit a273a739 authored by Ben Dooks's avatar Ben Dooks Committed by Russell King

[ARM PATCH] 2227/1: S3C2410 - export dma symbols to modules

Patch from Ben Dooks

Added EXPORT_SYMBOL() to appropriate routines

(should be applied after Patch 2226/1)

Signed-off-by: Ben Dooks
Signed-off-by: Russell King
parent ae40b489
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
* *
* Changelog: * Changelog:
* 10-Nov-2004 BJD Ensure all external symbols exported for modules
* 10-Nov-2004 BJD Use sys_device and sysdev_class for power management * 10-Nov-2004 BJD Use sys_device and sysdev_class for power management
* 08-Aug-2004 BJD Apply rmk's suggestions * 08-Aug-2004 BJD Apply rmk's suggestions
* 21-Jul-2004 BJD Ported to linux 2.6 * 21-Jul-2004 BJD Ported to linux 2.6
...@@ -503,6 +504,8 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id, ...@@ -503,6 +504,8 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
return 0; return 0;
} }
EXPORT_SYMBOL(s3c2410_dma_enqueue);
static inline void static inline void
s3c2410_dma_freebuf(s3c2410_dma_buf_t *buf) s3c2410_dma_freebuf(s3c2410_dma_buf_t *buf)
{ {
...@@ -738,6 +741,8 @@ int s3c2410_dma_request(unsigned int channel, s3c2410_dma_client_t *client, ...@@ -738,6 +741,8 @@ int s3c2410_dma_request(unsigned int channel, s3c2410_dma_client_t *client,
return 0; return 0;
} }
EXPORT_SYMBOL(s3c2410_dma_request);
/* s3c2410_dma_free /* s3c2410_dma_free
* *
* release the given channel back to the system, will stop and flush * release the given channel back to the system, will stop and flush
...@@ -782,6 +787,8 @@ int s3c2410_dma_free(dmach_t channel, s3c2410_dma_client_t *client) ...@@ -782,6 +787,8 @@ int s3c2410_dma_free(dmach_t channel, s3c2410_dma_client_t *client)
return 0; return 0;
} }
EXPORT_SYMBOL(s3c2410_dma_free);
static int s3c2410_dma_dostop(s3c2410_dma_chan_t *chan) static int s3c2410_dma_dostop(s3c2410_dma_chan_t *chan)
{ {
unsigned long tmp; unsigned long tmp;
...@@ -888,6 +895,7 @@ s3c2410_dma_ctrl(dmach_t channel, s3c2410_chan_op_t op) ...@@ -888,6 +895,7 @@ s3c2410_dma_ctrl(dmach_t channel, s3c2410_chan_op_t op)
return -ENOENT; /* unknown, don't bother */ return -ENOENT; /* unknown, don't bother */
} }
EXPORT_SYMBOL(s3c2410_dma_ctrl);
/* DMA configuration for each channel /* DMA configuration for each channel
* *
...@@ -943,6 +951,7 @@ int s3c2410_dma_config(dmach_t channel, ...@@ -943,6 +951,7 @@ int s3c2410_dma_config(dmach_t channel,
return 0; return 0;
} }
EXPORT_SYMBOL(s3c2410_dma_config);
int s3c2410_dma_setflags(dmach_t channel, unsigned int flags) int s3c2410_dma_setflags(dmach_t channel, unsigned int flags)
{ {
...@@ -957,6 +966,9 @@ int s3c2410_dma_setflags(dmach_t channel, unsigned int flags) ...@@ -957,6 +966,9 @@ int s3c2410_dma_setflags(dmach_t channel, unsigned int flags)
return 0; return 0;
} }
EXPORT_SYMBOL(s3c2410_dma_setflags);
/* do we need to protect the settings of the fields from /* do we need to protect the settings of the fields from
* irq? * irq?
*/ */
...@@ -974,6 +986,8 @@ int s3c2410_dma_set_opfn(dmach_t channel, s3c2410_dma_opfn_t rtn) ...@@ -974,6 +986,8 @@ int s3c2410_dma_set_opfn(dmach_t channel, s3c2410_dma_opfn_t rtn)
return 0; return 0;
} }
EXPORT_SYMBOL(s3c2410_dma_set_opfn);
int s3c2410_dma_set_buffdone_fn(dmach_t channel, s3c2410_dma_cbfn_t rtn) int s3c2410_dma_set_buffdone_fn(dmach_t channel, s3c2410_dma_cbfn_t rtn)
{ {
s3c2410_dma_chan_t *chan = &s3c2410_chans[channel]; s3c2410_dma_chan_t *chan = &s3c2410_chans[channel];
...@@ -987,6 +1001,8 @@ int s3c2410_dma_set_buffdone_fn(dmach_t channel, s3c2410_dma_cbfn_t rtn) ...@@ -987,6 +1001,8 @@ int s3c2410_dma_set_buffdone_fn(dmach_t channel, s3c2410_dma_cbfn_t rtn)
return 0; return 0;
} }
EXPORT_SYMBOL(s3c2410_dma_set_buffdone_fn);
/* s3c2410_dma_devconfig /* s3c2410_dma_devconfig
* *
* configure the dma source/destination hardware type and address * configure the dma source/destination hardware type and address
...@@ -1044,6 +1060,8 @@ int s3c2410_dma_devconfig(int channel, ...@@ -1044,6 +1060,8 @@ int s3c2410_dma_devconfig(int channel,
return -EINVAL; return -EINVAL;
} }
EXPORT_SYMBOL(s3c2410_dma_devconfig);
/* system device class */ /* system device class */
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment