mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
include: Include headers where needed
A number of headers neglect to include everything they need. They compile only if the headers they need are already included from elsewhere. Fix that. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20221222120813.727830-3-armbru@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
f139b83717
commit
7a5951f651
@@ -12,6 +12,7 @@
|
||||
#ifndef QEMU_PLUGIN_GEN_H
|
||||
#define QEMU_PLUGIN_GEN_H
|
||||
|
||||
#include "exec/cpu_ldst.h"
|
||||
#include "qemu/plugin.h"
|
||||
#include "tcg/tcg.h"
|
||||
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
#ifndef HW_ACPI_ERST_H
|
||||
#define HW_ACPI_ERST_H
|
||||
|
||||
#include "hw/acpi/bios-linker-loader.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
void build_erst(GArray *table_data, BIOSLinker *linker, Object *erst_dev,
|
||||
const char *oem_id, const char *oem_table_id);
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "chardev/char-fe.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_CMSDK_APB_UART "cmsdk-apb-uart"
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "qemu/fifo8.h"
|
||||
#include "chardev/char-fe.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define TYPE_GOLDFISH_TTY "goldfish_tty"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(GoldfishTTYState, GOLDFISH_TTY)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qapi/error.h"
|
||||
|
||||
static inline DeviceState *xilinx_uartlite_create(hwaddr addr,
|
||||
qemu_irq irq,
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "hw/cris/etraxfs_dma.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qapi/error.h"
|
||||
|
||||
DeviceState *etraxfs_eth_init(NICInfo *nd, hwaddr base, int phyaddr,
|
||||
struct etraxfs_dma_client *dma_out,
|
||||
|
||||
@@ -15,9 +15,10 @@
|
||||
|
||||
#include "exec/memory.h"
|
||||
#include "hw/irq.h"
|
||||
#include "hw/nubus/nubus.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "ui/console.h"
|
||||
#include "qemu/timer.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
typedef enum {
|
||||
MACFB_DISPLAY_APPLE_21_COLOR = 0,
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef SIFIVE_PDMA_H
|
||||
#define SIFIVE_PDMA_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
struct sifive_pdma_chan {
|
||||
uint32_t control;
|
||||
uint32_t next_config;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#define QEMU_IOAPIC_INTERNAL_H
|
||||
|
||||
#include "exec/memory.h"
|
||||
#include "hw/i386/ioapic.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qemu/notify.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#ifndef QEMU_SGX_EPC_H
|
||||
#define QEMU_SGX_EPC_H
|
||||
|
||||
#include "hw/qdev-core.h"
|
||||
#include "hw/i386/hostmem-epc.h"
|
||||
|
||||
#define TYPE_SGX_EPC "sgx-epc"
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#ifndef HW_INTC_GOLDFISH_PIC_H
|
||||
#define HW_INTC_GOLDFISH_PIC_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define TYPE_GOLDFISH_PIC "goldfish_pic"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(GoldfishPICState, GOLDFISH_PIC)
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* Copyright (C) 2021 Loongson Technology Corporation Limited
|
||||
*/
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define TYPE_LOONGARCH_PCH_MSI "loongarch_pch_msi"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(LoongArchPCHMSI, LOONGARCH_PCH_MSI)
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* Copyright (c) 2021 Loongson Technology Corporation Limited
|
||||
*/
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define TYPE_LOONGARCH_PCH_PIC "loongarch_pch_pic"
|
||||
#define PCH_PIC_NAME(name) TYPE_LOONGARCH_PCH_PIC#name
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(LoongArchPCHPIC, LOONGARCH_PCH_PIC)
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
#ifndef HW_INTC_NIOS2_VIC_H
|
||||
#define HW_INTC_NIOS2_VIC_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define TYPE_NIOS2_VIC "nios2-vic"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(Nios2VIC, NIOS2_VIC)
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef MCHP_PFSOC_DMC_H
|
||||
#define MCHP_PFSOC_DMC_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
/* DDR SGMII PHY module */
|
||||
|
||||
#define MCHP_PFSOC_DDR_SGMII_PHY_REG_SIZE 0x1000
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef MCHP_PFSOC_IOSCB_H
|
||||
#define MCHP_PFSOC_IOSCB_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
typedef struct MchpPfSoCIoscbState {
|
||||
SysBusDevice parent;
|
||||
MemoryRegion container;
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef MCHP_PFSOC_SYSREG_H
|
||||
#define MCHP_PFSOC_SYSREG_H
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define MCHP_PFSOC_SYSREG_REG_SIZE 0x2000
|
||||
|
||||
typedef struct MchpPfSoCSysregState {
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#ifndef HW_MISC_PVPANIC_H
|
||||
#define HW_MISC_PVPANIC_H
|
||||
|
||||
#include "exec/memory.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_PVPANIC_ISA_DEVICE "pvpanic"
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
|
||||
#ifndef HW_SIFIVE_E_PRCI_H
|
||||
#define HW_SIFIVE_E_PRCI_H
|
||||
#include "qom/object.h"
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
enum {
|
||||
SIFIVE_E_PRCI_HFROSCCFG = 0x0,
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
|
||||
#ifndef HW_SIFIVE_U_OTP_H
|
||||
#define HW_SIFIVE_U_OTP_H
|
||||
#include "qom/object.h"
|
||||
|
||||
#include "hw/sysbus.h"
|
||||
|
||||
#define SIFIVE_U_OTP_PA 0x00
|
||||
#define SIFIVE_U_OTP_PAIO 0x04
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user