From 3855c01e0a9d9e9787652479576e882bcda9fde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sun, 3 Mar 2019 08:45:19 +0200 Subject: device/pnp: Add header files for PNP ops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifda495420cfb121ad32920bb9f1cbdeef41f6d3a Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/31698 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/arch/x86/include/arch/io.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/arch') diff --git a/src/arch/x86/include/arch/io.h b/src/arch/x86/include/arch/io.h index 98cb15a247..f0c0c80260 100644 --- a/src/arch/x86/include/arch/io.h +++ b/src/arch/x86/include/arch/io.h @@ -202,12 +202,10 @@ static __always_inline void write64(volatile void *addr, } #endif -typedef u32 pnp_devfn_t; +#include #ifdef __SIMPLE_DEVICE__ -#define PNP_DEV(PORT, FUNC) (((PORT) << 8) | (FUNC)) - /* Generic functions for pnp devices */ static __always_inline void pnp_write_config( pnp_devfn_t dev, uint8_t reg, uint8_t value) -- cgit v1.2.3