1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct drm_fb_helper_funcs</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="ch02s05.html#idp1125647748" title="fbdev Helper Functions Reference"><link rel="prev" href="API-struct-drm-fb-helper-surface-size.html" title="struct drm_fb_helper_surface_size"><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_funcs</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-drm-fb-helper-surface-size.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-funcs"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct drm_fb_helper_funcs — 2 driver callbacks for the fbdev emulation library 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct drm_fb_helper_funcs { 5 void (* gamma_set) (struct drm_crtc *crtc, u16 red, u16 green,u16 blue, int regno); 6 void (* gamma_get) (struct drm_crtc *crtc, u16 *red, u16 *green,u16 *blue, int regno); 7 int (* fb_probe) (struct drm_fb_helper *helper,struct drm_fb_helper_surface_size *sizes); 8 bool (* initial_config) (struct drm_fb_helper *fb_helper,struct drm_fb_helper_crtc **crtcs,struct drm_display_mode **modes,struct drm_fb_offset *offsets,bool *enabled, int width, int height); 9}; </pre></div><div class="refsect1"><a name="idp1125803636"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">gamma_set</span></dt><dd><p> 10 Set the given gamma lut register on the given crtc. 11 </p></dd><dt><span class="term">gamma_get</span></dt><dd><p> 12 Read the given gamma lut register on the given crtc, used to 13 save the current lut when force-restoring the fbdev for e.g. 14 kdbg. 15 </p></dd><dt><span class="term">fb_probe</span></dt><dd><p> 16 Driver callback to allocate and initialize the fbdev info 17 structure. Furthermore it also needs to allocate the drm 18 framebuffer used to back the fbdev. 19 </p></dd><dt><span class="term">initial_config</span></dt><dd><p> 20 Setup an initial fbdev display configuration 21 </p></dd></dl></div></div><div class="refsect1"><a name="idp1125807324"></a><h2>Description</h2><p> 22 Driver callbacks used by the fbdev emulation helper library. 23</p></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-surface-size.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s05.html#idp1125647748">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_surface_size</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> 24