diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-14 14:50:59 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-16 04:17:23 -0400 |
commit | 6548f4e7a3babf9fd6c52e02da419458e19e2db9 (patch) | |
tree | a7a3391a71c5fc8d3a2f68bbb17f1920ea6b9c31 /drivers/gpu/drm/drm_internal.h | |
parent | 34a839c689b093dac6bccc4e0aa6feffcf4c970e (diff) |
drm: Move master functions into drm_auth.c
For modern drivers pretty much the only thing drm_master does is
handling authentication for the primary/legacy drm_minor node. Instead
of having it all over drm files, move it all together into drm_auth.c.
This patch just does code-motion, follow up patches will also extract
the master logic from file open&release paths.
Reviewed-by: Chris Wilson Mchris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465930269-7883-5-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/drm_internal.h')
-rw-r--r-- | drivers/gpu/drm/drm_internal.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index f5c1d17fa51f..d29d426f633f 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h | |||
@@ -62,6 +62,11 @@ int drm_getmagic(struct drm_device *dev, void *data, | |||
62 | struct drm_file *file_priv); | 62 | struct drm_file *file_priv); |
63 | int drm_authmagic(struct drm_device *dev, void *data, | 63 | int drm_authmagic(struct drm_device *dev, void *data, |
64 | struct drm_file *file_priv); | 64 | struct drm_file *file_priv); |
65 | int drm_setmaster_ioctl(struct drm_device *dev, void *data, | ||
66 | struct drm_file *file_priv); | ||
67 | int drm_dropmaster_ioctl(struct drm_device *dev, void *data, | ||
68 | struct drm_file *file_priv); | ||
69 | int drm_new_set_master(struct drm_device *dev, struct drm_file *fpriv); | ||
65 | 70 | ||
66 | /* drm_sysfs.c */ | 71 | /* drm_sysfs.c */ |
67 | extern struct class *drm_class; | 72 | extern struct class *drm_class; |
@@ -87,13 +92,6 @@ int drm_gem_open_ioctl(struct drm_device *dev, void *data, | |||
87 | void drm_gem_open(struct drm_device *dev, struct drm_file *file_private); | 92 | void drm_gem_open(struct drm_device *dev, struct drm_file *file_private); |
88 | void drm_gem_release(struct drm_device *dev, struct drm_file *file_private); | 93 | void drm_gem_release(struct drm_device *dev, struct drm_file *file_private); |
89 | 94 | ||
90 | /* drm_drv.c */ | ||
91 | int drm_setmaster_ioctl(struct drm_device *dev, void *data, | ||
92 | struct drm_file *file_priv); | ||
93 | int drm_dropmaster_ioctl(struct drm_device *dev, void *data, | ||
94 | struct drm_file *file_priv); | ||
95 | struct drm_master *drm_master_create(struct drm_device *dev); | ||
96 | |||
97 | /* drm_debugfs.c */ | 95 | /* drm_debugfs.c */ |
98 | #if defined(CONFIG_DEBUG_FS) | 96 | #if defined(CONFIG_DEBUG_FS) |
99 | int drm_debugfs_init(struct drm_minor *minor, int minor_id, | 97 | int drm_debugfs_init(struct drm_minor *minor, int minor_id, |