From 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 13 May 2024 10:30:14 +0000
Subject: [PATCH] modify sin led gpio

---
 kernel/drivers/gpu/drm/rockchip/rockchip_drm_gem.h |   28 ++++------------------------
 1 files changed, 4 insertions(+), 24 deletions(-)

diff --git a/kernel/drivers/gpu/drm/rockchip/rockchip_drm_gem.h b/kernel/drivers/gpu/drm/rockchip/rockchip_drm_gem.h
index eb392ee..34bcb76 100644
--- a/kernel/drivers/gpu/drm/rockchip/rockchip_drm_gem.h
+++ b/kernel/drivers/gpu/drm/rockchip/rockchip_drm_gem.h
@@ -1,19 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
 /*
  * Copyright (C) Fuzhou Rockchip Electronics Co.Ltd
  * Author:Mark Yao <mark.yao@rock-chips.com>
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
  */
 
 #ifndef _ROCKCHIP_DRM_GEM_H
 #define _ROCKCHIP_DRM_GEM_H
+
+#include <linux/dma-direction.h>
 
 #define to_rockchip_obj(x) container_of(x, struct rockchip_gem_object, base)
 
@@ -29,10 +23,8 @@
 	enum rockchip_gem_buf_type buf_type;
 
 	void *kvaddr;
-	void *cookie;
 	dma_addr_t dma_addr;	/* iova if iommu enable, otherwise physical address */
 	dma_addr_t dma_handle;	/* physical address */
-
 	/* Used when IOMMU is disabled */
 	unsigned long dma_attrs;
 
@@ -68,9 +60,6 @@
 int rockchip_gem_dumb_create(struct drm_file *file_priv,
 			     struct drm_device *dev,
 			     struct drm_mode_create_dumb *args);
-int rockchip_gem_dumb_map_offset(struct drm_file *file_priv,
-				 struct drm_device *dev, uint32_t handle,
-				 uint64_t *offset);
 /*
  * request gem object creation and buffer allocation as the size
  * that it is calculated with framebuffer information such as width,
@@ -92,14 +81,5 @@
 int rockchip_gem_prime_end_cpu_access(struct drm_gem_object *obj,
 				      enum dma_data_direction dir);
 
-int rockchip_gem_prime_begin_cpu_access_partial(struct drm_gem_object *obj,
-						enum dma_data_direction dir,
-						unsigned int offset,
-						unsigned int len);
-
-int rockchip_gem_prime_end_cpu_access_partial(struct drm_gem_object *obj,
-					      enum dma_data_direction dir,
-					      unsigned int offset,
-					      unsigned int len);
-
+void rockchip_gem_get_ddr_info(void);
 #endif /* _ROCKCHIP_DRM_GEM_H */

--
Gitblit v1.6.2