summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-03 08:45:19 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-04 15:58:55 +0000
commit3855c01e0a9d9e9787652479576e882bcda9fde5 (patch)
tree940945c52e59fb334b41960ab17513f240e95884 /src/arch/x86
parent369559379453f9bf0e917635b642e6f70d55a93e (diff)
downloadcoreboot-3855c01e0a9d9e9787652479576e882bcda9fde5.tar.xz
device/pnp: Add header files for PNP ops
Change-Id: Ifda495420cfb121ad32920bb9f1cbdeef41f6d3a Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31698 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/include/arch/io.h4
1 files changed, 1 insertions, 3 deletions
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 <device/pnp_type.h>
#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)