Commit 6963d7af10c657d2b654dc85fca6a3104d32d8a9
1 parent
423f0742
Add ptimer.c function declarations and makefile rule.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2847 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
14 additions
and
1 deletions
Makefile.target
... | ... | @@ -455,7 +455,7 @@ endif |
455 | 455 | ifeq ($(TARGET_BASE_ARCH), arm) |
456 | 456 | VL_OBJS+= integratorcp.o versatilepb.o ps2.o smc91c111.o arm_pic.o arm_timer.o |
457 | 457 | VL_OBJS+= arm_boot.o pl011.o pl050.o pl080.o pl110.o pl181.o pl190.o |
458 | -VL_OBJS+= versatile_pci.o sd.o | |
458 | +VL_OBJS+= versatile_pci.o sd.o ptimer.o | |
459 | 459 | VL_OBJS+= arm_gic.o realview.o arm_sysctl.o |
460 | 460 | VL_OBJS+= arm-semi.o |
461 | 461 | VL_OBJS+= pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o | ... | ... |
vl.h
... | ... | @@ -1582,6 +1582,19 @@ struct pcmcia_card_s { |
1582 | 1582 | /* dscm1xxxx.c */ |
1583 | 1583 | struct pcmcia_card_s *dscm1xxxx_init(BlockDriverState *bdrv); |
1584 | 1584 | |
1585 | +/* ptimer.c */ | |
1586 | +typedef struct ptimer_state ptimer_state; | |
1587 | +typedef void (*ptimer_cb)(void *opaque); | |
1588 | + | |
1589 | +ptimer_state *ptimer_init(QEMUBH *bh); | |
1590 | +void ptimer_set_period(ptimer_state *s, int64_t period); | |
1591 | +void ptimer_set_freq(ptimer_state *s, uint32_t freq); | |
1592 | +void ptimer_set_limit(ptimer_state *s, uint32_t limit, int reload); | |
1593 | +uint32_t ptimer_get_count(ptimer_state *s); | |
1594 | +void ptimer_set_count(ptimer_state *s, uint32_t count); | |
1595 | +void ptimer_run(ptimer_state *s, int oneshot); | |
1596 | +void ptimer_stop(ptimer_state *s); | |
1597 | + | |
1585 | 1598 | #include "hw/pxa.h" |
1586 | 1599 | |
1587 | 1600 | #include "gdbstub.h" | ... | ... |