radeon_bo.h revision 7a0d67332f33bc21290d63bc7c8150b0cf0a4b21
/*
* Copyright © 2008 Jérôme Glisse
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS, AUTHORS
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*/
/*
* Authors:
* Jérôme Glisse <glisse@freedesktop.org>
*/
#ifndef RADEON_BO_H
#define RADEON_BO_H
#include <stdio.h>
#include <stdint.h>
#include "radeon_track.h"
/* bo object */
#define RADEON_BO_FLAGS_MACRO_TILE 1
#define RADEON_BO_FLAGS_MICRO_TILE 2
struct radeon_bo_manager;
struct radeon_bo {
unsigned cref;
#ifdef RADEON_BO_TRACK
struct radeon_track *track;
#endif
void *ptr;
struct radeon_bo_manager *bom;
};
/* bo functions */
struct radeon_bo_funcs {
};
struct radeon_bo_manager {
struct radeon_bo_funcs *funcs;
int fd;
struct radeon_tracker tracker;
};
const char *op,
const char *file,
const char *func,
int line)
{
}
const char *file,
const char *func,
int line)
{
#ifdef RADEON_BO_TRACK
if (bo) {
}
#endif
return bo;
}
const char *file,
const char *func,
int line)
{
#ifdef RADEON_BO_TRACK
#endif
}
const char *file,
const char *func,
int line)
{
#ifdef RADEON_BO_TRACK
}
#endif
}
int write,
const char *file,
const char *func,
int line)
{
}
const char *file,
const char *func,
int line)
{
}
const char *file,
const char *func,
int line)
{
}
const char *file,
const char *func,
int line)
{
}
{
}
{
}
{
return 0;
}
#define radeon_bo_open(bom, h, s, a, d, f)\
#define radeon_bo_ref(bo)\
#define radeon_bo_unref(bo)\
#define radeon_bo_map(bo, w)\
#define radeon_bo_unmap(bo)\
#define radeon_bo_wait(bo) \
#endif