Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/18169/?format=api
http://patches.dpdk.org/api/patches/18169/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1482180853-18823-10-git-send-email-hemant.agrawal@nxp.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1482180853-18823-10-git-send-email-hemant.agrawal@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1482180853-18823-10-git-send-email-hemant.agrawal@nxp.com", "date": "2016-12-19T20:53:48", "name": "[dpdk-dev,PATCHv2,09/34] bus/fslmc: add mc dpbp object support", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f6efa050d0e029f21d8a34ce0307649f6a5e5e97", "submitter": { "id": 477, "url": "http://patches.dpdk.org/api/people/477/?format=api", "name": "Hemant Agrawal", "email": "hemant.agrawal@nxp.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1482180853-18823-10-git-send-email-hemant.agrawal@nxp.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/18169/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/18169/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id AA17DFA63;\n\tMon, 19 Dec 2016 16:21:33 +0100 (CET)", "from NAM01-SN1-obe.outbound.protection.outlook.com\n\t(mail-sn1nam01on0064.outbound.protection.outlook.com [104.47.32.64])\n\tby dpdk.org (Postfix) with ESMTP id 85ECFF96F\n\tfor <dev@dpdk.org>; Mon, 19 Dec 2016 16:21:06 +0100 (CET)", "from BN6PR03CA0062.namprd03.prod.outlook.com (10.173.137.24) by\n\tBY2PR0301MB0742.namprd03.prod.outlook.com (10.160.63.20) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id\n\t15.1.771.8; Mon, 19 Dec 2016 15:21:04 +0000", "from BY2FFO11FD009.protection.gbl (2a01:111:f400:7c0c::119) by\n\tBN6PR03CA0062.outlook.office365.com (2603:10b6:404:4c::24) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.14 via\n\tFrontend Transport; Mon, 19 Dec 2016 15:21:04 +0000", "from az84smr01.freescale.net (192.88.158.2) by\n\tBY2FFO11FD009.mail.protection.outlook.com (10.1.14.73) with Microsoft\n\tSMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.789.10\n\tvia Frontend Transport; Mon, 19 Dec 2016 15:21:02 +0000", "from bf-netperf1.idc ([10.232.134.28])\n\tby az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tuBJFKMhY029110; Mon, 19 Dec 2016 08:20:59 -0700" ], "Authentication-Results": "spf=fail (sender IP is 192.88.158.2)\n\tsmtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed)\n\theader.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com;\n\tnxp.com; \n\tdkim=none (message not signed) header.d=none;", "Received-SPF": "Fail (protection.outlook.com: domain of nxp.com does not\n\tdesignate 192.88.158.2 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.158.2; helo=az84smr01.freescale.net;", "From": "Hemant Agrawal <hemant.agrawal@nxp.com>", "To": "<dev@dpdk.org>", "CC": "<thomas.monjalon@6wind.com>, <bruce.richardson@intel.com>,\n\t<shreyansh.jain@nxp.com>, <john.mcnamara@intel.com>,\n\t<ferruh.yigit@intel.com>, <jerin.jacob@caviumnetworks.com>,\n\tAlex Marginean\n\t<alexandru.marginean@nxp.com>, Hemant Agrawal <hemant.agrawal@nxp.com>", "Date": "Tue, 20 Dec 2016 02:23:48 +0530", "Message-ID": "<1482180853-18823-10-git-send-email-hemant.agrawal@nxp.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1482180853-18823-1-git-send-email-hemant.agrawal@nxp.com>", "References": "<1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com>\n\t<1482180853-18823-1-git-send-email-hemant.agrawal@nxp.com>", "X-EOPAttributedMessage": "0", "X-Matching-Connectors": "131266344636757088;\n\t(91ab9b29-cfa4-454e-5278-08d120cd25b8); ()", "X-Forefront-Antispam-Report": "CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(336005)(7916002)(39840400002)(39400400002)(39410400002)(39450400003)(39860400002)(39380400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(5003940100001)(356003)(33646002)(69596002)(6666003)(110136003)(50986999)(8666005)(76176999)(2950100002)(6916009)(81156014)(77096006)(2906002)(8676002)(81166006)(305945005)(47776003)(50226002)(8936002)(38730400001)(4326007)(50466002)(68736007)(2351001)(85426001)(104016004)(105606002)(106466001)(5660300001)(92566002)(626004)(97736004)(48376002)(36756003)(189998001)(86362001)(7059030)(2004002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0742;\n\tH:az84smr01.freescale.net; \n\tFPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; ", "X-Microsoft-Exchange-Diagnostics": [ "1; BY2F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ua5FAQ489Big6TgDVNtQRe2XRRGYbl8NKJSPI4kgKKyi0HUIhNZtIUfm3MNMcDZPs7VjNCZYyOGs5xDiM2kRGZRmXfmI2Vd23q+kngg04Q==" ], "MIME-Version": "1.0", "Content-Type": "text/plain", "X-MS-Office365-Filtering-Correlation-Id": "1cc48a46-9315-4b14-a8c0-08d42822a56d", "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0; RULEID:(22001);\n\tSRVR:BY2PR0301MB0742; ", "X-Microsoft-Antispam-PRVS": "<BY2PR0301MB0742FAB3B38198CFBC4F81A689910@BY2PR0301MB0742.namprd03.prod.outlook.com>", "X-Exchange-Antispam-Report-Test": "UriScan:(185117386973197)(275809806118684); ", "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(6095060)(601004)(2401047)(13015025)(13024025)(13023025)(13017025)(5005006)(8121501046)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123565025)(20161123563025);\n\tSRVR:BY2PR0301MB0742; BCL:0; PCL:0; RULEID:(400006);\n\tSRVR:BY2PR0301MB0742; ", "X-Forefront-PRVS": "01613DFDC8", "SpamDiagnosticOutput": "1:99", "SpamDiagnosticMetadata": "NSPM", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "19 Dec 2016 15:21:02.8332\n\t(UTC)", "X-MS-Exchange-CrossTenant-Id": "5afe0b00-7697-4969-b663-5eab37d5f47e", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;\n\tIp=[192.88.158.2]; \n\tHelo=[az84smr01.freescale.net]", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BY2PR0301MB0742", "Subject": "[dpdk-dev] [PATCHv2 09/34] bus/fslmc: add mc dpbp object support", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "DPBP object represent a hw based buffer pool instance\nin the DPAA2 hardware.\n\nSigned-off-by: Alex Marginean <alexandru.marginean@nxp.com>\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/bus/fslmc/Makefile | 1 +\n drivers/bus/fslmc/mc/dpbp.c | 230 ++++++++++++++++++++++++++++++++++++\n drivers/bus/fslmc/mc/fsl_dpbp.h | 220 ++++++++++++++++++++++++++++++++++\n drivers/bus/fslmc/mc/fsl_dpbp_cmd.h | 76 ++++++++++++\n 4 files changed, 527 insertions(+)\n create mode 100644 drivers/bus/fslmc/mc/dpbp.c\n create mode 100644 drivers/bus/fslmc/mc/fsl_dpbp.h\n create mode 100644 drivers/bus/fslmc/mc/fsl_dpbp_cmd.h", "diff": "diff --git a/drivers/bus/fslmc/Makefile b/drivers/bus/fslmc/Makefile\nindex 9547f28..a53e3f4 100644\n--- a/drivers/bus/fslmc/Makefile\n+++ b/drivers/bus/fslmc/Makefile\n@@ -50,6 +50,7 @@ LIBABIVER := 1\n \n SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += \\\n mc/dpni.c \\\n+ mc/dpbp.c \\\n mc/dpio.c \\\n mc/mc_sys.c\n \ndiff --git a/drivers/bus/fslmc/mc/dpbp.c b/drivers/bus/fslmc/mc/dpbp.c\nnew file mode 100644\nindex 0000000..2260d86\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/dpbp.c\n@@ -0,0 +1,230 @@\n+/* Copyright 2013-2016 Freescale Semiconductor Inc.\n+ * Copyright (c) 2016 NXP.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions are met:\n+ * * Redistributions of source code must retain the above copyright\n+ * notice, this list of conditions and the following disclaimer.\n+ * * Redistributions in binary form must reproduce the above copyright\n+ * notice, this list of conditions and the following disclaimer in the\n+ * documentation and/or other materials provided with the distribution.\n+ * * Neither the name of the above-listed copyright holders nor the\n+ * names of any contributors may be used to endorse or promote products\n+ * derived from this software without specific prior written permission.\n+ *\n+ *\n+ * ALTERNATIVELY, this software may be distributed under the terms of the\n+ * GNU General Public License (\"GPL\") as published by the Free Software\n+ * Foundation, either version 2 of that License or (at your option) any\n+ * later version.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ */\n+#include <fsl_mc_sys.h>\n+#include <fsl_mc_cmd.h>\n+#include <fsl_dpbp.h>\n+#include <fsl_dpbp_cmd.h>\n+\n+int dpbp_open(struct fsl_mc_io *mc_io,\n+\t uint32_t cmd_flags,\n+\t int dpbp_id,\n+\t uint16_t *token)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_OPEN,\n+\t\t\t\t\t cmd_flags,\n+\t\t\t\t\t 0);\n+\tDPBP_CMD_OPEN(cmd, dpbp_id);\n+\n+\t/* send command to mc*/\n+\terr = mc_send_command(mc_io, &cmd);\n+\tif (err)\n+\t\treturn err;\n+\n+\t/* retrieve response parameters */\n+\t*token = MC_CMD_HDR_READ_TOKEN(cmd.header);\n+\n+\treturn err;\n+}\n+\n+int dpbp_close(struct fsl_mc_io *mc_io,\n+\t uint32_t cmd_flags,\n+\t uint16_t token)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_CLOSE, cmd_flags,\n+\t\t\t\t\t token);\n+\n+\t/* send command to mc*/\n+\treturn mc_send_command(mc_io, &cmd);\n+}\n+\n+int dpbp_create(struct fsl_mc_io *mc_io,\n+\t\tuint16_t dprc_token,\n+\t\tuint32_t cmd_flags,\n+\t\tconst struct dpbp_cfg *cfg,\n+\t\tuint32_t *obj_id)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\t(void)(cfg); /* unused */\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_CREATE,\n+\t\t\t\t\t cmd_flags,\n+\t\t\t\t\t dprc_token);\n+\n+\t/* send command to mc*/\n+\terr = mc_send_command(mc_io, &cmd);\n+\tif (err)\n+\t\treturn err;\n+\n+\t/* retrieve response parameters */\n+\tCMD_CREATE_RSP_GET_OBJ_ID_PARAM0(cmd, *obj_id);\n+\n+\treturn 0;\n+}\n+\n+int dpbp_destroy(struct fsl_mc_io *mc_io,\n+\t\t uint16_t dprc_token,\n+\t\tuint32_t cmd_flags,\n+\t\tuint32_t object_id)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_DESTROY,\n+\t\t\t\t\t cmd_flags,\n+\t\t\t\t\t dprc_token);\n+\t/* set object id to destroy */\n+\tCMD_DESTROY_SET_OBJ_ID_PARAM0(cmd, object_id);\n+\t/* send command to mc*/\n+\treturn mc_send_command(mc_io, &cmd);\n+}\n+\n+int dpbp_enable(struct fsl_mc_io *mc_io,\n+\t\tuint32_t cmd_flags,\n+\t\tuint16_t token)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_ENABLE, cmd_flags,\n+\t\t\t\t\t token);\n+\n+\t/* send command to mc*/\n+\treturn mc_send_command(mc_io, &cmd);\n+}\n+\n+int dpbp_disable(struct fsl_mc_io *mc_io,\n+\t\t uint32_t cmd_flags,\n+\t\t uint16_t token)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_DISABLE,\n+\t\t\t\t\t cmd_flags,\n+\t\t\t\t\t token);\n+\n+\t/* send command to mc*/\n+\treturn mc_send_command(mc_io, &cmd);\n+}\n+\n+int dpbp_is_enabled(struct fsl_mc_io *mc_io,\n+\t\t uint32_t cmd_flags,\n+\t\t uint16_t token,\n+\t\t int *en)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_IS_ENABLED, cmd_flags,\n+\t\t\t\t\t token);\n+\n+\t/* send command to mc*/\n+\terr = mc_send_command(mc_io, &cmd);\n+\tif (err)\n+\t\treturn err;\n+\n+\t/* retrieve response parameters */\n+\tDPBP_RSP_IS_ENABLED(cmd, *en);\n+\n+\treturn 0;\n+}\n+\n+int dpbp_reset(struct fsl_mc_io *mc_io,\n+\t uint32_t cmd_flags,\n+\t uint16_t token)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_RESET,\n+\t\t\t\t\t cmd_flags,\n+\t\t\t\t\t token);\n+\n+\t/* send command to mc*/\n+\treturn mc_send_command(mc_io, &cmd);\n+}\n+int dpbp_get_attributes(struct fsl_mc_io *mc_io,\n+\t\t\tuint32_t cmd_flags,\n+\t\t\tuint16_t token,\n+\t\t\tstruct dpbp_attr *attr)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_ATTR,\n+\t\t\t\t\t cmd_flags,\n+\t\t\t\t\t token);\n+\n+\t/* send command to mc*/\n+\terr = mc_send_command(mc_io, &cmd);\n+\tif (err)\n+\t\treturn err;\n+\n+\t/* retrieve response parameters */\n+\tDPBP_RSP_GET_ATTRIBUTES(cmd, attr);\n+\n+\treturn 0;\n+}\n+\n+\n+int dpbp_get_api_version(struct fsl_mc_io *mc_io,\n+\t\t\t uint32_t cmd_flags,\n+\t\t\t uint16_t *major_ver,\n+\t\t\t uint16_t *minor_ver)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\tcmd.header = mc_encode_cmd_header(DPBP_CMDID_GET_API_VERSION,\n+\t\t\t\t\tcmd_flags,\n+\t\t\t\t\t0);\n+\n+\terr = mc_send_command(mc_io, &cmd);\n+\tif (err)\n+\t\treturn err;\n+\n+\tDPBP_RSP_GET_API_VERSION(cmd, *major_ver, *minor_ver);\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/bus/fslmc/mc/fsl_dpbp.h b/drivers/bus/fslmc/mc/fsl_dpbp.h\nnew file mode 100644\nindex 0000000..966989d\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/fsl_dpbp.h\n@@ -0,0 +1,220 @@\n+/* Copyright 2013-2016 Freescale Semiconductor Inc.\n+ * Copyright (c) 2016 NXP.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions are met:\n+ * * Redistributions of source code must retain the above copyright\n+ * notice, this list of conditions and the following disclaimer.\n+ * * Redistributions in binary form must reproduce the above copyright\n+ * notice, this list of conditions and the following disclaimer in the\n+ * documentation and/or other materials provided with the distribution.\n+ * * Neither the name of the above-listed copyright holders nor the\n+ * names of any contributors may be used to endorse or promote products\n+ * derived from this software without specific prior written permission.\n+ *\n+ *\n+ * ALTERNATIVELY, this software may be distributed under the terms of the\n+ * GNU General Public License (\"GPL\") as published by the Free Software\n+ * Foundation, either version 2 of that License or (at your option) any\n+ * later version.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ */\n+#ifndef __FSL_DPBP_H\n+#define __FSL_DPBP_H\n+\n+/* Data Path Buffer Pool API\n+ * Contains initialization APIs and runtime control APIs for DPBP\n+ */\n+\n+struct fsl_mc_io;\n+\n+/**\n+ * dpbp_open() - Open a control session for the specified object.\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @dpbp_id:\tDPBP unique ID\n+ * @token:\tReturned token; use in subsequent API calls\n+ *\n+ * This function can be used to open a control session for an\n+ * already created object; an object may have been declared in\n+ * the DPL or by calling the dpbp_create function.\n+ * This function returns a unique authentication token,\n+ * associated with the specific object ID and the specific MC\n+ * portal; this token must be used in all subsequent commands for\n+ * this specific object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_open(struct fsl_mc_io\t*mc_io,\n+\t uint32_t\t\tcmd_flags,\n+\t int\t\tdpbp_id,\n+\t uint16_t\t\t*token);\n+\n+/**\n+ * dpbp_close() - Close the control session of the object\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @token:\tToken of DPBP object\n+ *\n+ * After this function is called, no further operations are\n+ * allowed on the object without opening a new control session.\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_close(struct fsl_mc_io\t*mc_io,\n+\t uint32_t\t\tcmd_flags,\n+\t uint16_t\t\ttoken);\n+\n+/**\n+ * struct dpbp_cfg - Structure representing DPBP configuration\n+ * @options:\tplace holder\n+ */\n+struct dpbp_cfg {\n+\tuint32_t options;\n+};\n+\n+/**\n+ * dpbp_create() - Create the DPBP object.\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @dprc_token:\tParent container token; '0' for default container\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @cfg:\tConfiguration structure\n+ * @obj_id: returned object id\n+ *\n+ * Create the DPBP object, allocate required resources and\n+ * perform required initialization.\n+ *\n+ * The object can be created either by declaring it in the\n+ * DPL file, or by calling this function.\n+ *\n+ * The function accepts an authentication token of a parent\n+ * container that this object should be assigned to. The token\n+ * can be '0' so the object will be assigned to the default container.\n+ * The newly created object can be opened with the returned\n+ * object id and using the container's associated tokens and MC portals.\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_create(struct fsl_mc_io\t*mc_io,\n+\t\tuint16_t\t\tdprc_token,\n+\t\tuint32_t\t\tcmd_flags,\n+\t\tconst struct dpbp_cfg\t*cfg,\n+\t\tuint32_t\t\t*obj_id);\n+\n+/**\n+ * dpbp_destroy() - Destroy the DPBP object and release all its resources.\n+ * @dprc_token: Parent container token; '0' for default container\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @object_id:\tThe object id; it must be a valid id within the container that\n+ * created this object;\n+ *\n+ * Return:\t'0' on Success; error code otherwise.\n+ */\n+int dpbp_destroy(struct fsl_mc_io\t*mc_io,\n+\t\t uint16_t\t\tdprc_token,\n+\t\t uint32_t\t\tcmd_flags,\n+\t\t uint32_t\t\tobject_id);\n+\n+/**\n+ * dpbp_enable() - Enable the DPBP.\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @token:\tToken of DPBP object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_enable(struct fsl_mc_io\t*mc_io,\n+\t\tuint32_t\t\tcmd_flags,\n+\t\tuint16_t\t\ttoken);\n+\n+/**\n+ * dpbp_disable() - Disable the DPBP.\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @token:\tToken of DPBP object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_disable(struct fsl_mc_io\t*mc_io,\n+\t\t uint32_t\t\tcmd_flags,\n+\t\t uint16_t\t\ttoken);\n+\n+/**\n+ * dpbp_is_enabled() - Check if the DPBP is enabled.\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @token:\tToken of DPBP object\n+ * @en:\t\tReturns '1' if object is enabled; '0' otherwise\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_is_enabled(struct fsl_mc_io\t*mc_io,\n+\t\t uint32_t\t\tcmd_flags,\n+\t\t uint16_t\t\ttoken,\n+\t\t int\t\t\t*en);\n+\n+/**\n+ * dpbp_reset() - Reset the DPBP, returns the object to initial state.\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @token:\tToken of DPBP object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_reset(struct fsl_mc_io\t*mc_io,\n+\t uint32_t\t\tcmd_flags,\n+\t uint16_t\t\ttoken);\n+\n+/**\n+ * struct dpbp_attr - Structure representing DPBP attributes\n+ * @id:\t\tDPBP object ID\n+ * @bpid:\tHardware buffer pool ID; should be used as an argument in\n+ *\t\tacquire/release operations on buffers\n+ */\n+struct dpbp_attr {\n+\tint id;\n+\tuint16_t bpid;\n+};\n+\n+/**\n+ * dpbp_get_attributes - Retrieve DPBP attributes.\n+ *\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @token:\tToken of DPBP object\n+ * @attr:\tReturned object's attributes\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpbp_get_attributes(struct fsl_mc_io\t*mc_io,\n+\t\t\tuint32_t\t\tcmd_flags,\n+\t\t\tuint16_t\t\ttoken,\n+\t\t\tstruct dpbp_attr\t*attr);\n+\n+/**\n+ * dpbp_get_api_version() - Get buffer pool API version\n+ * @mc_io: Pointer to MC portal's I/O object\n+ * @cmd_flags:\tCommand flags; one or more of 'MC_CMD_FLAG_'\n+ * @major_ver:\tMajor version of data path buffer pool API\n+ * @minor_ver:\tMinor version of data path buffer pool API\n+ *\n+ * Return: '0' on Success; Error code otherwise.\n+ */\n+int dpbp_get_api_version(struct fsl_mc_io *mc_io,\n+\t\t\t uint32_t cmd_flags,\n+\t\t\t uint16_t *major_ver,\n+\t\t\t uint16_t *minor_ver);\n+\n+#endif /* __FSL_DPBP_H */\ndiff --git a/drivers/bus/fslmc/mc/fsl_dpbp_cmd.h b/drivers/bus/fslmc/mc/fsl_dpbp_cmd.h\nnew file mode 100644\nindex 0000000..4e95054\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/fsl_dpbp_cmd.h\n@@ -0,0 +1,76 @@\n+/* Copyright 2013-2016 Freescale Semiconductor Inc.\n+ * Copyright (c) 2016 NXP.\n+ *\n+ * Redistribution and use in source and binary forms, with or without\n+ * modification, are permitted provided that the following conditions are met:\n+ * * Redistributions of source code must retain the above copyright\n+ * notice, this list of conditions and the following disclaimer.\n+ * * Redistributions in binary form must reproduce the above copyright\n+ * notice, this list of conditions and the following disclaimer in the\n+ * documentation and/or other materials provided with the distribution.\n+ * * Neither the name of the above-listed copyright holders nor the\n+ * names of any contributors may be used to endorse or promote products\n+ * derived from this software without specific prior written permission.\n+ *\n+ *\n+ * ALTERNATIVELY, this software may be distributed under the terms of the\n+ * GNU General Public License (\"GPL\") as published by the Free Software\n+ * Foundation, either version 2 of that License or (at your option) any\n+ * later version.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE\n+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+ * POSSIBILITY OF SUCH DAMAGE.\n+ */\n+#ifndef _FSL_DPBP_CMD_H\n+#define _FSL_DPBP_CMD_H\n+\n+/* DPBP Version */\n+#define DPBP_VER_MAJOR\t\t\t\t3\n+#define DPBP_VER_MINOR\t\t\t\t2\n+\n+/* Command IDs */\n+#define DPBP_CMDID_CLOSE ((0x800 << 4) | (0x1))\n+#define DPBP_CMDID_OPEN ((0x804 << 4) | (0x1))\n+#define DPBP_CMDID_CREATE ((0x904 << 4) | (0x1))\n+#define DPBP_CMDID_DESTROY ((0x984 << 4) | (0x1))\n+#define DPBP_CMDID_GET_API_VERSION ((0xa04 << 4) | (0x1))\n+\n+#define DPBP_CMDID_ENABLE ((0x002 << 4) | (0x1))\n+#define DPBP_CMDID_DISABLE ((0x003 << 4) | (0x1))\n+#define DPBP_CMDID_GET_ATTR ((0x004 << 4) | (0x1))\n+#define DPBP_CMDID_RESET ((0x005 << 4) | (0x1))\n+#define DPBP_CMDID_IS_ENABLED ((0x006 << 4) | (0x1))\n+\n+\n+/* cmd, param, offset, width, type, arg_name */\n+#define DPBP_CMD_OPEN(cmd, dpbp_id) \\\n+\tMC_CMD_OP(cmd, 0, 0, 32, int,\t dpbp_id)\n+\n+/* cmd, param, offset, width, type, arg_name */\n+#define DPBP_RSP_IS_ENABLED(cmd, en) \\\n+\tMC_RSP_OP(cmd, 0, 0, 1, int,\t en)\n+\n+/* cmd, param, offset, width, type,\targ_name */\n+#define DPBP_RSP_GET_ATTRIBUTES(cmd, attr) \\\n+do { \\\n+\tMC_RSP_OP(cmd, 0, 16, 16, uint16_t, attr->bpid); \\\n+\tMC_RSP_OP(cmd, 0, 32, 32, int,\t attr->id);\\\n+} while (0)\n+\n+/* cmd, param, offset, width, type, arg_name */\n+#define DPBP_RSP_GET_API_VERSION(cmd, major, minor) \\\n+do { \\\n+\tMC_RSP_OP(cmd, 0, 0, 16, uint16_t, major);\\\n+\tMC_RSP_OP(cmd, 0, 16, 16, uint16_t, minor);\\\n+} while (0)\n+\n+#endif /* _FSL_DPBP_CMD_H */\n", "prefixes": [ "dpdk-dev", "PATCHv2", "09/34" ] }{ "id": 18169, "url": "