From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 9AF31A0495 for ; Mon, 10 Jun 2019 09:39:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 643441BEBF; Mon, 10 Jun 2019 09:39:09 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 5EEC41BE8D for ; Mon, 10 Jun 2019 09:38:55 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us5.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 640A24C005C for ; Mon, 10 Jun 2019 07:38:54 +0000 (UTC) Received: from ocex03.SolarFlarecom.com (10.20.40.36) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Jun 2019 00:38:51 -0700 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Mon, 10 Jun 2019 00:38:50 -0700 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id x5A7cnn3008788; Mon, 10 Jun 2019 08:38:49 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id 7AB131627D7; Mon, 10 Jun 2019 08:38:49 +0100 (BST) From: Andrew Rybchenko To: CC: Richard Houldsworth Date: Mon, 10 Jun 2019 08:38:26 +0100 Message-ID: <1560152324-20538-12-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1560152324-20538-1-git-send-email-arybchenko@solarflare.com> References: <1560152324-20538-1-git-send-email-arybchenko@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24664.003 X-TM-AS-Result: No-4.695300-4.000000-10 X-TMASE-MatchedRID: Ct+L/ED3UzVSQAJO4/Vvl5K9FvwQx1hFOYqKF7UrYh6SyECgVwbfJMiT Wug2C4DN3iuNqik9NLw4W+N9H6fQd7hYaHW9RIv/PwKTD1v8YV5MkOX0UoduuZGPHiE2kiT4Z5p Ygzoki0NDTUbFVd10y2ot5jqfB7MdzUHrQRRsUpTI89FT1JwQNToSfZud5+GgBwZ0IMCNOMHZsb gJ37Uwzl9zhkBpVopL1Z0VkdZfLFAXnK5MrdSNuWhCG8qMW+KyETMx8OI4obkkt9BigJAcVk2H2 hj9iI2t/TDmnmKsnf2UQcqvfMEFHcUveZMWQdDNFbKwWxrWVSS5dNVYoHBdlICkDslkIH/fAtML ROlkZ1VpHtl+Co/KA2eAkb4JC+jKGAdnzrnkM48URSScn+QSXt0H8LFZNFG76sBnwpOylLPzbvJ ulcdJoKdgUwclEnrHGDTzXs9aME7lRvTVAOOeJconPhz9M9DFmTTBUkJGRRFGzNLy51pZoVk+NQ T0nGWT8dRNpbECsY0PXLxHfxLeXVRHOSKs7RDUXmH0pBaurgG+4xOvsJAknn7cGd19dSFd X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--4.695300-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24664.003 X-MDID: 1560152335-HeMwmNy4NLtD Subject: [dpdk-dev] [PATCH 11/29] net/sfc/base: add firmware ID header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Richard Houldsworth Add definitions header for reflash header IDs. This is required to support different handling modes for signed firmware images. Signed-off-by: Richard Houldsworth Signed-off-by: Andrew Rybchenko --- drivers/net/sfc/base/ef10_firmware_ids.h | 184 +++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 drivers/net/sfc/base/ef10_firmware_ids.h diff --git a/drivers/net/sfc/base/ef10_firmware_ids.h b/drivers/net/sfc/base/ef10_firmware_ids.h new file mode 100644 index 0000000..82c31c6 --- /dev/null +++ b/drivers/net/sfc/base/ef10_firmware_ids.h @@ -0,0 +1,184 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (c) 2012-2018 Solarflare Communications Inc. + * All rights reserved. + */ + +/* + * This is NOT the original source file. Do NOT edit it. + * To update the board and firmware ids, please edit the copy in + * the sfregistry repo and then, in that repo, + * "make id_headers" or "make export" to + * regenerate and export all types of headers. + */ + +#ifndef CI_MGMT_FIRMWARE_IDS_H +#define CI_MGMT_FIRMWARE_IDS_H + +/* Reference: SF-103588-PS + * + * This header file is the input for v5s/scripts/genfwdef. So if you touch it, + * ensure that v5/scripts/genfwdef still works. + */ + +enum { + FIRMWARE_TYPE_PHY = 0, + FIRMWARE_TYPE_PHY_LOADER = 1, + FIRMWARE_TYPE_BOOTROM = 2, + FIRMWARE_TYPE_MCFW = 3, + FIRMWARE_TYPE_MCFW_BACKUP = 4, + FIRMWARE_TYPE_DISABLED_CALLISTO = 5, + FIRMWARE_TYPE_FPGA = 6, + FIRMWARE_TYPE_FPGA_BACKUP = 7, + FIRMWARE_TYPE_FCFW = 8, + FIRMWARE_TYPE_FCFW_BACKUP = 9, + FIRMWARE_TYPE_CPLD = 10, + FIRMWARE_TYPE_MUMFW = 11, + FIRMWARE_TYPE_UEFIROM = 12, + FIRMWARE_TYPE_BUNDLE = 13, + FIRMWARE_TYPE_CMCFW = 14, +}; + +enum { + FIRMWARE_PHY_SUBTYPE_SFX7101B = 0x3, + FIRMWARE_PHY_SUBTYPE_SFT9001A = 0x8, + FIRMWARE_PHY_SUBTYPE_QT2025C = 0x9, + FIRMWARE_PHY_SUBTYPE_SFT9001B = 0xa, + FIRMWARE_PHY_SUBTYPE_SFL9021 = 0x10, /* used for loader only */ + FIRMWARE_PHY_SUBTYPE_QT2025_KR = 0x11, /* QT2025 in KR rather than SFP+ mode */ + FIRMWARE_PHY_SUBTYPE_AEL3020 = 0x12, /* As seen on the R2 HP blade NIC */ +}; + +enum { + FIRMWARE_BOOTROM_SUBTYPE_FALCON = 0, + FIRMWARE_BOOTROM_SUBTYPE_BETHPAGE = 1, + FIRMWARE_BOOTROM_SUBTYPE_SIENA = 2, + FIRMWARE_BOOTROM_SUBTYPE_HUNTINGTON = 3, + FIRMWARE_BOOTROM_SUBTYPE_FARMINGDALE = 4, + FIRMWARE_BOOTROM_SUBTYPE_GREENPORT = 5, + FIRMWARE_BOOTROM_SUBTYPE_MEDFORD = 6, + FIRMWARE_BOOTROM_SUBTYPE_MEDFORD2 = 7, + FIRMWARE_BOOTROM_SUBTYPE_RIVERHEAD = 8, +}; + +enum { + FIRMWARE_MCFW_SUBTYPE_COSIM = 0, + FIRMWARE_MCFW_SUBTYPE_HALFSPEED = 6, + FIRMWARE_MCFW_SUBTYPE_FLORENCE = 7, + FIRMWARE_MCFW_SUBTYPE_ZEBEDEE = 8, + FIRMWARE_MCFW_SUBTYPE_ERMINTRUDE = 9, + FIRMWARE_MCFW_SUBTYPE_DYLAN = 10, + FIRMWARE_MCFW_SUBTYPE_BRIAN = 11, + FIRMWARE_MCFW_SUBTYPE_DOUGAL = 12, + FIRMWARE_MCFW_SUBTYPE_MR_RUSTY = 13, + FIRMWARE_MCFW_SUBTYPE_BUXTON = 14, + FIRMWARE_MCFW_SUBTYPE_HOPE = 15, + FIRMWARE_MCFW_SUBTYPE_MR_MCHENRY = 16, + FIRMWARE_MCFW_SUBTYPE_UNCLE_HAMISH = 17, + FIRMWARE_MCFW_SUBTYPE_TUTTLE = 18, + FIRMWARE_MCFW_SUBTYPE_FINLAY = 19, + FIRMWARE_MCFW_SUBTYPE_KAPTEYN = 20, + FIRMWARE_MCFW_SUBTYPE_JOHNSON = 21, + FIRMWARE_MCFW_SUBTYPE_GEHRELS = 22, + FIRMWARE_MCFW_SUBTYPE_WHIPPLE = 23, + FIRMWARE_MCFW_SUBTYPE_FORBES = 24, + FIRMWARE_MCFW_SUBTYPE_LONGMORE = 25, + FIRMWARE_MCFW_SUBTYPE_HERSCHEL = 26, + FIRMWARE_MCFW_SUBTYPE_SHOEMAKER = 27, + FIRMWARE_MCFW_SUBTYPE_IKEYA = 28, + FIRMWARE_MCFW_SUBTYPE_KOWALSKI = 29, + FIRMWARE_MCFW_SUBTYPE_NIMRUD = 30, + FIRMWARE_MCFW_SUBTYPE_SPARTA = 31, + FIRMWARE_MCFW_SUBTYPE_THEBES = 32, + FIRMWARE_MCFW_SUBTYPE_ICARUS = 33, + FIRMWARE_MCFW_SUBTYPE_JERICHO = 34, + FIRMWARE_MCFW_SUBTYPE_BYBLOS = 35, + FIRMWARE_MCFW_SUBTYPE_GROAT = 36, + FIRMWARE_MCFW_SUBTYPE_SHILLING = 37, + FIRMWARE_MCFW_SUBTYPE_FLORIN = 38, + FIRMWARE_MCFW_SUBTYPE_THREEPENCE = 39, + FIRMWARE_MCFW_SUBTYPE_CYCLOPS = 40, + FIRMWARE_MCFW_SUBTYPE_PENNY = 41, + FIRMWARE_MCFW_SUBTYPE_BOB = 42, + FIRMWARE_MCFW_SUBTYPE_HOG = 43, + FIRMWARE_MCFW_SUBTYPE_SOVEREIGN = 44, + FIRMWARE_MCFW_SUBTYPE_SOLIDUS = 45, + FIRMWARE_MCFW_SUBTYPE_SIXPENCE = 46, + FIRMWARE_MCFW_SUBTYPE_CROWN = 47, + FIRMWARE_MCFW_SUBTYPE_SOL = 48, + FIRMWARE_MCFW_SUBTYPE_TANNER = 49, + FIRMWARE_MCFW_SUBTYPE_BELUGA = 64, + FIRMWARE_MCFW_SUBTYPE_KALUGA = 65, +}; + +enum { + FIRMWARE_DISABLED_CALLISTO_SUBTYPE_ALL = 0 +}; + +enum { + FIRMWARE_FPGA_SUBTYPE_PTP = 1, /* PTP peripheral */ + FIRMWARE_FPGA_SUBTYPE_PTP_MR_MCHENRY = 2, /* PTP peripheral on R7 boards */ + FIRMWARE_FPGA_SUBTYPE_FLORENCE = 3, /* Modena FPGA */ + FIRMWARE_FPGA_SUBTYPE_UNCLE_HAMISH = 4, /* Modena FPGA: Unknown silicon */ + FIRMWARE_FPGA_SUBTYPE_UNCLE_HAMISH_A7 = 5, /* Modena FPGA: A7 silicon */ + FIRMWARE_FPGA_SUBTYPE_UNCLE_HAMISH_A5 = 6, /* Modena FPGA: A5 silicon */ + FIRMWARE_FPGA_SUBTYPE_SHOEMAKER = 7, /* Sorrento FPGA: Unknown silicon */ + FIRMWARE_FPGA_SUBTYPE_SHOEMAKER_A5 = 8, /* Sorrento FPGA: A5 silicon */ + FIRMWARE_FPGA_SUBTYPE_SHOEMAKER_A7 = 9, /* Sorrento FPGA: A7 silicon */ +}; + +enum { + FIRMWARE_FCFW_SUBTYPE_MODENA = 1, + FIRMWARE_FCFW_SUBTYPE_SORRENTO = 2, +}; + +enum { + FIRMWARE_CPLD_SUBTYPE_SFA6902 = 1, /* CPLD on Modena (2-port) */ +}; + +enum { + FIRMWARE_LICENSE_SUBTYPE_AOE = 1, /* AOE */ +}; + +enum { + FIRMWARE_MUMFW_SUBTYPE_MADAM_BLUE = 1, /* Sorrento MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_ICARUS = 2, /* Malaga MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_JERICHO = 3, /* Emma MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_BYBLOS = 4, /* Pagnell MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_SHILLING = 5, /* Bradford R1.x MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_FLORIN = 6, /* Bingley MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_THREEPENCE = 7, /* Baildon MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_CYCLOPS = 8, /* Talbot MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_PENNY = 9, /* Batley MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_BOB = 10, /* Bradford R2.x MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_HOG = 11, /* Roxburgh MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_SOVEREIGN = 12, /* Stirling MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_SOLIDUS = 13, /* Roxburgh R2 MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_SIXPENCE = 14, /* Melrose MUM firmware for Dell cards */ + FIRMWARE_MUMFW_SUBTYPE_CROWN = 15, /* Coldstream MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_SOL = 16, /* Roxburgh R2 MUM firmware for Dell cards with signed-bundle-update */ + FIRMWARE_MUMFW_SUBTYPE_KALUGA = 17, /* York MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_STERLET = 18, /* Bourn MUM firmware */ + FIRMWARE_MUMFW_SUBTYPE_TANNER = 19, /* Melrose MUM firmware for channel cards */ + +}; + + +#define FIRMWARE_UEFIROM_SUBTYPE_ALL FIRMWARE_UEFIROM_SUBTYPE_EF10 +enum { + FIRMWARE_UEFIROM_SUBTYPE_EF10 = 0, +}; + +enum { + FIRMWARE_BUNDLE_SUBTYPE_DELL_X2522_25G = 1, /* X2522-25G for Dell with bundle update support */ + FIRMWARE_BUNDLE_SUBTYPE_X2552 = 2, /* X2552 OCP NIC - firmware bundle */ + FIRMWARE_BUNDLE_SUBTYPE_DELL_X2562 = 3, /* X2562 OCP NIC for Dell - firmware bundle */ + FIRMWARE_BUNDLE_SUBTYPE_X2562 = 4, /* X2562 OCP NIC - firmware bundle */ +}; + +enum { + FIRMWARE_CMCFW_SUBTYPE_BELUGA = 1, /* Riverhead VCU1525 CMC firmware */ + FIRMWARE_CMCFW_SUBTYPE_KALUGA = 2, /* York (X3x42) board CMC firmware */ +}; + +#endif -- 1.8.3.1