-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm: mark drm_context support as legacy
This renames all drm-context helpers to drm_legacy_*() and moves the internal definitions into the new drm_legacy.h header. This header is local to DRM-core and drivers shouldn't access it. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
- Loading branch information
David Herrmann
committed
Aug 5, 2014
1 parent
e172807
commit e7b9607
Showing
7 changed files
with
103 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#ifndef __DRM_LEGACY_H__ | ||
#define __DRM_LEGACY_H__ | ||
|
||
/* | ||
* Copyright (c) 2014 David Herrmann <dh.herrmann@gmail.com> | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a | ||
* copy of this software and associated documentation files (the "Software"), | ||
* to deal in the Software without restriction, including without limitation | ||
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
* and/or sell copies of the Software, and to permit persons to whom the | ||
* Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
* OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
struct drm_device; | ||
struct drm_file; | ||
|
||
/* | ||
* Generic DRM Contexts | ||
*/ | ||
|
||
#define DRM_KERNEL_CONTEXT 0 | ||
#define DRM_RESERVED_CONTEXTS 1 | ||
|
||
int drm_legacy_ctxbitmap_init(struct drm_device *dev); | ||
void drm_legacy_ctxbitmap_cleanup(struct drm_device *dev); | ||
void drm_legacy_ctxbitmap_free(struct drm_device *dev, int ctx_handle); | ||
void drm_legacy_ctxbitmap_flush(struct drm_device *dev, struct drm_file *file); | ||
|
||
int drm_legacy_resctx(struct drm_device *d, void *v, struct drm_file *f); | ||
int drm_legacy_addctx(struct drm_device *d, void *v, struct drm_file *f); | ||
int drm_legacy_getctx(struct drm_device *d, void *v, struct drm_file *f); | ||
int drm_legacy_switchctx(struct drm_device *d, void *v, struct drm_file *f); | ||
int drm_legacy_newctx(struct drm_device *d, void *v, struct drm_file *f); | ||
int drm_legacy_rmctx(struct drm_device *d, void *v, struct drm_file *f); | ||
|
||
int drm_legacy_setsareactx(struct drm_device *d, void *v, struct drm_file *f); | ||
int drm_legacy_getsareactx(struct drm_device *d, void *v, struct drm_file *f); | ||
|
||
#endif /* __DRM_LEGACY_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.