diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-12-03 09:32:31 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-04 12:13:20 +0000 |
commit | e3682b6c1c14c8ad2253a3e5d19fb7dfe417c018 (patch) | |
tree | 40c5089e1b03c7acc853d8b620eace74f5ceaf2b /src/arch | |
parent | f9e47cc4c2ddefaaa91ddae25449803cdd5243b8 (diff) |
src: Move {pci,pnp}_devfn_t to common 'device/pci_type.h'
Definitions of these types are arch-agnostic. Shared device
subsystem files cannot include arch/pci_ops.h for ARM
and arch/io.h for x86.
Change-Id: I6a3deea676308e2dc703b5e06558b05235191044
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/29947
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/arm/include/arch/pci_ops.h | 3 | ||||
-rw-r--r-- | src/arch/arm64/include/arch/pci_ops.h | 3 | ||||
-rw-r--r-- | src/arch/mips/include/arch/pci_ops.h | 3 | ||||
-rw-r--r-- | src/arch/x86/include/arch/io.h | 4 |
4 files changed, 4 insertions, 9 deletions
diff --git a/src/arch/arm/include/arch/pci_ops.h b/src/arch/arm/include/arch/pci_ops.h index 533ad8097a..75bb20e05f 100644 --- a/src/arch/arm/include/arch/pci_ops.h +++ b/src/arch/arm/include/arch/pci_ops.h @@ -17,8 +17,7 @@ #define ARCH_ARM_PCI_OPS_H #include <stdint.h> - -typedef u32 pci_devfn_t; +#include <device/pci_type.h> #ifdef __SIMPLE_DEVICE__ u8 pci_read_config8(pci_devfn_t dev, unsigned int where); diff --git a/src/arch/arm64/include/arch/pci_ops.h b/src/arch/arm64/include/arch/pci_ops.h index 32e7601d9c..0e6f52d79f 100644 --- a/src/arch/arm64/include/arch/pci_ops.h +++ b/src/arch/arm64/include/arch/pci_ops.h @@ -17,8 +17,7 @@ #define ARCH_ARM64_PCI_OPS_H #include <stdint.h> - -typedef u32 pci_devfn_t; +#include <device/pci_type.h> #ifdef __SIMPLE_DEVICE__ u8 pci_read_config8(pci_devfn_t dev, unsigned int where); diff --git a/src/arch/mips/include/arch/pci_ops.h b/src/arch/mips/include/arch/pci_ops.h index f57befa31e..7bfcbdd8f9 100644 --- a/src/arch/mips/include/arch/pci_ops.h +++ b/src/arch/mips/include/arch/pci_ops.h @@ -17,8 +17,7 @@ #define ARCH_MIPS_PCI_OPS_H #include <stdint.h> - -typedef u32 pci_devfn_t; +#include <device/pci_type.h> #ifdef __SIMPLE_DEVICE__ u8 pci_read_config8(pci_devfn_t dev, unsigned int where); diff --git a/src/arch/x86/include/arch/io.h b/src/arch/x86/include/arch/io.h index f47973e2fb..9e2a877906 100644 --- a/src/arch/x86/include/arch/io.h +++ b/src/arch/x86/include/arch/io.h @@ -17,9 +17,7 @@ #include <endian.h> #include <stdint.h> #include <rules.h> - -typedef u32 pci_devfn_t; -typedef u32 pnp_devfn_t; +#include <device/pci_type.h> /* * This file contains the definitions for the x86 IO instructions |