From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0058.outbound.protection.outlook.com [104.47.2.58]) by dpdk.org (Postfix) with ESMTP id 4AAA61CA6A for ; Sat, 7 Apr 2018 17:17:39 +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=bdZ2MlOqf5Jt8HA/SL2oFzhvQx6/FxSpnI12Tpou5fg=; b=Vy/BRsUu3HIJ40AYAx1YpBx8zZLTZXETvpljFs9QbULn5eLiJlMmggm+UUhshGB/9SdMROGdg3oX6fkzCEr1KtM3aZ26kT3b86UeMd9JHrJM1L4ynixhLD+mv//70lLMBye27vI2Px+QsbDh2yh+Kkkepmj2EIZkD9hgO/wpuqs= 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 HE1PR0401MB2425.eurprd04.prod.outlook.com (2603:10a6:3:25::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Sat, 7 Apr 2018 15:17:35 +0000 From: Nipun Gupta To: thomas@monjalon.net, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Sat, 7 Apr 2018 20:46:59 +0530 Message-Id: <1523114224-9852-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> References: <1523114224-9852-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: BM1PR0101CA0058.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::20) To HE1PR0401MB2425.eurprd04.prod.outlook.com (2603:10a6:3:25::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 71714c6b-c0d8-4eff-fd59-08d59c9ab22b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2425; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 3:9ewiSvdeccuginOjpmeqvslRr8RLwyFRkzSCjc329kKC4amvGD8s85nsK6ELaZa3gulO80MM5MH3uyNEGQp/kbWcvJmG/djNiLfGqNCIoH2vS4K6EUw1yd7Q5fYIve5qktgZJ8lkoqBjG9xYDGUX6UOGqwlDdwT+V408qn5T3d9Bj2ZzAUHt4ixy0D+XTo52eHzipkGCv6fMeQjoDyQ6YRbjT3Z5H8GtucPScl3bTrOjhlNWjpSUVOXaqDpkULHw; 25:YMMooDNlcLkUiOI9jaC0iyJF8yOkNo341ZEu14cjYRkdnqPBx44Te6i92E/hy7EYqUBHZNaU8IiU8dmA2Nz/ThLjPVeSN2oJaWGuQf9EG/cEUqAPv7XtcF/L7n71ss7GjDpcY1cyQskaOjCfEMSmjxlfgAFUDizeTkVJhqVnmqjgFcpwyfsGeNZj/2Ik3c95pJSHkjfoeqN18pFLXRbABR76iYjpWWoXIkas8slYYlmC+D2fWJmocoteu9bt5BUhev6duq20U28CUTvJXOqPTGVA53+bP/NsawoYhRfahdQRs0D6VqAoO3Za1kLqfG4goPi8byiTFhPnGoArN/zZfg==; 31:lotuSperUxC8knMZb8qnuM548DKoA85ejPmyHPRfuAeREt/+LtACr4n9zU2xLlSXSDlBJzXglQ9F/Ehko5SimdDFQ2P7fMlF+02tp3GQsC26n9rBMHWCTTjrlmwXI18iJLNRbv7jTAgbnlhoe4OCXy3LK56R+gt8YI5sGQG0J+iulRagWmYBrhB1HVDgVIc9iNN9+IFA51KQkYQmi0E+YHAAXUYgazNsQy0ht6jmLWE= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2425: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 20:n1GyKxbLdwMY1/y8710dDtxGDKvFu+rfbI+dAHXRe6xnGo3iTXFedw/fnD8gWYsRodUL+npYxwx9myWD+59qnHXkITCF7CcqPbjYnhdgku+gh+Sz7zzWGrFwq6nGv5PHCPb9UbRot/H3y3gXCPU0EdxypCVq/J8tNyxJqWKUK7OTxmKJ7+d0wqtC3G/AXHXPM/nOimew01tACx+zj6VJAJLBClgkpy91Qh0TcKyYygx9DhhpIPWOp4ctYYl5HJNdc4l5Rj716QRQausKoBPMJDh9Fg8CgJVO3tbvWqqO17rWbPJiHFQcImwAU0Blo+1oeYtdWWYKfTy4/WhIe4vIyCnnpnQWvqS5CFO3OvVQTygEFVAyuUhYXeSHkFhsLML0CkM/pbcq/HaS56TMNnEghXQ9XvGgidBxrx1C1cFzdh/y2wHMwaG8TFnblZ3KCE7eOfFPwilVH47Vy3fGpeGmygLGEjDFTlF0RqPEA3QW0nYaSYHufkCaQqUn2x01iAnG; 4:iAtbQkr3FuIKl3/cZgZTdX63Lqt4ZTjE3/5T5Nkl/2UCXNtKHyjtvjJ8TqgOQ+ciZzNs9VOe7of04t8fQ6pE8umUtnHZYl/ewfjgdq4QL4H17KRgn9dh89eSR5EYRtGqms9BPRLAAd2nNuSm6+vlzx8FGxkXuzDDHsJys+ZGkA1MvC1lJqFJuyLe2Ctki8oPkvbpLgGlb2fDqf8bE2hhRvC2raZ9nBILEVmQzmv2XfhCyd0Z3aQURGLc/Tl6SVcg9L1s1H4ZndSRLH9kIpuY+i34k1TlpuyvLMNO7XedSZNxV25MGolkk9T4vPCkG9LueXhi7eypLJmnSKB/fIe4Ty3+XdZOSYfre2BvICQ9sdc= 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)(8121501046)(5005006)(3231221)(944501327)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0401MB2425; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2425; X-Forefront-PRVS: 0635D5275E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(39860400002)(366004)(396003)(346002)(199004)(189003)(575784001)(2616005)(36756003)(6506007)(52116002)(6512007)(4326008)(478600001)(50226002)(66066001)(51416003)(76176011)(386003)(8936002)(50466002)(97736004)(6116002)(5660300001)(6666003)(86362001)(7736002)(305945005)(47776003)(6636002)(3846002)(5009440100003)(48376002)(16526019)(316002)(81166006)(106356001)(53936002)(55236004)(16586007)(68736007)(26005)(8676002)(25786009)(6486002)(186003)(2906002)(81156014)(486006)(446003)(476003)(105586002)(956004)(11346002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2425; 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; HE1PR0401MB2425; 23:zHfWpTmvNroEWWsfepzLr+xJDR7fXXKR1V19r6r?= =?us-ascii?Q?jXn85AFZyJKA6iSRCjWHoFpx+f2DfXQWTouLYI6Dd/9kGSB7Cq0l5uuknARN?= =?us-ascii?Q?aWXHtfGsK2CZO8s+NJh+d5PAqLVnGh2ZQA0rCe0BG58GcHc7gm/BEDUqRz+D?= =?us-ascii?Q?7pEu083aLL+7wGFqu97RxU/owvhWBQpnLfxJW+YjOuL/Gn/CpEeF0RWfn6DZ?= =?us-ascii?Q?wrIjK12WhpYM4efzM+Kef7WOmoanAp6Eod9/i0itBb3n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MLmqGYI=; 24:ooomNcE3Ol82akjhK3TmQ1xyR9OjrBjjdwnOy5luQtv3mEhhhgF7FQnX6p1io+nnvt/5GTxz+2gwG2nURlbf9PGPdNZ8s9nbZWgThbYtUkg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2425; 7:+Xt7+MZ9PREHMjbRFXC1vb+r2OGFOYoajDAH5t1mhbafW0Dgr+8DnzgGYEI0Y21/6kIKnD2XybpTtMUtgV3goicUEevAKoWwNeO1IbcVZ96OU93eI04dMFQ5z2IRxWj5TUt9uSN78K0iTxjJIg4m+1p2w3t6r2kcgEFFCtxbvat7npwA+sjSyYeK1u+wrAYOq2bjqBDb/myc5TK44hmDEUFo8AXCIM3xMnNxssQzUu8jYGLbrqjFnFCPZCNF+GF6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2018 15:17:35.7479 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 71714c6b-c0d8-4eff-fd59-08d59c9ab22b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2425 Subject: [dpdk-dev] [PATCH 3/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: Sat, 07 Apr 2018 15:17:39 -0000 Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 1ef9502..b7b98d1 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -212,10 +212,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) \ @@ -225,6 +227,7 @@ 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_ERR(fd) ((fd)->simple.bpid_offset & 0x000000FF) #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) -- 1.9.1