From 6963d7af10c657d2b654dc85fca6a3104d32d8a9 Mon Sep 17 00:00:00 2001 From: pbrook Date: Wed, 23 May 2007 01:13:57 +0000 Subject: [PATCH] Add ptimer.c function declarations and makefile rule. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2847 c046a42c-6fe2-441c-8c8c-71466251a162 --- Makefile.target | 2 +- vl.h | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile.target b/Makefile.target index dc30d47223..e5b3ecc057 100644 --- a/Makefile.target +++ b/Makefile.target @@ -455,7 +455,7 @@ endif ifeq ($(TARGET_BASE_ARCH), arm) VL_OBJS+= integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o VL_OBJS+= arm_boot.o pl011.o pl050.o pl080.o pl110.o pl181.o pl190.o -VL_OBJS+= versatile_pci.o sd.o +VL_OBJS+= versatile_pci.o sd.o ptimer.o VL_OBJS+= arm_gic.o realview.o arm_sysctl.o VL_OBJS+= arm-semi.o VL_OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o 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" -- GitLab