inteltool: #include <commonlib/helpers.h>

Change-Id: I66a243486a347313103ffd2cb2ca0447228e4054
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/19586
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Nico Huber 2017-04-05 17:30:20 +02:00 committed by Stefan Reinauer
parent c269211149
commit af83db2659
2 changed files with 5 additions and 3 deletions

View File

@ -17,10 +17,12 @@
PROGRAM = inteltool
top ?= $(abspath ../..)
CC ?= gcc
INSTALL ?= /usr/bin/install
PREFIX ?= /usr/local
CFLAGS ?= -O2 -g -Wall -W
CFLAGS ?= -O2 -g -Wall -W -I$(top)/src/commonlib/include
LDFLAGS += -lpci -lz
OBJS = inteltool.o cpu.o gpio.o rootcmplx.o powermgt.o memory.o pcie.o amb.o ivy_memory.o spi.o gfx.o ahci.o

View File

@ -14,6 +14,8 @@
* GNU General Public License for more details.
*/
#include <commonlib/helpers.h>
#include <stdint.h>
#if defined(__GLIBC__)
@ -208,8 +210,6 @@ static inline uint32_t inl(unsigned port)
#define PCI_DEVICE_ID_INTEL_CORE_5TH_GEN_U 0x1604 /* Broadwell-ULT */
#define PCI_DEVICE_ID_INTEL_CORE_6TH_GEN_WST 0x1918
#define ARRAY_SIZE(a) ((int)(sizeof(a) / sizeof((a)[0])))
#if !defined(__DARWIN__) && !defined(__FreeBSD__)
typedef struct { uint32_t hi, lo; } msr_t;
#endif