forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/tegra/falcon.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2015, NVIDIA Corporation.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #ifndef _FALCON_H_
....@@ -77,15 +74,6 @@
7774 u32 data_size;
7875 };
7976
80
-struct falcon;
81
-
82
-struct falcon_ops {
83
- void *(*alloc)(struct falcon *falcon, size_t size,
84
- dma_addr_t *paddr);
85
- void (*free)(struct falcon *falcon, size_t size,
86
- dma_addr_t paddr, void *vaddr);
87
-};
88
-
8977 struct falcon_firmware_section {
9078 unsigned long offset;
9179 size_t size;
....@@ -96,8 +84,9 @@
9684 const struct firmware *firmware;
9785
9886 /* Raw firmware data */
99
- dma_addr_t paddr;
100
- void *vaddr;
87
+ dma_addr_t iova;
88
+ dma_addr_t phys;
89
+ void *virt;
10190 size_t size;
10291
10392 /* Parsed firmware information */
....@@ -110,8 +99,6 @@
11099 /* Set by falcon client */
111100 struct device *dev;
112101 void __iomem *regs;
113
- const struct falcon_ops *ops;
114
- void *data;
115102
116103 struct falcon_firmware firmware;
117104 };