diff options
| author | Pratap Nirujogi <[email protected]> | 2025-06-23 22:44:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-07-16 20:17:35 +0000 |
| commit | 55d42f6169760d052330f3c949c02e37867b87d8 (patch) | |
| tree | 879cabb397a631a2f5b3546b6cc7454d9a78fb12 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h | |
| parent | drm/amd/amdgpu: Initialize swnode for ISP MFD device (diff) | |
| download | kernel-55d42f6169760d052330f3c949c02e37867b87d8.tar.gz kernel-55d42f6169760d052330f3c949c02e37867b87d8.zip | |
drm/amd/amdgpu: Add helper functions for isp buffers
Accessing amdgpu internal data structures "struct amdgpu_device"
and "struct amdgpu_bo" in ISP V4L2 driver to alloc/free GART
buffers is not recommended.
Add new amdgpu_isp helper functions that takes opaque params
from ISP V4L2 driver and calls the amdgpu internal functions
amdgpu_bo_create_isp_user() and amdgpu_bo_create_kernel() to
alloc/free GART buffers.
Reviewed-by: Mario Limonciello <[email protected]>
Signed-off-by: Pratap Nirujogi <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h index 1d1c4b1ec7e7..d6f4ffa4c97c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h @@ -28,18 +28,13 @@ #ifndef __AMDGPU_ISP_H__ #define __AMDGPU_ISP_H__ +#include <drm/amd/isp.h> #include <linux/pm_domain.h> #define ISP_REGS_OFFSET_END 0x629A4 struct amdgpu_isp; -struct isp_platform_data { - void *adev; - u32 asic_type; - resource_size_t base_rmmio_size; -}; - struct isp_funcs { int (*hw_init)(struct amdgpu_isp *isp); int (*hw_fini)(struct amdgpu_isp *isp); |
