diff --git a/src/arch/x86/include/arch/io.h b/src/arch/x86/include/arch/io.h index aecf0b634c..98cb15a247 100644 --- a/src/arch/x86/include/arch/io.h +++ b/src/arch/x86/include/arch/io.h @@ -16,7 +16,6 @@ #include #include -#include /* * This file contains the definitions for the x86 IO instructions @@ -203,6 +202,8 @@ static __always_inline void write64(volatile void *addr, } #endif +typedef u32 pnp_devfn_t; + #ifdef __SIMPLE_DEVICE__ #define PNP_DEV(PORT, FUNC) (((PORT) << 8) | (FUNC)) diff --git a/src/include/device/pci_ehci.h b/src/include/device/pci_ehci.h index 9d18bcc798..146946ce75 100644 --- a/src/include/device/pci_ehci.h +++ b/src/include/device/pci_ehci.h @@ -17,8 +17,8 @@ #ifndef _PCI_EHCI_H_ #define _PCI_EHCI_H_ -#include #include +#include #define EHCI_BAR_INDEX 0x10 #define PCI_EHCI_CLASSCODE 0x0c0320 /* USB2.0 with EHCI controller */ diff --git a/src/include/device/pci_ops.h b/src/include/device/pci_ops.h index 6971ce4de7..f1d50d7060 100644 --- a/src/include/device/pci_ops.h +++ b/src/include/device/pci_ops.h @@ -3,6 +3,7 @@ #include #include +#include #include #ifdef __SIMPLE_DEVICE__ diff --git a/src/include/device/pci_type.h b/src/include/device/pci_type.h index 0b08e8d0aa..3f72c5f167 100644 --- a/src/include/device/pci_type.h +++ b/src/include/device/pci_type.h @@ -17,7 +17,6 @@ #include typedef u32 pci_devfn_t; -typedef u32 pnp_devfn_t; #define PCI_DEV(SEGBUS, DEV, FN) ( \ (((SEGBUS) & 0xFFF) << 20) | \ diff --git a/src/include/reg_script.h b/src/include/reg_script.h index 28fc82db0f..7ca457a827 100644 --- a/src/include/reg_script.h +++ b/src/include/reg_script.h @@ -17,8 +17,8 @@ #define REG_SCRIPT_H #include -#include #include +#include #include /* diff --git a/src/northbridge/amd/amdfam10/pci.h b/src/northbridge/amd/amdfam10/pci.h index 8fcdbd8cca..8302582d02 100644 --- a/src/northbridge/amd/amdfam10/pci.h +++ b/src/northbridge/amd/amdfam10/pci.h @@ -18,6 +18,7 @@ #include #include +#include #include u32 pci_read_config32_index(pci_devfn_t dev, u32 index_reg, u32 index);