Skip to content
Snippets Groups Projects
Commit d4842052 authored by Markus Armbruster's avatar Markus Armbruster
Browse files

Include exec/memory.h slightly less


Drop unnecessary inclusions from headers.  Downgrade a few more to
exec/hwaddr.h.

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190812052359.30071-17-armbru@redhat.com>
parent d6454270
No related branches found
No related tags found
No related merge requests found
Showing
with 14 additions and 10 deletions
...@@ -13,6 +13,7 @@ ...@@ -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);
......
#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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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"
......
#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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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);
......
#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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment