mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/display: Rename VGA_ISA_MM -> VGA_MMIO
There is no ISA bus part in the MMIO VGA device, so rename: * hw/display/vga-isa-mm.c -> hw/display/vga-mmio.c * CONFIG_VGA_ISA_MM -> CONFIG_VGA_MMIO * ISAVGAMMState -> VGAMmioState * isa_vga_mm_init() -> vga_mmio_init() Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20211206224528.563588-2-f4bug@amsat.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
1c6c0b9ec1
commit
3ac25236ea
7 changed files with 16 additions and 18 deletions
|
@ -49,7 +49,7 @@ config VGA_ISA
|
|||
depends on ISA_BUS
|
||||
select VGA
|
||||
|
||||
config VGA_ISA_MM
|
||||
config VGA_MMIO
|
||||
bool
|
||||
select VGA
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ softmmu_ss.add(when: 'CONFIG_XEN', if_true: files('xenfb.c'))
|
|||
|
||||
softmmu_ss.add(when: 'CONFIG_VGA_PCI', if_true: files('vga-pci.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VGA_ISA', if_true: files('vga-isa.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VGA_ISA_MM', if_true: files('vga-isa-mm.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VGA_MMIO', if_true: files('vga-mmio.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VMWARE_VGA', if_true: files('vmware_vga.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_BOCHS_DISPLAY', if_true: files('bochs-display.c'))
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* QEMU ISA MM VGA Emulator.
|
||||
* QEMU MMIO VGA Emulator.
|
||||
*
|
||||
* Copyright (c) 2003 Fabrice Bellard
|
||||
*
|
||||
|
@ -32,15 +32,15 @@
|
|||
|
||||
#define VGA_RAM_SIZE (8 * MiB)
|
||||
|
||||
typedef struct ISAVGAMMState {
|
||||
typedef struct VGAMmioState {
|
||||
VGACommonState vga;
|
||||
int it_shift;
|
||||
} ISAVGAMMState;
|
||||
} VGAMmioState;
|
||||
|
||||
/* Memory mapped interface */
|
||||
static uint64_t vga_mm_read(void *opaque, hwaddr addr, unsigned size)
|
||||
{
|
||||
ISAVGAMMState *s = opaque;
|
||||
VGAMmioState *s = opaque;
|
||||
|
||||
return vga_ioport_read(&s->vga, addr >> s->it_shift) &
|
||||
MAKE_64BIT_MASK(0, size * 8);
|
||||
|
@ -49,7 +49,7 @@ static uint64_t vga_mm_read(void *opaque, hwaddr addr, unsigned size)
|
|||
static void vga_mm_write(void *opaque, hwaddr addr, uint64_t value,
|
||||
unsigned size)
|
||||
{
|
||||
ISAVGAMMState *s = opaque;
|
||||
VGAMmioState *s = opaque;
|
||||
|
||||
vga_ioport_write(&s->vga, addr >> s->it_shift,
|
||||
value & MAKE_64BIT_MASK(0, size * 8));
|
||||
|
@ -65,7 +65,7 @@ static const MemoryRegionOps vga_mm_ctrl_ops = {
|
|||
.endianness = DEVICE_NATIVE_ENDIAN,
|
||||
};
|
||||
|
||||
static void vga_mm_init(ISAVGAMMState *s, hwaddr vram_base,
|
||||
static void vga_mm_init(VGAMmioState *s, hwaddr vram_base,
|
||||
hwaddr ctrl_base, int it_shift,
|
||||
MemoryRegion *address_space)
|
||||
{
|
||||
|
@ -91,11 +91,10 @@ static void vga_mm_init(ISAVGAMMState *s, hwaddr vram_base,
|
|||
memory_region_set_coalescing(vga_io_memory);
|
||||
}
|
||||
|
||||
int isa_vga_mm_init(hwaddr vram_base,
|
||||
hwaddr ctrl_base, int it_shift,
|
||||
MemoryRegion *address_space)
|
||||
int vga_mmio_init(hwaddr vram_base, hwaddr ctrl_base,
|
||||
int it_shift, MemoryRegion *address_space)
|
||||
{
|
||||
ISAVGAMMState *s;
|
||||
VGAMmioState *s;
|
||||
|
||||
s = g_malloc0(sizeof(*s));
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue