#include <xf86drm.h>
#include <xf86drmMode.h>
#include "eloop.h"
-#include "log.h"
+#include "shl_log.h"
+#include "shl_misc.h"
#include "uterm_drm_shared_internal.h"
#include "uterm_drm2d_internal.h"
#include "uterm_video.h"
uint64_t has_dumb;
struct uterm_drm_video *vdrm;
- ret = uterm_drm_video_init(video, node, NULL, NULL);
+ ret = uterm_drm_video_init(video, node, &drm2d_display_ops,
+ NULL, NULL);
if (ret)
return ret;
vdrm = video->data;
static int video_poll(struct uterm_video *video)
{
- return uterm_drm_video_poll(video, &drm2d_display_ops);
+ return uterm_drm_video_poll(video);
}
static void video_sleep(struct uterm_video *video)
{
int ret;
- ret = uterm_drm_video_wake_up(video, &drm2d_display_ops);
- if (ret)
+ ret = uterm_drm_video_wake_up(video);
+ if (ret) {
+ uterm_drm_video_arm_vt_timer(video);
return ret;
+ }
show_displays(video);
return 0;
.ops = &drm2d_video_ops,
};
+SHL_EXPORT
const struct uterm_video_module *UTERM_VIDEO_DRM2D = &drm2d_module;