From 8d05ea8a33c9d450d2a3079e967c69ea38ec28ba Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Thu, 24 May 2007 19:48:41 +0000 Subject: Change ptimer API to use 64-bit values, add save and load methods Use ptimers for Sparc32 Slavio git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2859 c046a42c-6fe2-441c-8c8c-71466251a162 --- vl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vl.h') diff --git a/vl.h b/vl.h index 330861e09c..497cf8da56 100644 --- a/vl.h +++ b/vl.h @@ -1589,11 +1589,13 @@ typedef void (*ptimer_cb)(void *opaque); ptimer_state *ptimer_init(QEMUBH *bh); void ptimer_set_period(ptimer_state *s, int64_t period); void ptimer_set_freq(ptimer_state *s, uint32_t freq); -void ptimer_set_limit(ptimer_state *s, uint32_t limit, int reload); -uint32_t ptimer_get_count(ptimer_state *s); -void ptimer_set_count(ptimer_state *s, uint32_t count); +void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload); +uint64_t ptimer_get_count(ptimer_state *s); +void ptimer_set_count(ptimer_state *s, uint64_t count); void ptimer_run(ptimer_state *s, int oneshot); void ptimer_stop(ptimer_state *s); +void qemu_put_ptimer(QEMUFile *f, ptimer_state *s); +void qemu_get_ptimer(QEMUFile *f, ptimer_state *s); #include "hw/pxa.h" -- cgit v1.2.3