summaryrefslogtreecommitdiff
path: root/hw/vga.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-31 16:07:13 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:55:10 -0500
commit43bf782b1aebf40e79a48062eccd8ada9e211ee9 (patch)
tree28052e5d49eef54515cd86e6d542c274fd80de29 /hw/vga.c
parentcirrus_vga: prefix vga_ioport_{read, write} with cirrus (diff)
downloadqemu-kvm-43bf782b1aebf40e79a48062eccd8ada9e211ee9.tar.gz
qemu-kvm-43bf782b1aebf40e79a48062eccd8ada9e211ee9.tar.bz2
qemu-kvm-43bf782b1aebf40e79a48062eccd8ada9e211ee9.zip
vga: export vga_ioport_{read,write}
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga.c')
-rw-r--r--hw/vga.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 7bfd8e9d4..d1de04e79 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -285,9 +285,9 @@ static uint8_t vga_dumb_retrace(VGAState *s)
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;
/* 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;
}
-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;
/* check port range access depending on color/monochrome mode */