mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Add one new file vga-pci.h and cleanup on all platforms
Functions pci_vga_init() and pci_cirrus_vga_init() are declared in pc.h. That prevents other platforms (e.g. sPAPR) to use them. This patch is to create one new file vga-pci.h and move the declarations to vga-pci.h, so that they can be shared by all platforms. This patch also cleans up on all platforms. Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
7e99826c35
commit
c1195d1677
11 changed files with 21 additions and 8 deletions
4
hw/pc.h
4
hw/pc.h
|
@ -189,14 +189,10 @@ static inline DeviceState *isa_vga_init(ISABus *bus)
|
|||
return &dev->qdev;
|
||||
}
|
||||
|
||||
DeviceState *pci_vga_init(PCIBus *bus);
|
||||
int isa_vga_mm_init(target_phys_addr_t vram_base,
|
||||
target_phys_addr_t ctrl_base, int it_shift,
|
||||
MemoryRegion *address_space);
|
||||
|
||||
/* cirrus_vga.c */
|
||||
DeviceState *pci_cirrus_vga_init(PCIBus *bus);
|
||||
|
||||
/* ne2000.c */
|
||||
static inline bool isa_ne2000_init(ISABus *bus, int base, int irq, NICInfo *nd)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue