drm: Mark AGP implementation and ioctls as legacy
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 7 May 2021 18:57:09 +0000 (20:57 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 10 May 2021 13:46:58 +0000 (15:46 +0200)
commit04dfe19a5ed683e91d8285df5be1dbde2f2f39af
tree8b7854ec73fdbc1341c1e8187eed1307717c7d1d
parent6bff2279836ebeb2e8becaf9e30642e4bade0a49
drm: Mark AGP implementation and ioctls as legacy

Only UMs drivers use DRM's core AGP code and ioctls. Mark the icotls
as legacy. Add the _legacy_ infix to all AGP functions. Move the
declarations to the public and internal legacy header files. The agp
field in struct drm_device is now located in the structure's legacy
section. Adapt drivers to the changes.

AGP code now depends on CONFIG_DRM_LEGACY.

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-5-tzimmermann@suse.de
18 files changed:
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_agpsupport.c
drivers/gpu/drm/drm_bufs.c
drivers/gpu/drm/drm_ioc32.c
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_legacy.h
drivers/gpu/drm/drm_legacy_misc.c
drivers/gpu/drm/drm_memory.c
drivers/gpu/drm/drm_pci.c
drivers/gpu/drm/drm_vm.c
drivers/gpu/drm/i810/i810_dma.c
drivers/gpu/drm/mga/mga_dma.c
drivers/gpu/drm/mga/mga_drv.h
drivers/gpu/drm/r128/r128_cce.c
drivers/gpu/drm/via/via_dma.c
include/drm/drm_agpsupport.h [deleted file]
include/drm/drm_device.h
include/drm/drm_legacy.h