diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2008-03-16 11:44:35 +0100 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2008-03-16 11:45:58 +0100 |
commit | 3a3a9485aadced820f7619ef7f2a11e72782769f (patch) | |
tree | 33640029cd6902317896b08cadc629a5780e1351 | |
parent | b81d7b3b8d7ca83a9b79d2dbea22f00e78180516 (diff) |
[via] Remove some leftover vars.
-rw-r--r-- | shared-core/via_dma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared-core/via_dma.c b/shared-core/via_dma.c index 63357107..ffdb7bf8 100644 --- a/shared-core/via_dma.c +++ b/shared-core/via_dma.c @@ -406,18 +406,19 @@ static int via_hook_segment(drm_via_private_t * dev_priv, int paused, count; volatile uint32_t *paused_at = dev_priv->last_pause_ptr; uint32_t reader,ptr; - uint32_t data; - cycles_t time; paused = 0; via_flush_write_combine(); (void) *(volatile uint32_t *)(via_get_dma(dev_priv) -1); + *paused_at = pause_addr_lo; via_flush_write_combine(); (void) *paused_at; + reader = *(dev_priv->hw_addr_ptr); ptr = ((volatile char *)paused_at - dev_priv->dma_ptr) + dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr + 4; + dev_priv->last_pause_ptr = via_get_dma(dev_priv) - 1; if ((ptr - reader) <= dev_priv->dma_diff ) { |