get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131545,
    "url": "http://patches.dpdk.org/api/patches/131545/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230918024612.1600536-12-chaoyong.he@corigine.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": "<20230918024612.1600536-12-chaoyong.he@corigine.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230918024612.1600536-12-chaoyong.he@corigine.com",
    "date": "2023-09-18T02:45:57",
    "name": "[v4,11/26] net/nfp: refact the hwinfo module",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "9369e894f6d9f103fe4a65b715ee8e3869000bed",
    "submitter": {
        "id": 2554,
        "url": "http://patches.dpdk.org/api/people/2554/?format=api",
        "name": "Chaoyong He",
        "email": "chaoyong.he@corigine.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/20230918024612.1600536-12-chaoyong.he@corigine.com/mbox/",
    "series": [
        {
            "id": 29531,
            "url": "http://patches.dpdk.org/api/series/29531/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29531",
            "date": "2023-09-18T02:45:46",
            "name": "refact the nfpcore module",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/29531/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/131545/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/131545/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C2FAB425C9;\n\tMon, 18 Sep 2023 04:48:51 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 11621410DD;\n\tMon, 18 Sep 2023 04:47:39 +0200 (CEST)",
            "from NAM12-MW2-obe.outbound.protection.outlook.com\n (mail-mw2nam12on2099.outbound.protection.outlook.com [40.107.244.99])\n by mails.dpdk.org (Postfix) with ESMTP id 8AE3D40DDB\n for <dev@dpdk.org>; Mon, 18 Sep 2023 04:47:32 +0200 (CEST)",
            "from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5)\n by PH7PR13MB6435.namprd13.prod.outlook.com (2603:10b6:510:2ea::9)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.26; Mon, 18 Sep\n 2023 02:47:31 +0000",
            "from SJ0PR13MB5545.namprd13.prod.outlook.com\n ([fe80::7a1c:2887:348a:84bd]) by SJ0PR13MB5545.namprd13.prod.outlook.com\n ([fe80::7a1c:2887:348a:84bd%6]) with mapi id 15.20.6792.026; Mon, 18 Sep 2023\n 02:47:31 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=DmU+rayMYQvn8kQQlTqIUYJ0m2ZVJmN8aUqQxh0BgRofhUQT5m0hKrAG5cY0+41nQ6j4eoUh06Y2kVaGSQmd0UuxVpeDSgAJIxAy0Ra1cgip7eHxtyUzvGExJ5v9RA3/PfqE8LNg9ru7xRwzWUl786pw9WurPN7x2WIzjsMYf1X+p46ZypN9CuMWoqF1mxTSMa7bOoJbNwVhk3ZXFQ5SsKNWhl761lkvtrgva7kOGz+wLZ92qjaink8azEw07z5Oz99wwu9zwv4nrAecCkYbw5HtoA8WwKhD8AVaJaQ/WGkz+zpuOLWnJtBS20QO91ok6Ab3GjwP+fWNg3vja8ZQMQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=MVplEs2sAk92yGMmVcIf5pLy07SQG2SerBo5PzMxvJ4=;\n b=mKLA1MGIr6THYj580BBtinbGpnLgKLG/LotLiYtjhUoC9SFX3fMCOAwXsNk3ABO6ME9zrOFSZy5vH+iYKIzn2Fh2KmebBsAfvmPzbF5t5xS63vd91WZZX2p+Bnyg9NlyUjB/lWuqov0UU9J7NVb3i6FHPulrxHGNgO8BMiyITjgwGBVKHmMY4NFqbIjOlEzHF8Csd0jgakKQjQyA370FcULuoSh75IP8sJBMBlUYPsnRYsQqm30Lb+COiw4oKY81O4aUa3qK3PZ1CiFdGsEvJUz0r6X7P4b1qhvxYqsQGDbJgw+kXMRHgVLRKSJanomqKfNEfh7eSSiXN+vI1kkh9Q==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com;\n dkim=pass header.d=corigine.com; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=MVplEs2sAk92yGMmVcIf5pLy07SQG2SerBo5PzMxvJ4=;\n b=srwRFZM7ECLYGp2vGBbXjFjf/P/bnbRTt1fAto8YyxEPkUaqHQhKvcAY1p6vjLRnYcuE6aQWAuTk7ZBVbN2DclctcPglY7ole9N/VmoaBtriPhFmmTeVh1oyhtRELOqZ83R2VducG9aFKXFDmpvDOU/Iyn9omkiSlDnElilf+lE=",
        "Authentication-Results": "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=corigine.com;",
        "From": "Chaoyong He <chaoyong.he@corigine.com>",
        "To": "dev@dpdk.org",
        "Cc": "Chaoyong He <chaoyong.he@corigine.com>,\n =?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@corigine.com>",
        "Subject": "[PATCH v4 11/26] net/nfp: refact the hwinfo module",
        "Date": "Mon, 18 Sep 2023 10:45:57 +0800",
        "Message-Id": "<20230918024612.1600536-12-chaoyong.he@corigine.com>",
        "X-Mailer": "git-send-email 2.39.1",
        "In-Reply-To": "<20230918024612.1600536-1-chaoyong.he@corigine.com>",
        "References": "<20230915091551.1459606-1-chaoyong.he@corigine.com>\n <20230918024612.1600536-1-chaoyong.he@corigine.com>",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-ClientProxiedBy": "SE2P216CA0016.KORP216.PROD.OUTLOOK.COM\n (2603:1096:101:114::20) To SJ0PR13MB5545.namprd13.prod.outlook.com\n (2603:10b6:a03:424::5)",
        "MIME-Version": "1.0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "SJ0PR13MB5545:EE_|PH7PR13MB6435:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "367c3d78-49eb-42e8-6de1-08dbb7f19a75",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n 8jRCmePA/0SVMf7rYOx4L1OwF+5EO6asp1YdVLGITcvN3zm3xgjAr5sb/BtzGiwh9gZSiWdUsHFS7h3zdzZYGcF5inhMfgrrV+ah7iJd6YcLDH+VmMgc6YpucEoW9cjVo9YMPxr0PhpytzRwp/DaXNb00DFDFPKayJFl8Wa/oX54UKv7i0KwhODH5Bom8llnniNsDx54iIgLzDpiKMJZVTnIboPX+7+EVVyZji8wzonb1fljVGOaY1OnrlXU426zn+0HKmBzIHd6oWKS34J4Wxnsm/PY/ZT7RAyamh8k0ewaz4hDslubybSfBTL0WClncE2NPEct/7po/FpJ74WlIeBu5ahZmKM/iuVeOg09XOH4ITUiZDeJ/2h8+W/PWGOvFooHcIl1XSu5BflHLSZdFbD3M8l2K7AVlcc/TEjULWeRdBBNKM9xOTAh4r7cTncWc3MGgkquaFkt0iUaML960gUg75qpFJ/CSJNSrmZnAHEXIM4dscw9zR2j7EMfm6rZ8XOebGIFP/sxnEQQNjX23g22PhXgnPdWY5la4m9dDEIj04EtojHJ8UBwQTEeh+xaisu4ak9yOEHu4kqK55835MjBDhsU1ZBHiYm4vh1zSMYr3gNgcK3ScU+NpdiCcHdpAiYLedaViUJ+ccrgwxj7DrwhlZH8ons0n98yApYrMLs=",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230031)(39830400003)(136003)(346002)(366004)(376002)(396003)(1800799009)(451199024)(186009)(54906003)(66476007)(66946007)(66574015)(41300700001)(6916009)(316002)(8676002)(4326008)(8936002)(52116002)(6506007)(6486002)(6512007)(478600001)(6666004)(83380400001)(26005)(1076003)(2616005)(107886003)(86362001)(2906002)(44832011)(38100700002)(38350700002)(5660300002)(36756003)(66556008);\n DIR:OUT; SFP:1102;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "=?utf-8?q?ZzJ46EgbAV1L5kPRCmEADgrWbwXj?=\n\t=?utf-8?q?UOdap0eF0a56EdWMvIUrJLaADg0dRp/pqXqLRXviiCueAHIS+SevP6auwubuJcPim?=\n\t=?utf-8?q?+JKMCUGn2P5SdXbm6wAvSylpAXlhflzgvTvvjxar+VCi0xw2tzTMnX2jlUGVXFuW/?=\n\t=?utf-8?q?yu+cX/BbF6J5gg/QnLBBNc+PbFU2Ac3bCX1RMDA6HHzGnb2HDEDVTdNkjHMFQaTiO?=\n\t=?utf-8?q?iIUH6A6eASJpoKp9DrdZY7OQrCwyXydyoyKWs+ZkOSDDWqNPt/pH1iWOv9scOkQSD?=\n\t=?utf-8?q?xnR7PLYzwmCQVvZfTZYRfYBzUvtFfim+mzlHXctlGHidliLyU7WpmYnggl/txQxtb?=\n\t=?utf-8?q?dlh+7XrnYI4HVQltI9FoIhVojZytFUZOST5ixEtgrdCCQcXD08eg6tUfXWZCWe1B8?=\n\t=?utf-8?q?o1tksOs0JesZ37ActJX5/RDZJpX0shx01K0BF47Q1SXNVSwCZhSbAu0C1BME8ltlm?=\n\t=?utf-8?q?zMV7Omjm3aDtVK1o1ztqen90yvhMyzkNG39yqVOxv2U+q8SypdEjx83jzsNDTyjoo?=\n\t=?utf-8?q?BAK2h/wp7rPgslvr3NmCvXENnKGffb8r5cdr/n2YF7WM2ZukRZOFaG+JOTkYp36WE?=\n\t=?utf-8?q?N7zEJBj7fjjn5AvRdVlfPQB0ttZ0jErkAuUXMJufh63z+nxDOz4yBnv3+8XDHubuQ?=\n\t=?utf-8?q?k5g8/usps3VTYPFAQZcK/nOo4eEu/fUNs92QY+uv+pxJaRHFsx0/fw4RUuGOrUEYQ?=\n\t=?utf-8?q?LXt6Q2cpIjoquv4twThYvQ4iwD+drQUOq8/jiTpK2l1IGpTeNSq07gjcsIw6KZxXb?=\n\t=?utf-8?q?HlwuJ/i6dtESnifESWEWej01fdmqxp4EaySZ+EZA7wKEmQsXfWHrIQKU2qpKfA+Sj?=\n\t=?utf-8?q?uXh9pnfPYpRAK7YfaHTyaNhkF3VjaXVicLIx3BPPVZtRpGU+k8WC7s4BMafSIPrkA?=\n\t=?utf-8?q?8NQDqC+Q2FuLHryzsNNd9W4F+UOf4WZGSklOu083rWUwuUekZ6I1EPU0hBNzSKKyM?=\n\t=?utf-8?q?A1MK9IuENGVA12CEsP2NK8oSpWh0C7QQG8gF73el360KZqb12pJ4oV6cAsIJQ1hIo?=\n\t=?utf-8?q?OOBqOJBmIXN4nxUM7tt8d7ZZoSDoMlw7ylXYHm/w2exHyczGRypVvqE33HNGkhxVp?=\n\t=?utf-8?q?Ihrh4Tl8HD8Nxj5wMVnHGWVA2+pb4hPNFwNH5ZCn3JyG4ZbD/GLvGbyBSF0t8nz04?=\n\t=?utf-8?q?FmtIShwEvBfEyvWFCs5lwSFSUd/a645bHZ7/QW8rHDJEiT15+6y++u2qSQfTfn/RF?=\n\t=?utf-8?q?/PlOiF3WHQ4sL9wJji5q2JfIx7C407T/0W+TtFiSjGb98UUg94oWA2/45/XRERNJY?=\n\t=?utf-8?q?wBkXyqZnb+OFylOpBDBT6CgLiJrjfvfy4I6wuh/KTP4Q/vQJOA4+wxuWVQ7IXQiVR?=\n\t=?utf-8?q?NqMEkntbCzUdcyfQuYvNXQnmAGRyoeWEJSM1eHB868x3DbrYVEY8LxWwkbczeZ7rR?=\n\t=?utf-8?q?8goKF8J/H9mbieq5gtbYh/WTkKrOPjw1WX7pPmGZQN4wC3AYUiXpFlO+yVM+JDTCi?=\n\t=?utf-8?q?6mKVPYv/11rngyB7QOWgcWywV8USquOvDGF4+OJ+QWO7QUJ+Tmxd1G/tQtHbBlD9e?=\n\t=?utf-8?q?u28q+KERzyXxAQ1wAynd4EAdRxLp1E5LtQ=3D=3D?=",
        "X-OriginatorOrg": "corigine.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 367c3d78-49eb-42e8-6de1-08dbb7f19a75",
        "X-MS-Exchange-CrossTenant-AuthSource": "SJ0PR13MB5545.namprd13.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "18 Sep 2023 02:47:31.1075 (UTC)",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Id": "fe128f2c-073b-4c20-818e-7246a585940c",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n eoTivIpWqvzQERjh+OwNYg3rYON4D4O/4cdjqxLsZgDioCOBuHHdRf41YSZ5Evgs0/Yhq08UfJaGsxtZCdhk5gsviYCXg+7QAGtd9NqgOlQ=",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PH7PR13MB6435",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Move the definition of data structure and macro into the implement file.\nAlso remove the unneeded header file include statements.\n\nSigned-off-by: Chaoyong He <chaoyong.he@corigine.com>\nReviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>\n---\n drivers/net/nfp/nfpcore/nfp_hwinfo.c | 84 +++++++++++++++++++++++++---\n drivers/net/nfp/nfpcore/nfp_hwinfo.h | 71 +----------------------\n 2 files changed, 77 insertions(+), 78 deletions(-)",
    "diff": "diff --git a/drivers/net/nfp/nfpcore/nfp_hwinfo.c b/drivers/net/nfp/nfpcore/nfp_hwinfo.c\nindex e33e660ea9..c334202bd7 100644\n--- a/drivers/net/nfp/nfpcore/nfp_hwinfo.c\n+++ b/drivers/net/nfp/nfpcore/nfp_hwinfo.c\n@@ -17,17 +17,82 @@\n  *   (ie, in this example, ME 39 has been reserved by boardconfig.)\n  */\n \n-#include <stdio.h>\n-#include <time.h>\n+#include \"nfp_hwinfo.h\"\n \n-#include \"nfp_cpp.h\"\n+#include \"nfp_crc.h\"\n #include \"nfp_logs.h\"\n-#include \"nfp6000/nfp6000.h\"\n #include \"nfp_resource.h\"\n-#include \"nfp_hwinfo.h\"\n-#include \"nfp_crc.h\"\n \n-static int\n+#define HWINFO_SIZE_MIN    0x100\n+\n+/*\n+ * The Hardware Info Table defines the properties of the system.\n+ *\n+ * HWInfo v1 Table (fixed size)\n+ *\n+ * 0x0000: uint32_t version        Hardware Info Table version (1.0)\n+ * 0x0004: uint32_t size           Total size of the table, including the\n+ *                                     CRC32 (IEEE 802.3)\n+ * 0x0008: uint32_t jumptab        Offset of key/value table\n+ * 0x000c: uint32_t keys           Total number of keys in the key/value table\n+ * NNNNNN:                         Key/value jump table and string data\n+ * (size - 4): uint32_t crc32      CRC32 (same as IEEE 802.3, POSIX csum, etc)\n+ *                                     CRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n+ *\n+ * HWInfo v2 Table (variable size)\n+ *\n+ * 0x0000: uint32_t version        Hardware Info Table version (2.0)\n+ * 0x0004: uint32_t size           Current size of the data area, excluding CRC32\n+ * 0x0008: uint32_t limit          Maximum size of the table\n+ * 0x000c: uint32_t reserved       Unused, set to zero\n+ * NNNNNN:                         Key/value data\n+ * (size - 4): uint32_t crc32      CRC32 (same as IEEE 802.3, POSIX csum, etc)\n+ *                                     CRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n+ *\n+ * If the HWInfo table is in the process of being updated, the low bit of\n+ * version will be set.\n+ *\n+ * HWInfo v1 Key/Value Table\n+ * -------------------------\n+ *\n+ *  The key/value table is a set of offsets to ASCIIZ strings which have\n+ *  been strcmp(3) sorted (yes, please use bsearch(3) on the table).\n+ *\n+ *  All keys are guaranteed to be unique.\n+ *\n+ * N+0: uint32_t key_1        Offset to the first key\n+ * N+4: uint32_t val_1        Offset to the first value\n+ * N+8: uint32_t key_2        Offset to the second key\n+ * N+c: uint32_t val_2        Offset to the second value\n+ * ...\n+ *\n+ * HWInfo v2 Key/Value Table\n+ * -------------------------\n+ *\n+ * Packed UTF8Z strings, ie 'key1\\000value1\\000key2\\000value2\\000'\n+ * Unsorted.\n+ *\n+ * Note: Only the HwInfo v2 Table be supported now.\n+ */\n+\n+#define NFP_HWINFO_VERSION_1 ('H' << 24 | 'I' << 16 | 1 << 8 | 0 << 1 | 0)\n+#define NFP_HWINFO_VERSION_2 ('H' << 24 | 'I' << 16 | 2 << 8 | 0 << 1 | 0)\n+#define NFP_HWINFO_VERSION_UPDATING    RTE_BIT32(0)\n+\n+struct nfp_hwinfo {\n+\tuint8_t start[0];\n+\n+\tuint32_t version;\n+\tuint32_t size;\n+\n+\t/* V2 specific fields */\n+\tuint32_t limit;\n+\tuint32_t resv;\n+\n+\tchar data[];\n+};\n+\n+static bool\n nfp_hwinfo_is_updating(struct nfp_hwinfo *hwinfo)\n {\n \treturn hwinfo->version & NFP_HWINFO_VERSION_UPDATING;\n@@ -120,7 +185,7 @@ nfp_hwinfo_try_fetch(struct nfp_cpp *cpp,\n \t\tgoto exit_free;\n \t}\n \n-\theader = (void *)db;\n+\theader = (struct nfp_hwinfo *)db;\n \tif (nfp_hwinfo_is_updating(header))\n \t\tgoto exit_free;\n \n@@ -133,7 +198,8 @@ nfp_hwinfo_try_fetch(struct nfp_cpp *cpp,\n \t/* NULL-terminate for safety */\n \tdb[*cpp_size] = '\\0';\n \n-\treturn (void *)db;\n+\treturn (struct nfp_hwinfo *)db;\n+\n exit_free:\n \tfree(db);\n \treturn NULL;\ndiff --git a/drivers/net/nfp/nfpcore/nfp_hwinfo.h b/drivers/net/nfp/nfpcore/nfp_hwinfo.h\nindex 543562779a..c812f10076 100644\n--- a/drivers/net/nfp/nfpcore/nfp_hwinfo.h\n+++ b/drivers/net/nfp/nfpcore/nfp_hwinfo.h\n@@ -6,76 +6,9 @@\n #ifndef __NFP_HWINFO_H__\n #define __NFP_HWINFO_H__\n \n-#include <inttypes.h>\n+#include \"nfp_cpp.h\"\n \n-#define HWINFO_SIZE_MIN    0x100\n-\n-/*\n- * The Hardware Info Table defines the properties of the system.\n- *\n- * HWInfo v1 Table (fixed size)\n- *\n- * 0x0000: uint32_t version        Hardware Info Table version (1.0)\n- * 0x0004: uint32_t size           Total size of the table, including the\n- *                                     CRC32 (IEEE 802.3)\n- * 0x0008: uint32_t jumptab        Offset of key/value table\n- * 0x000c: uint32_t keys           Total number of keys in the key/value table\n- * NNNNNN:                         Key/value jump table and string data\n- * (size - 4): uint32_t crc32      CRC32 (same as IEEE 802.3, POSIX csum, etc)\n- *                                     CRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n- *\n- * HWInfo v2 Table (variable size)\n- *\n- * 0x0000: uint32_t version        Hardware Info Table version (2.0)\n- * 0x0004: uint32_t size           Current size of the data area, excluding CRC32\n- * 0x0008: uint32_t limit          Maximum size of the table\n- * 0x000c: uint32_t reserved       Unused, set to zero\n- * NNNNNN:                         Key/value data\n- * (size - 4): uint32_t crc32      CRC32 (same as IEEE 802.3, POSIX csum, etc)\n- *                                     CRC32(\"\",0) = ~0, CRC32(\"a\",1) = 0x48C279FE\n- *\n- * If the HWInfo table is in the process of being updated, the low bit of\n- * version will be set.\n- *\n- * HWInfo v1 Key/Value Table\n- * -------------------------\n- *\n- *  The key/value table is a set of offsets to ASCIIZ strings which have\n- *  been strcmp(3) sorted (yes, please use bsearch(3) on the table).\n- *\n- *  All keys are guaranteed to be unique.\n- *\n- * N+0: uint32_t key_1        Offset to the first key\n- * N+4: uint32_t val_1        Offset to the first value\n- * N+8: uint32_t key_2        Offset to the second key\n- * N+c: uint32_t val_2        Offset to the second value\n- * ...\n- *\n- * HWInfo v2 Key/Value Table\n- * -------------------------\n- *\n- * Packed UTF8Z strings, ie 'key1\\000value1\\000key2\\000value2\\000'\n- * Unsorted.\n- *\n- * Note: Only the HwInfo v2 Table be supported now.\n- */\n-\n-#define NFP_HWINFO_VERSION_1 ('H' << 24 | 'I' << 16 | 1 << 8 | 0 << 1 | 0)\n-#define NFP_HWINFO_VERSION_2 ('H' << 24 | 'I' << 16 | 2 << 8 | 0 << 1 | 0)\n-#define NFP_HWINFO_VERSION_UPDATING    RTE_BIT32(0)\n-\n-struct nfp_hwinfo {\n-\tuint8_t start[0];\n-\n-\tuint32_t version;\n-\tuint32_t size;\n-\n-\t/* v2 specific fields */\n-\tuint32_t limit;\n-\tuint32_t resv;\n-\n-\tchar data[];\n-};\n+struct nfp_hwinfo;\n \n struct nfp_hwinfo *nfp_hwinfo_read(struct nfp_cpp *cpp);\n \n",
    "prefixes": [
        "v4",
        "11/26"
    ]
}