From 13f66507afdcde5170546e5ca1ce5a945895eb10 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Sun, 3 Mar 2019 08:01:05 +0200 Subject: device/mmio.h: Add include file for MMIO ops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MMIO operations are arch-agnostic so the include path should not be arch/. Change-Id: I0fd70f5aeca02e98e96b980c3aca0819f5c44b98 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/31691 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/include/device/azalia_device.h | 2 +- src/include/device/mmio.h | 21 +++++++++++++++++++++ src/include/device/pci.h | 3 +-- src/include/device/pci_mmio_cfg.h | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 src/include/device/mmio.h (limited to 'src/include') 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 #include #include -#include +#include #include #include 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 + +#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 #include -#include #include #include #include #include - +#include /* 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 -#include +#include #include #define DEFAULT_PCIEXBAR CONFIG_MMCONF_BASE_ADDRESS -- cgit v1.2.3