hw/pci-host/piix: Move i440FX declarations to hw/pci-host/i440fx.h
The hw/pci-host/piix.c contains a mix of PIIX3 and i440FX chipsets functions. To be able to split it, we need to export some declarations first. Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
4b19de14b1
commit
0fd61a2d1c
@ -1244,6 +1244,7 @@ F: hw/i386/
|
|||||||
F: hw/pci-host/piix.c
|
F: hw/pci-host/piix.c
|
||||||
F: hw/pci-host/q35.c
|
F: hw/pci-host/q35.c
|
||||||
F: hw/pci-host/pam.c
|
F: hw/pci-host/pam.c
|
||||||
|
F: include/hw/pci-host/i440fx.h
|
||||||
F: include/hw/pci-host/q35.h
|
F: include/hw/pci-host/q35.h
|
||||||
F: include/hw/pci-host/pam.h
|
F: include/hw/pci-host/pam.h
|
||||||
F: hw/isa/lpc_ich9.c
|
F: hw/isa/lpc_ich9.c
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "hw/acpi/pcihp.h"
|
#include "hw/acpi/pcihp.h"
|
||||||
|
|
||||||
#include "hw/i386/pc.h"
|
#include "hw/pci-host/i440fx.h"
|
||||||
#include "hw/pci/pci.h"
|
#include "hw/pci/pci.h"
|
||||||
#include "hw/pci/pci_bridge.h"
|
#include "hw/pci/pci_bridge.h"
|
||||||
#include "hw/acpi/acpi.h"
|
#include "hw/acpi/acpi.h"
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include "hw/i386/x86.h"
|
#include "hw/i386/x86.h"
|
||||||
#include "hw/i386/pc.h"
|
#include "hw/i386/pc.h"
|
||||||
#include "hw/i386/apic.h"
|
#include "hw/i386/apic.h"
|
||||||
|
#include "hw/pci-host/i440fx.h"
|
||||||
#include "hw/southbridge/piix.h"
|
#include "hw/southbridge/piix.h"
|
||||||
#include "hw/display/ramfb.h"
|
#include "hw/display/ramfb.h"
|
||||||
#include "hw/firmware/smbios.h"
|
#include "hw/firmware/smbios.h"
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include "hw/irq.h"
|
#include "hw/irq.h"
|
||||||
#include "hw/pci/pci.h"
|
#include "hw/pci/pci.h"
|
||||||
#include "hw/pci/pci_host.h"
|
#include "hw/pci/pci_host.h"
|
||||||
|
#include "hw/pci-host/i440fx.h"
|
||||||
#include "hw/southbridge/piix.h"
|
#include "hw/southbridge/piix.h"
|
||||||
#include "hw/qdev-properties.h"
|
#include "hw/qdev-properties.h"
|
||||||
#include "hw/isa/isa.h"
|
#include "hw/isa/isa.h"
|
||||||
|
@ -231,28 +231,6 @@ int cmos_get_fd_drive_type(FloppyDriveType fd0);
|
|||||||
/* hpet.c */
|
/* hpet.c */
|
||||||
extern int no_hpet;
|
extern int no_hpet;
|
||||||
|
|
||||||
/* piix_pci.c */
|
|
||||||
struct PCII440FXState;
|
|
||||||
typedef struct PCII440FXState PCII440FXState;
|
|
||||||
|
|
||||||
#define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
|
|
||||||
#define TYPE_I440FX_PCI_DEVICE "i440FX"
|
|
||||||
|
|
||||||
#define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
|
|
||||||
|
|
||||||
PCIBus *i440fx_init(const char *host_type, const char *pci_type,
|
|
||||||
PCII440FXState **pi440fx_state, int *piix_devfn,
|
|
||||||
ISABus **isa_bus, qemu_irq *pic,
|
|
||||||
MemoryRegion *address_space_mem,
|
|
||||||
MemoryRegion *address_space_io,
|
|
||||||
ram_addr_t ram_size,
|
|
||||||
ram_addr_t below_4g_mem_size,
|
|
||||||
ram_addr_t above_4g_mem_size,
|
|
||||||
MemoryRegion *pci_memory,
|
|
||||||
MemoryRegion *ram_memory);
|
|
||||||
|
|
||||||
PCIBus *find_i440fx(void);
|
|
||||||
|
|
||||||
/* pc_sysfw.c */
|
/* pc_sysfw.c */
|
||||||
void pc_system_flash_create(PCMachineState *pcms);
|
void pc_system_flash_create(PCMachineState *pcms);
|
||||||
void pc_system_firmware_init(PCMachineState *pcms, MemoryRegion *rom_memory);
|
void pc_system_firmware_init(PCMachineState *pcms, MemoryRegion *rom_memory);
|
||||||
|
37
include/hw/pci-host/i440fx.h
Normal file
37
include/hw/pci-host/i440fx.h
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* QEMU i440FX North Bridge Emulation
|
||||||
|
*
|
||||||
|
* Copyright (c) 2006 Fabrice Bellard
|
||||||
|
*
|
||||||
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||||
|
* See the COPYING file in the top-level directory.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef HW_PCI_I440FX_H
|
||||||
|
#define HW_PCI_I440FX_H
|
||||||
|
|
||||||
|
#include "hw/hw.h"
|
||||||
|
#include "hw/pci/pci_bus.h"
|
||||||
|
|
||||||
|
typedef struct PCII440FXState PCII440FXState;
|
||||||
|
|
||||||
|
#define TYPE_I440FX_PCI_HOST_BRIDGE "i440FX-pcihost"
|
||||||
|
#define TYPE_I440FX_PCI_DEVICE "i440FX"
|
||||||
|
|
||||||
|
#define TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE "igd-passthrough-i440FX"
|
||||||
|
|
||||||
|
PCIBus *i440fx_init(const char *host_type, const char *pci_type,
|
||||||
|
PCII440FXState **pi440fx_state, int *piix_devfn,
|
||||||
|
ISABus **isa_bus, qemu_irq *pic,
|
||||||
|
MemoryRegion *address_space_mem,
|
||||||
|
MemoryRegion *address_space_io,
|
||||||
|
ram_addr_t ram_size,
|
||||||
|
ram_addr_t below_4g_mem_size,
|
||||||
|
ram_addr_t above_4g_mem_size,
|
||||||
|
MemoryRegion *pci_memory,
|
||||||
|
MemoryRegion *ram_memory);
|
||||||
|
|
||||||
|
PCIBus *find_i440fx(void);
|
||||||
|
|
||||||
|
#endif
|
@ -1,5 +1,6 @@
|
|||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "hw/i386/pc.h"
|
#include "hw/pci-host/i440fx.h"
|
||||||
|
|
||||||
PCIBus *find_i440fx(void)
|
PCIBus *find_i440fx(void)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user