diff options
author | cognet <cognet@FreeBSD.org> | 2005-10-03 14:19:55 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2005-10-03 14:19:55 +0000 |
commit | f014d7eda1642b41a9b65f56070c154961a86ff9 (patch) | |
tree | 890565e9809c7f3dc7f9ae19d5f0a337c9667049 /sys/arm/xscale/i80321/i80321_timer.c | |
parent | 624df2d21e663002c80f0a23804038e6ef6adedd (diff) | |
download | FreeBSD-src-f014d7eda1642b41a9b65f56070c154961a86ff9.zip FreeBSD-src-f014d7eda1642b41a9b65f56070c154961a86ff9.tar.gz |
Import dummy drivers for the i80321 DMA controller and AAU.
The DMA controller driver only knows how to do memory to memory copies, and
the AAU driver how to zero a chunk of memory.
Use them to process big (>=1KB) copying/zeroing.
Diffstat (limited to 'sys/arm/xscale/i80321/i80321_timer.c')
-rw-r--r-- | sys/arm/xscale/i80321/i80321_timer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arm/xscale/i80321/i80321_timer.c b/sys/arm/xscale/i80321/i80321_timer.c index 3e4840b..3747381 100644 --- a/sys/arm/xscale/i80321/i80321_timer.c +++ b/sys/arm/xscale/i80321/i80321_timer.c @@ -73,7 +73,7 @@ static unsigned i80321_timer_get_timecount(struct timecounter *tc); static uint32_t counts_per_hz; static uint32_t offset = 0; -static int32_t last = -1; +static uint32_t last = -1; static int ticked = 0; #define COUNTS_PER_SEC 200000000 /* 200MHz */ @@ -236,7 +236,7 @@ tisr_read(void) static unsigned i80321_timer_get_timecount(struct timecounter *tc) { - int32_t cur = tcr0_read(); + uint32_t cur = tcr0_read(); if (cur > last && last != -1) { offset += counts_per_hz; @@ -250,6 +250,7 @@ i80321_timer_get_timecount(struct timecounter *tc) last = cur; return (counts_per_hz - cur + offset); } + /* * i80321_calibrate_delay: * |