mirror of https://gitee.com/openkylin/linux.git
davinci_cpdma: export symbols used by other drivers
The davinci_emac driver can be a module, so the symbols it needs from the cpdma driver must be exported. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8e7073a388
commit
32a6d90bb3
|
@ -92,7 +92,7 @@ enum cpdma_state {
|
|||
CPDMA_STATE_TEARDOWN,
|
||||
};
|
||||
|
||||
const char *cpdma_state_str[] = { "idle", "active", "teardown" };
|
||||
static const char *cpdma_state_str[] = { "idle", "active", "teardown" };
|
||||
|
||||
struct cpdma_ctlr {
|
||||
enum cpdma_state state;
|
||||
|
@ -276,6 +276,7 @@ struct cpdma_ctlr *cpdma_ctlr_create(struct cpdma_params *params)
|
|||
ctlr->num_chan = CPDMA_MAX_CHANNELS;
|
||||
return ctlr;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctlr_create);
|
||||
|
||||
int cpdma_ctlr_start(struct cpdma_ctlr *ctlr)
|
||||
{
|
||||
|
@ -321,6 +322,7 @@ int cpdma_ctlr_start(struct cpdma_ctlr *ctlr)
|
|||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctlr_start);
|
||||
|
||||
int cpdma_ctlr_stop(struct cpdma_ctlr *ctlr)
|
||||
{
|
||||
|
@ -351,6 +353,7 @@ int cpdma_ctlr_stop(struct cpdma_ctlr *ctlr)
|
|||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctlr_stop);
|
||||
|
||||
int cpdma_ctlr_dump(struct cpdma_ctlr *ctlr)
|
||||
{
|
||||
|
@ -421,6 +424,7 @@ int cpdma_ctlr_dump(struct cpdma_ctlr *ctlr)
|
|||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctlr_dump);
|
||||
|
||||
int cpdma_ctlr_destroy(struct cpdma_ctlr *ctlr)
|
||||
{
|
||||
|
@ -444,6 +448,7 @@ int cpdma_ctlr_destroy(struct cpdma_ctlr *ctlr)
|
|||
kfree(ctlr);
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_ctlr_destroy);
|
||||
|
||||
int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable)
|
||||
{
|
||||
|
@ -528,6 +533,7 @@ struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num,
|
|||
err_chan_alloc:
|
||||
return ERR_PTR(ret);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_chan_create);
|
||||
|
||||
int cpdma_chan_destroy(struct cpdma_chan *chan)
|
||||
{
|
||||
|
@ -545,6 +551,7 @@ int cpdma_chan_destroy(struct cpdma_chan *chan)
|
|||
kfree(chan);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_chan_destroy);
|
||||
|
||||
int cpdma_chan_get_stats(struct cpdma_chan *chan,
|
||||
struct cpdma_chan_stats *stats)
|
||||
|
@ -693,6 +700,7 @@ int cpdma_chan_submit(struct cpdma_chan *chan, void *token, void *data,
|
|||
spin_unlock_irqrestore(&chan->lock, flags);
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_chan_submit);
|
||||
|
||||
static void __cpdma_chan_free(struct cpdma_chan *chan,
|
||||
struct cpdma_desc __iomem *desc,
|
||||
|
@ -776,6 +784,7 @@ int cpdma_chan_process(struct cpdma_chan *chan, int quota)
|
|||
}
|
||||
return used;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_chan_process);
|
||||
|
||||
int cpdma_chan_start(struct cpdma_chan *chan)
|
||||
{
|
||||
|
@ -803,6 +812,7 @@ int cpdma_chan_start(struct cpdma_chan *chan)
|
|||
spin_unlock_irqrestore(&chan->lock, flags);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_chan_start);
|
||||
|
||||
int cpdma_chan_stop(struct cpdma_chan *chan)
|
||||
{
|
||||
|
@ -863,6 +873,7 @@ int cpdma_chan_stop(struct cpdma_chan *chan)
|
|||
spin_unlock_irqrestore(&chan->lock, flags);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cpdma_chan_stop);
|
||||
|
||||
int cpdma_chan_int_ctrl(struct cpdma_chan *chan, bool enable)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue