diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-03 08:01:05 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-04 15:57:39 +0000 |
commit | 13f66507afdcde5170546e5ca1ce5a945895eb10 (patch) | |
tree | 40c1d05a05b05b596f290c186aa59a8b4d9768ab /src/include | |
parent | 065857ee7fd61b05025d7a803e82f2b9b53cbc9a (diff) | |
download | coreboot-13f66507afdcde5170546e5ca1ce5a945895eb10.tar.xz |
device/mmio.h: Add include file for MMIO ops
MMIO operations are arch-agnostic so the include
path should not be arch/.
Change-Id: I0fd70f5aeca02e98e96b980c3aca0819f5c44b98
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/31691
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/device/azalia_device.h | 2 | ||||
-rw-r--r-- | src/include/device/mmio.h | 21 | ||||
-rw-r--r-- | src/include/device/pci.h | 3 | ||||
-rw-r--r-- | src/include/device/pci_mmio_cfg.h | 2 |
4 files changed, 24 insertions, 4 deletions
diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h index 774b5505b8..002b8244b0 100644 --- a/src/include/device/azalia_device.h +++ b/src/include/device/azalia_device.h @@ -20,7 +20,7 @@ #include <string.h> #include <console/console.h> #include <arch/acpi.h> -#include <arch/io.h> +#include <device/mmio.h> #include <arch/interrupt.h> #include <device/device.h> diff --git a/src/include/device/mmio.h b/src/include/device/mmio.h new file mode 100644 index 0000000000..bebf0cfbd4 --- /dev/null +++ b/src/include/device/mmio.h @@ -0,0 +1,21 @@ +/* + * This file is part of the coreboot project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; version 2 of + * the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __DEVICE_MMIO_H__ +#define __DEVICE_MMIO_H__ + +/* FIXME: We only want the volatile MMIO ops. */ +#include <arch/io.h> + +#endif diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 0ead5784f6..a4f6536e64 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -19,12 +19,11 @@ #include <stdint.h> #include <stddef.h> -#include <arch/io.h> #include <device/pci_def.h> #include <device/resource.h> #include <device/device.h> #include <device/pci_rom.h> - +#include <device/pci_type.h> /* Common pci operations without a standard interface */ struct pci_operations { diff --git a/src/include/device/pci_mmio_cfg.h b/src/include/device/pci_mmio_cfg.h index d7ada4d84e..147b630c0b 100644 --- a/src/include/device/pci_mmio_cfg.h +++ b/src/include/device/pci_mmio_cfg.h @@ -17,7 +17,7 @@ #define _PCI_MMIO_CFG_H #include <stdint.h> -#include <arch/io.h> +#include <device/mmio.h> #include <device/pci_type.h> #define DEFAULT_PCIEXBAR CONFIG_MMCONF_BASE_ADDRESS |