diff options
Diffstat (limited to 'src/common_drm.h')
-rw-r--r-- | src/common_drm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common_drm.h b/src/common_drm.h index 702a920..537c88d 100644 --- a/src/common_drm.h +++ b/src/common_drm.h @@ -7,6 +7,12 @@ struct common_drm_event; +struct common_drm_device { + int fd; + int master_count; + const char *kms_path; +}; + struct common_crtc_info { int drm_fd; unsigned num; @@ -31,6 +37,7 @@ struct drm_udev_info { struct common_drm_info { int fd; + struct common_drm_device *dev; uint32_t fb_id; drmModeResPtr mode_res; drmEventContext event_context; @@ -110,4 +117,11 @@ void common_drm_FreeScreen(FREE_SCREEN_ARGS_DECL); /* Present extension support */ Bool common_present_init(ScreenPtr pScreen); +struct common_drm_device *common_entity_get_dev(int entity_num); +struct common_drm_device *common_alloc_dev(int entity_num, int fd, + const char *path, Bool ddx_managed_master); +Bool common_drm_fd_is_master(int fd); +Bool common_drm_get_master(struct common_drm_device *drm_dev); +void common_drm_put_master(struct common_drm_device *drm_dev); + #endif |