]> git.proxmox.com Git - qemu.git/blobdiff - hw/baum.c
char: rename CHR_EVENT_RESET to CHR_EVENT_OPENED
[qemu.git] / hw / baum.c
index a23e685d797e02de1280a7f35a4ffe2df0c8749e..c66e737ccdb1629a93855e997e794025bfa85248 100644 (file)
--- a/hw/baum.c
+++ b/hw/baum.c
@@ -335,7 +335,8 @@ static int baum_eat_packet(BaumDriverState *baum, const uint8_t *buf, int len)
         int i;
 
         /* Allow 100ms to complete the DisplayData packet */
-        qemu_mod_timer(baum->cellCount_timer, qemu_get_clock(vm_clock) + ticks_per_sec / 10);
+        qemu_mod_timer(baum->cellCount_timer, qemu_get_clock(vm_clock) +
+                       get_ticks_per_sec() / 10);
         for (i = 0; i < baum->x * baum->y ; i++) {
             EAT(c);
             cells[i] = c;
@@ -474,7 +475,7 @@ static void baum_send_event(CharDriverState *chr, int event)
     switch (event) {
     case CHR_EVENT_BREAK:
         break;
-    case CHR_EVENT_RESET:
+    case CHR_EVENT_OPENED:
         /* Reset state */
         baum->in_buf_used = 0;
         break;