src: Add missing include <stdint.h>

Change-Id: I6a9d71e69ed9230b92f0f330875515a5df29fc06
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/29312
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS 2018-10-29 06:56:52 +01:00 committed by Nico Huber
parent b06f8ddfe8
commit dfbe6bd5c3
38 changed files with 77 additions and 3 deletions

View File

@ -16,6 +16,8 @@
#ifndef __RISCV_PMP_H__ #ifndef __RISCV_PMP_H__
#define __RISCV_PMP_H__ #define __RISCV_PMP_H__
#include <stdint.h>
/* /*
* this function needs to be implemented by a specific SoC. * this function needs to be implemented by a specific SoC.
* return number of PMP entries for current hart * return number of PMP entries for current hart

View File

@ -17,6 +17,8 @@
#ifndef _CPU_INTEL_MODEL_206AX_H #ifndef _CPU_INTEL_MODEL_206AX_H
#define _CPU_INTEL_MODEL_206AX_H #define _CPU_INTEL_MODEL_206AX_H
#include <stdint.h>
/* SandyBridge/IvyBridge bus clock is fixed at 100MHz */ /* SandyBridge/IvyBridge bus clock is fixed at 100MHz */
#define SANDYBRIDGE_BCLK 100 #define SANDYBRIDGE_BCLK 100

View File

