edf5ca5dbe
PCIDeviceClass and PCIDevice are defined in pci.h. Many users of the header don't actually need them. Similar structs live in their own headers: PCIBusClass and PCIBus in pci_bus.h, PCIBridge in pci_bridge.h, PCIHostBridgeClass and PCIHostState in pci_host.h, PCIExpressHost in pcie_host.h, and PCIERootPortClass, PCIEPort, and PCIESlot in pcie_port.h. Move PCIDeviceClass and PCIDeviceClass to new pci_device.h, along with the code that needs them. Adjust include directives. This also enables the next commit. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20221222100330.380143-6-armbru@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
46 lines
1.0 KiB
C
46 lines
1.0 KiB
C
#ifndef HW_ARM_ALLWINNER_A10_H
|
|
#define HW_ARM_ALLWINNER_A10_H
|
|
|
|
#include "qemu/error-report.h"
|
|
#include "hw/char/serial.h"
|
|
#include "hw/arm/boot.h"
|
|
#include "hw/pci/pci_device.h"
|
|
#include "hw/timer/allwinner-a10-pit.h"
|
|
#include "hw/intc/allwinner-a10-pic.h"
|
|
#include "hw/net/allwinner_emac.h"
|
|
#include "hw/sd/allwinner-sdhost.h"
|
|
#include "hw/ide/ahci.h"
|
|
#include "hw/usb/hcd-ohci.h"
|
|
#include "hw/usb/hcd-ehci.h"
|
|
#include "hw/rtc/allwinner-rtc.h"
|
|
|
|
#include "target/arm/cpu.h"
|
|
#include "qom/object.h"
|
|
|
|
|
|
#define AW_A10_SDRAM_BASE 0x40000000
|
|
|
|
#define AW_A10_NUM_USB 2
|
|
|
|
#define TYPE_AW_A10 "allwinner-a10"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(AwA10State, AW_A10)
|
|
|
|
struct AwA10State {
|
|
/*< private >*/
|
|
DeviceState parent_obj;
|
|
/*< public >*/
|
|
|
|
ARMCPU cpu;
|
|
AwA10PITState timer;
|
|
AwA10PICState intc;
|
|
AwEmacState emac;
|
|
AllwinnerAHCIState sata;
|
|
AwSdHostState mmc0;
|
|
AwRtcState rtc;
|
|
MemoryRegion sram_a;
|
|
EHCISysBusState ehci[AW_A10_NUM_USB];
|
|
OHCISysBusState ohci[AW_A10_NUM_USB];
|
|
};
|
|
|
|
#endif
|