get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/19878/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 19878,
    "url": "http://patches.dpdk.org/api/patches/19878/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1485172803-17288-7-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": "<1485172803-17288-7-git-send-email-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1485172803-17288-7-git-send-email-hemant.agrawal@nxp.com",
    "date": "2017-01-23T11:59:36",
    "name": "[dpdk-dev,PATCHv6,06/33] bus/fslmc: add mc dpio object support",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "ac39b88b5549f5334ff19716fca3d3b2f4e99c1e",
    "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/1485172803-17288-7-git-send-email-hemant.agrawal@nxp.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/19878/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/19878/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 8F81CF937;\n\tMon, 23 Jan 2017 13:01:04 +0100 (CET)",
            "from NAM03-CO1-obe.outbound.protection.outlook.com\n\t(mail-co1nam03on0068.outbound.protection.outlook.com [104.47.40.68])\n\tby dpdk.org (Postfix) with ESMTP id 695FA5592\n\tfor <dev@dpdk.org>; Mon, 23 Jan 2017 13:00:37 +0100 (CET)",
            "from BLUPR0301CA0003.namprd03.prod.outlook.com (10.162.113.141) by\n\tCY1PR0301MB0745.namprd03.prod.outlook.com (10.160.159.151) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13;\n\tMon, 23 Jan 2017 12:00:35 +0000",
            "from BY2FFO11FD039.protection.gbl (2a01:111:f400:7c0c::168) by\n\tBLUPR0301CA0003.outlook.office365.com (2a01:111:e400:5259::13) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via\n\tFrontend Transport; Mon, 23 Jan 2017 12:00:34 +0000",
            "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBY2FFO11FD039.mail.protection.outlook.com (10.1.14.224) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8\n\tvia Frontend Transport; Mon, 23 Jan 2017 12:00:33 +0000",
            "from bf-netperf1.idc ([10.232.134.28])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tv0NC07eU019311; Mon, 23 Jan 2017 05:00:30 -0700"
        ],
        "Authentication-Results": "spf=fail (sender IP is 192.88.168.50)\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.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.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": "Mon, 23 Jan 2017 17:29:36 +0530",
        "Message-ID": "<1485172803-17288-7-git-send-email-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1485172803-17288-1-git-send-email-hemant.agrawal@nxp.com>",
        "References": "<1484832240-2048-1-git-send-email-hemant.agrawal@nxp.com>\n\t<1485172803-17288-1-git-send-email-hemant.agrawal@nxp.com>",
        "X-EOPAttributedMessage": "0",
        "X-Matching-Connectors": "131296464334756265;\n\t(91ab9b29-cfa4-454e-5278-08d120cd25b8); ()",
        "X-Forefront-Antispam-Report": "CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10009020)(6009001)(336005)(7916002)(39860400002)(39410400002)(39450400003)(39400400002)(39840400002)(39380400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(48376002)(50466002)(85426001)(97736004)(47776003)(92566002)(5003940100001)(305945005)(36756003)(189998001)(356003)(104016004)(2906002)(626004)(110136003)(2950100002)(6916009)(77096006)(5660300001)(4326007)(68736007)(8676002)(81156014)(106466001)(50986999)(2351001)(8656002)(81166006)(54906002)(76176999)(33646002)(8936002)(86362001)(53936002)(50226002)(105606002)(38730400001)(2004002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0745;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; ",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; BY2FFO11FD039;\n\t1:c0DWszBxB5r7R6wKCgDguHL8Mgj8qe4NHohX0EieJPQWmqPqgwrt6ULKVRkOjHOmK5cOv2fMejCtaB4Uu2GIOHFPRz4HPxYnD4Mjj4k+ZAMVqo9l3eA6U0WEawsPLD+R5RDlzAj8PNIteAXe/mxNsJoQCxH7nhbEvEp3MX80DujuzhMVE+q8rlKxKYl0Uprq/6Biq/5cTIj/wiw/yF0hltI1jAaeV7NaF/q85WgVrmQsvsZfpVtsvWknPKxaK11VDvlHDrGz3TIV/vN5B+qXvVGofB1Udbm7UgZUn0uDVyvvR8opXXDqA8lqlA2aA28i20XaVOjwbTDbLh6yNgJc94hJbLgR7nf77iWyZ0Omm3NbnqY8jWvYFr+AXzQfJ4xnG5yJIbKWFCvCDm6EUc5EHGfw/ZposSIGf5WReIf/BKXTUqvWCqtW5HKBNkR1jqpPPw0n57rZJlPogoqDm4/Umyw/RdMvV1AVEIjdz/Qwp0VFXNvREq9FQmx7M2yCwZYj/mY41NYatJNwucZKDR4yLa3s/GaTkYX/aGLnmwK+euaZ9u2WmDpK4HmYiL3B74S6TVL/UgfRWZxCu/AvXtdt9AL9acIJofamAG/BIXe6KBvSmgq/VRyY2x+X7oXnrGWf1vEAHKPw/2EYmHce9O12O1QH40z7T6T+tWTBcvYQ9xFKJkoPbuO0td/n/Wh2o4zFVvvHc5ynarIOHx29dxlYaVcH574thmeArW0IBbNB0m4Mlf1vcsAStGO2UCO3T/Lm",
            "1; CY1PR0301MB0745;\n\t3:TXWn6uNKD/wmTDZpS/OppHug++FRctNHre+kgD3m6gl3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7Ye8oFpFdZLHWAKKl7j1+5vcWJUwQUvkFIUy64FKiXeQ6atSVzKwyK1CxZx6iBGW5PhoFX2wCGpijx62zOJOlD7DAH4QnHHbCQb2ILppv5LudjvbHkKy9dHGiVdKCbQsSytFEtvZiMj/y2iLDIckG56c3/zHfl4oXllDigpLMVS1pUei3tPuZnmYwBoAK7Jw3qXOmo/Yw/t9LWMWCMfFyn+i2mt7n9HMZNXaElsPpkubw5v9+B0OwunAX1GH38cflk33WATX5kRuIRo+p2r6sLHbQ+ta0/n663N+RAyG/TaLs0+KT0/FnWpBhtkX8MuPHBogDcnfy0n0pwmt1GogFBqQsat1TJoWRQ8fU6PMF85oAmA94dkWcEyQ=="
        ],
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MS-Office365-Filtering-Correlation-Id": "a723f456-fae0-442a-b84b-08d443876f64",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0; RULEID:(22001);\n\tSRVR:CY1PR0301MB0745; ",
        "X-Microsoft-Antispam-PRVS": "<CY1PR0301MB0745BC81F5485233FE4CC95189720@CY1PR0301MB0745.namprd03.prod.outlook.com>",
        "X-Exchange-Antispam-Report-Test": "UriScan:(185117386973197)(227817650892897)(275809806118684); ",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(6095060)(601004)(2401047)(13023025)(13017025)(13015025)(13024025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025);\n\tSRVR:CY1PR0301MB0745; BCL:0; PCL:0; RULEID:(400006);\n\tSRVR:CY1PR0301MB0745; ",
        "X-Forefront-PRVS": "0196A226D1",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "23 Jan 2017 12:00:33.2416\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.168.50]; \n\tHelo=[tx30smr01.am.freescale.net]",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CY1PR0301MB0745",
        "Subject": "[dpdk-dev] [PATCHv6 06/33] bus/fslmc: add mc dpio 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": "This patch adds the DPIO object support in MC driver.\n\nDPIO - Data Path Input Output represent the processing\ncontext to access the QBMAN HW for packet I/O.\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/dpio.c                 | 279 +++++++++++++++++++++++++++\n drivers/bus/fslmc/mc/fsl_dpio.h             | 282 ++++++++++++++++++++++++++++\n drivers/bus/fslmc/mc/fsl_dpio_cmd.h         | 121 ++++++++++++\n drivers/bus/fslmc/rte_bus_fslmc_version.map |   8 +\n 5 files changed, 691 insertions(+)\n create mode 100644 drivers/bus/fslmc/mc/dpio.c\n create mode 100644 drivers/bus/fslmc/mc/fsl_dpio.h\n create mode 100644 drivers/bus/fslmc/mc/fsl_dpio_cmd.h",
    "diff": "diff --git a/drivers/bus/fslmc/Makefile b/drivers/bus/fslmc/Makefile\nindex 15ab89a..53ab17b 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/dpio.c \\\n         mc/mc_sys.c\n \n SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += fslmc_bus.c\ndiff --git a/drivers/bus/fslmc/mc/dpio.c b/drivers/bus/fslmc/mc/dpio.c\nnew file mode 100644\nindex 0000000..7f7359d\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/dpio.c\n@@ -0,0 +1,279 @@\n+/*-\n+ * This file is provided under a dual BSD/GPLv2 license. When using or\n+ * redistributing this file, you may do so under either license.\n+ *\n+ *   BSD LICENSE\n+ *\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+ *   GPL LICENSE SUMMARY\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_dpio.h>\n+#include <fsl_dpio_cmd.h>\n+\n+int dpio_open(struct fsl_mc_io *mc_io,\n+\t      uint32_t cmd_flags,\n+\t      int dpio_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(DPIO_CMDID_OPEN,\n+\t\t\t\t\t  cmd_flags,\n+\t\t\t\t\t  0);\n+\tDPIO_CMD_OPEN(cmd, dpio_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 0;\n+}\n+\n+int dpio_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(DPIO_CMDID_CLOSE,\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 dpio_create(struct fsl_mc_io\t*mc_io,\n+\t\tuint16_t\tdprc_token,\n+\t\tuint32_t\tcmd_flags,\n+\t\tconst struct dpio_cfg\t*cfg,\n+\t\tuint32_t\t*obj_id)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPIO_CMDID_CREATE,\n+\t\t\t\t\t  cmd_flags,\n+\t\t\t\t\t  dprc_token);\n+\tDPIO_CMD_CREATE(cmd, cfg);\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 dpio_destroy(struct fsl_mc_io\t*mc_io,\n+\t\t uint16_t\tdprc_token,\n+\t\tuint32_t\tcmd_flags,\n+\t\tuint32_t\tobject_id)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPIO_CMDID_DESTROY,\n+\t\t\tcmd_flags,\n+\t\t\tdprc_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 dpio_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(DPIO_CMDID_ENABLE,\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 dpio_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(DPIO_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 dpio_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(DPIO_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+\tDPIO_RSP_IS_ENABLED(cmd, *en);\n+\n+\treturn 0;\n+}\n+\n+int dpio_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(DPIO_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+\n+int dpio_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 dpio_attr *attr)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPIO_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+\tDPIO_RSP_GET_ATTR(cmd, attr);\n+\n+\treturn 0;\n+}\n+\n+int dpio_set_stashing_destination(struct fsl_mc_io *mc_io,\n+\t\t\t\t  uint32_t cmd_flags,\n+\t\t\t\t  uint16_t token,\n+\t\t\t\t  uint8_t sdest)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPIO_CMDID_SET_STASHING_DEST,\n+\t\t\t\t\t  cmd_flags,\n+\t\t\t\t\t  token);\n+\tDPIO_CMD_SET_STASHING_DEST(cmd, sdest);\n+\n+\t/* send command to mc*/\n+\treturn mc_send_command(mc_io, &cmd);\n+}\n+\n+int dpio_get_stashing_destination(struct fsl_mc_io *mc_io,\n+\t\t\t\t  uint32_t cmd_flags,\n+\t\t\t\t  uint16_t token,\n+\t\t\t\t  uint8_t *sdest)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPIO_CMDID_GET_STASHING_DEST,\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+\tDPIO_RSP_GET_STASHING_DEST(cmd, *sdest);\n+\n+\treturn 0;\n+}\n+\n+int dpio_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(DPIO_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+\tDPIO_RSP_GET_API_VERSION(cmd, *major_ver, *minor_ver);\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/bus/fslmc/mc/fsl_dpio.h b/drivers/bus/fslmc/mc/fsl_dpio.h\nnew file mode 100644\nindex 0000000..6d86f07\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/fsl_dpio.h\n@@ -0,0 +1,282 @@\n+/*-\n+ * This file is provided under a dual BSD/GPLv2 license. When using or\n+ * redistributing this file, you may do so under either license.\n+ *\n+ *   BSD LICENSE\n+ *\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+ *   GPL LICENSE SUMMARY\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_DPIO_H\n+#define __FSL_DPIO_H\n+\n+/* Data Path I/O Portal API\n+ * Contains initialization APIs and runtime control APIs for DPIO\n+ */\n+\n+struct fsl_mc_io;\n+\n+/**\n+ * dpio_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+ * @dpio_id:\tDPIO 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 dpio_create() function.\n+ * This function returns a unique authentication token,\n+ * associated with the specific object ID and any MC portals\n+ * assigned to the parent container; this token must be used in\n+ * all subsequent commands for this specific object.\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpio_open(struct fsl_mc_io\t*mc_io,\n+\t      uint32_t\t\tcmd_flags,\n+\t      int\t\tdpio_id,\n+\t      uint16_t\t\t*token);\n+\n+/**\n+ * dpio_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 DPIO object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpio_close(struct fsl_mc_io\t*mc_io,\n+\t       uint32_t\t\tcmd_flags,\n+\t       uint16_t\t\ttoken);\n+\n+/**\n+ * enum dpio_channel_mode - DPIO notification channel mode\n+ * @DPIO_NO_CHANNEL: No support for notification channel\n+ * @DPIO_LOCAL_CHANNEL: Notifications on data availability can be received by a\n+ *\tdedicated channel in the DPIO; user should point the queue's\n+ *\tdestination in the relevant interface to this DPIO\n+ */\n+enum dpio_channel_mode {\n+\tDPIO_NO_CHANNEL = 0,\n+\tDPIO_LOCAL_CHANNEL = 1,\n+};\n+\n+/**\n+ * struct dpio_cfg - Structure representing DPIO configuration\n+ * @channel_mode: Notification channel mode\n+ * @num_priorities: Number of priorities for the notification channel (1-8);\n+ *\t\t\trelevant only if 'channel_mode = DPIO_LOCAL_CHANNEL'\n+ */\n+struct dpio_cfg {\n+\tenum dpio_channel_mode\tchannel_mode;\n+\tuint8_t\t\t\tnum_priorities;\n+};\n+\n+/**\n+ * dpio_create() - Create the DPIO 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 DPIO 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 dpio_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 dpio_cfg\t*cfg,\n+\t\tuint32_t\t\t*obj_id);\n+\n+/**\n+ * dpio_destroy() - Destroy the DPIO object and release all its resources.\n+ * @mc_io:\tPointer to MC portal's I/O object\n+ * @dprc_token: Parent container token; '0' for default container\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+ * The function accepts the authentication token of the parent container that\n+ * created the object (not the one that currently owns the object). The object\n+ * is searched within parent using the provided 'object_id'.\n+ * All tokens to the object must be closed before calling destroy.\n+ *\n+ * Return:\t'0' on Success; Error code otherwise\n+ */\n+int dpio_destroy(struct fsl_mc_io\t*mc_io,\n+\t\t uint16_t\t\tdprc_token,\n+\t\tuint32_t\t\tcmd_flags,\n+\t\tuint32_t\t\tobject_id);\n+\n+/**\n+ * dpio_enable() - Enable the DPIO, allow I/O portal operations.\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 DPIO object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise\n+ */\n+int dpio_enable(struct fsl_mc_io\t*mc_io,\n+\t\tuint32_t\t\tcmd_flags,\n+\t\tuint16_t\t\ttoken);\n+\n+/**\n+ * dpio_disable() - Disable the DPIO, stop any I/O portal operation.\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 DPIO object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise\n+ */\n+int dpio_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+ * dpio_is_enabled() - Check if the DPIO 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 DPIO object\n+ * @en:\tReturns '1' if object is enabled; '0' otherwise\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpio_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+ * dpio_reset() - Reset the DPIO, 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 DPIO object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpio_reset(struct fsl_mc_io\t*mc_io,\n+\t       uint32_t\t\tcmd_flags,\n+\t       uint16_t\t\ttoken);\n+\n+/**\n+ * dpio_set_stashing_destination() - Set the stashing destination.\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 DPIO object\n+ * @sdest:\tstashing destination value\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpio_set_stashing_destination(struct fsl_mc_io\t*mc_io,\n+\t\t\t\t  uint32_t\t\tcmd_flags,\n+\t\t\t\t  uint16_t\t\ttoken,\n+\t\t\t\t  uint8_t\t\tsdest);\n+\n+/**\n+ * dpio_get_stashing_destination() - Get the stashing destination..\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 DPIO object\n+ * @sdest:\tReturns the stashing destination value\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpio_get_stashing_destination(struct fsl_mc_io\t*mc_io,\n+\t\t\t\t  uint32_t\t\tcmd_flags,\n+\t\t\t\t  uint16_t\t\ttoken,\n+\t\t\t\t  uint8_t\t\t*sdest);\n+\n+/**\n+ * struct dpio_attr - Structure representing DPIO attributes\n+ * @id: DPIO object ID\n+ * @qbman_portal_ce_offset: offset of the software portal cache-enabled area\n+ * @qbman_portal_ci_offset: offset of the software portal cache-inhibited area\n+ * @qbman_portal_id: Software portal ID\n+ * @channel_mode: Notification channel mode\n+ * @num_priorities: Number of priorities for the notification channel (1-8);\n+ *\t\t\trelevant only if 'channel_mode = DPIO_LOCAL_CHANNEL'\n+ * @qbman_version: QBMAN version\n+ */\n+struct dpio_attr {\n+\tint\t\t\tid;\n+\tuint64_t\t\tqbman_portal_ce_offset;\n+\tuint64_t\t\tqbman_portal_ci_offset;\n+\tuint16_t\t\tqbman_portal_id;\n+\tenum dpio_channel_mode\tchannel_mode;\n+\tuint8_t\t\t\tnum_priorities;\n+\tuint32_t\t\tqbman_version;\n+\tuint32_t\t\tclk;\n+};\n+\n+/**\n+ * dpio_get_attributes() - Retrieve DPIO attributes\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 DPIO object\n+ * @attr:\tReturned object's attributes\n+ *\n+ * Return:\t'0' on Success; Error code otherwise\n+ */\n+int dpio_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 dpio_attr\t*attr);\n+\n+/**\n+ * dpio_get_api_version() - Get Data Path I/O 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 i/o API\n+ * @minor_ver:\tMinor version of data path i/o API\n+ *\n+ * Return:  '0' on Success; Error code otherwise.\n+ */\n+int dpio_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_DPIO_H */\ndiff --git a/drivers/bus/fslmc/mc/fsl_dpio_cmd.h b/drivers/bus/fslmc/mc/fsl_dpio_cmd.h\nnew file mode 100644\nindex 0000000..c4b613e\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/fsl_dpio_cmd.h\n@@ -0,0 +1,121 @@\n+/*-\n+ * This file is provided under a dual BSD/GPLv2 license. When using or\n+ * redistributing this file, you may do so under either license.\n+ *\n+ *   BSD LICENSE\n+ *\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+ *   GPL LICENSE SUMMARY\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_DPIO_CMD_H\n+#define _FSL_DPIO_CMD_H\n+\n+/* DPIO Version */\n+#define DPIO_VER_MAJOR\t\t\t\t4\n+#define DPIO_VER_MINOR\t\t\t\t2\n+\n+/* Command IDs */\n+#define DPIO_CMDID_CLOSE                                ((0x800 << 4) | (0x1))\n+#define DPIO_CMDID_OPEN                                 ((0x803 << 4) | (0x1))\n+#define DPIO_CMDID_CREATE                               ((0x903 << 4) | (0x1))\n+#define DPIO_CMDID_DESTROY                              ((0x983 << 4) | (0x1))\n+#define DPIO_CMDID_GET_API_VERSION                      ((0xa03 << 4) | (0x1))\n+\n+#define DPIO_CMDID_ENABLE                               ((0x002 << 4) | (0x1))\n+#define DPIO_CMDID_DISABLE                              ((0x003 << 4) | (0x1))\n+#define DPIO_CMDID_GET_ATTR                             ((0x004 << 4) | (0x1))\n+#define DPIO_CMDID_RESET                                ((0x005 << 4) | (0x1))\n+#define DPIO_CMDID_IS_ENABLED                           ((0x006 << 4) | (0x1))\n+\n+#define DPIO_CMDID_SET_STASHING_DEST                    ((0x120 << 4) | (0x1))\n+#define DPIO_CMDID_GET_STASHING_DEST                    ((0x121 << 4) | (0x1))\n+#define DPIO_CMDID_ADD_STATIC_DEQUEUE_CHANNEL           ((0x122 << 4) | (0x1))\n+#define DPIO_CMDID_REMOVE_STATIC_DEQUEUE_CHANNEL        ((0x123 << 4) | (0x1))\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_CMD_OPEN(cmd, dpio_id) \\\n+\tMC_CMD_OP(cmd, 0, 0,  32, uint32_t,     dpio_id)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_CMD_CREATE(cmd, cfg) \\\n+do { \\\n+\tMC_CMD_OP(cmd, 0, 16, 2,  enum dpio_channel_mode,\t\\\n+\t\t\t\t\t   cfg->channel_mode);\\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t, cfg->num_priorities);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_RSP_IS_ENABLED(cmd, en) \\\n+\tMC_RSP_OP(cmd, 0, 0,  1,  int,\t    en)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_RSP_GET_ATTR(cmd, attr) \\\n+do { \\\n+\tMC_RSP_OP(cmd, 0, 0,  32, int,\t    attr->id);\\\n+\tMC_RSP_OP(cmd, 0, 32, 16, uint16_t, attr->qbman_portal_id);\\\n+\tMC_RSP_OP(cmd, 0, 48, 8,  uint8_t,  attr->num_priorities);\\\n+\tMC_RSP_OP(cmd, 0, 56, 4,  enum dpio_channel_mode, attr->channel_mode);\\\n+\tMC_RSP_OP(cmd, 1, 0,  64, uint64_t, attr->qbman_portal_ce_offset);\\\n+\tMC_RSP_OP(cmd, 2, 0,  64, uint64_t, attr->qbman_portal_ci_offset);\\\n+\tMC_RSP_OP(cmd, 3, 0, 32, uint32_t, attr->qbman_version);\\\n+\tMC_RSP_OP(cmd, 4, 0,  32, uint32_t, attr->clk);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_CMD_SET_STASHING_DEST(cmd, sdest) \\\n+\tMC_CMD_OP(cmd, 0, 0,  8,  uint8_t,  sdest)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_RSP_GET_STASHING_DEST(cmd, sdest) \\\n+\tMC_RSP_OP(cmd, 0, 0,  8,  uint8_t,  sdest)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_CMD_ADD_STATIC_DEQUEUE_CHANNEL(cmd, dpcon_id) \\\n+\tMC_CMD_OP(cmd, 0, 0,  32, int,      dpcon_id)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_RSP_ADD_STATIC_DEQUEUE_CHANNEL(cmd, channel_index) \\\n+\tMC_RSP_OP(cmd, 0, 0,  8,  uint8_t,  channel_index)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPIO_CMD_REMOVE_STATIC_DEQUEUE_CHANNEL(cmd, dpcon_id) \\\n+\tMC_CMD_OP(cmd, 0, 0,  32, int,      dpcon_id)\n+\n+/*                cmd, param, offset, width, type,      arg_name */\n+#define DPIO_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_DPIO_CMD_H */\ndiff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map\nindex d49dda8..daf6b8f 100644\n--- a/drivers/bus/fslmc/rte_bus_fslmc_version.map\n+++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map\n@@ -1,5 +1,13 @@\n DPDK_17.02 {\n \tglobal:\n+\n+        dpio_close;\n+        dpio_disable;\n+        dpio_enable;\n+        dpio_get_attributes;\n+        dpio_open;\n+        dpio_reset;\n+        dpio_set_stashing_destination;\n         dpni_close;\n         dpni_disable;\n         dpni_enable;\n",
    "prefixes": [
        "dpdk-dev",
        "PATCHv6",
        "06/33"
    ]
}