From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40079.outbound.protection.outlook.com [40.107.4.79]) by dpdk.org (Postfix) with ESMTP id B66D72C23 for ; Thu, 3 May 2018 18:06:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QEVeFMjXTJQTYhrsAZQVbWPMNldDr+cGAvfCHSgeL/8=; b=G09dq8GaMGy/yrTc4E8l8GL4XJhUSgq+2CfeBumVZ+YROhCVzrtDovPFa05bUsdRJJV47a8wF31LADtCreULiKf7hCS9u4jpmDoNyWLtFXcCOx/imRCXxekz9WG3V/02bBOXTtF8DpFhQyJhgQ4EZA9H/oxL0nAwRShgjSBglEU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; Received: from b27504-OptiPlex-790.ap.freescale.net (14.142.187.166) by HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.23; Thu, 3 May 2018 16:06:45 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Thu, 3 May 2018 21:36:06 +0530 Message-Id: <1525363570-23542-5-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525363570-23542-1-git-send-email-nipun.gupta@nxp.com> References: <1525280972-27736-1-git-send-email-nipun.gupta@nxp.com> <1525363570-23542-1-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) To HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2427; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 3:eIkKRnc59oecM0AGwuzwfGl7gWNcAXcUI/0YLZhTYAAwWUmu3LZOMiHxbi8dKgETYn0B9H60UgfdLch46q6kSlK85t6l5oM0h+IXEKccg37oDr0vm2KwjKww9W4nYgqLXdantHnQwOkO2/29mTyNoJIe+XvP/CINovErE4LAKFAihwlswKkvRkXHcIzITgVuJR1EVJmLDcNvD0pHYCXXHXx1y/6aUbtjZWC2xLSzZGhhRk7NIXStUG/CUaf9rgYj; 25:cxiy+kswZNrpMn5NIU4bq8PV9lQQDPOhJAgPQy4v25M3pTl6/Bk3VSQ8ROWK1011f4G7xhRBtJpzAIY0bF9FKFbjOiWQg39OofKK7GKdc7COWX/79KnIA1TmiZxp2s1j3kSnfVb7hx+WCXfcvo91VyH2x+2aEIQ4TzLUhRTpqyS0Mz6Pb8oCNCo1BZyBMVWyBz3osstxQ2349cueFtSoBrmnLHTw9vJmJSq/eIefj4XzmCtOBODysZmqwHP0YdkYQTcFI0ukpiCtxmJZSpsu1jzHOqLheZupcLa8HSwW6LvEPTBRA6pptafXL3f8GhAljs/eIuf1UcbIim0DyZ409w==; 31:9KsSJPaB5f5gNOpSl2659nzcyDUJfB4rrbuRGoIU2/XOxVmy/oojbVM6vsStx/s1t/WcGfLr3H9gcPNptaPOieWhVxosIRDvvJlm9OBFxy/VBRL1B/ra5AJReRkfxooE0V8NDmVb/sfryie2zguT8+6JoIYK7SUfxI/ea2VeYrm1liDjXglQUYWEpxmW4gqlTjalyu9pt3F4wmerICoZL56vZVXut0UsS0WMDPuo4Qk= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:RyXhI4LjPXSpOtElSDhTmp5+b8EyftIJH2RQj0C/A3DuUTKVUIIu5uLbqEoId3PiG9couAALi1AB6mXd/BRW1i4HXnsDqiGGGvi2u9DEm36PTlgWyMbF6yMLIy9SFZqoofmbYJQ7yHk/lIkfVPd5dc1X/TC6f14315zFJQZhSd22OqahBg14rnpHOCSuBx0I0lEMvnG+QTSFvlZtSsHie08pfMWHtNjuR36klecIpIo0Kmk4ZXm+7GUr50jyzh1aIuVa7oIvBxy2NKyqyC+4tzXxJpNIpXn1kbgJPXlrl0QGazmv/tBYO0h7g7HFChjQmhe8KB+A2tuXb/awxW5OlRk7XSwPoSB9AHzwRovh6wYBRVFy8HdPeihVHIoiVke5JxwI0cOQIULJlPUI+2OTW7hKC2fP8SI13dzrqJUQqZjVlreDicJ7CJhtRAPcHs64PSAmX6+2+8hItbXQFv+iI3zMAxcGy2mJ8nPMJD95++wSddIHWEty941ftVr1GPtC; 4:cylkK8nm5Ngsl+GR9JZfCy7voCbZ+CjhEaEYLehJ4jciRlFfx6b+2C55+PrCpmXH74kf1PHjk6Hk02kbLC89DXkDzzoIdH1KhcyeMVv2L7yZqrqRc9UCPOMWooYKOQlRigo1HV4oESOSF1rt8JMXM8t++BXg3qvvOX84BkOtBvmYE/HBxdhrBushl7875utnf5zTkIYcB0rtrM575ehg8H++/B+WcLxYoiZ41f7hk+BveHVwGpKRKI/2SN1KQp7iEy7e/s+WoOpvt6Qb/ANf0PZVYJl46SDgfAB2qipBiPew1IKW5kysbtVxNpZ2zFlIuT4D0MhduCJYWjzkzFB/tdphbkIVY2R8Y5rAp/HTxDc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39380400002)(39860400002)(346002)(396003)(199004)(189003)(5660300001)(26005)(186003)(47776003)(16526019)(6506007)(386003)(51416003)(55236004)(52116002)(2906002)(50226002)(59450400001)(97736004)(486006)(105586002)(25786009)(44832011)(106356001)(575784001)(76176011)(81156014)(86362001)(68736007)(36756003)(6636002)(6512007)(2616005)(11346002)(53936002)(956004)(50466002)(7736002)(81166006)(8676002)(16586007)(6116002)(478600001)(446003)(5009440100003)(48376002)(6666003)(316002)(476003)(3846002)(305945005)(4326008)(66066001)(8936002)(6486002)(110426005)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2427; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0401MB2427; 23:VHnXIxBYg9baa6FpQIowwGLuKGvk6VRU2srb7qT?= =?us-ascii?Q?YP2XDCCln8kBsDRd50Zr5ZtYwWZULpRn0XYRxOghJQxEzxNTAlsKEPchEgcn?= =?us-ascii?Q?o209D45jDC63AB7jeb7+sB34ct5I0QnVOqb0nlTvzi+1v4LNVEYc2HkLzFIE?= =?us-ascii?Q?GkjACAzGElGtO4a+YYjIfAEETbO/8ehA1SJEvxAdpqkt1aZ/GtBtu+NljL6j?= =?us-ascii?Q?tjWjhlh1EH+QGPRi00vLVHgNpFAzTs0y/0WI6N+3AGvhUcxE7eTymELJIH7O?= =?us-ascii?Q?z6GRfDrKfrpqn5SMR7HJmWpn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olixlSMkTnVjsMtye6HKGtP7hBBGK+4vwE25dtmAxv867MFugF5xjRPJU=; 24:hEypOlZ062gjMHE57yCvCDrCqId31fSb5Gu8+wj0fZ0CCm1ZGurmjzid+PE0wvqlL9oviTXlJgRd/eFsLqNX4ze47u+1aBcs1pAqFwpE6j0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:8mJc0MkyXFpKvjY5tgc+Qi1yhdy0FMTo80vXj1xUN1XMmF+giacaKpjbSGUzPUQfrrpyNpgx0bYTreRnenJ5d6rbFh64gWxCSkC8eSZJh09SO8r70BVbcMyqtpUJfvIagna+HRNcGGPlPG4V7wnR+mpxvkpWzaMzhreIEN8GYOE7sxPxrV0WvmRmgd1K302qgPinZIWeX9RDUx2yfXDYPcGP7S6C9v/k5PqMJzoiyveof6hn3K8U3pMwp12NkNbF X-MS-Office365-Filtering-Correlation-Id: 96621e59-9087-499e-1402-08d5b10fdf5e X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 16:06:45.8059 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96621e59-9087-499e-1402-08d5b10fdf5e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2427 Subject: [dpdk-dev] [PATCH RESEND v7 4/8] bus/fslmc: add macros required by QDMA for FLE and FD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2018 16:06:49 -0000 Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index e081afb..09ea603 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -188,7 +188,7 @@ enum qbman_fd_format { ((fd)->simple.frc = (0x80000000 | (len))) #define DPAA2_GET_FD_FRC_PARSE_SUM(fd) \ ((uint16_t)(((fd)->simple.frc & 0xffff0000) >> 16)) -#define DPAA2_SET_FD_FRC(fd, frc) ((fd)->simple.frc = frc) +#define DPAA2_SET_FD_FRC(fd, _frc) ((fd)->simple.frc = _frc) #define DPAA2_RESET_FD_CTRL(fd) ((fd)->simple.ctrl = 0) #define DPAA2_SET_FD_ASAL(fd, asal) ((fd)->simple.ctrl |= (asal << 16)) @@ -211,10 +211,12 @@ enum qbman_fd_format { } while (0) #define DPAA2_SET_FLE_OFFSET(fle, offset) \ ((fle)->fin_bpid_offset |= (uint32_t)(offset) << 16) +#define DPAA2_SET_FLE_LEN(fle, len) ((fle)->length = len) #define DPAA2_SET_FLE_BPID(fle, bpid) ((fle)->fin_bpid_offset |= (size_t)bpid) #define DPAA2_GET_FLE_BPID(fle) ((fle)->fin_bpid_offset & 0x000000ff) #define DPAA2_SET_FLE_FIN(fle) ((fle)->fin_bpid_offset |= 1 << 31) #define DPAA2_SET_FLE_IVP(fle) (((fle)->fin_bpid_offset |= 0x00004000)) +#define DPAA2_SET_FLE_BMT(fle) (((fle)->fin_bpid_offset |= 0x00008000)) #define DPAA2_SET_FD_COMPOUND_FMT(fd) \ ((fd)->simple.bpid_offset |= (uint32_t)1 << 28) #define DPAA2_GET_FD_ADDR(fd) \ @@ -224,6 +226,10 @@ enum qbman_fd_format { #define DPAA2_GET_FD_BPID(fd) (((fd)->simple.bpid_offset & 0x00003FFF)) #define DPAA2_GET_FD_IVP(fd) (((fd)->simple.bpid_offset & 0x00004000) >> 14) #define DPAA2_GET_FD_OFFSET(fd) (((fd)->simple.bpid_offset & 0x0FFF0000) >> 16) +#define DPAA2_GET_FD_FRC(fd) ((fd)->simple.frc) +#define DPAA2_GET_FD_FLC(fd) \ + (((uint64_t)((fd)->simple.flc_hi) << 32) + (fd)->simple.flc_lo) +#define DPAA2_GET_FD_ERR(fd) ((fd)->simple.bpid_offset & 0x000000FF) #define DPAA2_GET_FLE_OFFSET(fle) (((fle)->fin_bpid_offset & 0x0FFF0000) >> 16) #define DPAA2_SET_FLE_SG_EXT(fle) ((fle)->fin_bpid_offset |= (uint64_t)1 << 29) #define DPAA2_IS_SET_FLE_SG_EXT(fle) \ -- 1.9.1