Tizen 2.0 Release
[profile/ivi/osmesa.git] / src / mesa / drivers / dri / radeon / radeon_bo_legacy.h
1 /* 
2  * Copyright © 2008 Nicolai Haehnle
3  * Copyright © 2008 Jérôme Glisse
4  * All Rights Reserved.
5  * 
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the
8  * "Software"), to deal in the Software without restriction, including
9  * without limitation the rights to use, copy, modify, merge, publish,
10  * distribute, sub license, and/or sell copies of the Software, and to
11  * permit persons to whom the Software is furnished to do so, subject to
12  * the following conditions:
13  * 
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
17  * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
18  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 
19  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 
20  * USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * The above copyright notice and this permission notice (including the
23  * next paragraph) shall be included in all copies or substantial portions
24  * of the Software.
25  */
26 /*
27  * Authors:
28  *      Aapo Tahkola <aet@rasterburn.org>
29  *      Nicolai Haehnle <prefect_@gmx.net>
30  *      Jérôme Glisse <glisse@freedesktop.org>
31  */
32 #ifndef RADEON_BO_LEGACY_H
33 #define RADEON_BO_LEGACY_H
34
35 #include "radeon_screen.h"
36
37 void radeon_bo_legacy_pending(struct radeon_bo *bo, uint32_t pending);
38 int radeon_bo_legacy_validate(struct radeon_bo *bo,
39                               uint32_t *soffset,
40                               uint32_t *eoffset);
41 struct radeon_bo_manager *radeon_bo_manager_legacy_ctor(struct radeon_screen *scrn);
42 void radeon_bo_manager_legacy_dtor(struct radeon_bo_manager *bom);
43 void radeon_bo_legacy_texture_age(struct radeon_bo_manager *bom);
44 unsigned radeon_bo_legacy_relocs_size(struct radeon_bo *bo);
45 struct radeon_bo *radeon_legacy_bo_alloc_fake(struct radeon_bo_manager *bom,
46                                               int size,
47                                               uint32_t offset);
48 void legacy_track_pending(struct radeon_bo_manager *bom, int debug);
49
50 #endif