@ -16,6 +16,8 @@
#ifndef CPU_AMD_QUADCORE_H #ifndef CPU_AMD_QUADCORE_H
#define CPU_AMD_QUADCORE_H #define CPU_AMD_QUADCORE_H
#include <stdint.h>
u32 read_nb_cfg_54(void); u32 read_nb_cfg_54(void);
struct node_core_id { struct node_core_id {

View File

@ -1,6 +1,8 @@
#ifndef PC80_KEYBOARD_H #ifndef PC80_KEYBOARD_H
#define PC80_KEYBOARD_H #define PC80_KEYBOARD_H
#include <stdint.h>
#define NO_AUX_DEVICE 0 #define NO_AUX_DEVICE 0
#define PROBE_AUX_DEVICE 1 #define PROBE_AUX_DEVICE 1

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz * 0b000 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[3:0] are on GPIO_SSUS[40:37] * RAM_ID[3:0] are on GPIO_SSUS[40:37]
* 0b0000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b0000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b0000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b0000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[3:0] are on GPIO_SSUS[40:37] * RAM_ID[3:0] are on GPIO_SSUS[40:37]
* RAM_ID Vendor Vendor_PN Freq Size Total_size channel * RAM_ID Vendor Vendor_PN Freq Size Total_size channel

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz * 0b000 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz

View File

@ -14,6 +14,8 @@
#ifndef VARIANT_H #ifndef VARIANT_H
#define VARIANT_H #define VARIANT_H
#include <stdint.h>
/* /*
* RAM_ID[2:0] are on GPIO_SSUS[39:37] * RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz * 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz

View File

@ -17,6 +17,8 @@
#ifndef __MAINBOARD_GOOGLE_FOSTER_PMIC_H__ #ifndef __MAINBOARD_GOOGLE_FOSTER_PMIC_H__
#define __MAINBOARD_GOOGLE_FOSTER_PMIC_H__ #define __MAINBOARD_GOOGLE_FOSTER_PMIC_H__
#include <stdint.h>
#define MAX77620_SD0_REG 0x16 #define MAX77620_SD0_REG 0x16
#define MAX77620_SD1_REG 0x17 #define MAX77620_SD1_REG 0x17
#define MAX77620_SD2_REG 0x18 #define MAX77620_SD2_REG 0x18

View File

@ -18,6 +18,8 @@
#ifndef MAINBOARD_SPD_H #ifndef MAINBOARD_SPD_H
#define MAINBOARD_SPD_H #define MAINBOARD_SPD_H
#include <stdint.h>
#define SPD_LEN 512 #define SPD_LEN 512
#define SPD_DRAM_TYPE 2 #define SPD_DRAM_TYPE 2

View File

@ -16,6 +16,9 @@
#ifndef MCT_H #ifndef MCT_H
#define MCT_H #define MCT_H
#include <stdint.h>
/*=========================================================================== /*===========================================================================
CPU - K8/FAM10 CPU - K8/FAM10
===========================================================================*/ ===========================================================================*/

View File

@ -17,6 +17,8 @@
#ifndef RAMINIT_H #ifndef RAMINIT_H
#define RAMINIT_H #define RAMINIT_H
#include <stdint.h>
#define DIMM_SOCKETS 2 #define DIMM_SOCKETS 2
struct mem_controller { struct mem_controller {

View File

@ -17,6 +17,8 @@
#ifndef TCG_TSS_COMMON_H_ #ifndef TCG_TSS_COMMON_H_
#define TCG_TSS_COMMON_H_ #define TCG_TSS_COMMON_H_
#include <stdint.h>
#define TPM_PCR_MINIMUM_DIGEST_SIZE 20 #define TPM_PCR_MINIMUM_DIGEST_SIZE 20
#define TPM_SUCCESS ((uint32_t)0x00000000) #define TPM_SUCCESS ((uint32_t)0x00000000)

View File

@ -17,6 +17,8 @@
#ifndef _SOC_APOLLOLAKE_HECI_H_ #ifndef _SOC_APOLLOLAKE_HECI_H_
#define _SOC_APOLLOLAKE_HECI_H_ #define _SOC_APOLLOLAKE_HECI_H_
#include <stdint.h>
enum sec_status { enum sec_status {
SEC_STATE_RESET = 0, SEC_STATE_RESET = 0,
SEC_STATE_INIT, SEC_STATE_INIT,

View File

@ -16,7 +16,6 @@
#ifndef _BAYTRAIL_IOMAP_H_ #ifndef _BAYTRAIL_IOMAP_H_
#define _BAYTRAIL_IOMAP_H_ #define _BAYTRAIL_IOMAP_H_
/* /*
* Memory Mapped IO bases. * Memory Mapped IO bases.
*/ */
@ -79,6 +78,8 @@
#define SMBUS_BASE_ADDRESS 0xefa0 #define SMBUS_BASE_ADDRESS 0xefa0
#ifndef __ACPI__ #ifndef __ACPI__
#include <stdint.h>
/* Read Top of Low Memory (BMBOUND) */ /* Read Top of Low Memory (BMBOUND) */
uint32_t nc_read_top_of_low_memory(void); uint32_t nc_read_top_of_low_memory(void);
#endif #endif

View File

@ -17,7 +17,6 @@
#ifndef _SOC_IOMAP_H_ #ifndef _SOC_IOMAP_H_
#define _SOC_IOMAP_H_ #define _SOC_IOMAP_H_
/* /*
* Memory Mapped IO bases. * Memory Mapped IO bases.
*/ */
@ -81,6 +80,8 @@
#define SMBUS_BASE_ADDRESS 0xefa0 #define SMBUS_BASE_ADDRESS 0xefa0
#ifndef __ACPI__ #ifndef __ACPI__
#include <stdint.h>
/* Read Top of Low Memory (BMBOUND) */ /* Read Top of Low Memory (BMBOUND) */
uint32_t nc_read_top_of_low_memory(void); uint32_t nc_read_top_of_low_memory(void);
#endif #endif

View File

@ -17,6 +17,8 @@
#ifndef _SOC_CANNONLAKE_LPC_H_ #ifndef _SOC_CANNONLAKE_LPC_H_
#define _SOC_CANNONLAKE_LPC_H_ #define _SOC_CANNONLAKE_LPC_H_
#include <stdint.h>
/* PCI Configuration Space (D31:F0): LPC */ /* PCI Configuration Space (D31:F0): LPC */
#define SCI_IRQ_SEL (7 << 0) #define SCI_IRQ_SEL (7 << 0)
#define SCIS_IRQ9 0 #define SCIS_IRQ9 0

View File

@ -17,6 +17,8 @@
#ifndef SOC_INTEL_COMMON_BLOCK_SMM_H #ifndef SOC_INTEL_COMMON_BLOCK_SMM_H
#define SOC_INTEL_COMMON_BLOCK_SMM_H #define SOC_INTEL_COMMON_BLOCK_SMM_H
#include <stdint.h>
/* /*
* This common code block relies on each specific SOC defining the macro * This common code block relies on each specific SOC defining the macro
* ENABLE_SMI_PARAMS for the values needed for SMI enabling on the * ENABLE_SMI_PARAMS for the values needed for SMI enabling on the

View File

@ -14,6 +14,8 @@
#ifndef SOC_INTEL_COMMON_BLOCK_VMX_H #ifndef SOC_INTEL_COMMON_BLOCK_VMX_H
#define SOC_INTEL_COMMON_BLOCK_VMX_H #define SOC_INTEL_COMMON_BLOCK_VMX_H
#include <stdint.h>
struct vmx_param { struct vmx_param {
uint8_t enable; uint8_t enable;
}; };

View File

@ -16,7 +16,6 @@
#ifndef _BAYTRAIL_IOMAP_H_ #ifndef _BAYTRAIL_IOMAP_H_
#define _BAYTRAIL_IOMAP_H_ #define _BAYTRAIL_IOMAP_H_
/* /*
* Memory Mapped IO bases. * Memory Mapped IO bases.
*/ */
@ -79,6 +78,8 @@
#define SMBUS_BASE_ADDRESS 0xefa0 #define SMBUS_BASE_ADDRESS 0xefa0
#ifndef __ACPI__ #ifndef __ACPI__
#include <stdint.h>
/* Read Top of Low Memory (BMBOUND) */ /* Read Top of Low Memory (BMBOUND) */
uint32_t nc_read_top_of_low_memory(void); uint32_t nc_read_top_of_low_memory(void);
#endif #endif

View File

@ -16,6 +16,8 @@
#ifndef _SOC_ICELAKE_LPC_H_ #ifndef _SOC_ICELAKE_LPC_H_
#define _SOC_ICELAKE_LPC_H_ #define _SOC_ICELAKE_LPC_H_
#include <stdint.h>
/* PCI Configuration Space (D31:F0): LPC */ /* PCI Configuration Space (D31:F0): LPC */
#define SCI_IRQ_SEL (7 << 0) #define SCI_IRQ_SEL (7 << 0)
#define SCIS_IRQ9 0 #define SCIS_IRQ9 0

View File

@ -16,6 +16,8 @@
#ifndef __SOC_DA9212_H_ #ifndef __SOC_DA9212_H_
#define __SOC_DA9212_H_ #define __SOC_DA9212_H_
#include <stdint.h>
void da9212_probe(uint8_t i2c_num); void da9212_probe(uint8_t i2c_num);
enum { enum {

View File

@ -16,6 +16,8 @@
#ifndef __SOC_MEDIATEK_MT8173_MT6311_H__ #ifndef __SOC_MEDIATEK_MT8173_MT6311_H__
#define __SOC_MEDIATEK_MT8173_MT6311_H__ #define __SOC_MEDIATEK_MT8173_MT6311_H__
#include <stdint.h>
void mt6311_probe(uint8_t i2c_num); void mt6311_probe(uint8_t i2c_num);
enum { enum {

View File

@ -31,6 +31,8 @@
#ifndef __SOC_QUALCOMM_IPQ40XX_EBI2_H_ #ifndef __SOC_QUALCOMM_IPQ40XX_EBI2_H_
#define __SOC_QUALCOMM_IPQ40XX_EBI2_H_ #define __SOC_QUALCOMM_IPQ40XX_EBI2_H_
#include <stdint.h>
#define EBI2CR_BASE (0x1A600000) #define EBI2CR_BASE (0x1A600000)
struct ebi2cr_regs { struct ebi2cr_regs {

View File

@ -16,6 +16,8 @@
#ifndef __SOC_ROCKCHIP_RK3399_TSADC_H__ #ifndef __SOC_ROCKCHIP_RK3399_TSADC_H__
#define __SOC_ROCKCHIP_RK3399_TSADC_H__ #define __SOC_ROCKCHIP_RK3399_TSADC_H__
#include <stdint.h>
enum { enum {
TSHUT_POL_HIGH = 1 << 8, TSHUT_POL_HIGH = 1 << 8,
TSHUT_POL_LOW = 0 << 8 TSHUT_POL_LOW = 0 << 8

View File

@ -17,6 +17,8 @@
#ifndef SR5650_CHIP_H #ifndef SR5650_CHIP_H
#define SR5650_CHIP_H #define SR5650_CHIP_H
#include <stdint.h>
/* Member variables are defined in Config.lb. */ /* Member variables are defined in Config.lb. */
struct southbridge_amd_sr5650_config struct southbridge_amd_sr5650_config
{ {