|
@@ -796,6 +796,7 @@ int cpdma_chan_set_weight(struct cpdma_chan *ch, int weight)
|
|
|
spin_unlock_irqrestore(&ctlr->lock, flags);
|
|
|
return ret;
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(cpdma_chan_set_weight);
|
|
|
|
|
|
/* cpdma_chan_get_min_rate - get minimum allowed rate for channel
|
|
|
* Should be called before cpdma_chan_set_rate.
|
|
@@ -810,6 +811,7 @@ u32 cpdma_chan_get_min_rate(struct cpdma_ctlr *ctlr)
|
|
|
|
|
|
return DIV_ROUND_UP(divident, divisor);
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(cpdma_chan_get_min_rate);
|
|
|
|
|
|
/* cpdma_chan_set_rate - limits bandwidth for transmit channel.
|
|
|
* The bandwidth * limited channels have to be in order beginning from lowest.
|
|
@@ -853,6 +855,7 @@ err:
|
|
|
spin_unlock_irqrestore(&ctlr->lock, flags);
|
|
|
return ret;
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(cpdma_chan_set_rate);
|
|
|
|
|
|
u32 cpdma_chan_get_rate(struct cpdma_chan *ch)
|
|
|
{
|
|
@@ -865,6 +868,7 @@ u32 cpdma_chan_get_rate(struct cpdma_chan *ch)
|
|
|
|
|
|
return rate;
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(cpdma_chan_get_rate);
|
|
|
|
|
|
struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num,
|
|
|
cpdma_handler_fn handler, int rx_type)
|