sfc: add bundle partition definitions to mtd
authorPaul Fox <pfox@solarflare.com>
Fri, 8 Feb 2019 16:25:37 +0000 (16:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 19:41:21 +0000 (11:41 -0800)
Signed-off-by: Paul Fox <pfox@solarflare.com>
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/mcdi_pcol.h

index 6062e99fa69b52dfd379c92713563063d48aa3ef..bc92d73047c63fd9c0396f8bf15adbced0c70e04 100644 (file)
@@ -6046,6 +6046,8 @@ static const struct efx_ef10_nvram_type_info efx_ef10_nvram_types[] = {
        { NVRAM_PARTITION_TYPE_DYNCONFIG_DEFAULTS, 0,    0, "sfc_dynamic_cfg_dflt" },
        { NVRAM_PARTITION_TYPE_ROMCONFIG_DEFAULTS, 0,    0, "sfc_exp_rom_cfg_dflt" },
        { NVRAM_PARTITION_TYPE_STATUS,             0,    0, "sfc_status" },
+       { NVRAM_PARTITION_TYPE_BUNDLE,             0,    0, "sfc_bundle" },
+       { NVRAM_PARTITION_TYPE_BUNDLE_METADATA,    0,    0, "sfc_bundle_metadata" },
 };
 #define EF10_NVRAM_PARTITION_COUNT     ARRAY_SIZE(efx_ef10_nvram_types)
 
index 3839eec783eaa94b0241dcb93d3f8b6f8acdbd5c..20a5523bf9f3f11ef930d59b4734361241f62908 100644 (file)
  * subset of the information stored in this partition.
  */
 #define          NVRAM_PARTITION_TYPE_FRU_INFORMATION 0x1d00
+/* enum: Bundle image partition */
+#define          NVRAM_PARTITION_TYPE_BUNDLE 0x1e00
+/* enum: Bundle metadata partition that holds additional information related to
+ * a bundle update in TLV format
+ */
+#define          NVRAM_PARTITION_TYPE_BUNDLE_METADATA 0x1e01
+/* enum: Bundle update non-volatile log output partition */
+#define          NVRAM_PARTITION_TYPE_BUNDLE_LOG 0x1e02
 /* enum: Start of reserved value range (firmware may use for any purpose) */
 #define          NVRAM_PARTITION_TYPE_RESERVED_VALUES_MIN 0xff00
 /* enum: End of reserved value range (firmware may use for any purpose) */