1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct drm_mode_config</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-mode-group.html" title="struct drm_mode_group"><link rel="next" href="API-drm-for-each-plane-mask.html" title="drm_for_each_plane_mask"></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_mode_config</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-drm-mode-group.html">Prev</a>&#160;</td><th width="60%" align="center">KMS Data Structures</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-drm-for-each-plane-mask.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-drm-mode-config"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct drm_mode_config &#8212; 
2     Mode configuration control structure
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct drm_mode_config {
5  struct mutex mutex;
6  struct drm_modeset_lock connection_mutex;
7  struct drm_modeset_acquire_ctx * acquire_ctx;
8  struct mutex idr_mutex;
9  struct idr crtc_idr;
10  struct mutex fb_lock;
11  int num_fb;
12  struct list_head fb_list;
13  int num_connector;
14  struct list_head connector_list;
15  int num_encoder;
16  struct list_head encoder_list;
17  int num_overlay_plane;
18  int num_total_plane;
19  struct list_head plane_list;
20  int num_crtc;
21  struct list_head crtc_list;
22  struct list_head property_list;
23  int min_width;
24  int min_height;
25  int max_width;
26  int max_height;
27  const struct drm_mode_config_funcs * funcs;
28  resource_size_t fb_base;
29  bool poll_enabled;
30  bool poll_running;
31  struct delayed_work output_poll_work;
32  struct list_head property_blob_list;
33  uint32_t preferred_depth;
34  uint32_t prefer_shadow;
35  bool async_page_flip;
36  uint32_t cursor_width;
37  uint32_t cursor_height;
38};  </pre></div><div class="refsect1"><a name="idp1124791052"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">mutex</span></dt><dd><p>
39   mutex protecting KMS related lists and structures
40      </p></dd><dt><span class="term">connection_mutex</span></dt><dd><p>
41   ww mutex protecting connector state and routing
42      </p></dd><dt><span class="term">acquire_ctx</span></dt><dd><p>
43   global implicit acquire context used by atomic drivers for
44   legacy ioctls
45      </p></dd><dt><span class="term">idr_mutex</span></dt><dd><p>
46   mutex for KMS ID allocation and management
47      </p></dd><dt><span class="term">crtc_idr</span></dt><dd><p>
48   main KMS ID tracking object
49      </p></dd><dt><span class="term">fb_lock</span></dt><dd><p>
50   mutex to protect fb state and lists
51      </p></dd><dt><span class="term">num_fb</span></dt><dd><p>
52   number of fbs available
53      </p></dd><dt><span class="term">fb_list</span></dt><dd><p>
54   list of framebuffers available
55      </p></dd><dt><span class="term">num_connector</span></dt><dd><p>
56   number of connectors on this device
57      </p></dd><dt><span class="term">connector_list</span></dt><dd><p>
58   list of connector objects
59      </p></dd><dt><span class="term">num_encoder</span></dt><dd><p>
60   number of encoders on this device
61      </p></dd><dt><span class="term">encoder_list</span></dt><dd><p>
62   list of encoder objects
63      </p></dd><dt><span class="term">num_overlay_plane</span></dt><dd><p>
64   number of overlay planes on this device
65      </p></dd><dt><span class="term">num_total_plane</span></dt><dd><p>
66   number of universal (i.e. with primary/curso) planes on this device
67      </p></dd><dt><span class="term">plane_list</span></dt><dd><p>
68   list of plane objects
69      </p></dd><dt><span class="term">num_crtc</span></dt><dd><p>
70   number of CRTCs on this device
71      </p></dd><dt><span class="term">crtc_list</span></dt><dd><p>
72   list of CRTC objects
73      </p></dd><dt><span class="term">property_list</span></dt><dd><p>
74   list of property objects
75      </p></dd><dt><span class="term">min_width</span></dt><dd><p>
76   minimum pixel width on this device
77      </p></dd><dt><span class="term">min_height</span></dt><dd><p>
78   minimum pixel height on this device
79      </p></dd><dt><span class="term">max_width</span></dt><dd><p>
80   maximum pixel width on this device
81      </p></dd><dt><span class="term">max_height</span></dt><dd><p>
82   maximum pixel height on this device
83      </p></dd><dt><span class="term">funcs</span></dt><dd><p>
84   core driver provided mode setting functions
85      </p></dd><dt><span class="term">fb_base</span></dt><dd><p>
86   base address of the framebuffer
87      </p></dd><dt><span class="term">poll_enabled</span></dt><dd><p>
88   track polling support for this device
89      </p></dd><dt><span class="term">poll_running</span></dt><dd><p>
90   track polling status for this device
91      </p></dd><dt><span class="term">output_poll_work</span></dt><dd><p>
92   delayed work for polling in process context
93      </p></dd><dt><span class="term">property_blob_list</span></dt><dd><p>
94   list of all the blob property objects
95      </p></dd><dt><span class="term">preferred_depth</span></dt><dd><p>
96   preferred RBG pixel depth, used by fb helpers
97      </p></dd><dt><span class="term">prefer_shadow</span></dt><dd><p>
98   hint to userspace to prefer shadow-fb rendering
99      </p></dd><dt><span class="term">async_page_flip</span></dt><dd><p>
100   does this device support async flips on the primary plane?
101      </p></dd><dt><span class="term">cursor_width</span></dt><dd><p>
102   hint to userspace for max cursor width
103      </p></dd><dt><span class="term">cursor_height</span></dt><dd><p>
104   hint to userspace for max cursor height
105      </p></dd></dl></div></div><div class="refsect1"><a name="idp1124815308"></a><h2>_property</h2><p>
106   core property tracking
107</p></div><div class="refsect1"><a name="idp1124815932"></a><h2>Description</h2><p>
108   Core mode resource tracking structure.  All CRTC, encoders, and connectors
109   enumerated by the driver are added here, as are global properties.  Some
110   global restrictions are also here, e.g. dimension restrictions.
111</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-mode-group.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="drm-kms-init.html#idp1124538092">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-drm-for-each-plane-mask.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct drm_mode_group</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">drm_for_each_plane_mask</span></td></tr></table></div></body></html>
112