summaryrefslogtreecommitdiff
path: root/include/drm/drm_device.h
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2021-05-07 21:57:09 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2021-05-10 16:46:58 +0300
commit04dfe19a5ed683e91d8285df5be1dbde2f2f39af (patch)
tree8b7854ec73fdbc1341c1e8187eed1307717c7d1d /include/drm/drm_device.h
parent6bff2279836ebeb2e8becaf9e30642e4bade0a49 (diff)
downloadlinux-04dfe19a5ed683e91d8285df5be1dbde2f2f39af.tar.xz
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
Diffstat (limited to 'include/drm/drm_device.h')
-rw-r--r--include/drm/drm_device.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h
index e5d6305e64a2..f588f967bb14 100644
--- a/include/drm/drm_device.h
+++ b/include/drm/drm_device.h
@@ -276,9 +276,6 @@ struct drm_device {
*/
spinlock_t event_lock;
- /** @agp: AGP data */
- struct drm_agp_head *agp;
-
/** @num_crtcs: Number of CRTCs on this device */
unsigned int num_crtcs;
@@ -326,6 +323,9 @@ struct drm_device {
struct pci_controller *hose;
#endif
+ /* AGP data */
+ struct drm_agp_head *agp;
+
/* Context handle management - linked list of context handles */
struct list_head ctxlist;