summaryrefslogtreecommitdiffstats
path: root/include/fsl-mc/fsl_mc_cmd.h
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-12-24 15:32:49 +0530
committerYork Sun <york.sun@nxp.com>2016-01-27 08:13:10 -0800
commit53e353fc3e52ae8161d3977aac655f551a56a3a1 (patch)
tree61865f65b39c09989c04c27adbd735f309044ae1 /include/fsl-mc/fsl_mc_cmd.h
parent9a696f56fcabc3d7ddd120712cc3a70b085ea412 (diff)
downloadtalos-obmc-uboot-53e353fc3e52ae8161d3977aac655f551a56a3a1.tar.gz
talos-obmc-uboot-53e353fc3e52ae8161d3977aac655f551a56a3a1.zip
driver: net: fsl-mc: flib changes for MC FW 9.0.0
MC firmware version 9.0.0 contains - Support of new APIs - Update in existing APIs - Change in Major and minor version of DPAA2 objects This patch contains modifications in FLIB files to support new MC firmware version. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/fsl-mc/fsl_mc_cmd.h')
-rw-r--r--include/fsl-mc/fsl_mc_cmd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/fsl-mc/fsl_mc_cmd.h b/include/fsl-mc/fsl_mc_cmd.h
index 7f87d4e302..f3d1498cc0 100644
--- a/include/fsl-mc/fsl_mc_cmd.h
+++ b/include/fsl-mc/fsl_mc_cmd.h
@@ -68,8 +68,11 @@ enum mc_cmd_status {
#define MC_CMD_HDR_READ_TOKEN(_hdr) \
((uint16_t)mc_dec((_hdr), MC_CMD_HDR_TOKEN_O, MC_CMD_HDR_TOKEN_S))
+#define MC_PREP_OP(_ext, _param, _offset, _width, _type, _arg) \
+ ((_ext)[_param] |= cpu_to_le64(mc_enc((_offset), (_width), _arg)))
+
#define MC_EXT_OP(_ext, _param, _offset, _width, _type, _arg) \
- ((_ext)[_param] |= mc_enc((_offset), (_width), _arg))
+ (_arg = (_type)mc_dec(cpu_to_le64(_ext[_param]), (_offset), (_width)))
#define MC_CMD_OP(_cmd, _param, _offset, _width, _type, _arg) \
((_cmd).params[_param] |= mc_enc((_offset), (_width), _arg))
OpenPOWER on IntegriCloud