diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-09-19 14:13:06 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-09-19 14:13:06 +0200 |
commit | f22e0bce3732c1fd005b7a886042394e036bc1b3 (patch) | |
tree | 2ec712b9298fc3d6a6abdd05083a8c95f31a61b9 /src/libsystemd-terminal/grdev-internal.h | |
parent | 650c5444273993f969b9cd7df9add6ab2df0414e (diff) |
terminal: add grdev DRM backend
The grdev-drm backend manages DRM cards for grdev. Any DRM card with
DUMB_BUFFER support can be used. So far, our policy is to configure all
available connectors, but keep pipes inactive as long as users don't
enable the displays on top.
We hard-code double-buffering so far, but can easily support
single-buffering or n-buffering. We also require XRGB8888 as format as
this is required to be supported by all DRM drivers and it is what VTs
use. This allows us to switch from VTs to grdev via page-flips instead of
deep modesets.
There is still a lot room for improvements in this backend, but it works
smoothly so far so more enhanced features can be added later.
Diffstat (limited to 'src/libsystemd-terminal/grdev-internal.h')
-rw-r--r-- | src/libsystemd-terminal/grdev-internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/grdev-internal.h b/src/libsystemd-terminal/grdev-internal.h index 7e69c49b63..0064f0be02 100644 --- a/src/libsystemd-terminal/grdev-internal.h +++ b/src/libsystemd-terminal/grdev-internal.h @@ -22,6 +22,7 @@ #pragma once #include <inttypes.h> +#include <libudev.h> #include <stdbool.h> #include <stdlib.h> #include <systemd/sd-bus.h> @@ -40,6 +41,14 @@ typedef struct grdev_card_vtable grdev_card_vtable; typedef struct grdev_card grdev_card; /* + * DRM cards + */ + +bool grdev_is_drm_card(grdev_card *card); +grdev_card *grdev_find_drm_card(grdev_session *session, dev_t devnum); +int grdev_drm_card_new(grdev_card **out, grdev_session *session, struct udev_device *ud); + +/* * Displays */ |