1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct drm_fb_helper</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux GPU Driver Developer's Guide"><link rel="up" href="ch02s05.html#id-1.3.4.9.13" title="fbdev Helper Functions Reference"><link rel="prev" href="API-struct-drm-fb-helper-funcs.html" title="struct drm_fb_helper_funcs"><link rel="next" href="API-struct-drm-dp-aux-msg.html" title="struct drm_dp_aux_msg"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct drm_fb_helper</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-drm-fb-helper-funcs.html">Prev</a> </td><th width="60%" align="center">fbdev Helper Functions Reference</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-drm-dp-aux-msg.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-drm-fb-helper"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct drm_fb_helper — 
2     helper to emulate fbdev on top of kms
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct drm_fb_helper {
5  struct drm_framebuffer * fb;
6  struct drm_device * dev;
7  int crtc_count;
8  struct drm_fb_helper_crtc * crtc_info;
9  int connector_count;
10  int connector_info_alloc_count;
11  const struct drm_fb_helper_funcs * funcs;
12  struct fb_info * fbdev;
13  u32 pseudo_palette[17];
14  struct list_head kernel_fb_list;
15  bool delayed_hotplug;
16  bool atomic;
17};  </pre></div><div class="refsect1"><a name="id-1.3.4.9.13.38.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">fb</span></dt><dd><p>
18   Scanout framebuffer object
19      </p></dd><dt><span class="term">dev</span></dt><dd><p>
20   DRM device
21      </p></dd><dt><span class="term">crtc_count</span></dt><dd><p>
22   number of possible CRTCs
23      </p></dd><dt><span class="term">crtc_info</span></dt><dd><p>
24   per-CRTC helper state (mode, x/y offset, etc)
25      </p></dd><dt><span class="term">connector_count</span></dt><dd><p>
26   number of connected connectors
27      </p></dd><dt><span class="term">connector_info_alloc_count</span></dt><dd><p>
28   size of connector_info
29      </p></dd><dt><span class="term">funcs</span></dt><dd><p>
30   driver callbacks for fb helper
31      </p></dd><dt><span class="term">fbdev</span></dt><dd><p>
32   emulated fbdev device info struct
33      </p></dd><dt><span class="term">pseudo_palette[17]</span></dt><dd><p>
34   fake palette of 16 colors
35      </p></dd><dt><span class="term">kernel_fb_list</span></dt><dd><p>
36   list_head in kernel_fb_helper_list
37      </p></dd><dt><span class="term">delayed_hotplug</span></dt><dd><p>
38   was there a hotplug while kms master active?
39      </p></dd><dt><span class="term">atomic</span></dt><dd><p>
40   </p><p>
41
42   Use atomic updates for <code class="function">restore_fbdev_mode</code>, etc.  This defaults to
43   true if driver has DRIVER_ATOMIC feature flag, but drivers can
44   override it to true after <code class="function"><a class="link" href="API-drm-fb-helper-init.html" title="drm_fb_helper_init">drm_fb_helper_init</a></code> if they support atomic
45   modeset but do not yet advertise DRIVER_ATOMIC (note that fb-helper
46   does not require ASYNC commits).
47      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-drm-fb-helper-funcs.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s05.html#id-1.3.4.9.13">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-drm-dp-aux-msg.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct drm_fb_helper_funcs</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct drm_dp_aux_msg</span></td></tr></table></div></body></html>
48