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

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <arch/encoding.h>
#include <console/console.h>
#include <stddef.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <arch/ioapic.h>
#include <console/console.h>
#include <cpu/x86/lapic.h>

View File

@ -17,7 +17,7 @@
#ifndef __COMMONLIB_STORAGE_SDHCI_H__
#define __COMMONLIB_STORAGE_SDHCI_H__
#include <arch/io.h>
#include <device/mmio.h>
#include <commonlib/sd_mmc_ctrlr.h>
/*

View File

@ -18,7 +18,7 @@
#include "clock.h"
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <delay.h>
#include <lib.h>

View File

@ -18,7 +18,7 @@
#include "gpio.h"
#include <arch/io.h>
#include <device/mmio.h>
static struct a10_gpio *const gpio = (void *)GPIO_BASE;

View File

@ -20,7 +20,7 @@
#include "gpio.h"
#include <arch/io.h>
#include <device/mmio.h>
static struct a10_gpio *const gpio = (void *)GPIO_BASE;

View File

@ -29,7 +29,7 @@
#include "memmap.h"
#include "timer.h"
#include <arch/io.h>
#include <device/mmio.h>
#include <delay.h>
static struct a1x_dramc *const dram = (void *)A1X_DRAMC_BASE;

View File

@ -19,7 +19,7 @@
#include "timer.h"
#include <arch/io.h>
#include <device/mmio.h>
#include <delay.h>
#include <timer.h>

View File

@ -23,7 +23,7 @@
#include "memmap.h"
#include "twi.h"
#include <arch/io.h>
#include <device/mmio.h>
#include <delay.h>
#include <device/i2c_simple.h>

View File

@ -19,7 +19,7 @@
*/
#include "uart.h"
#include <arch/io.h>
#include <device/mmio.h>
#include <console/uart.h>
#include <drivers/uart/uart8250reg.h>

View File

@ -20,7 +20,7 @@
#include <cpu/amd/msr.h>
#include <cpu/amd/microcode.h>
#include <cbfs.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <smp/spinlock.h>
#define UCODE_DEBUG(fmt, args...) \

View File

@ -12,7 +12,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <cpu/ti/am335x/gpio.h>
#include <stdint.h>

View File

@ -15,7 +15,7 @@
#include "pinmux.h"
#include <arch/io.h>
#include <device/mmio.h>
static struct am335x_pinmux_regs *regs =
(struct am335x_pinmux_regs *)(uintptr_t)AM335X_PINMUX_REG_ADDR;

View File

@ -15,7 +15,7 @@
#include <stdlib.h>
#include <types.h>
#include <console/uart.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <cpu/ti/am335x/uart.h>

View File

@ -18,7 +18,7 @@
#include <device/pci.h>
#include <device/pci_ops.h>
#include <device/azalia_device.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <delay.h>
#define HDA_ICII_REG 0x68

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <arch/interrupt.h>
#include <arch/registers.h>
#include <boot/coreboot_tables.h>

View File

@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci.h>
#include <device/pci_ops.h>

View File

@ -22,6 +22,7 @@
#include <stdint.h>
#include <string.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <device/device.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <gic.h>
#include <stddef.h>

View File

@ -16,7 +16,7 @@
*/
#include <arch/acpigen.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <device/device.h>
#include <device/i2c_bus.h>

View File

@ -11,7 +11,7 @@
*/
#include <arch/early_variables.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <cbmem.h>
#include <commonlib/helpers.h>
#include <console/console.h>

View File

@ -11,7 +11,7 @@
* (at your option) any later version.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <cf9_reset.h>
#include <console/console.h>
#include <fsp/util.h>

View File

@ -15,7 +15,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <delay.h>

View File

@ -14,7 +14,7 @@
*/
#include <console/console.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/i2c_simple.h>
#include "max77686.h"

View File

@ -20,6 +20,7 @@
* This driver sets the macaddress of a Atheros AR8121/AR8113/AR8114
*/
#include <device/mmio.h>
#include <device/device.h>
#include <cbfs.h>
#include <string.h>

View File

@ -27,7 +27,7 @@
#include <stdlib.h>
#include <string.h>
#include <delay.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <arch/acpi.h>
#include <arch/acpigen.h>
#include <arch/acpi_device.h>

View File

@ -19,6 +19,7 @@
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <string.h>
#include <device/mmio.h>
#include <delay.h>
#include <hwilib.h>
#include <bootstate.h>

View File

