get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17637,
    "url": "http://patches.dpdk.org/api/patches/17637/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1480875447-23680-6-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": "<1480875447-23680-6-git-send-email-hemant.agrawal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1480875447-23680-6-git-send-email-hemant.agrawal@nxp.com",
    "date": "2016-12-04T18:17:00",
    "name": "[dpdk-dev,05/32] drivers/common/dpaa2: add mc dpbp object support",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "67022ef84c3415d77ce7f62c9baf6ef8b79f0bd4",
    "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/1480875447-23680-6-git-send-email-hemant.agrawal@nxp.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/17637/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/17637/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 BF625FA55;\n\tSun,  4 Dec 2016 13:44:45 +0100 (CET)",
            "from NAM02-CY1-obe.outbound.protection.outlook.com\n\t(mail-cys01nam02on0076.outbound.protection.outlook.com\n\t[104.47.37.76]) by dpdk.org (Postfix) with ESMTP id EC28E559C\n\tfor <dev@dpdk.org>; Sun,  4 Dec 2016 13:43:52 +0100 (CET)",
            "from BN6PR03CA0065.namprd03.prod.outlook.com (10.173.137.27) by\n\tDM5PR03MB2474.namprd03.prod.outlook.com (10.168.233.20) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id\n\t15.1.747.13; Sun, 4 Dec 2016 12:43:51 +0000",
            "from BL2FFO11FD032.protection.gbl (2a01:111:f400:7c09::142) by\n\tBN6PR03CA0065.outlook.office365.com (2603:10b6:404:4c::27) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13 via\n\tFrontend Transport; Sun, 4 Dec 2016 12:43:50 +0000",
            "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBL2FFO11FD032.mail.protection.outlook.com (10.173.160.73) with\n\tMicrosoft SMTP Server (version=TLS1_0,\n\tcipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.734.4\n\tvia Frontend Transport; Sun, 4 Dec 2016 12:43:50 +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\tuB4ChXb8032240; Sun, 4 Dec 2016 05:43:48 -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;",
        "X-IncomingTopHeaderMarker": "OriginalChecksum:; UpperCasedChecksum:;\n\tSizeAsReceived:777; Count:10",
        "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>, Alex Marginean <alexandru.marginean@nxp.com>,\n\tHemant Agrawal <hemant.agrawal@nxp.com>",
        "Date": "Sun, 4 Dec 2016 23:47:00 +0530",
        "Message-ID": "<1480875447-23680-6-git-send-email-hemant.agrawal@nxp.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com>",
        "References": "<1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com>",
        "X-IncomingHeaderCount": "10",
        "X-EOPAttributedMessage": "0",
        "X-Matching-Connectors": "131253290309981437;\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)(7916002)(2980300002)(1110001)(1109001)(339900001)(336004)(189002)(199003)(6666003)(189998001)(50466002)(50226002)(626004)(5660300001)(47776003)(104016004)(92566002)(68736007)(97736004)(8666005)(36756003)(39380400001)(39410400001)(39400400001)(8676002)(8936002)(5003940100001)(50986999)(76176999)(110136003)(2950100002)(106466001)(105606002)(6916009)(81166006)(81156014)(4326007)(39450400002)(2906002)(38730400001)(33646002)(86362001)(575784001)(48376002)(7846002)(77096006)(356003)(305945005)(85426001)(2351001)(7059030)(2004002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2474;\n\tH:tx30smr01.am.freescale.net; \n\tFPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; ",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; BL2FFO11FD032;\n\t1:48bzN5o4coFlJgk0k+d97t0KsFQ8tdts3ugkmp4P/9Qh/DrQ2TxJkPgRLZgDrlkGoUawFmqO5cVC6Vic/gAoeQIwaa98TTvBupYLIxjcwkcclxgKlXf88QH/tXRg7KzgDdqR46jw8hRkX7lcGLpKMG1CibUbylxDAP20D5xg6/gKKjBIhFL/sA1mZu3OK+3YnOgAEO9I+Ok0odI2kFa2CVMXVA7/kRW2iqy9H3y46Hf1opCdi5EOvnkBpuWo7Lg205UOhNXYFnBA3atGxmMZ38FPgWoEc4nWV/ljPyqdAin/Lvnvnxys9njGRRyZEu7s6bx7dwni7+luhkfZR6yODHeRD1o00Eg7F/W3h4NMeuXp+ovxprtUYANKbAYW+lHlls4dEaC/9tE1a7NoGNFoh0aYzgYZ7dTG0FVGXJ8uvoBZd11YjPTSpddoqjKM7qUVQInlpXnJb+yv+J9KV/vHIz/FsRjq0E1d0JkFDyt7fRK8f8Ifn6KAKNnGaLUYHWp1kX3WZPt1/jqczlbtfLRw1i+5iwOoJ7/DWIljh+UdCkrs8E/4yvS26hg6bWhs0E22w56owjaqqRgB050zNa2VUfunuIUC8Zje1Exz256OAUZrNuY7upWPnUz6w5uPeC0Cg3a00rA5o8FUohcLRD8k8DX9/dakgZEcirZEdzBI23j62+ohvNGDQjLiGwQaZxRSHlBFeKCkvTfhxeoFsu5h9wLCufsFLy4MQ8+YL8n4YOqaBTPeevP7nwpFvUxYsOW7TbtvhkcS8zJm3J+wd6ocQQ==",
            "1; DM5PR03MB2474;\n\t3:seGIdzNtFrVhKJmafZYCvv3TVrReHA8ohLHwc8+t1kzJYtfB8t0B3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n\t24:Tl6oxwCXim7hujDI8CvePvbbQJwgav3+na5vHW+ghZhau2WSPEzjAd9FSkCyJSGX9TfBHm7gdn93hTU2KUEMZcCnNdagWP8kDMM/jp9bNro=",
            "1; DM5PR03MB2474;\n\t7:Nw3myigo6rSZaWhzVkMUguW4OBVjPjph2W6vjxHHk661XnPbgWxT3isiRY78QdebUJsFcot5tdpVEYD39E7cGhb3SypPfA7teU4aMy/NSVVdTgjzHO0ybrkhIxvY8wyTruH7upc6F5erwyjf5fzvywXChqlFxJN1YD9NR6XQnQnedf525QUwwnJkAMlqsk5g6+ts2CtMCb1/N0lp/pTmuu8H81TO0kcMhG8+7u6f48TIYHdYKvKn22DDmZFxjDkgyXYEj6OEWSVFGR7ynS1yIdhNyDTv9jkOkoxwm9rGTUj6WTgZAUpTQPIc83MEe/ePlA48e9Mj1UGOV227/M76CvCOCPP2tAXbRVvhF0hg1j62f/oeVheBYhzGgufQ6OeAhw1fSjXM2Houu2/iZanrL4tPn3D2b7q6X9ngCaBEwMM9hsRxNRIpMq0erqdncJJ/vEK3+xwGVD5KHNoP1SOSYA=="
        ],
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-MS-Office365-Filtering-Correlation-Id": "f6cb652f-fa31-4a72-14fd-08d41c4332fe",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0; RULEID:(22001);\n\tSRVR:DM5PR03MB2474; ",
        "X-Microsoft-Antispam-PRVS": "<DM5PR03MB247490945E9B70D3CC2154C689800@DM5PR03MB2474.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)(13017025)(13023025)(13015025)(13024025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123561025)(20161123559025)(20161123556025)(20161123563025);\n\tSRVR:DM5PR03MB2474; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2474;",
        "X-Forefront-PRVS": "014617085B",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "04 Dec 2016 12:43:50.8265\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": "DM5PR03MB2474",
        "Subject": "[dpdk-dev] [PATCH 05/32] drivers/common/dpaa2: add mc dpbp object\n\tsupport",
        "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>\n[Hemant: rebase and user space driver]\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n drivers/common/dpaa2/mc/Makefile       |   1 +\n drivers/common/dpaa2/mc/dpbp.c         | 230 +++++++++++++++++++++++++++++++++\n drivers/common/dpaa2/mc/fsl_dpbp.h     | 220 +++++++++++++++++++++++++++++++\n drivers/common/dpaa2/mc/fsl_dpbp_cmd.h |  76 +++++++++++\n 4 files changed, 527 insertions(+)\n create mode 100644 drivers/common/dpaa2/mc/dpbp.c\n create mode 100644 drivers/common/dpaa2/mc/fsl_dpbp.h\n create mode 100644 drivers/common/dpaa2/mc/fsl_dpbp_cmd.h",
    "diff": "diff --git a/drivers/common/dpaa2/mc/Makefile b/drivers/common/dpaa2/mc/Makefile\nindex 9b0c694..83bce0f 100644\n--- a/drivers/common/dpaa2/mc/Makefile\n+++ b/drivers/common/dpaa2/mc/Makefile\n@@ -47,6 +47,7 @@ EXPORT_MAP := dpaa2_mc_version.map\n LIBABIVER := 1\n \n SRCS-y += \\\n+\tdpbp.c \\\n \tdpio.c \\\n \tdpni.c \\\n \tmc_sys.c\ndiff --git a/drivers/common/dpaa2/mc/dpbp.c b/drivers/common/dpaa2/mc/dpbp.c\nnew file mode 100644\nindex 0000000..2260d86\n--- /dev/null\n+++ b/drivers/common/dpaa2/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/common/dpaa2/mc/fsl_dpbp.h b/drivers/common/dpaa2/mc/fsl_dpbp.h\nnew file mode 100644\nindex 0000000..966989d\n--- /dev/null\n+++ b/drivers/common/dpaa2/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/common/dpaa2/mc/fsl_dpbp_cmd.h b/drivers/common/dpaa2/mc/fsl_dpbp_cmd.h\nnew file mode 100644\nindex 0000000..4e95054\n--- /dev/null\n+++ b/drivers/common/dpaa2/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",
        "05/32"
    ]
}