arch/io.h: Fix PCI and PNP simple typedefs
Provide clean separation for PCI and PNP headers, followup will also move PNP outside <arch/io.h>. Change-Id: I85db254d50f18ea34a5e95bc517eac4085a5fafa Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31690 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
committed by
Patrick Georgi
parent
e132d5711d
commit
3e6913b389
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <endian.h>
|
||||
#include <stdint.h>
|
||||
#include <device/pci_type.h>
|
||||
|
||||
/*
|
||||
* 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))
|
||||
|
Reference in New Issue
Block a user