/* SPDX-License-Identifier: GPL-2.0-only */ /**************************************************************************** * Driver for AMD network controllers and boards * Copyright (C) 2025, Advanced Micro Devices, Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation, incorporated herein by reference.
*/
/* Header layouts of firmware update images recognised by Efx NICs. * The sources-of-truth for these layouts are AMD internal documents * and sfregistry headers, neither of which are available externally * nor usable directly by the driver. * * While each format includes a 'magic number', these are at different * offsets in the various formats, and a legal header for one format * could have the right value in whichever field occupies that offset * to match another format's magic. * Besides, some packaging formats (such as CMS/PKCS#7 signed images) * prepend a header for which finding the size is a non-trivial task; * rather than trying to parse those headers, we search byte-by-byte * through the provided firmware image looking for a valid header. * Thus, format recognition has to include validation of the checksum * field, even though the firmware will validate that itself before * applying the image.
*/
/* EF10 (Medford2, X2) "reflash" header format. Defined in SF-121352-AN */ #define EFX_REFLASH_HEADER_MAGIC_OFST 0 #define EFX_REFLASH_HEADER_MAGIC_LEN 4 #define EFX_REFLASH_HEADER_MAGIC_VALUE 0x106F1A5
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.