1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright(c) 2021 Intel Corporation
7 #define IWL_UEFI_OEM_PNVM_NAME L"UefiCnvWlanOemSignedPnvm"
8 #define IWL_UEFI_REDUCED_POWER_NAME L"UefiCnvWlanReducedPower"
11 * TODO: we have these hardcoded values that the caller must pass,
12 * because reading from the UEFI is not working. To implement this
13 * properly, we have to change iwl_pnvm_get_from_uefi() to call
14 * efivar_entry_size() and return the value to the caller instead.
16 #define IWL_HARDCODED_PNVM_SIZE 4096
17 #define IWL_HARDCODED_REDUCE_POWER_SIZE 32768
19 struct pnvm_sku_package {
28 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len);
29 void *iwl_uefi_get_reduced_power(struct iwl_trans *trans, size_t *len);
30 #else /* CONFIG_EFI */
32 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len)
34 return ERR_PTR(-EOPNOTSUPP);
38 void *iwl_uefi_get_reduced_power(struct iwl_trans *trans, size_t *len)
40 return ERR_PTR(-EOPNOTSUPP);
42 #endif /* CONFIG_EFI */