1*5acfb44bSLee Jones /* radeon_prime.h -- Private header for radeon driver -*- linux-c -*-
2*5acfb44bSLee Jones  *
3*5acfb44bSLee Jones  * Copyright 2012 Advanced Micro Devices, Inc.
4*5acfb44bSLee Jones  *
5*5acfb44bSLee Jones  * Permission is hereby granted, free of charge, to any person obtaining a
6*5acfb44bSLee Jones  * copy of this software and associated documentation files (the "Software"),
7*5acfb44bSLee Jones  * to deal in the Software without restriction, including without limitation
8*5acfb44bSLee Jones  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9*5acfb44bSLee Jones  * and/or sell copies of the Software, and to permit persons to whom the
10*5acfb44bSLee Jones  * Software is furnished to do so, subject to the following conditions:
11*5acfb44bSLee Jones  *
12*5acfb44bSLee Jones  * The above copyright notice and this permission notice (including the next
13*5acfb44bSLee Jones  * paragraph) shall be included in all copies or substantial portions of the
14*5acfb44bSLee Jones  * Software.
15*5acfb44bSLee Jones  *
16*5acfb44bSLee Jones  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17*5acfb44bSLee Jones  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18*5acfb44bSLee Jones  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
19*5acfb44bSLee Jones  * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20*5acfb44bSLee Jones  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21*5acfb44bSLee Jones  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22*5acfb44bSLee Jones  * DEALINGS IN THE SOFTWARE.
23*5acfb44bSLee Jones  *
24*5acfb44bSLee Jones  */
25*5acfb44bSLee Jones 
26*5acfb44bSLee Jones #ifndef __RADEON_PRIME_H__
27*5acfb44bSLee Jones #define __RADEON_PRIME_H__
28*5acfb44bSLee Jones 
29*5acfb44bSLee Jones struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
30*5acfb44bSLee Jones 					int flags);
31*5acfb44bSLee Jones struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
32*5acfb44bSLee Jones int radeon_gem_prime_pin(struct drm_gem_object *obj);
33*5acfb44bSLee Jones void radeon_gem_prime_unpin(struct drm_gem_object *obj);
34*5acfb44bSLee Jones void *radeon_gem_prime_vmap(struct drm_gem_object *obj);
35*5acfb44bSLee Jones void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr);
36*5acfb44bSLee Jones 
37*5acfb44bSLee Jones #endif				/* __RADEON_PRIME_H__ */
38