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:
Kyösti Mälkki
2019-03-02 16:26:10 +02:00
committed by Patrick Georgi
parent e132d5711d
commit 3e6913b389
6 changed files with 6 additions and 4 deletions

View File

@@ -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))