aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-10-31 11:28:11 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-12 11:23:53 -0600
commit038eaf82c853f3bf8d4c106c0677bbf4adada7de (patch)
treeb7f750e6f884315960d195295d03e95c99bab09f /hw/pc.h
parentba6d048aadb3a7fb87781a76dc89bb09edac1fcf (diff)
serial: Add interface to set reference oscillator frequency
Many (most?) serial interfaces have a programmable clock which provides the reference frequency ("baudbase"). So a fixed baudbase which is only set once can be wrong. omap1.c is an example which could use the new interface to change baudbase when the programmable clock changes. ar7 system emulation (still not part of standard QEMU) is similar to omap and already uses serial_set_frequency. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pc.h')
-rw-r--r--hw/pc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pc.h b/hw/pc.h
index 15fff8d103..03ffc91536 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -13,6 +13,7 @@ SerialState *serial_mm_init (target_phys_addr_t base, int it_shift,
qemu_irq irq, int baudbase,
CharDriverState *chr, int ioregister);
SerialState *serial_isa_init(int index, CharDriverState *chr);
+void serial_set_frequency(SerialState *s, uint32_t frequency);
/* parallel.c */