aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-23 01:13:57 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-23 01:13:57 +0000
commit6963d7af10c657d2b654dc85fca6a3104d32d8a9 (patch)
treed8b28564bb8a9a96f8a3df26304be3de24a152db /vl.h
parent423f0742a8483430fe031861c316b09f1967319d (diff)
Add ptimer.c function declarations and makefile rule.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2847 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/vl.h b/vl.h
index b831d8d2d4..88ebdbccf6 100644
--- a/vl.h
+++ b/vl.h
@@ -1582,6 +1582,19 @@ struct pcmcia_card_s {
/* dscm1xxxx.c */
struct pcmcia_card_s *dscm1xxxx_init(BlockDriverState *bdrv);
+/* ptimer.c */
+typedef struct ptimer_state ptimer_state;
+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_run(ptimer_state *s, int oneshot);
+void ptimer_stop(ptimer_state *s);
+
#include "hw/pxa.h"
#include "gdbstub.h"