1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct drm_crtc_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="drm-kms-init.html#idp1124538092" title="KMS Data Structures"><link rel="prev" href="API-struct-drm-crtc-state.html" title="struct drm_crtc_state"><link rel="next" href="API-struct-drm-crtc.html" title="struct drm_crtc"></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_crtc_funcs</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-drm-crtc-state.html">Prev</a> </td><th width="60%" align="center">KMS Data Structures</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-drm-crtc.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-drm-crtc-funcs"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct drm_crtc_funcs — 2 control CRTCs for a given device 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct drm_crtc_funcs { 5 void (* save) (struct drm_crtc *crtc); 6 void (* restore) (struct drm_crtc *crtc); 7 void (* reset) (struct drm_crtc *crtc); 8 int (* cursor_set) (struct drm_crtc *crtc, struct drm_file *file_priv,uint32_t handle, uint32_t width, uint32_t height); 9 int (* cursor_set2) (struct drm_crtc *crtc, struct drm_file *file_priv,uint32_t handle, uint32_t width, uint32_t height,int32_t hot_x, int32_t hot_y); 10 int (* cursor_move) (struct drm_crtc *crtc, int x, int y); 11 void (* gamma_set) (struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b,uint32_t start, uint32_t size); 12 void (* destroy) (struct drm_crtc *crtc); 13 int (* set_config) (struct drm_mode_set *set); 14 int (* page_flip) (struct drm_crtc *crtc,struct drm_framebuffer *fb,struct drm_pending_vblank_event *event,uint32_t flags); 15 int (* set_property) (struct drm_crtc *crtc,struct drm_property *property, uint64_t val); 16 struct drm_crtc_state *(* atomic_duplicate_state) (struct drm_crtc *crtc); 17 void (* atomic_destroy_state) (struct drm_crtc *crtc,struct drm_crtc_state *state); 18 int (* atomic_set_property) (struct drm_crtc *crtc,struct drm_crtc_state *state,struct drm_property *property,uint64_t val); 19 int (* atomic_get_property) (struct drm_crtc *crtc,const struct drm_crtc_state *state,struct drm_property *property,uint64_t *val); 20}; </pre></div><div class="refsect1"><a name="idp1124560732"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">save</span></dt><dd><p> 21 save CRTC state 22 </p></dd><dt><span class="term">restore</span></dt><dd><p> 23 restore CRTC state 24 </p></dd><dt><span class="term">reset</span></dt><dd><p> 25 reset CRTC after state has been invalidated (e.g. resume) 26 </p></dd><dt><span class="term">cursor_set</span></dt><dd><p> 27 setup the cursor 28 </p></dd><dt><span class="term">cursor_set2</span></dt><dd><p> 29 setup the cursor with hotspot, superseeds <em class="parameter"><code>cursor_set</code></em> if set 30 </p></dd><dt><span class="term">cursor_move</span></dt><dd><p> 31 move the cursor 32 </p></dd><dt><span class="term">gamma_set</span></dt><dd><p> 33 specify color ramp for CRTC 34 </p></dd><dt><span class="term">destroy</span></dt><dd><p> 35 deinit and free object 36 </p></dd><dt><span class="term">set_config</span></dt><dd><p> 37 apply a new CRTC configuration 38 </p></dd><dt><span class="term">page_flip</span></dt><dd><p> 39 initiate a page flip 40 </p></dd><dt><span class="term">set_property</span></dt><dd><p> 41 called when a property is changed 42 </p></dd><dt><span class="term">atomic_duplicate_state</span></dt><dd><p> 43 duplicate the atomic state for this CRTC 44 </p></dd><dt><span class="term">atomic_destroy_state</span></dt><dd><p> 45 destroy an atomic state for this CRTC 46 </p></dd><dt><span class="term">atomic_set_property</span></dt><dd><p> 47 set a property on an atomic state for this CRTC 48 (do not call directly, use <code class="function">drm_atomic_crtc_set_property</code>) 49 </p></dd><dt><span class="term">atomic_get_property</span></dt><dd><p> 50 get a property on an atomic state for this CRTC 51 (do not call directly, use <code class="function">drm_atomic_crtc_get_property</code>) 52 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124573148"></a><h2>Description</h2><p> 53 The drm_crtc_funcs structure is the central CRTC management structure 54 in the DRM. Each CRTC controls one or more connectors (note that the name 55 CRTC is simply historical, a CRTC may control LVDS, VGA, DVI, TV out, etc. 56 connectors, not just CRTs). 57 </p><p> 58 59 Each driver is responsible for filling out this structure at startup time, 60 in addition to providing other modesetting features, like i2c and DDC 61 bus accessors. 62</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-crtc-state.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="drm-kms-init.html#idp1124538092">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-drm-crtc.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct drm_crtc_state</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_crtc</span></td></tr></table></div></body></html> 63