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>
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef _INTEL_I210_H_
|
|
#define _INTEL_I210_H_
|
|
|
|
#include <types.h>
|
|
#include <device/device.h>
|
|
|
|
#define I210_PCI_MEM_BAR_OFFSET 0x10
|
|
#define I210_REG_EECTRL 0x12010 /* Offset for EEPROM control reg */
|
|
#define I210_FLUPD 0x800000 /* Start flash update bit */
|
|
#define I210_FLUDONE 0x4000000 /* Flash update done indicator */
|
|
#define I210_REG_EEREAD 0x12014 /* Offset for EEPROM read reg */
|
|
#define I210_REG_EEWRITE 0x12018 /* Offset for EEPROM write reg */
|
|
#define I210_CMDV 0x01 /* command valid bit */
|
|
#define I210_DONE 0x02 /* command done bit */
|
|
#define I210_TARGET_CHECKSUM 0xBABA /* resulting checksum */
|
|
|
|
|
|
/*define some other useful values here */
|
|
#define I210_POLL_TIMEOUT_US 300000 /* 300 ms */
|
|
/*Define some error states here*/
|
|
#define I210_SUCCESS 0x00000000
|
|
#define I210_INVALID_PARAM 0x00000001
|
|
#define I210_NOT_READY 0x00000002
|
|
#define I210_READ_ERROR 0x00000004
|
|
#define I210_WRITE_ERROR 0x00000008
|
|
#define I210_CHECKSUM_ERROR 0x00000010
|
|
#define I210_FLASH_UPDATE_ERROR 0x00000020
|
|
|
|
/* We need one function we can call to get a MAC address to use */
|
|
/* This function can be coded somewhere else but must exist. */
|
|
extern enum cb_err mainboard_get_mac_address(struct device *dev,
|
|
uint8_t mac[6]);
|
|
|
|
#endif /* _INTEL_I210_H_ */
|