Include exec/memory.h slightly less
Drop unnecessary inclusions from headers. Downgrade a few more to exec/hwaddr.h. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190812052359.30071-17-armbru@redhat.com>
This commit is contained in:
parent
d645427057
commit
d484205210
@ -13,6 +13,7 @@
|
|||||||
#define HW_LM4549_H
|
#define HW_LM4549_H
|
||||||
|
|
||||||
#include "audio/audio.h"
|
#include "audio/audio.h"
|
||||||
|
#include "exec/hwaddr.h"
|
||||||
|
|
||||||
typedef void (*lm4549_callback)(void *opaque);
|
typedef void (*lm4549_callback)(void *opaque);
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/display/edid.h"
|
#include "hw/display/edid.h"
|
||||||
|
|
||||||
static uint64_t edid_region_read(void *ptr, hwaddr addr, unsigned size)
|
static uint64_t edid_region_read(void *ptr, hwaddr addr, unsigned size)
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include "hw/hw.h"
|
#include "hw/hw.h"
|
||||||
#include "hw/irq.h"
|
#include "hw/irq.h"
|
||||||
#include "hw/display/tc6393xb.h"
|
#include "hw/display/tc6393xb.h"
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/block/flash.h"
|
#include "hw/block/flash.h"
|
||||||
#include "ui/console.h"
|
#include "ui/console.h"
|
||||||
#include "ui/pixel_ops.h"
|
#include "ui/pixel_ops.h"
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#ifndef HW_CAN_SJA1000_H
|
#ifndef HW_CAN_SJA1000_H
|
||||||
#define HW_CAN_SJA1000_H
|
#define HW_CAN_SJA1000_H
|
||||||
|
|
||||||
|
#include "exec/hwaddr.h"
|
||||||
#include "net/can_emu.h"
|
#include "net/can_emu.h"
|
||||||
|
|
||||||
#define CAN_SJA_MEM_SIZE 128
|
#define CAN_SJA_MEM_SIZE 128
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "net/eth.h"
|
#include "net/eth.h"
|
||||||
#include "qemu/module.h"
|
#include "qemu/module.h"
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/irq.h"
|
#include "hw/irq.h"
|
||||||
#include "migration/vmstate.h"
|
#include "migration/vmstate.h"
|
||||||
#include "ne2000.h"
|
#include "ne2000.h"
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#define XTENSA_MEMORY_H
|
#define XTENSA_MEMORY_H
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "exec/memory.h"
|
|
||||||
|
|
||||||
void xtensa_create_memory_regions(const XtensaMemory *memory,
|
void xtensa_create_memory_regions(const XtensaMemory *memory,
|
||||||
const char *name,
|
const char *name,
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#ifndef HW_ARM_BOOT_H
|
#ifndef HW_ARM_BOOT_H
|
||||||
#define HW_ARM_BOOT_H
|
#define HW_ARM_BOOT_H
|
||||||
|
|
||||||
#include "exec/memory.h"
|
|
||||||
#include "target/arm/cpu-qom.h"
|
#include "target/arm/cpu-qom.h"
|
||||||
#include "qemu/notify.h"
|
#include "qemu/notify.h"
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
#include "hw/net/imx_fec.h"
|
#include "hw/net/imx_fec.h"
|
||||||
#include "hw/pci-host/designware.h"
|
#include "hw/pci-host/designware.h"
|
||||||
#include "hw/usb/chipidea.h"
|
#include "hw/usb/chipidea.h"
|
||||||
#include "exec/memory.h"
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
||||||
#define TYPE_FSL_IMX7 "fsl,imx7"
|
#define TYPE_FSL_IMX7 "fsl,imx7"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#ifndef HW_SOC_DMA_H
|
#ifndef HW_SOC_DMA_H
|
||||||
#define HW_SOC_DMA_H
|
#define HW_SOC_DMA_H
|
||||||
|
|
||||||
#include "exec/memory.h"
|
#include "exec/hwaddr.h"
|
||||||
|
|
||||||
struct soc_dma_s;
|
struct soc_dma_s;
|
||||||
struct soc_dma_ch_s;
|
struct soc_dma_ch_s;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
/* NOR flash devices */
|
/* NOR flash devices */
|
||||||
|
|
||||||
#include "exec/memory.h"
|
#include "exec/hwaddr.h"
|
||||||
|
|
||||||
/* pflash_cfi01.c */
|
/* pflash_cfi01.c */
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#ifndef HW_BOARDS_H
|
#ifndef HW_BOARDS_H
|
||||||
#define HW_BOARDS_H
|
#define HW_BOARDS_H
|
||||||
|
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "sysemu/blockdev.h"
|
#include "sysemu/blockdev.h"
|
||||||
#include "sysemu/accel.h"
|
#include "sysemu/accel.h"
|
||||||
#include "hw/qdev.h"
|
#include "hw/qdev.h"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#ifndef HW_PARALLEL_H
|
#ifndef HW_PARALLEL_H
|
||||||
#define HW_PARALLEL_H
|
#define HW_PARALLEL_H
|
||||||
|
|
||||||
#include "exec/memory.h"
|
|
||||||
#include "hw/isa/isa.h"
|
#include "hw/isa/isa.h"
|
||||||
#include "chardev/char.h"
|
#include "chardev/char.h"
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#ifndef HW_DISPLAY_MILKYMIST_TMU2_H
|
#ifndef HW_DISPLAY_MILKYMIST_TMU2_H
|
||||||
#define HW_DISPLAY_MILKYMIST_TMU2_H
|
#define HW_DISPLAY_MILKYMIST_TMU2_H
|
||||||
|
|
||||||
|
#include "exec/hwaddr.h"
|
||||||
#include "hw/qdev.h"
|
#include "hw/qdev.h"
|
||||||
|
|
||||||
#if defined(CONFIG_X11) && defined(CONFIG_OPENGL)
|
#if defined(CONFIG_X11) && defined(CONFIG_OPENGL)
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
#ifndef HW_DISPLAY_TC6393XB_H
|
#ifndef HW_DISPLAY_TC6393XB_H
|
||||||
#define HW_DISPLAY_TC6393XB_H
|
#define HW_DISPLAY_TC6393XB_H
|
||||||
|
|
||||||
#include "exec/memory.h"
|
|
||||||
|
|
||||||
typedef struct TC6393xbState TC6393xbState;
|
typedef struct TC6393xbState TC6393xbState;
|
||||||
|
|
||||||
TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
|
TC6393xbState *tc6393xb_init(struct MemoryRegion *sysmem,
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#ifndef QEMU_HW_DISPLAY_VGA_H
|
#ifndef QEMU_HW_DISPLAY_VGA_H
|
||||||
#define QEMU_HW_DISPLAY_VGA_H
|
#define QEMU_HW_DISPLAY_VGA_H
|
||||||
|
|
||||||
#include "exec/memory.h"
|
#include "exec/hwaddr.h"
|
||||||
|
|
||||||
enum vga_retrace_method {
|
enum vga_retrace_method {
|
||||||
VGA_RETRACE_DUMB,
|
VGA_RETRACE_DUMB,
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "qom/object.h"
|
#include "qom/object.h"
|
||||||
#include "exec/memory.h"
|
|
||||||
|
|
||||||
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
|
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#ifndef PM_SMBUS_H
|
#ifndef PM_SMBUS_H
|
||||||
#define PM_SMBUS_H
|
#define PM_SMBUS_H
|
||||||
|
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/i2c/smbus_master.h"
|
#include "hw/i2c/smbus_master.h"
|
||||||
|
|
||||||
#define PM_SMBUS_MAX_MSG_SIZE 32
|
#define PM_SMBUS_MAX_MSG_SIZE 32
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#ifndef HW_SMBUS_EEPROM_H
|
#ifndef HW_SMBUS_EEPROM_H
|
||||||
#define HW_SMBUS_EEPROM_H
|
#define HW_SMBUS_EEPROM_H
|
||||||
|
|
||||||
|
#include "exec/cpu-common.h"
|
||||||
#include "hw/i2c/i2c.h"
|
#include "hw/i2c/i2c.h"
|
||||||
|
|
||||||
void smbus_eeprom_init_one(I2CBus *bus, uint8_t address, uint8_t *eeprom_buf);
|
void smbus_eeprom_init_one(I2CBus *bus, uint8_t address, uint8_t *eeprom_buf);
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#ifndef HW_MISC_AUXBUS_H
|
#ifndef HW_MISC_AUXBUS_H
|
||||||
#define HW_MISC_AUXBUS_H
|
#define HW_MISC_AUXBUS_H
|
||||||
|
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/qdev.h"
|
#include "hw/qdev.h"
|
||||||
|
|
||||||
typedef struct AUXBus AUXBus;
|
typedef struct AUXBus AUXBus;
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#ifndef XICS_H
|
#ifndef XICS_H
|
||||||
#define XICS_H
|
#define XICS_H
|
||||||
|
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/qdev.h"
|
#include "hw/qdev.h"
|
||||||
|
|
||||||
#define XICS_IPI 0x2
|
#define XICS_IPI 0x2
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/qdev.h"
|
#include "hw/qdev.h"
|
||||||
#include "qemu/iov.h"
|
#include "qemu/iov.h"
|
||||||
#include "qemu/queue.h"
|
#include "qemu/queue.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#ifndef QEMU_VIRTIO_H
|
#ifndef QEMU_VIRTIO_H
|
||||||
#define QEMU_VIRTIO_H
|
#define QEMU_VIRTIO_H
|
||||||
|
|
||||||
|
#include "exec/memory.h"
|
||||||
#include "hw/hw.h"
|
#include "hw/hw.h"
|
||||||
#include "net/net.h"
|
#include "net/net.h"
|
||||||
#include "hw/qdev.h"
|
#include "hw/qdev.h"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "io/channel-buffer.h"
|
#include "io/channel-buffer.h"
|
||||||
#include "trace.h"
|
#include "trace.h"
|
||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
|
#include "qemu/rcu.h"
|
||||||
#include "migration/failover.h"
|
#include "migration/failover.h"
|
||||||
#ifdef CONFIG_REPLICATION
|
#ifdef CONFIG_REPLICATION
|
||||||
#include "replication.h"
|
#include "replication.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#ifndef QEMU_MIGRATION_H
|
#ifndef QEMU_MIGRATION_H
|
||||||
#define QEMU_MIGRATION_H
|
#define QEMU_MIGRATION_H
|
||||||
|
|
||||||
|
#include "exec/cpu-common.h"
|
||||||
#include "qapi/qapi-types-migration.h"
|
#include "qapi/qapi-types-migration.h"
|
||||||
#include "qemu/thread.h"
|
#include "qemu/thread.h"
|
||||||
#include "qemu/coroutine_int.h"
|
#include "qemu/coroutine_int.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "ram.h"
|
#include "ram.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
#include "qemu/notify.h"
|
#include "qemu/notify.h"
|
||||||
|
#include "qemu/rcu.h"
|
||||||
#include "sysemu/sysemu.h"
|
#include "sysemu/sysemu.h"
|
||||||
#include "sysemu/balloon.h"
|
#include "sysemu/balloon.h"
|
||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "qemu/error-report.h"
|
#include "qemu/error-report.h"
|
||||||
#include "qemu/main-loop.h"
|
#include "qemu/main-loop.h"
|
||||||
#include "qemu/module.h"
|
#include "qemu/module.h"
|
||||||
|
#include "qemu/rcu.h"
|
||||||
#include "qemu/sockets.h"
|
#include "qemu/sockets.h"
|
||||||
#include "qemu/bitmap.h"
|
#include "qemu/bitmap.h"
|
||||||
#include "qemu/coroutine.h"
|
#include "qemu/coroutine.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user