summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-mc/include/dpaa2-fd.h
diff options
context:
space:
mode:
authorHoria Geantă2018-07-24 16:21:28 +0200
committerLi Yang2018-07-24 23:18:54 +0200
commit58ad0d0263c5bb5d907b05b4cf5d875eb8487221 (patch)
treec49b0b4564bb8e422dab7180c41ce58d4c52b9b6 /drivers/staging/fsl-mc/include/dpaa2-fd.h
parentsoc: fsl: qe: gpio: Add qe_gpio_set_multiple (diff)
downloadkernel-qcow2-linux-58ad0d0263c5bb5d907b05b4cf5d875eb8487221.tar.gz
kernel-qcow2-linux-58ad0d0263c5bb5d907b05b4cf5d875eb8487221.tar.xz
kernel-qcow2-linux-58ad0d0263c5bb5d907b05b4cf5d875eb8487221.zip
staging: fsl-dpaa2: eth: move generic FD defines to DPIO
Previous commits: commit 6e2387e8f19e ("staging: fsl-dpaa2/eth: Add Freescale DPAA2 Ethernet driver") commit 39163c0ce0f4 ("staging: fsl-dpaa2/eth: Errors checking update") have added bits that are not specific to the WRIOP accelerator. Move these where they belong (in DPIO) such that other accelerators can make use of them. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Acked-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/staging/fsl-mc/include/dpaa2-fd.h')
-rw-r--r--drivers/staging/fsl-mc/include/dpaa2-fd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h b/drivers/staging/fsl-mc/include/dpaa2-fd.h
index b55b89ba4eda..2576abaa7779 100644
--- a/drivers/staging/fsl-mc/include/dpaa2-fd.h
+++ b/drivers/staging/fsl-mc/include/dpaa2-fd.h
@@ -67,6 +67,18 @@ struct dpaa2_fd {
#define SG_FINAL_FLAG_MASK 0x1
#define SG_FINAL_FLAG_SHIFT 15
+/* Error bits in FD CTRL */
+#define FD_CTRL_ERR_MASK 0x000000FF
+#define FD_CTRL_UFD 0x00000004
+#define FD_CTRL_SBE 0x00000008
+#define FD_CTRL_FLC 0x00000010
+#define FD_CTRL_FSE 0x00000020
+#define FD_CTRL_FAERR 0x00000040
+
+/* Annotation bits in FD CTRL */
+#define FD_CTRL_PTA 0x00800000
+#define FD_CTRL_PTV1 0x00400000
+
enum dpaa2_fd_format {
dpaa2_fd_single = 0,
dpaa2_fd_list,