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>
This commit is contained in:
Kyösti Mälkki
2019-03-03 08:01:05 +02:00
parent 065857ee7f
commit 13f66507af
465 changed files with 489 additions and 358 deletions

View File

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

21
src/include/device/mmio.h Normal file
View File

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

View File

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

View File

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