From: Stefan Christ <contact@stefanchrist.eu>
To: dri-devel@lists.freedesktop.org
Cc: Stefan Christ <contact@stefanchrist.eu>
Subject: [PATCH 01/20] drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops
Date: Thu, 29 Sep 2016 22:48:37 +0200 [thread overview]
Message-ID: <1475182136-15191-2-git-send-email-contact@stefanchrist.eu> (raw)
In-Reply-To: <1475182136-15191-1-git-send-email-contact@stefanchrist.eu>
The define DRM_FB_HELPER_DEFAULT_OPS provides the drm_fb_helper default
implementations for functions in struct fb_ops. A drm driver can use it
like:
static struct fb_ops drm_fbdev_cma_ops = {
.owner = THIS_MODULE,
DRM_FB_HELPER_DEFAULT_OPS,
/* driver specific implementations */
};
Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Stefan Christ <contact@stefanchrist.eu>
---
include/drm/drm_fb_helper.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
index db8d478..b76f5c7 100644
--- a/include/drm/drm_fb_helper.h
+++ b/include/drm/drm_fb_helper.h
@@ -214,6 +214,19 @@ struct drm_fb_helper {
bool delayed_hotplug;
};
+/**
+ * @DRM_FB_HELPER_DEFAULT_OPS:
+ *
+ * Helper define to register default implementations of drm_fb_helper
+ * functions. To be used in struct fb_ops of drm drivers.
+ */
+#define DRM_FB_HELPER_DEFAULT_OPS \
+ .fb_check_var = drm_fb_helper_check_var, \
+ .fb_set_par = drm_fb_helper_set_par, \
+ .fb_setcmap = drm_fb_helper_setcmap, \
+ .fb_blank = drm_fb_helper_blank, \
+ .fb_pan_display = drm_fb_helper_pan_display
+
#ifdef CONFIG_DRM_FBDEV_EMULATION
int drm_fb_helper_modinit(void);
void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper,
--
2.7.3
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-09-29 20:48 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-29 20:48 [PATCH 00/20] Introduce DRM_FB_HELPER_DEFAULT_OPS for struct fb_ops Stefan Christ
2016-09-29 20:48 ` Stefan Christ [this message]
2016-09-30 10:17 ` [PATCH 01/20] drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops Daniel Vetter
2016-09-29 20:48 ` [PATCH 02/20] drm/amdgpu: use " Stefan Christ
2016-10-25 14:52 ` Daniel Vetter
2016-09-29 20:48 ` [PATCH 03/20] drm/armada: " Stefan Christ
2016-09-29 20:48 ` [PATCH 04/20] drm/ast: " Stefan Christ
2016-10-25 14:57 ` Daniel Vetter
2016-10-26 18:47 ` Stefan Lengfeld
2016-10-26 19:15 ` Daniel Vetter
2016-11-08 17:12 ` Daniel Vetter
2016-11-09 21:33 ` Stefan Lengfeld
2016-09-29 20:48 ` [PATCH 05/20] drm/bochs: " Stefan Christ
2016-09-29 20:48 ` [PATCH 06/20] drm/cirrus: " Stefan Christ
2016-09-29 20:48 ` [PATCH 07/20] drm/fb_cma_helper: " Stefan Christ
2016-09-29 20:48 ` [PATCH 08/20] drm/exynos: " Stefan Christ
2016-09-30 15:34 ` Inki Dae
2016-09-29 20:48 ` [PATCH 09/20] drm/mgag200: " Stefan Christ
2016-09-29 20:48 ` [PATCH 10/20] drm/nouveau: " Stefan Christ
2016-09-29 20:48 ` [PATCH 11/20] drm/qxl: " Stefan Christ
2016-09-29 20:48 ` [PATCH 12/20] drm/rockchip: " Stefan Christ
2016-09-29 20:48 ` [PATCH 13/20] drm/radeon: " Stefan Christ
2016-09-29 20:48 ` [PATCH 14/20] drm/tegra: " Stefan Christ
2016-09-29 20:48 ` [PATCH 15/20] drm/udl: " Stefan Christ
2016-09-29 20:48 ` [PATCH 16/20] drm/msm: " Stefan Christ
2016-09-29 20:48 ` [PATCH 17/20] drm/virtio: " Stefan Christ
2016-09-29 20:48 ` [PATCH 18/20] drm/omapdrm: " Stefan Christ
2016-09-29 20:48 ` [PATCH 19/20] drm/i915: " Stefan Christ
2016-09-29 20:48 ` [PATCH 20/20] drm/gma500: " Stefan Christ
2016-09-30 9:08 ` [PATCH 00/20] Introduce DRM_FB_HELPER_DEFAULT_OPS for struct fb_ops Gustavo Padovan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1475182136-15191-2-git-send-email-contact@stefanchrist.eu \
--to=contact@stefanchrist.eu \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).