radeon_mem.c revision 1450
98N/A/* radeon_mem.c -- Simple GART/fb memory manager for radeon -*- linux-c -*- */
98N/A#include "radeon_drm.h"
98N/A#include "radeon_drv.h"
98N/A#include "radeon_io32.h"
static struct mem_block *
if (!newblock)
goto out;
p = newblock;
if (!newblock)
goto out;
out:
static struct mem_block *
struct mem_block *p;
return (NULL);
static struct mem_block *
struct mem_block *p;
return (NULL);
if (!blocks)
return (ENOMEM);
if (!*heap) {
return (ENOMEM);
struct mem_block *p;
struct mem_block *p;
if (!*heap)
struct mem_block *q = p;
p = p->next;
static struct mem_block **
switch (region) {
case RADEON_MEM_REGION_GART:
case RADEON_MEM_REGION_FB:
return (NULL);
if (!dev_priv) {
return (EINVAL);
#ifdef _MULTI_DATAMODEL
sizeof (alloc32));
#ifdef _MULTI_DATAMODEL
return (EFAULT);
if (!block)
return (ENOMEM);
return (EFAULT);
if (!dev_priv) {
return (EINVAL);
return (EFAULT);
if (!block)
return (EFAULT);
return (EPERM);
if (!dev_priv) {
return (EINVAL);
if (!heap)
return (EFAULT);
if (*heap) {
return (EFAULT);