15acfb44bSLee Jones /* radeon_prime.h -- Private header for radeon driver -*- linux-c -*-
25acfb44bSLee Jones  *
35acfb44bSLee Jones  * Copyright 2012 Advanced Micro Devices, Inc.
45acfb44bSLee Jones  *
55acfb44bSLee Jones  * Permission is hereby granted, free of charge, to any person obtaining a
65acfb44bSLee Jones  * copy of this software and associated documentation files (the "Software"),
75acfb44bSLee Jones  * to deal in the Software without restriction, including without limitation
85acfb44bSLee Jones  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
95acfb44bSLee Jones  * and/or sell copies of the Software, and to permit persons to whom the
105acfb44bSLee Jones  * Software is furnished to do so, subject to the following conditions:
115acfb44bSLee Jones  *
125acfb44bSLee Jones  * The above copyright notice and this permission notice (including the next
135acfb44bSLee Jones  * paragraph) shall be included in all copies or substantial portions of the
145acfb44bSLee Jones  * Software.
155acfb44bSLee Jones  *
165acfb44bSLee Jones  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
175acfb44bSLee Jones  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
185acfb44bSLee Jones  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
195acfb44bSLee Jones  * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
205acfb44bSLee Jones  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
215acfb44bSLee Jones  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
225acfb44bSLee Jones  * DEALINGS IN THE SOFTWARE.
235acfb44bSLee Jones  *
245acfb44bSLee Jones  */
255acfb44bSLee Jones 
265acfb44bSLee Jones #ifndef __RADEON_PRIME_H__
275acfb44bSLee Jones #define __RADEON_PRIME_H__
285acfb44bSLee Jones 
295acfb44bSLee Jones struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
305acfb44bSLee Jones 					int flags);
315acfb44bSLee Jones struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj);
325acfb44bSLee Jones int radeon_gem_prime_pin(struct drm_gem_object *obj);
335acfb44bSLee Jones void radeon_gem_prime_unpin(struct drm_gem_object *obj);
345acfb44bSLee Jones void *radeon_gem_prime_vmap(struct drm_gem_object *obj);
355acfb44bSLee Jones void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr);
36*4138b62bSLee Jones struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev,
37*4138b62bSLee Jones 							struct dma_buf_attachment *,
38*4138b62bSLee Jones 							struct sg_table *sg);
395acfb44bSLee Jones 
405acfb44bSLee Jones #endif				/* __RADEON_PRIME_H__ */
41