6b5bc77c9b
Stefan thinks they don't add value. Command used: sed -i -e '/file is part of /d' $(git grep "file is part of " |egrep ":( */\*.*\*/\$|#|;#|-- | *\* )" | cut -d: -f1 |grep -v crossgcc |grep -v gcov | grep -v /elf.h |grep -v nvramtool) The exceptions are for: - crossgcc (patch file) - gcov (imported from gcc) - elf.h (imported from GNU's libc) - nvramtool (more complicated header) The removed lines are: - fmt.Fprintln(f, "/* This file is part of the coreboot project. */") -# This file is part of a set of unofficial pre-commit hooks available -/* This file is part of coreboot */ -# This file is part of msrtool. -/* This file is part of msrtool. */ - * This file is part of ncurses, designed to be appended after curses.h.in -/* This file is part of pgtblgen. */ - * This file is part of the coreboot project. - /* This file is part of the coreboot project. */ -# This file is part of the coreboot project. -# This file is part of the coreboot project. -## This file is part of the coreboot project. --- This file is part of the coreboot project. -/* This file is part of the coreboot project */ -/* This file is part of the coreboot project. */ -;## This file is part of the coreboot project. -# This file is part of the coreboot project. It originated in the - * This file is part of the coreinfo project. -## This file is part of the coreinfo project. - * This file is part of the depthcharge project. -/* This file is part of the depthcharge project. */ -/* This file is part of the ectool project. */ - * This file is part of the GNU C Library. - * This file is part of the libpayload project. -## This file is part of the libpayload project. -/* This file is part of the Linux kernel. */ -## This file is part of the superiotool project. -/* This file is part of the superiotool project */ -/* This file is part of uio_usbdebug */ Change-Id: I82d872b3b337388c93d5f5bf704e9ee9e53ab3a9 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41194 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _SAR_H_
|
|
#define _SAR_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#define NUM_SAR_LIMITS 4
|
|
#define BYTES_PER_SAR_LIMIT 10
|
|
enum {
|
|
SAR_FCC,
|
|
SAR_EUROPE_JAPAN,
|
|
SAR_REST_OF_WORLD,
|
|
SAR_NUM_WGDS_GROUPS
|
|
};
|
|
|
|
struct wifi_sar_delta_table {
|
|
uint8_t version;
|
|
struct {
|
|
uint8_t power_max_2400mhz;
|
|
uint8_t power_chain_a_2400mhz;
|
|
uint8_t power_chain_b_2400mhz;
|
|
uint8_t power_max_5200mhz;
|
|
uint8_t power_chain_a_5200mhz;
|
|
uint8_t power_chain_b_5200mhz;
|
|
} __packed group[SAR_NUM_WGDS_GROUPS];
|
|
} __packed;
|
|
|
|
/* Wifi SAR limit table structure */
|
|
struct wifi_sar_limits {
|
|
/* Total 4 SAR limit sets, each has 10 bytes */
|
|
uint8_t sar_limit[NUM_SAR_LIMITS][BYTES_PER_SAR_LIMIT];
|
|
struct wifi_sar_delta_table wgds;
|
|
} __packed;
|
|
|
|
/*
|
|
* Retrieve the SAR limits data from VPD and decode it.
|
|
* sar_limits: Pointer to wifi_sar_limits where the resulted data is stored
|
|
*
|
|
* Returns: 0 on success, -1 on errors (The VPD entry doesn't exist, or the
|
|
* VPD entry contains non-heximal value.)
|
|
*/
|
|
int get_wifi_sar_limits(struct wifi_sar_limits *sar_limits);
|
|
|
|
const char *get_wifi_sar_cbfs_filename(void);
|
|
|
|
#endif /* _SAR_H_ */
|