mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-20 14:29:22 +00:00

Given compatibility issues with external PNVM data that doesn't match the firmware it was designed with/for, future firmware releases will include the PNVM data in the firmware files directly, avoiding those mismatch issues. Make the driver load and use that embedded PNVM data in preference of external files, falling back to the external file if it isn't present. Co-developed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250709081300.c843f77aa2d3.I7200f8dd40ef82aff1f5574fdd3966913cda592c@changeid
30 lines
698 B
C
30 lines
698 B
C
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
/*
|
|
* Copyright(c) 2020-2023, 2025 Intel Corporation
|
|
*/
|
|
#ifndef __IWL_PNVM_H__
|
|
#define __IWL_PNVM_H__
|
|
|
|
#include "iwl-drv.h"
|
|
#include "fw/notif-wait.h"
|
|
#include "fw/img.h"
|
|
|
|
#define MVM_UCODE_PNVM_TIMEOUT (HZ / 4)
|
|
|
|
#define MAX_PNVM_NAME 64
|
|
|
|
int iwl_pnvm_load(struct iwl_trans *trans,
|
|
struct iwl_notif_wait_data *notif_wait,
|
|
const struct iwl_fw *fw, __le32 sku_id[3]);
|
|
|
|
static inline
|
|
void iwl_pnvm_get_fs_name(struct iwl_trans *trans,
|
|
u8 *pnvm_name, size_t max_len)
|
|
{
|
|
char _fw_name_pre[FW_NAME_PRE_BUFSIZE];
|
|
|
|
snprintf(pnvm_name, max_len, "%s.pnvm",
|
|
iwl_drv_get_fwname_pre(trans, _fw_name_pre));
|
|
}
|
|
|
|
#endif /* __IWL_PNVM_H__ */
|