drm_prime.h (28336be568bb473d16ba80db0801276fb4f1bbe5) drm_prime.h (707d561f77b5e2a6f90c9786bee44ee7a8dedc7e)
1/*
2 * Copyright © 2012 Red Hat
3 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
4 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
5 * Copyright (c) 2009-2010, Code Aurora Forum.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),

--- 74 unchanged lines hidden (view full) ---

83 struct sg_table *sgt,
84 enum dma_data_direction dir);
85void *drm_gem_dmabuf_vmap(struct dma_buf *dma_buf);
86void drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr);
87
88int drm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma);
89int drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma);
90
1/*
2 * Copyright © 2012 Red Hat
3 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
4 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
5 * Copyright (c) 2009-2010, Code Aurora Forum.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),

--- 74 unchanged lines hidden (view full) ---

83 struct sg_table *sgt,
84 enum dma_data_direction dir);
85void *drm_gem_dmabuf_vmap(struct dma_buf *dma_buf);
86void drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr);
87
88int drm_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma);
89int drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma);
90
91struct sg_table *drm_prime_pages_to_sg(struct page **pages, unsigned int nr_pages);
91struct sg_table *drm_prime_pages_to_sg(struct drm_device *dev,
92 struct page **pages, unsigned int nr_pages);
92struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj,
93 int flags);
94
95/* helper functions for importing */
96struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev,
97 struct dma_buf *dma_buf,
98 struct device *attach_dev);
99struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev,
100 struct dma_buf *dma_buf);
101
102void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
103
104int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
105 dma_addr_t *addrs, int max_pages);
106
107
108#endif /* __DRM_PRIME_H__ */
93struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj,
94 int flags);
95
96/* helper functions for importing */
97struct drm_gem_object *drm_gem_prime_import_dev(struct drm_device *dev,
98 struct dma_buf *dma_buf,
99 struct device *attach_dev);
100struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev,
101 struct dma_buf *dma_buf);
102
103void drm_prime_gem_destroy(struct drm_gem_object *obj, struct sg_table *sg);
104
105int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
106 dma_addr_t *addrs, int max_pages);
107
108
109#endif /* __DRM_PRIME_H__ */