mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 19:03:38 +08:00
hw/display/vga: extract public API from i386/pc to "hw/display/vga.h"
and remove the old i386/pc dependency. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
e07b15891e
commit
866e2b3727
@ -881,6 +881,7 @@ F: hw/timer/hpet*
|
||||
F: hw/timer/i8254*
|
||||
F: hw/timer/mc146818rtc*
|
||||
F: hw/watchdog/wdt_ib700.c
|
||||
F: include/hw/display/vga.h
|
||||
F: include/hw/i2c/pm_smbus.h
|
||||
F: include/hw/isa/i8257.h
|
||||
F: include/hw/timer/hpet.h
|
||||
|
@ -23,10 +23,9 @@
|
||||
*/
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/i386/pc.h"
|
||||
#include "hw/display/vga.h"
|
||||
#include "vga_int.h"
|
||||
#include "ui/pixel_ops.h"
|
||||
#include "qemu/timer.h"
|
||||
|
||||
#define VGA_RAM_SIZE (8192 * 1024)
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
*/
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/i386/pc.h"
|
||||
#include "hw/isa/isa.h"
|
||||
#include "vga_int.h"
|
||||
#include "ui/pixel_ops.h"
|
||||
#include "qemu/timer.h"
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "hw/hw.h"
|
||||
#include "hw/i386/pc.h"
|
||||
#include "hw/display/vga.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "vga_int.h"
|
||||
#include "vga_regs.h"
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "hw/loader.h"
|
||||
#include "hw/timer/mc146818rtc.h"
|
||||
#include "hw/timer/i8254.h"
|
||||
#include "hw/display/vga.h"
|
||||
#include "hw/audio/pcspk.h"
|
||||
#include "sysemu/block-backend.h"
|
||||
#include "hw/sysbus.h"
|
||||
|
25
include/hw/display/vga.h
Normal file
25
include/hw/display/vga.h
Normal file
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* QEMU VGA Emulator.
|
||||
*
|
||||
* Copyright (c) 2003 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 QEMU_HW_DISPLAY_VGA_H
|
||||
#define QEMU_HW_DISPLAY_VGA_H
|
||||
|
||||
#include "exec/memory.h"
|
||||
|
||||
enum vga_retrace_method {
|
||||
VGA_RETRACE_DUMB,
|
||||
VGA_RETRACE_PRECISE
|
||||
};
|
||||
|
||||
extern enum vga_retrace_method vga_retrace_method;
|
||||
|
||||
int isa_vga_mm_init(hwaddr vram_base,
|
||||
hwaddr ctrl_base, int it_shift,
|
||||
MemoryRegion *address_space);
|
||||
|
||||
#endif
|
@ -302,18 +302,6 @@ PCIBus *find_i440fx(void);
|
||||
extern PCIDevice *piix4_dev;
|
||||
int piix4_init(PCIBus *bus, ISABus **isa_bus, int devfn);
|
||||
|
||||
/* vga.c */
|
||||
enum vga_retrace_method {
|
||||
VGA_RETRACE_DUMB,
|
||||
VGA_RETRACE_PRECISE
|
||||
};
|
||||
|
||||
extern enum vga_retrace_method vga_retrace_method;
|
||||
|
||||
int isa_vga_mm_init(hwaddr vram_base,
|
||||
hwaddr ctrl_base, int it_shift,
|
||||
MemoryRegion *address_space);
|
||||
|
||||
/* ne2000.c */
|
||||
static inline bool isa_ne2000_init(ISABus *bus, int base, int irq, NICInfo *nd)
|
||||
{
|
||||
|
2
vl.c
2
vl.c
@ -57,9 +57,9 @@ int main(int argc, char **argv)
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/accel.h"
|
||||
#include "hw/usb.h"
|
||||
#include "hw/i386/pc.h"
|
||||
#include "hw/isa/isa.h"
|
||||
#include "hw/scsi/scsi.h"
|
||||
#include "hw/display/vga.h"
|
||||
#include "hw/bt.h"
|
||||
#include "sysemu/watchdog.h"
|
||||
#include "hw/smbios/smbios.h"
|
||||
|
Loading…
Reference in New Issue
Block a user