diff options
author | Thomas Hellstrom <unichrome@shipmail.org> | 2005-05-23 20:56:54 +0000 |
---|---|---|
committer | Thomas Hellstrom <unichrome@shipmail.org> | 2005-05-23 20:56:54 +0000 |
commit | e1fd79b31e130e9e4bafcab914491973147b7f86 (patch) | |
tree | 25989f462e07865edfff2df722bbbc02c916795b /shared-core/via_mm.c | |
parent | 955791f0645d4b61bd20d817c532dda3a40aaddd (diff) |
VIA:
64-bit fixes. Bumped driver date and patchlevel.
Diffstat (limited to 'shared-core/via_mm.c')
-rw-r--r-- | shared-core/via_mm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/shared-core/via_mm.c b/shared-core/via_mm.c index cf286b49..c22712f4 100644 --- a/shared-core/via_mm.c +++ b/shared-core/via_mm.c @@ -144,7 +144,7 @@ int via_final_context(struct drm_device *dev, int context) if (i < MAX_CONTEXT) { set_t *set; - unsigned int item; + ITEM_TYPE item; int retval; DRM_DEBUG("find socket %d, context = %d\n", i, context); @@ -153,7 +153,7 @@ int via_final_context(struct drm_device *dev, int context) set = global_ppriv[i].sets[0]; retval = via_setFirst(set, &item); while (retval) { - DRM_DEBUG("free video memory 0x%x\n", item); + DRM_DEBUG("free video memory 0x%lx\n", item); via_mmFreeMem((PMemBlock) item); retval = via_setNext(set, &item); } @@ -163,7 +163,7 @@ int via_final_context(struct drm_device *dev, int context) set = global_ppriv[i].sets[1]; retval = via_setFirst(set, &item); while (retval) { - DRM_DEBUG("free agp memory 0x%x\n", item); + DRM_DEBUG("free agp memory 0x%lx\n", item); via_mmFreeMem((PMemBlock) item); retval = via_setNext(set, &item); } @@ -228,7 +228,7 @@ static int via_fb_alloc(drm_via_mem_t * mem) block = via_mmAllocMem(FBHeap, fb.size, 5, 0); if (block) { fb.offset = block->ofs; - fb.free = (unsigned int)block; + fb.free = (unsigned long)block; if (!add_alloc_set(fb.context, VIDEO, fb.free)) { DRM_DEBUG("adding to allocation set fails\n"); via_mmFreeMem((PMemBlock) fb.free); @@ -265,7 +265,7 @@ static int via_agp_alloc(drm_via_mem_t * mem) block = via_mmAllocMem(AgpHeap, agp.size, 5, 0); if (block) { agp.offset = block->ofs; - agp.free = (unsigned int)block; + agp.free = (unsigned long)block; if (!add_alloc_set(agp.context, AGP, agp.free)) { DRM_DEBUG("adding to allocation set fails\n"); via_mmFreeMem((PMemBlock) agp.free); @@ -329,7 +329,7 @@ static int via_fb_free(drm_via_mem_t * mem) retval = -1; } - DRM_DEBUG("free fb, free = %d\n", fb.free); + DRM_DEBUG("free fb, free = %ld\n", fb.free); return retval; } @@ -352,7 +352,7 @@ static int via_agp_free(drm_via_mem_t * mem) retval = -1; } - DRM_DEBUG("free agp, free = %d\n", agp.free); + DRM_DEBUG("free agp, free = %ld\n", agp.free); return retval; } |