Back to index

libdrm  2.4.37
radeon_bo_gem.h
Go to the documentation of this file.
00001 /*
00002  * Copyright © 2008 Dave Airlie
00003  * Copyright © 2008 Jérôme Glisse
00004  * All Rights Reserved.
00005  *
00006  * Permission is hereby granted, free of charge, to any person obtaining
00007  * a copy of this software and associated documentation files (the
00008  * "Software"), to deal in the Software without restriction, including
00009  * without limitation the rights to use, copy, modify, merge, publish,
00010  * distribute, sub license, and/or sell copies of the Software, and to
00011  * permit persons to whom the Software is furnished to do so, subject to
00012  * the following conditions:
00013  *
00014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00015  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
00016  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00017  * NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS, AUTHORS
00018  * AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00019  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00020  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
00021  * USE OR OTHER DEALINGS IN THE SOFTWARE.
00022  *
00023  * The above copyright notice and this permission notice (including the
00024  * next paragraph) shall be included in all copies or substantial portions
00025  * of the Software.
00026  */
00027 /*
00028  * Authors:
00029  *      Dave Airlie
00030  *      Jérôme Glisse <glisse@freedesktop.org>
00031  */
00032 #ifndef RADEON_BO_GEM_H
00033 #define RADEON_BO_GEM_H
00034 
00035 #include "radeon_bo.h"
00036 
00037 struct radeon_bo_manager *radeon_bo_manager_gem_ctor(int fd);
00038 void radeon_bo_manager_gem_dtor(struct radeon_bo_manager *bom);
00039 
00040 uint32_t radeon_gem_name_bo(struct radeon_bo *bo);
00041 void *radeon_gem_get_reloc_in_cs(struct radeon_bo *bo);
00042 int radeon_gem_set_domain(struct radeon_bo *bo, uint32_t read_domains, uint32_t write_domain);
00043 int radeon_gem_get_kernel_name(struct radeon_bo *bo, uint32_t *name);
00044 #endif