From 3e6913b389736ba38e104596871e0dac78c09beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 2 Mar 2019 16:26:10 +0200 Subject: arch/io.h: Fix PCI and PNP simple typedefs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Provide clean separation for PCI and PNP headers, followup will also move PNP outside . Change-Id: I85db254d50f18ea34a5e95bc517eac4085a5fafa Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/31690 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/arch/x86/include/arch/io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/arch') 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)) -- cgit v1.2.3