52 lines
2.0 KiB
Diff
52 lines
2.0 KiB
Diff
From f3dc1ecfe6a4e088a75a1f9db77fb128250141b6 Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime.ripard@free-electrons.com>
|
|
Date: Mon, 7 Dec 2015 09:33:28 +0100
|
|
Subject: [PATCH 008/158] drv:gpu:drm: gem: dma: Export with handle allocator
|
|
|
|
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
|
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
|
|
---
|
|
drivers/gpu/drm/drm_gem_dma_helper.c | 3 ++-
|
|
include/drm/drm_gem_dma_helper.h | 4 ++++
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/gpu/drm/drm_gem_dma_helper.c b/drivers/gpu/drm/drm_gem_dma_helper.c
|
|
index f6901ff97..2ceba7ac7 100644
|
|
--- a/drivers/gpu/drm/drm_gem_dma_helper.c
|
|
+++ b/drivers/gpu/drm/drm_gem_dma_helper.c
|
|
@@ -187,7 +187,7 @@ EXPORT_SYMBOL_GPL(drm_gem_dma_create);
|
|
* A struct drm_gem_dma_object * on success or an ERR_PTR()-encoded negative
|
|
* error code on failure.
|
|
*/
|
|
-static struct drm_gem_dma_object *
|
|
+struct drm_gem_dma_object *
|
|
drm_gem_dma_create_with_handle(struct drm_file *file_priv,
|
|
struct drm_device *drm, size_t size,
|
|
uint32_t *handle)
|
|
@@ -214,6 +214,7 @@ drm_gem_dma_create_with_handle(struct drm_file *file_priv,
|
|
|
|
return dma_obj;
|
|
}
|
|
+EXPORT_SYMBOL_GPL(drm_gem_dma_create_with_handle);
|
|
|
|
/**
|
|
* drm_gem_dma_free - free resources associated with a DMA GEM object
|
|
diff --git a/include/drm/drm_gem_dma_helper.h b/include/drm/drm_gem_dma_helper.h
|
|
index 8a043235d..7b3025b7b 100644
|
|
--- a/include/drm/drm_gem_dma_helper.h
|
|
+++ b/include/drm/drm_gem_dma_helper.h
|
|
@@ -34,6 +34,10 @@ struct drm_gem_dma_object {
|
|
|
|
struct drm_gem_dma_object *drm_gem_dma_create(struct drm_device *drm,
|
|
size_t size);
|
|
+struct drm_gem_dma_object *
|
|
+drm_gem_dma_create_with_handle(struct drm_file *file_priv,
|
|
+ struct drm_device *drm, size_t size,
|
|
+ uint32_t *handle);
|
|
void drm_gem_dma_free(struct drm_gem_dma_object *dma_obj);
|
|
void drm_gem_dma_print_info(const struct drm_gem_dma_object *dma_obj,
|
|
struct drm_printer *p, unsigned int indent);
|
|
--
|
|
2.35.3
|
|
|