summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/falcon.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-10-28 15:37:15 +0300
committerThierry Reding <treding@nvidia.com>2019-10-29 17:04:36 +0300
commit20e7dce255e96a4d58168cf48e20210146dacf23 (patch)
treea3d245fe76a3207eaf71a0d4fdb5ff09c590ca24 /drivers/gpu/drm/tegra/falcon.h
parent06867a362de08ff94fb573d84fd213795fbb3922 (diff)
downloadlinux-20e7dce255e96a4d58168cf48e20210146dacf23.tar.xz
drm/tegra: Remove memory allocation from Falcon library
Having to provide allocator hooks to the Falcon library is somewhat cumbersome and it doesn't give the users of the library a lot of flexibility to deal with allocations. Instead, remove the notion of Falcon "operations" and let drivers deal with the memory allocations themselves. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/falcon.h')
-rw-r--r--drivers/gpu/drm/tegra/falcon.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/tegra/falcon.h b/drivers/gpu/drm/tegra/falcon.h
index 3d1243217410..92491a1e90df 100644
--- a/drivers/gpu/drm/tegra/falcon.h
+++ b/drivers/gpu/drm/tegra/falcon.h
@@ -74,15 +74,6 @@ struct falcon_fw_os_header_v1 {
u32 data_size;
};
-struct falcon;
-
-struct falcon_ops {
- void *(*alloc)(struct falcon *falcon, size_t size,
- dma_addr_t *paddr);
- void (*free)(struct falcon *falcon, size_t size,
- dma_addr_t paddr, void *vaddr);
-};
-
struct falcon_firmware_section {
unsigned long offset;
size_t size;
@@ -107,8 +98,6 @@ struct falcon {
/* Set by falcon client */
struct device *dev;
void __iomem *regs;
- const struct falcon_ops *ops;
- void *data;
struct falcon_firmware firmware;
};