diff options
author | Haiying Wang <Haiying.Wang@freescale.com> | 2013-08-28 17:00:58 (GMT) |
---|---|---|
committer | Rivera Jose-B46482 <German.Rivera@freescale.com> | 2013-09-10 23:37:43 (GMT) |
commit | 856a3d6ac79ca0e2ea7842e61c57487821cf043a (patch) | |
tree | 0149be9c2720e52f7b267744c179d300496f4b3b /drivers/staging/fsl_qbman/qman_low.h | |
parent | 91684b03ac36081b72b65b55beb28280d5b46c0a (diff) | |
download | linux-fsl-qoriq-856a3d6ac79ca0e2ea7842e61c57487821cf043a.tar.xz |
fsl_qman: move use_eqcr_ci_stashing in high level portal structure
It was wrongly put into low level structure in commit
aa57f7af3c9857ba40c8e1dd8dbefd5f0aa67d94
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Geoff Thorpe <Geoff.Thorpe@freescale.com>
Change-Id: Ib0c8355750bc4195c71799f559f75979b50fca31
Reviewed-on: http://git.am.freescale.net:8181/4583
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/staging/fsl_qbman/qman_low.h')
-rw-r--r-- | drivers/staging/fsl_qbman/qman_low.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/staging/fsl_qbman/qman_low.h b/drivers/staging/fsl_qbman/qman_low.h index 64479f0..ea2dccc 100644 --- a/drivers/staging/fsl_qbman/qman_low.h +++ b/drivers/staging/fsl_qbman/qman_low.h @@ -166,7 +166,6 @@ enum qm_mr_cmode { /* matches QCSP_CFG::MM */ struct qm_eqcr { struct qm_eqcr_entry *ring, *cursor; u8 ci, available, ithresh, vbit; - u32 use_eqcr_ci_stashing; #ifdef CONFIG_FSL_DPA_CHECKING u32 busy; enum qm_eqcr_pmode pmode; @@ -287,6 +286,11 @@ static inline int qm_eqcr_init(struct qm_portal *portal, return 0; } +static inline unsigned int qm_eqcr_get_ci_stashing(struct qm_portal *portal) +{ + return ((qm_in(CFG) >> 28) & 0x7); +} + static inline void qm_eqcr_finish(struct qm_portal *portal) { register struct qm_eqcr *eqcr = &portal->eqcr; |