diff options
author | Roy Pledge <roy.pledge@nxp.com> | 2017-10-04 15:36:06 -0400 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-12-02 18:03:46 +0800 |
commit | d8cfff80220b06d2875dc32ace37fb7d453624d7 (patch) | |
tree | 717ab076ca071686ae95852191262ab36266e700 /include/soc | |
parent | 4820cd62456ecb675a60eed5aa6d2e67d7b27bc8 (diff) |
soc: fsl: dpio: Add Support for Order Restoration
Add DPIO support for HW assisted order restoration
Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/fsl/dpaa2-io.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/soc/fsl/dpaa2-io.h b/include/soc/fsl/dpaa2-io.h index 672cfb58046f..640a03141d24 100644 --- a/include/soc/fsl/dpaa2-io.h +++ b/include/soc/fsl/dpaa2-io.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ /* * Copyright 2014-2016 Freescale Semiconductor Inc. - * Copyright NXP + * Copyright 2017 NXP * */ #ifndef __FSL_DPAA2_IO_H @@ -121,6 +121,18 @@ struct dpaa2_io_store *dpaa2_io_store_create(unsigned int max_frames, void dpaa2_io_store_destroy(struct dpaa2_io_store *s); struct dpaa2_dq *dpaa2_io_store_next(struct dpaa2_io_store *s, int *is_last); +/* Order Restoration Support */ +int dpaa2_io_service_enqueue_orp_fq(struct dpaa2_io *d, u32 fqid, + const struct dpaa2_fd *fd, u16 orpid, + u16 seqnum, int last); + +int dpaa2_io_service_enqueue_orp_qd(struct dpaa2_io *d, u32 qdid, u8 prio, + u16 qdbin, const struct dpaa2_fd *fd, + u16 orpid, u16 seqnum, int last); + +int dpaa2_io_service_orp_seqnum_drop(struct dpaa2_io *d, u16 orpid, + u16 seqnum); + int dpaa2_io_query_fq_count(struct dpaa2_io *d, u32 fqid, u32 *fcnt, u32 *bcnt); int dpaa2_io_query_bp_count(struct dpaa2_io *d, u16 bpid, |