summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2013-10-18 19:27:13 (GMT)
committerJ. German Rivera <German.Rivera@freescale.com>2013-10-22 20:14:50 (GMT)
commit79bd27e905da1b17a17ea807c04dc7fddd0dcb14 (patch)
tree6ece4e072fe0590331e1692289caf5fc9744ea1e /include
parentc0e2e95af2c30aaf2161633623d3f32f91403071 (diff)
downloadlinux-fsl-qoriq-79bd27e905da1b17a17ea807c04dc7fddd0dcb14.tar.xz
fsl_qman: add APIs to set CQ CR/ER eligibility within the channel
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I1ba0d8eb5f0a5c4b1b7156e2556253b916d351e9 Reviewed-on: http://git.am.freescale.net:8181/5871 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fsl_qman.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/fsl_qman.h b/include/linux/fsl_qman.h
index e8e5818..f306c4b 100644
--- a/include/linux/fsl_qman.h
+++ b/include/linux/fsl_qman.h
@@ -2881,6 +2881,34 @@ int qman_ceetm_channel_get_group(struct qm_ceetm_channel *channel,
unsigned int *prio_a,
unsigned int *prio_b);
+/**
+ * qman_ceetm_channel_set_group_cr_eligibility
+ * qman_ceetm_channel_set_group_er_eligibility - Set channel group eligibitity
+ * @channel: the given channel object
+ * @group_b: indicates whether there is group B in this channel.
+ * @cre: the commit rate eligibility, 1 for enable, 0 for disable.
+ *
+ * Return zero for success, or -EINVAL if eligiblity setting fails.
+*/
+int qman_ceetm_channel_set_group_cr_eligiblility(struct qm_ceetm_channel
+ *channel, int group_b, int cre);
+int qman_ceetm_channel_set_group_er_eligiblility(struct qm_ceetm_channel
+ *channel, int group_b, int ere);
+
+/**
+ * qman_ceetm_channel_set_cq_cr_eligibility
+ * qman_ceetm_channel_set_cq_er_eligibility - Set channel cq eligibitity
+ * @channel: the given channel object
+ * @idx: is from 0 to 7 (representing CQ0 to CQ7).
+ * @cre: the commit rate eligibility, 1 for enable, 0 for disable.
+ *
+ * Return zero for success, or -EINVAL if eligiblity setting fails.
+*/
+int qman_ceetm_channel_set_cq_cr_eligiblility(struct qm_ceetm_channel *channel,
+ unsigned int idx, int cre);
+int qman_ceetm_channel_set_cq_er_eligiblility(struct qm_ceetm_channel *channel,
+ unsigned int idx, int ere);
+
/* --------------------- */
/* CEETM :: class queues */
/* --------------------- */