@ -19,7 +19,7 @@
#include <device/pci_ids.h>
#include <console/console.h>
#include <console/uart.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
static void oxford_oxpcie_enable(struct device *dev)

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <console/uart.h>
#include <drivers/uart/pl011.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <console/uart.h>
#include <types.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <console/uart.h>
#include <device/device.h>

View File

@ -18,6 +18,7 @@
#include <console/console.h>
#include <console/usb.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <arch/symbols.h>
#include <arch/early_variables.h>
#include <string.h>

View File

@ -17,7 +17,7 @@
#include <stddef.h>
#include <console/console.h>
#include <device/pci_ehci.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci.h>
#include <device/pci_def.h>

View File

@ -24,6 +24,7 @@
#include <stdint.h>
#include <string.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <device/device.h>

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

View File

@ -14,6 +14,7 @@
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <delay.h>

View File

@ -15,7 +15,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <cpu/x86/lapic.h>

View File

@ -14,7 +14,7 @@
*/
#include <stdint.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <southbridge/amd/common/amd_defs.h>
#include <boardid.h>

View File

@ -16,7 +16,7 @@
#include <console/console.h>
#include <device/device.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <southbridge/amd/common/amd_pci_util.h>
#include <southbridge/amd/cimx/cimx_util.h>
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>

View File

@ -16,6 +16,7 @@
#include <arch/smp/mpspec.h>
#include <device/pci.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <string.h>
#include <stdint.h>
#include <arch/cpu.h>

View File

@ -15,7 +15,7 @@
#include <console/console.h>
#include <device/device.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <southbridge/amd/cimx/cimx_util.h>
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>

View File

@ -17,7 +17,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>

View File

@ -17,7 +17,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>

View File

@ -21,6 +21,7 @@
#include <string.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <arch/cpu.h>
#include <cpu/x86/lapic.h>

View File

@ -19,7 +19,7 @@
* It sets up CPU clock, and enables the bootblock console.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <bootblock_common.h>
#include <console/uart.h>
#include <console/console.h>

View File

@ -16,7 +16,7 @@
#include <console/console.h>
#include <device/device.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <southbridge/amd/common/amd_pci_util.h>
#include <southbridge/amd/cimx/cimx_util.h>
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h>

View File

@ -14,7 +14,7 @@
#include <stddef.h>
#include <cbmem.h>
#include <symbols.h>
#include <arch/io.h>
#include <device/mmio.h>
#include "mainboard.h"
#define PATTERN1 0x55

View File

