diff options
author | Dave Airlie <airlied@redhat.com> | 2008-10-09 17:16:28 +1100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-10-09 17:16:28 +1100 |
commit | 0975e007ec7933acf9cd8ad2f281313ef8d32ac9 (patch) | |
tree | 6eb9e6b9d587619b6f543c0d1ee6f1a13edc0133 /src | |
parent | d744dc013cf5ca3141c0fdf55e36d713fe9f53ba (diff) |
radeon: rename radeon_memory to radeon_legacy_memory.
This is a setup patch for the kms/memory management code.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/radeon.h | 14 | ||||
-rw-r--r-- | src/radeon_crtc.c | 4 | ||||
-rw-r--r-- | src/radeon_cursor.c | 2 | ||||
-rw-r--r-- | src/radeon_legacy_memory.c (renamed from src/radeon_memory.c) | 4 | ||||
-rw-r--r-- | src/radeon_textured_video.c | 14 | ||||
-rw-r--r-- | src/radeon_video.c | 30 |
7 files changed, 35 insertions, 35 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index c79b635c..d65a3e47 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -88,7 +88,7 @@ radeon_drv_la_LTLIBRARIES = radeon_drv.la radeon_drv_la_LDFLAGS = -module -avoid-version radeon_drv_ladir = @moduledir@/drivers radeon_drv_la_SOURCES = \ - radeon_accel.c radeon_cursor.c radeon_dga.c radeon_memory.c \ + radeon_accel.c radeon_cursor.c radeon_dga.c radeon_legacy_memory.c \ radeon_driver.c radeon_video.c radeon_bios.c radeon_mm_i2c.c \ radeon_vip.c radeon_misc.c radeon_probe.c \ legacy_crtc.c legacy_output.c \ diff --git a/src/radeon.h b/src/radeon.h index aec8a258..f7ae1a81 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -1068,15 +1068,15 @@ extern void RADEONUpdateHVPosition(xf86OutputPtr output, DisplayModePtr mode); extern void RADEONInitVideo(ScreenPtr pScreen); extern void RADEONResetVideo(ScrnInfoPtr pScrn); -/* radeon_memory.c */ +/* radeon_legacy_memory.c */ extern uint32_t -radeon_allocate_memory(ScrnInfoPtr pScrn, - void **mem_struct, - int size, - int align); +radeon_legacy_allocate_memory(ScrnInfoPtr pScrn, + void **mem_struct, + int size, + int align); extern void -radeon_free_memory(ScrnInfoPtr pScrn, - void *mem_struct); +radeon_legacy_free_memory(ScrnInfoPtr pScrn, + void *mem_struct); #ifdef XF86DRI # ifdef USE_XAA diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 99992fcf..9040baea 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -418,7 +418,7 @@ radeon_crtc_shadow_allocate (xf86CrtcPtr crtc, int width, int height) * setter for offscreen area locking in EXA currently. So, we just * allocate offscreen memory and fake up a pixmap header for it. */ - rotate_offset = radeon_allocate_memory(pScrn, &radeon_crtc->crtc_rotate_mem, size, align); + rotate_offset = radeon_legacy_allocate_memory(pScrn, &radeon_crtc->crtc_rotate_mem, size, align); if (rotate_offset == 0) return NULL; @@ -466,7 +466,7 @@ radeon_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *data FreeScratchPixmapHeader(rotate_pixmap); if (data) { - radeon_free_memory(pScrn, radeon_crtc->crtc_rotate_mem); + radeon_legacy_free_memory(pScrn, radeon_crtc->crtc_rotate_mem); radeon_crtc->crtc_rotate_mem = NULL; } diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c index 22a33d61..08bfddf4 100644 --- a/src/radeon_cursor.c +++ b/src/radeon_cursor.c @@ -341,7 +341,7 @@ Bool RADEONCursorInit(ScreenPtr pScreen) RADEONCrtcPrivatePtr radeon_crtc = crtc->driver_private; radeon_crtc->cursor_offset = - radeon_allocate_memory(pScrn, &radeon_crtc->cursor_mem, size_bytes, align); + radeon_legacy_allocate_memory(pScrn, &radeon_crtc->cursor_mem, size_bytes, align); if (radeon_crtc->cursor_offset == 0) return FALSE; diff --git a/src/radeon_memory.c b/src/radeon_legacy_memory.c index f965cb4f..2a9ee940 100644 --- a/src/radeon_memory.c +++ b/src/radeon_legacy_memory.c @@ -12,7 +12,7 @@ * returned. */ uint32_t -radeon_allocate_memory(ScrnInfoPtr pScrn, +radeon_legacy_allocate_memory(ScrnInfoPtr pScrn, void **mem_struct, int size, int align) @@ -90,7 +90,7 @@ radeon_allocate_memory(ScrnInfoPtr pScrn, } void -radeon_free_memory(ScrnInfoPtr pScrn, +radeon_legacy_free_memory(ScrnInfoPtr pScrn, void *mem_struct) { ScreenPtr pScreen = screenInfo.screens[pScrn->scrnIndex]; diff --git a/src/radeon_textured_video.c b/src/radeon_textured_video.c index 4005df95..c185b460 100644 --- a/src/radeon_textured_video.c +++ b/src/radeon_textured_video.c @@ -197,14 +197,14 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn, dstPitch = (dstPitch + 15) & ~15; if (pPriv->video_memory != NULL && size != pPriv->size) { - radeon_free_memory(pScrn, pPriv->video_memory); + radeon_legacy_free_memory(pScrn, pPriv->video_memory); pPriv->video_memory = NULL; } if (pPriv->video_memory == NULL) { - pPriv->video_offset = radeon_allocate_memory(pScrn, - &pPriv->video_memory, - size * 2, 64); + pPriv->video_offset = radeon_legacy_allocate_memory(pScrn, + &pPriv->video_memory, + size * 2, 64); if (pPriv->video_offset == 0) return BadAlloc; } @@ -213,9 +213,9 @@ RADEONPutImageTextured(ScrnInfoPtr pScrn, if (!IS_R500_3D) pPriv->bicubic_enabled = FALSE; if (pPriv->bicubic_memory == NULL && pPriv->bicubic_enabled) { - pPriv->bicubic_offset = radeon_allocate_memory(pScrn, - &pPriv->bicubic_memory, - sizeof(bicubic_tex_512), 64); + pPriv->bicubic_offset = radeon_legacy_allocate_memory(pScrn, + &pPriv->bicubic_memory, + sizeof(bicubic_tex_512), 64); pPriv->bicubic_src_offset = pPriv->bicubic_offset + info->fbLocation + pScrn->fbOffset; if (pPriv->bicubic_offset == 0) pPriv->bicubic_enabled = FALSE; diff --git a/src/radeon_video.c b/src/radeon_video.c index 47b04973..6249ceac 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -1638,11 +1638,11 @@ RADEONStopVideo(ScrnInfoPtr pScrn, pointer data, Bool cleanup) if (pPriv->textured) { if (cleanup) { if (pPriv->bicubic_memory != NULL) { - radeon_free_memory(pScrn, pPriv->bicubic_memory); + radeon_legacy_free_memory(pScrn, pPriv->bicubic_memory); pPriv->bicubic_memory = NULL; } if (pPriv->video_memory != NULL) { - radeon_free_memory(pScrn, pPriv->video_memory); + radeon_legacy_free_memory(pScrn, pPriv->video_memory); pPriv->video_memory = NULL; } } @@ -1667,7 +1667,7 @@ RADEONStopVideo(ScrnInfoPtr pScrn, pointer data, Bool cleanup) if(pPriv->i2c != NULL) RADEON_board_setmisc(pPriv); } if (pPriv->video_memory != NULL) { - radeon_free_memory(pScrn, pPriv->video_memory); + radeon_legacy_free_memory(pScrn, pPriv->video_memory); pPriv->video_memory = NULL; } pPriv->videoStatus = 0; @@ -2937,9 +2937,9 @@ RADEONPutImage( if (idconv == FOURCC_YV12 || id == FOURCC_I420) { new_size += (dstPitch >> 1) * ((height + 1) & ~1); } - pPriv->video_offset = radeon_allocate_memory(pScrn, &pPriv->video_memory, - (pPriv->doubleBuffer ? - (new_size * 2) : new_size), 64); + pPriv->video_offset = radeon_legacy_allocate_memory(pScrn, &pPriv->video_memory, + (pPriv->doubleBuffer ? + (new_size * 2) : new_size), 64); if (pPriv->video_offset == 0) return BadAlloc; @@ -3133,7 +3133,7 @@ RADEONVideoTimerCallback(ScrnInfoPtr pScrn, Time now) } else { /* FREE_TIMER */ if(pPriv->freeTime < now) { if (pPriv->video_memory != NULL) { - radeon_free_memory(pScrn, pPriv->video_memory); + radeon_legacy_free_memory(pScrn, pPriv->video_memory); pPriv->video_memory = NULL; } pPriv->videoStatus = 0; @@ -3168,7 +3168,7 @@ RADEONAllocateSurface( pitch = ((w << 1) + 15) & ~15; size = pitch * h; - offset = radeon_allocate_memory(pScrn, &surface_memory, size, 64); + offset = radeon_legacy_allocate_memory(pScrn, &surface_memory, size, 64); if (offset == 0) return BadAlloc; @@ -3176,18 +3176,18 @@ RADEONAllocateSurface( surface->height = h; if(!(surface->pitches = xalloc(sizeof(int)))) { - radeon_free_memory(pScrn, surface_memory); + radeon_legacy_free_memory(pScrn, surface_memory); return BadAlloc; } if(!(surface->offsets = xalloc(sizeof(int)))) { xfree(surface->pitches); - radeon_free_memory(pScrn, surface_memory); + radeon_legacy_free_memory(pScrn, surface_memory); return BadAlloc; } if(!(pPriv = xalloc(sizeof(OffscreenPrivRec)))) { xfree(surface->pitches); xfree(surface->offsets); - radeon_free_memory(pScrn, surface_memory); + radeon_legacy_free_memory(pScrn, surface_memory); return BadAlloc; } @@ -3228,7 +3228,7 @@ RADEONFreeSurface( if(pPriv->isOn) RADEONStopSurface(surface); - radeon_free_memory(pScrn, pPriv->surface_memory); + radeon_legacy_free_memory(pScrn, pPriv->surface_memory); pPriv->surface_memory = NULL; xfree(surface->pitches); xfree(surface->offsets); @@ -3504,9 +3504,9 @@ RADEONPutVideo( if (pPriv->capture_vbi_data) alloc_size += 2 * 2 * vbi_line_width * 21; - pPriv->video_offset = radeon_allocate_memory(pScrn, &pPriv->video_memory, - (pPriv->doubleBuffer ? - (new_size * 2) : new_size), 64); + pPriv->video_offset = radeon_legacy_allocate_memory(pScrn, &pPriv->video_memory, + (pPriv->doubleBuffer ? + (new_size * 2) : new_size), 64); if (pPriv->video_offset == 0) return BadAlloc; |