drm/radeon: Move AGP helpers into radeon driver

Radeon calls DRMs core AGP helpers. These helpers are only required
by legacy drivers. Reimplement the code in radeon to uncouple radeon
from the legacy code.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210507185709.22797-2-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann
2021-05-07 20:57:06 +02:00
parent 4fca55de56
commit cf241e872f
3 changed files with 104 additions and 8 deletions

View File

@@ -1110,6 +1110,14 @@ typedef int (*radeon_packet0_check_t)(struct radeon_cs_parser *p,
/*
* AGP
*/
#if IS_ENABLED(CONFIG_AGP)
struct drm_agp_head *radeon_agp_head_init(struct drm_device *dev);
#else
static inline struct drm_agp_head *radeon_agp_head_init(struct drm_device *dev)
{
return NULL;
}
#endif
int radeon_agp_init(struct radeon_device *rdev);
void radeon_agp_resume(struct radeon_device *rdev);
void radeon_agp_suspend(struct radeon_device *rdev);