mirror of
https://github.com/qemu/qemu.git
synced 2025-01-19 03:53:28 +08:00
vga: export vga_ioport_{read,write}
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0ceac75b8c
commit
43bf782b1a
8
hw/vga.c
8
hw/vga.c
@ -285,9 +285,9 @@ static uint8_t vga_dumb_retrace(VGAState *s)
|
|||||||
return s->st01 ^ (ST01_V_RETRACE | ST01_DISP_ENABLE);
|
return s->st01 ^ (ST01_V_RETRACE | ST01_DISP_ENABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t vga_ioport_read(void *opaque, uint32_t addr)
|
uint32_t vga_ioport_read(void *opaque, uint32_t addr)
|
||||||
{
|
{
|
||||||
VGAState *s = opaque;
|
VGACommonState *s = opaque;
|
||||||
int val, index;
|
int val, index;
|
||||||
|
|
||||||
/* check port range access depending on color/monochrome mode */
|
/* check port range access depending on color/monochrome mode */
|
||||||
@ -378,9 +378,9 @@ static uint32_t vga_ioport_read(void *opaque, uint32_t addr)
|
|||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val)
|
void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val)
|
||||||
{
|
{
|
||||||
VGAState *s = opaque;
|
VGACommonState *s = opaque;
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
/* check port range access depending on color/monochrome mode */
|
/* check port range access depending on color/monochrome mode */
|
||||||
|
@ -194,6 +194,8 @@ void vga_common_reset(VGACommonState *s);
|
|||||||
|
|
||||||
void vga_dirty_log_start(VGACommonState *s);
|
void vga_dirty_log_start(VGACommonState *s);
|
||||||
|
|
||||||
|
uint32_t vga_ioport_read(void *opaque, uint32_t addr);
|
||||||
|
void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val);
|
||||||
uint32_t vga_mem_readb(void *opaque, target_phys_addr_t addr);
|
uint32_t vga_mem_readb(void *opaque, target_phys_addr_t addr);
|
||||||
void vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val);
|
void vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val);
|
||||||
void vga_invalidate_scanlines(VGACommonState *s, int y1, int y2);
|
void vga_invalidate_scanlines(VGACommonState *s, int y1, int y2);
|
||||||
|
Loading…
Reference in New Issue
Block a user