diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-24 19:48:41 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-24 19:48:41 +0000 |
commit | 8d05ea8a33c9d450d2a3079e967c69ea38ec28ba (patch) | |
tree | 48bc5d5bf139a99758a9a55c286bb017a33c3bb7 /vl.h | |
parent | 2dc7b602df142a470cbf82b5d7ef1ea99f761785 (diff) |
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
Diffstat (limited to 'vl.h')
-rw-r--r-- | vl.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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" |