Move compiler.h to commonlib

Its spreading copies got out of sync. And as it is not a standard header
but used in commonlib code, it belongs into commonlib. While we are at
it, always include it via GCC's `-include` switch.

Some Windows and BSD quirk handling went into the util copies. We always
guard from redefinitions now to prevent further issues.

Change-Id: I850414e6db1d799dce71ff2dc044e6a000ad2552
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/28927
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Nico Huber
2018-10-04 23:42:42 +02:00
parent 834543c0c7
commit d44221f9c8
342 changed files with 33 additions and 454 deletions

View File

@@ -14,7 +14,6 @@
* GNU General Public License for more details.
*/
#include <compiler.h>
#include <console/console.h>
#include <device/device.h>
#include <delay.h>

View File

@@ -17,8 +17,6 @@
#ifndef _INTEL_ME_H
#define _INTEL_ME_H
#include <compiler.h>
#define ME_RETRY 100000 /* 1 second */
#define ME_DELAY 10 /* 10 us */

View File

@@ -15,7 +15,6 @@
*/
#include <commonlib/helpers.h>
#include <compiler.h>
#include <stdint.h>
#include "vendorcode/google/chromeos/gnvs.h"

View File

@@ -17,7 +17,6 @@
#define INTEL_COMMON_GPIO_H
#include <stdint.h>
#include <compiler.h>
/* ICH7 GPIOBASE */
#define GPIO_USE_SEL 0x00

View File

@@ -17,7 +17,6 @@
#include <types.h>
#include <arch/io.h>
#include <arch/acpi.h>
#include <compiler.h>
#include <console/console.h>
#include <cpu/x86/cache.h>
#include <device/pci_def.h>

View File

@@ -19,7 +19,6 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <compiler.h>
#include <bootstate.h>
#include <commonlib/helpers.h>
#include <delay.h>

View File

@@ -17,8 +17,6 @@
#ifndef INTEL_BD82X6X_GPIO_H
#define INTEL_BD82X6X_GPIO_H
#include <compiler.h>
#define GPIO_MODE_NATIVE 0
#define GPIO_MODE_GPIO 1
#define GPIO_MODE_NONE 1

View File

@@ -17,8 +17,6 @@
#ifndef _INTEL_ME_H
#define _INTEL_ME_H
#include <compiler.h>
#define ME_RETRY 100000 /* 1 second */
#define ME_DELAY 10 /* 10 us */

View File

@@ -15,7 +15,6 @@
*/
#include <commonlib/helpers.h>
#include <compiler.h>
#include "vendorcode/google/chromeos/gnvs.h"
typedef struct global_nvs_t {

View File

@@ -17,8 +17,6 @@
#ifndef INTEL_I89XX_GPIO_H
#define INTEL_I89XX_GPIO_H
#include <compiler.h>
#define GPIO_MODE_NATIVE 0
#define GPIO_MODE_GPIO 1
#define GPIO_MODE_NONE 1

View File

@@ -17,8 +17,6 @@
#ifndef _INTEL_ME_H
#define _INTEL_ME_H
#include <compiler.h>
#define ME_RETRY 100000 /* 1 second */
#define ME_DELAY 10 /* 10 us */

View File

@@ -15,7 +15,6 @@
*/
#include <commonlib/helpers.h>
#include <compiler.h>
#include "vendorcode/google/chromeos/gnvs.h"
typedef struct global_nvs_t {

View File

@@ -17,8 +17,6 @@
#ifndef INTEL_RANGELEY_GPIO_H
#define INTEL_RANGELEY_GPIO_H
#include <compiler.h>
#define GPIO_MODE_NATIVE 0
#define GPIO_MODE_GPIO 1
#define GPIO_MODE_NONE 1

View File

@@ -14,8 +14,6 @@
* GNU General Public License for more details.
*/
#include <compiler.h>
typedef struct {
/* Miscellaneous */
u16 osys; /* 0x00 - Operating System */

View File

@@ -17,7 +17,6 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <compiler.h>
#include <commonlib/helpers.h>
#include <delay.h>
#include <arch/io.h>

View File

@@ -13,8 +13,6 @@
* GNU General Public License for more details.
*/
#include <compiler.h>
typedef struct {
/* Miscellaneous */
u16 osys; /* 0x00 - Operating System */

View File

@@ -13,8 +13,6 @@
* GNU General Public License for more details.
*/
#include <compiler.h>
typedef struct {
/* Miscellaneous */
u16 osys; /* 0x00 - Operating System */

View File

@@ -13,8 +13,6 @@
* GNU General Public License for more details.
*/
#include <compiler.h>
typedef struct {
/* Miscellaneous */
u16 osys; /* 0x00 - Operating System */

View File

@@ -13,8 +13,6 @@
* GNU General Public License for more details.
*/
#include <compiler.h>
typedef struct {
/* Miscellaneous */
u16 osys; /* 0x00 - Operating System */

View File

@@ -17,8 +17,6 @@
#ifndef _INTEL_ME_H
#define _INTEL_ME_H
#include <compiler.h>
#define ME_RETRY 100000 /* 1 second */
#define ME_DELAY 10 /* 10 us */

View File

@@ -15,7 +15,6 @@
*/
#include <commonlib/helpers.h>
#include <compiler.h>
#include "vendorcode/google/chromeos/gnvs.h"
typedef struct global_nvs_t {

View File

@@ -16,8 +16,6 @@
#ifndef INTEL_LYNXPOINT_LP_GPIO_H
#define INTEL_LYNXPOINT_LP_GPIO_H
#include <compiler.h>
/* LynxPoint LP GPIOBASE Registers */
#define GPIO_OWNER(set) (0x00 + ((set) * 4))
#define GPIO_PIRQ_APIC_EN 0x10

View File

@@ -17,8 +17,6 @@
#ifndef _INTEL_ME_H
#define _INTEL_ME_H
#include <compiler.h>
#define ME_RETRY 100000 /* 1 second */
#define ME_DELAY 10 /* 10 us */

View File

@@ -15,7 +15,6 @@
*/
#include <commonlib/helpers.h>
#include <compiler.h>
#include "vendorcode/google/chromeos/gnvs.h"
typedef struct global_nvs_t {

View File

@@ -17,7 +17,6 @@
/* rl5c476 routines and defines*/
#include <compiler.h>
#include <stdint.h>