@ -21,7 +21,7 @@
#include <halt.h>
#include "mainboard.h"
#include <edid.h>
#include <arch/io.h>
#include <device/mmio.h>
static void init_gfx(void)
{

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <delay.h>
#include <device/device.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <gpio.h>
#include <soc/gpio.h>
#include <string.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <soc/gpio.h>
#include <soc/lpc.h>

View File

@ -16,6 +16,7 @@
#include <arch/acpi.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include "ec.h"

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <bootblock_common.h>
#include <device/i2c_simple.h>
#include <soc/addressmap.h>

View File

@ -15,6 +15,7 @@
* GNU General Public License for more details.
*/
#include <device/mmio.h>
#include <soc/iomap.h>
#include <reset.h>

View File

@ -14,7 +14,7 @@
*
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <bootblock_common.h>
#include <console/console.h>
#include <delay.h>

View File

@ -17,6 +17,7 @@
#include <assert.h>
#include <boardid.h>
#include <console/console.h>
#include <device/mmio.h>
#include <delay.h>
#include <device/device.h>
#include <device/i2c_simple.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <assert.h>
#include <boardid.h>
#include <console/console.h>

View File

@ -16,8 +16,8 @@
#include <string.h>
#include <console/console.h>
#include <device/device.h>
#include <device/mmio.h>
#include <arch/acpi.h>
#include <arch/io.h>
#include <amdblocks/agesawrapper.h>
#include <amdblocks/amd_pci_util.h>
#include <cbmem.h>

View File

@ -19,6 +19,7 @@
#include <gpio.h>
#include <smbios.h>
#include <variant/gpio.h>
#include <device/mmio.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <drivers/generic/bayhub/bh720.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <bootblock_common.h>
#include <device/i2c_simple.h>
#include <gpio.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/device.h>
#include <elog.h>
#include <boot/coreboot_tables.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <bootblock_common.h>
#include <device/i2c_simple.h>
#include <gpio.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <device/device.h>
#include <elog.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <bootblock_common.h>
#include <device/i2c_simple.h>
#include <gpio.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <device/device.h>
#include <elog.h>

View File

@ -13,11 +13,11 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <boardid.h>
#include <bootblock_common.h>
#include <delay.h>
#include <gpio.h>
#include <device/mmio.h>
#include <soc/gpio.h>
#include <soc/i2c.h>
#include <soc/mt6391.h>

View File

@ -16,6 +16,7 @@
#include <arch/cache.h>
#include <boot/coreboot_tables.h>
#include <console/console.h>
#include <device/mmio.h>
#include <delay.h>
#include <device/device.h>
#include <device/i2c_simple.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <bootblock_common.h>
#include <device/i2c_simple.h>
#include <soc/addressmap.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <arch/mmu.h>
#include <bootmode.h>
#include <boot/coreboot_tables.h>

View File

@ -13,6 +13,7 @@
* GNU General Public License for more details.
*/
#include <device/mmio.h>
#include <gpio.h>
#include <soc/cdp.h>
#include <soc/ebi2.h>

View File

@ -16,6 +16,7 @@
*/
#include <console/console.h>
#include <device/mmio.h>
#include <soc/iomap.h>
#include <reset.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <stdint.h>
#include <soc/clocks.h>
#include <assert.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <assert.h>
#include <bootblock_common.h>
#include <delay.h>

View File

@ -14,7 +14,7 @@
*/
#include <arch/cache.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <delay.h>
#include <device/device.h>

View File

@ -19,6 +19,7 @@
#include <assert.h>
#include <cbmem.h>
#include <console/console.h>
#include <device/mmio.h>
#include <delay.h>
#include <program_loading.h>
#include <soc/sdram.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <assert.h>
#include <bootblock_common.h>
#include <delay.h>

View File

@ -14,7 +14,7 @@
*/
#include <arch/cache.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <delay.h>
#include <device/device.h>

View File

@ -19,6 +19,7 @@
#include <assert.h>
#include <cbmem.h>
#include <console/console.h>
#include <device/mmio.h>
#include <delay.h>
#include <program_loading.h>
#include <soc/sdram.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <assert.h>
#include <bootblock_common.h>
#include <delay.h>

View File

@ -14,7 +14,7 @@
*/
#include <arch/cache.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <boot/coreboot_tables.h>
#include <console/console.h>
#include <delay.h>

View File

@ -15,7 +15,7 @@
#include <arch/cache.h>
#include <arch/exception.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <armv7.h>
#include <assert.h>
#include <cbmem.h>

View File

@ -15,7 +15,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <cpu/x86/lapic.h>

View File

@ -15,7 +15,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <cpu/x86/lapic.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <soc/gpio.h>
#include <soc/lpc.h>

View File

@ -16,7 +16,7 @@
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <device/device.h>

View File

@ -18,6 +18,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h>

View File

@ -17,7 +17,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h>

View File

@ -17,7 +17,7 @@
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <southbridge/amd/common/amd_pci_util.h>

View File

@ -14,7 +14,7 @@
*/
#include <stdint.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <southbridge/amd/cimx/cimx_util.h>
#include <FchPlatform.h>
#include "gpio_ftns.h"

View File

@ -14,7 +14,7 @@
*/
#include <arch/acpi.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <console/console.h>
#include <device/device.h>

View File

@ -15,6 +15,7 @@
*/
#include <console/console.h>
#include <device/mmio.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ops.h>

View File

@ -27,7 +27,7 @@
#include <x86emu/x86emu.h>
#endif
#include <arch/acpi.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <arch/interrupt.h>
#include <boot/coreboot_tables.h>
#include <hwilib.h>

View File

@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <types.h>
#include <bootblock_common.h>
#include <console/uart.h>

View File

@ -27,6 +27,7 @@
#include <stdint.h>
#include <device/pci_def.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <lib.h>
#include <stdlib.h>

View File

@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
#include <arch/io.h>
#include <device/mmio.h>
#include <console/console.h>
#include <delay.h>
#include <device/device.h>

View File

@ -17,7 +17,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <arch/cpu.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h>
#include <device/device.h>

View File

@ -15,7 +15,7 @@
*/
#include <stdint.h>
#include <arch/io.h>
#include <device/mmio.h>
#include <pc80/mc146818rtc.h>
#include <console/console.h>
#include "gm45.h"

Some files were not shown because too many files have changed in this diff Show More