get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 25958,
    "url": "https://patches.dpdk.org/api/patches/25958/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1498732085-18449-6-git-send-email-nipun.gupta@nxp.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1498732085-18449-6-git-send-email-nipun.gupta@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1498732085-18449-6-git-send-email-nipun.gupta@nxp.com",
    "date": "2017-06-29T10:27:49",
    "name": "[dpdk-dev,05/21,v4] bus/fslmc: adding basic dpcon support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1c0e2346507a90e2431e1323fb9f02a42e8012f9",
    "submitter": {
        "id": 471,
        "url": "https://patches.dpdk.org/api/people/471/?format=api",
        "name": "Nipun Gupta",
        "email": "nipun.gupta@nxp.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1498732085-18449-6-git-send-email-nipun.gupta@nxp.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/25958/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/25958/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 5AB0B7CA3;\n\tThu, 29 Jun 2017 12:28:56 +0200 (CEST)",
            "from NAM03-BY2-obe.outbound.protection.outlook.com\n\t(mail-by2nam03on0067.outbound.protection.outlook.com [104.47.42.67])\n\tby dpdk.org (Postfix) with ESMTP id E43DC58CE\n\tfor <dev@dpdk.org>; Thu, 29 Jun 2017 12:28:51 +0200 (CEST)",
            "from BN6PR03CA0019.namprd03.prod.outlook.com (10.168.230.157) by\n\tDM5PR03MB3163.namprd03.prod.outlook.com (10.174.190.36) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id\n\t15.1.1220.11; Thu, 29 Jun 2017 10:28:49 +0000",
            "from BN1AFFO11FD040.protection.gbl (2a01:111:f400:7c10::179) by\n\tBN6PR03CA0019.outlook.office365.com (2603:10b6:404:23::29) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11\n\tvia Frontend Transport; Thu, 29 Jun 2017 10:28:49 +0000",
            "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBN1AFFO11FD040.mail.protection.outlook.com (10.58.52.251) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1199.9\n\tvia Frontend Transport; Thu, 29 Jun 2017 10:28:48 +0000",
            "from b27504-OptiPlex-790.ap.freescale.net\n\t(b27504-OptiPlex-790.ap.freescale.net [10.232.132.60])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tv5TASSbH002766; Thu, 29 Jun 2017 03:28:45 -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;",
        "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": "Nipun Gupta <nipun.gupta@nxp.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<hemant.agrawal@nxp.com>, <jerin.jacob@caviumnetworks.com>,\n\t<harry.van.haaren@intel.com>, <bruce.richardson@intel.com>,\n\t<gage.eads@intel.com>, <shreyansh.jain@nxp.com>, Nipun Gupta\n\t<nipun.gupta@nxp.com>",
        "Date": "Thu, 29 Jun 2017 15:57:49 +0530",
        "Message-ID": "<1498732085-18449-6-git-send-email-nipun.gupta@nxp.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1498732085-18449-1-git-send-email-nipun.gupta@nxp.com>",
        "References": "<1495735361-4840-1-git-send-email-nipun.gupta@nxp.com>\n\t<1498732085-18449-1-git-send-email-nipun.gupta@nxp.com>",
        "X-EOPAttributedMessage": "0",
        "X-Matching-Connectors": "131432057287723453;\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)(39410400002)(39450400003)(39400400002)(39860400002)(39850400002)(39380400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(105606002)(8656002)(5660300001)(110136004)(38730400002)(47776003)(36756003)(50466002)(48376002)(97736004)(86362001)(305945005)(4326008)(85426001)(189998001)(104016004)(2950100002)(54906002)(6916009)(2906002)(33646002)(106466001)(2351001)(498600001)(8936002)(8676002)(81166006)(5003940100001)(53936002)(50986999)(76176999)(50226002)(77096006)(356003)(2004002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB3163;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent;\n\tLANG:en; ",
        "X-Microsoft-Exchange-Diagnostics": [
            "=?us-ascii?Q?1; BN1AFFO11FD040;\n\t1:sUg0KQCKCC9kJynwhvciqmEyCFGX4Ymcw7eG1piV3?=\n\tINlybHglYKJZSDBPcP0fcsXWY1Z1Y1lPEVZDV8cjtxMRBdtLl4rseI31aKUQoT22r9REZewckH4moDrm45x0U/7MqjcJ+G0fa31QX38KGXIzYpnTpLM7P2X89ehjO/ZSZgva8laK7SC+5kvm6dwFSMvut8yNicS7iKl/2O8hFRnC/cn1XxYGJOrPZWw47KfBHeOM6gIPVd064HdB1OF/tjqKsW1BRC6i87X59R3BxpggcOQ6U3GWbJYmBjpYC8S3eGV9YBubp7+YFFCYEJuk8VnmG3u3+t/p4Pr24HPT6V+twOOKiPNe6/obaONKBkgam7QJtwABX0pL745zhO09X8vjTspuSs8gGLJFajxGrru+czczJNlmHk67vx29I7EC42nfXOwoAzDsvLno+miMgbg0IHFXRky6Hgsb08lV6s5GLoVIePc8tEYVmTm4GiqV2fleiLvUkgwiUxBmkn3QUQFudofczex/2/vQfVXfz5RFLzBf7fgg3Zxb97UyDYDiwLZ9fTpNwO31WD1VntTPIVyuXnLJVRJRqhToCPDWpdbqsARPo+bk34SnSFDqyRKTbe5mzxivHJvCLJdYLjMIBj82rehQn7IGX0VqDmqvYU+3IYqrTBt9gwE5SDZt8vcJw7b/rRm8yI1JV8j7eS1r0PhEccGODAdidP1Tg/uptgmeThEqCbK5AoLoq/8RMHF9tLMG8nMIibhfLi/86ySK4n4fgcBaQk/Lx4yAhuSsRCwAdv4Qf/EdtUJisBlj5QOj0/nGwkHbNvl+ZVSYFIylv09PmNw5QlVD5TkDiaavXMr8HmghqvZFfnfnX9CtK6qjzWHz8Fv2WgOKDfmsso3KTmoem7ht76tA7Sc8Iwroz2JKwclPin88WLETNDtx5RdcYE8Up/46WWtVC+9982Lh0NVzXH1FCn9V9TY0Uo63FgHt5wTt8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CTCRDE4JztGBx8Ea0D/FH8GeDW+NYmy7v51sM6x0lnteVPSAxQmFwtmdaEsrerOqesoYyK4ZlfUB4xs03QWrWglbeL/gySZpGWyDsu1yRc4OxI0cVv2kb94xaeQh/1+K+nTOyQHD1JeoCzfwMwG0TrYoh7/8xuPYU9rmYQwx7BJ49xY5R+lT59SxxHLUKosdb29Z+H3dfOYNGuJFPH7VZO0GFwJJJWR6UqCNpYJimpUwCUlcRL8qkS4db9PlqmB8uVgpfBI6QcThzZIIH3H3j4gO/A1QGCMtOm6vaiTcoH218JjrWfRezj/qYEsJ29BMMQ/ADfZfyc173RcQhqVXQx1YNo8CwfqvVy6fTCJAdLa/Bwt4/KH5DYM6jc2WIJM0tMvqtq1dOg4f/YrIuGivwsE7NGhwBvooRhrPlDGZPZY5RDjFdU5v0bnPV1ghoE+M/nCYV6oZbX/2qk4fcHXQQiLs81H8GAa89OodNrlT/7EZMlg5wiIANS7f0gPfxBVH2gv2S8g89C3DxgaEVOLyrVK85/OEd+ZYT/wG2+/hty2+f0yCtjuxZWnS+RUzPbNcMgDPP9SbpRitGvwUbcxVH9mF9PdfHmGrzzo="
        ],
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "8a51acbd-ad9d-4ac0-bebd-08d4bed9a11f",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:DM5PR03MB3163; ",
        "X-MS-TrafficTypeDiagnostic": "DM5PR03MB3163:",
        "X-Microsoft-Antispam-PRVS": "<DM5PR03MB3163BD920346847528838301E6D20@DM5PR03MB3163.namprd03.prod.outlook.com>",
        "X-Exchange-Antispam-Report-Test": "UriScan:(133145235818549)(236129657087228)(185117386973197)(48057245064654)(148574349560750)(275809806118684)(158140799945019)(247924648384137);",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123565025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123556025)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:DM5PR03MB3163; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:DM5PR03MB3163; ",
        "X-Forefront-PRVS": "0353563E2B",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "29 Jun 2017 10:28:48.4759\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": "DM5PR03MB3163",
        "Subject": "[dpdk-dev] [PATCH 05/21 v4] bus/fslmc: adding basic dpcon 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": "Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n drivers/bus/fslmc/Makefile                  |   3 +-\n drivers/bus/fslmc/fslmc_vfio.h              |   1 +\n drivers/bus/fslmc/mc/dpcon.c                | 230 +++++++++++++++++++++++++++\n drivers/bus/fslmc/mc/fsl_dpcon.h            | 238 ++++++++++++++++++++++++++++\n drivers/bus/fslmc/mc/fsl_dpcon_cmd.h        | 175 ++++++++++++++++++++\n drivers/bus/fslmc/rte_bus_fslmc_version.map |   2 +\n 6 files changed, 648 insertions(+), 1 deletion(-)\n create mode 100644 drivers/bus/fslmc/mc/dpcon.c\n create mode 100644 drivers/bus/fslmc/mc/fsl_dpcon.h\n create mode 100644 drivers/bus/fslmc/mc/fsl_dpcon_cmd.h",
    "diff": "diff --git a/drivers/bus/fslmc/Makefile b/drivers/bus/fslmc/Makefile\nindex 7d9f4b6..38d884e 100644\n--- a/drivers/bus/fslmc/Makefile\n+++ b/drivers/bus/fslmc/Makefile\n@@ -66,7 +66,8 @@ SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += \\\n \tmc/dpmng.c \\\n         mc/dpbp.c \\\n         mc/dpio.c \\\n-        mc/mc_sys.c\n+        mc/mc_sys.c \\\n+\tmc/dpcon.c \\\n \n SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += portal/dpaa2_hw_dpio.c\n SRCS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += portal/dpaa2_hw_dpbp.c\ndiff --git a/drivers/bus/fslmc/fslmc_vfio.h b/drivers/bus/fslmc/fslmc_vfio.h\nindex ffed62e..eddce31 100644\n--- a/drivers/bus/fslmc/fslmc_vfio.h\n+++ b/drivers/bus/fslmc/fslmc_vfio.h\n@@ -39,6 +39,7 @@\n #define DPAA2_VENDOR_ID\t\t0x1957\n #define DPAA2_MC_DPNI_DEVID\t7\n #define DPAA2_MC_DPSECI_DEVID\t3\n+#define DPAA2_MC_DPCON_DEVID\t5\n #define DPAA2_MC_DPIO_DEVID\t9\n #define DPAA2_MC_DPBP_DEVID\t10\n \ndiff --git a/drivers/bus/fslmc/mc/dpcon.c b/drivers/bus/fslmc/mc/dpcon.c\nnew file mode 100644\nindex 0000000..b078dff\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/dpcon.c\n@@ -0,0 +1,230 @@\n+/* Copyright 2013-2016 Freescale Semiconductor Inc.\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_dpcon.h>\n+#include <fsl_dpcon_cmd.h>\n+\n+int dpcon_open(struct fsl_mc_io *mc_io,\n+\t       uint32_t cmd_flags,\n+\t       int dpcon_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(DPCON_CMDID_OPEN,\n+\t\t\t\t\t  cmd_flags,\n+\t\t\t\t\t  0);\n+\tDPCON_CMD_OPEN(cmd, dpcon_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 dpcon_close(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(DPCON_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 dpcon_create(struct fsl_mc_io *mc_io,\n+\t\t uint16_t dprc_token,\n+\t\tuint32_t cmd_flags,\n+\t\tconst struct dpcon_cfg *cfg,\n+\t\tuint32_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(DPCON_CMDID_CREATE,\n+\t\t\t\t\t  cmd_flags,\n+\t\t\t\t\t  dprc_token);\n+\tDPCON_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 dpcon_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(DPCON_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 dpcon_enable(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(DPCON_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 dpcon_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(DPCON_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 dpcon_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(DPCON_CMDID_IS_ENABLED,\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+\tDPCON_RSP_IS_ENABLED(cmd, *en);\n+\n+\treturn 0;\n+}\n+\n+int dpcon_reset(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(DPCON_CMDID_RESET,\n+\t\t\t\t\t  cmd_flags, token);\n+\n+\t/* send command to mc*/\n+\treturn mc_send_command(mc_io, &cmd);\n+}\n+\n+int dpcon_get_attributes(struct fsl_mc_io *mc_io,\n+\t\t\t uint32_t cmd_flags,\n+\t\t\t uint16_t token,\n+\t\t\t struct dpcon_attr *attr)\n+{\n+\tstruct mc_command cmd = { 0 };\n+\tint err;\n+\n+\t/* prepare command */\n+\tcmd.header = mc_encode_cmd_header(DPCON_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+\tDPCON_RSP_GET_ATTR(cmd, attr);\n+\n+\treturn 0;\n+}\n+\n+int dpcon_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(DPCON_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+\tDPCON_RSP_GET_API_VERSION(cmd, *major_ver, *minor_ver);\n+\n+\treturn 0;\n+}\ndiff --git a/drivers/bus/fslmc/mc/fsl_dpcon.h b/drivers/bus/fslmc/mc/fsl_dpcon.h\nnew file mode 100644\nindex 0000000..0ed9db5\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/fsl_dpcon.h\n@@ -0,0 +1,238 @@\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+ *\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_DPCON_H\n+#define __FSL_DPCON_H\n+\n+/* Data Path Concentrator API\n+ * Contains initialization APIs and runtime control APIs for DPCON\n+ */\n+\n+struct fsl_mc_io;\n+\n+/** General DPCON macros */\n+\n+/**\n+ * Use it to disable notifications; see dpcon_set_notification()\n+ */\n+#define DPCON_INVALID_DPIO_ID\t\t(int)(-1)\n+\n+/**\n+ * dpcon_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+ * @dpcon_id:\tDPCON 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 dpcon_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 dpcon_open(struct fsl_mc_io *mc_io,\n+\t       uint32_t\t\tcmd_flags,\n+\t       int\t\tdpcon_id,\n+\t       uint16_t\t\t*token);\n+\n+/**\n+ * dpcon_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 DPCON 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 dpcon_close(struct fsl_mc_io\t*mc_io,\n+\t\tuint32_t\t\tcmd_flags,\n+\t\tuint16_t\t\ttoken);\n+\n+/**\n+ * struct dpcon_cfg - Structure representing DPCON configuration\n+ * @num_priorities: Number of priorities for the DPCON channel (1-8)\n+ */\n+struct dpcon_cfg {\n+\tuint8_t num_priorities;\n+};\n+\n+/**\n+ * dpcon_create() - Create the DPCON 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 DPCON 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 dpcon_create(struct fsl_mc_io\t*mc_io,\n+\t\t uint16_t\t\tdprc_token,\n+\t\tuint32_t\t\tcmd_flags,\n+\t\tconst struct dpcon_cfg\t*cfg,\n+\t\tuint32_t\t\t*obj_id);\n+\n+/**\n+ * dpcon_destroy() - Destroy the DPCON 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 dpcon_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+ * dpcon_enable() - Enable the DPCON\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 DPCON object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise\n+ */\n+int dpcon_enable(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+ * dpcon_disable() - Disable the DPCON\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 DPCON object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise\n+ */\n+int dpcon_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+ * dpcon_is_enabled() -\tCheck if the DPCON 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 DPCON 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 dpcon_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*en);\n+\n+/**\n+ * dpcon_reset() - Reset the DPCON, 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 DPCON object\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpcon_reset(struct fsl_mc_io\t*mc_io,\n+\t\tuint32_t\t\tcmd_flags,\n+\t\tuint16_t\t\ttoken);\n+\n+/**\n+ * struct dpcon_attr - Structure representing DPCON attributes\n+ * @id: DPCON object ID\n+ * @qbman_ch_id: Channel ID to be used by dequeue operation\n+ * @num_priorities: Number of priorities for the DPCON channel (1-8)\n+ */\n+struct dpcon_attr {\n+\tint id;\n+\tuint16_t qbman_ch_id;\n+\tuint8_t num_priorities;\n+};\n+\n+/**\n+ * dpcon_get_attributes() - Retrieve DPCON 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 DPCON object\n+ * @attr:\tObject's attributes\n+ *\n+ * Return:\t'0' on Success; Error code otherwise.\n+ */\n+int dpcon_get_attributes(struct fsl_mc_io\t*mc_io,\n+\t\t\t uint32_t\t\tcmd_flags,\n+\t\t\t uint16_t\t\ttoken,\n+\t\t\t struct dpcon_attr\t*attr);\n+\n+/**\n+ * dpcon_get_api_version() - Get Data Path Concentrator 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 concentrator API\n+ * @minor_ver:\tMinor version of data path concentrator API\n+ *\n+ * Return:  '0' on Success; Error code otherwise.\n+ */\n+int dpcon_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_DPCON_H */\ndiff --git a/drivers/bus/fslmc/mc/fsl_dpcon_cmd.h b/drivers/bus/fslmc/mc/fsl_dpcon_cmd.h\nnew file mode 100644\nindex 0000000..f7f7690\n--- /dev/null\n+++ b/drivers/bus/fslmc/mc/fsl_dpcon_cmd.h\n@@ -0,0 +1,175 @@\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+ *\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_DPCON_CMD_H\n+#define _FSL_DPCON_CMD_H\n+\n+/* DPCON Version */\n+#define DPCON_VER_MAJOR\t\t\t\t3\n+#define DPCON_VER_MINOR\t\t\t\t2\n+\n+/* Command IDs */\n+#define DPCON_CMDID_CLOSE                            ((0x800 << 4) | (0x1))\n+#define DPCON_CMDID_OPEN                             ((0x808 << 4) | (0x1))\n+#define DPCON_CMDID_CREATE                           ((0x908 << 4) | (0x1))\n+#define DPCON_CMDID_DESTROY                          ((0x988 << 4) | (0x1))\n+#define DPCON_CMDID_GET_API_VERSION                  ((0xa08 << 4) | (0x1))\n+\n+#define DPCON_CMDID_ENABLE                           ((0x002 << 4) | (0x1))\n+#define DPCON_CMDID_DISABLE                          ((0x003 << 4) | (0x1))\n+#define DPCON_CMDID_GET_ATTR                         ((0x004 << 4) | (0x1))\n+#define DPCON_CMDID_RESET                            ((0x005 << 4) | (0x1))\n+#define DPCON_CMDID_IS_ENABLED                       ((0x006 << 4) | (0x1))\n+\n+#define DPCON_CMDID_SET_IRQ                          ((0x010 << 4) | (0x1))\n+#define DPCON_CMDID_GET_IRQ                          ((0x011 << 4) | (0x1))\n+#define DPCON_CMDID_SET_IRQ_ENABLE                   ((0x012 << 4) | (0x1))\n+#define DPCON_CMDID_GET_IRQ_ENABLE                   ((0x013 << 4) | (0x1))\n+#define DPCON_CMDID_SET_IRQ_MASK                     ((0x014 << 4) | (0x1))\n+#define DPCON_CMDID_GET_IRQ_MASK                     ((0x015 << 4) | (0x1))\n+#define DPCON_CMDID_GET_IRQ_STATUS                   ((0x016 << 4) | (0x1))\n+#define DPCON_CMDID_CLEAR_IRQ_STATUS                 ((0x017 << 4) | (0x1))\n+\n+#define DPCON_CMDID_SET_NOTIFICATION                 ((0x100 << 4) | (0x1))\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_OPEN(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 DPCON_CMD_CREATE(cmd, cfg) \\\n+\tMC_CMD_OP(cmd, 0, 0,  8,  uint8_t,  cfg->num_priorities)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_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 DPCON_CMD_SET_IRQ(cmd, irq_index, irq_cfg) \\\n+do { \\\n+\tMC_CMD_OP(cmd, 0, 0,  8,  uint8_t,  irq_index);\\\n+\tMC_CMD_OP(cmd, 0, 32, 32, uint32_t, irq_cfg->val);\\\n+\tMC_CMD_OP(cmd, 1, 0,  64, uint64_t, irq_cfg->addr);\\\n+\tMC_CMD_OP(cmd, 2, 0,  32, int,\t    irq_cfg->irq_num); \\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_GET_IRQ(cmd, irq_index) \\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  irq_index)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_RSP_GET_IRQ(cmd, type, irq_cfg) \\\n+do { \\\n+\tMC_RSP_OP(cmd, 0, 0,  32, uint32_t, irq_cfg->val);\\\n+\tMC_RSP_OP(cmd, 1, 0,  64, uint64_t, irq_cfg->addr);\\\n+\tMC_RSP_OP(cmd, 2, 0,  32, int,\t    irq_cfg->irq_num); \\\n+\tMC_RSP_OP(cmd, 2, 32, 32, int,\t    type);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_SET_IRQ_ENABLE(cmd, irq_index, en) \\\n+do { \\\n+\tMC_CMD_OP(cmd, 0, 0,  8,  uint8_t,  en); \\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  irq_index);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_GET_IRQ_ENABLE(cmd, irq_index) \\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  irq_index)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_RSP_GET_IRQ_ENABLE(cmd, en) \\\n+\tMC_RSP_OP(cmd, 0, 0,  8,  uint8_t,  en)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_SET_IRQ_MASK(cmd, irq_index, mask) \\\n+do { \\\n+\tMC_CMD_OP(cmd, 0, 0,  32, uint32_t, mask); \\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  irq_index);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_GET_IRQ_MASK(cmd, irq_index) \\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  irq_index)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_RSP_GET_IRQ_MASK(cmd, mask) \\\n+\tMC_RSP_OP(cmd, 0, 0,  32, uint32_t, mask)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_GET_IRQ_STATUS(cmd, irq_index, status) \\\n+do { \\\n+\tMC_CMD_OP(cmd, 0, 0,  32, uint32_t, status);\\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  irq_index);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_RSP_GET_IRQ_STATUS(cmd, status) \\\n+\tMC_RSP_OP(cmd, 0, 0,  32, uint32_t, status)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_CLEAR_IRQ_STATUS(cmd, irq_index, status) \\\n+do { \\\n+\tMC_CMD_OP(cmd, 0, 0,  32, uint32_t, status); \\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  irq_index);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_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_ch_id);\\\n+\tMC_RSP_OP(cmd, 0, 48, 8,  uint8_t,  attr->num_priorities);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type, arg_name */\n+#define DPCON_CMD_SET_NOTIFICATION(cmd, cfg) \\\n+do { \\\n+\tMC_CMD_OP(cmd, 0, 0,  32, int,      cfg->dpio_id);\\\n+\tMC_CMD_OP(cmd, 0, 32, 8,  uint8_t,  cfg->priority);\\\n+\tMC_CMD_OP(cmd, 1, 0,  64, uint64_t, cfg->user_ctx);\\\n+} while (0)\n+\n+/*                cmd, param, offset, width, type,      arg_name */\n+#define DPCON_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_DPCON_CMD_H */\ndiff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map\nindex 90db78c..783c3e5 100644\n--- a/drivers/bus/fslmc/rte_bus_fslmc_version.map\n+++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map\n@@ -53,6 +53,8 @@ DPDK_17.05 {\n DPDK_17.08 {\n \tglobal:\n \n+\tdpcon_open;\n+\tdpcon_get_attributes;\n \tmc_get_soc_version;\n \tmc_get_version;\n \tqbman_result_SCN_state_in_mem;\n",
    "prefixes": [
        "dpdk-dev",
        "05/21",
        "v4"
    ]
}