blob: f3988901ceefb62c27525f28fd7d7914cb8ca0e0 [file] [log] [blame]
Clarence Ipaac9f332016-08-31 15:46:35 -04001/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
Narendra Muppalla1b0b3352015-09-29 10:16:51 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __SDE_KMS_H__
14#define __SDE_KMS_H__
15
16#include "msm_drv.h"
17#include "msm_kms.h"
Alan Kwong112a84f2016-05-24 20:49:21 -040018#include "msm_mmu.h"
Narendra Muppalla1b0b3352015-09-29 10:16:51 -070019#include "sde_hw_catalog.h"
Clarence Ipc475b082016-06-26 09:27:23 -040020#include "sde_hw_ctl.h"
Abhijit Kulkarni40e38162016-06-26 22:12:09 -040021#include "sde_hw_lm.h"
Ben Chan78647cd2016-06-26 22:02:47 -040022#include "sde_hw_interrupts.h"
Alan Kwongd21960f2016-07-29 03:33:17 -040023#include "sde_hw_wb.h"
24#include "sde_hw_top.h"
Clarence Ipe59fb3f2016-07-26 13:39:59 -040025#include "sde_connector.h"
Lloyd Atkinson9eabe7a2016-09-14 13:39:15 -040026#include "sde_crtc.h"
Lloyd Atkinson11f34442016-08-11 11:19:52 -040027#include "sde_rm.h"
Dhaval Patel3949f032016-06-20 16:24:33 -070028#include "sde_power_handle.h"
Alan Kwongf5dd86c2016-08-09 18:08:17 -040029#include "sde_irq.h"
Ben Chan78647cd2016-06-26 22:02:47 -040030
Clarence Ip31c19b52016-06-10 15:42:08 -040031/**
32 * SDE_DEBUG - macro for kms/plane/crtc/encoder/connector logs
33 * @fmt: Pointer to format string
34 */
35#define SDE_DEBUG(fmt, ...) \
36 do { \
37 if (unlikely(drm_debug & DRM_UT_KMS)) \
38 drm_ut_debug_printk(__func__, fmt, ##__VA_ARGS__); \
39 else \
40 pr_debug(fmt, ##__VA_ARGS__); \
41 } while (0)
42
43/**
44 * SDE_DEBUG_DRIVER - macro for hardware driver logging
45 * @fmt: Pointer to format string
46 */
47#define SDE_DEBUG_DRIVER(fmt, ...) \
48 do { \
49 if (unlikely(drm_debug & DRM_UT_DRIVER)) \
50 drm_ut_debug_printk(__func__, fmt, ##__VA_ARGS__); \
51 else \
52 pr_debug(fmt, ##__VA_ARGS__); \
53 } while (0)
54
Dhaval Patelb271b842016-10-19 21:41:22 -070055#define SDE_ERROR(fmt, ...) pr_err("[sde error]" fmt, ##__VA_ARGS__)
Clarence Ip31c19b52016-06-10 15:42:08 -040056
Dhaval Patelec10fad2016-08-22 14:40:48 -070057#define POPULATE_RECT(rect, a, b, c, d, Q16_flag) \
58 do { \
59 (rect)->x = (Q16_flag) ? (a) >> 16 : (a); \
60 (rect)->y = (Q16_flag) ? (b) >> 16 : (b); \
61 (rect)->w = (Q16_flag) ? (c) >> 16 : (c); \
62 (rect)->h = (Q16_flag) ? (d) >> 16 : (d); \
63 } while (0)
64
65#define CHECK_LAYER_BOUNDS(offset, size, max_size) \
66 (((size) > (max_size)) || ((offset) > ((max_size) - (size))))
67
Clarence Ipfd96ba22016-09-09 16:45:44 -040068/**
69 * ktime_compare_safe - compare two ktime structures
70 * This macro is similar to the standard ktime_compare() function, but
71 * attempts to also handle ktime overflows.
72 * @A: First ktime value
73 * @B: Second ktime value
74 * Returns: -1 if A < B, 0 if A == B, 1 if A > B
75 */
76#define ktime_compare_safe(A, B) \
77 ktime_compare(ktime_sub((A), (B)), ktime_set(0, 0))
78
Dhaval Patel22ef6df2016-10-20 14:42:52 -070079#define SDE_NAME_SIZE 12
80
Ben Chan78647cd2016-06-26 22:02:47 -040081/*
82 * struct sde_irq_callback - IRQ callback handlers
Alan Kwonga172ef52016-09-27 00:29:10 -040083 * @list: list to callback
Ben Chan78647cd2016-06-26 22:02:47 -040084 * @func: intr handler
85 * @arg: argument for the handler
86 */
87struct sde_irq_callback {
Alan Kwonga172ef52016-09-27 00:29:10 -040088 struct list_head list;
Ben Chan78647cd2016-06-26 22:02:47 -040089 void (*func)(void *arg, int irq_idx);
90 void *arg;
91};
92
93/**
94 * struct sde_irq: IRQ structure contains callback registration info
95 * @total_irq: total number of irq_idx obtained from HW interrupts mapping
96 * @irq_cb_tbl: array of IRQ callbacks setting
Alan Kwonga172ef52016-09-27 00:29:10 -040097 * @enable_counts array of IRQ enable counts
Ben Chan78647cd2016-06-26 22:02:47 -040098 * @cb_lock: callback lock
Alan Kwonga172ef52016-09-27 00:29:10 -040099 * @debugfs_file: debugfs file for irq statistics
Ben Chan78647cd2016-06-26 22:02:47 -0400100 */
101struct sde_irq {
102 u32 total_irqs;
Alan Kwonga172ef52016-09-27 00:29:10 -0400103 struct list_head *irq_cb_tbl;
104 atomic_t *enable_counts;
105 atomic_t *irq_counts;
Ben Chan78647cd2016-06-26 22:02:47 -0400106 spinlock_t cb_lock;
Alan Kwonga172ef52016-09-27 00:29:10 -0400107 struct dentry *debugfs_file;
Ben Chan78647cd2016-06-26 22:02:47 -0400108};
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700109
Abhijit Kulkarni40e38162016-06-26 22:12:09 -0400110/**
Lloyd Atkinson11f34442016-08-11 11:19:52 -0400111 * Encoder functions and data types
112 * @intfs: Interfaces this encoder is using, INTF_MODE_NONE if unused
113 * @wbs: Writebacks this encoder is using, INTF_MODE_NONE if unused
114 * @needs_cdm: Encoder requests a CDM based on pixel format conversion needs
115 * @display_num_of_h_tiles:
Abhijit Kulkarni40e38162016-06-26 22:12:09 -0400116 */
Lloyd Atkinson11f34442016-08-11 11:19:52 -0400117struct sde_encoder_hw_resources {
118 enum sde_intf_mode intfs[INTF_MAX];
119 enum sde_intf_mode wbs[WB_MAX];
120 bool needs_cdm;
121 u32 display_num_of_h_tiles;
Abhijit Kulkarni40e38162016-06-26 22:12:09 -0400122};
123
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700124struct sde_kms {
Ben Chan78647cd2016-06-26 22:02:47 -0400125 struct msm_kms base;
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700126 struct drm_device *dev;
Dhaval Patel3949f032016-06-20 16:24:33 -0700127 int core_rev;
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700128 struct sde_mdss_cfg *catalog;
129
Alan Kwong112a84f2016-05-24 20:49:21 -0400130 struct msm_mmu *mmu[MSM_SMMU_DOMAIN_MAX];
131 int mmu_id[MSM_SMMU_DOMAIN_MAX];
Dhaval Patel3949f032016-06-20 16:24:33 -0700132 struct sde_power_client *core_client;
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700133
Clarence Ip4ce59322016-06-26 22:27:51 -0400134 /* directory entry for debugfs */
135 void *debugfs_root;
136
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700137 /* io/register spaces: */
Alan Kwongdfa8c082016-07-29 04:10:00 -0400138 void __iomem *mmio, *vbif[VBIF_MAX];
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700139
140 struct regulator *vdd;
141 struct regulator *mmagic;
142 struct regulator *venus;
143
Alan Kwongf5dd86c2016-08-09 18:08:17 -0400144 struct sde_irq_controller irq_controller;
Ben Chan78647cd2016-06-26 22:02:47 -0400145
146 struct sde_hw_intr *hw_intr;
147 struct sde_irq irq_obj;
Lloyd Atkinson11f34442016-08-11 11:19:52 -0400148
149 struct sde_rm rm;
Alan Kwong5d324e42016-07-28 22:56:18 -0400150
151 struct sde_hw_vbif *hw_vbif[VBIF_MAX];
152 struct sde_hw_mdp *hw_mdp;
Clarence Ip3649f8b2016-10-31 09:59:44 -0400153 int dsi_display_count;
154 void **dsi_displays;
155 int wb_display_count;
156 void **wb_displays;
Ben Chan78647cd2016-06-26 22:02:47 -0400157};
158
159struct vsync_info {
160 u32 frame_count;
161 u32 line_count;
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700162};
163
164#define to_sde_kms(x) container_of(x, struct sde_kms, base)
165
166struct sde_plane_state {
167 struct drm_plane_state base;
168
169 /* aligned with property */
Clarence Ipe78efb72016-06-24 18:35:21 -0400170 uint64_t property_values[PLANE_PROP_COUNT];
171
172 /* blob properties */
173 struct drm_property_blob *property_blobs[PLANE_PROP_BLOBCOUNT];
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700174
Clarence Ipcae1bb62016-07-07 12:07:13 -0400175 /* dereferenced input fence pointer */
176 void *input_fence;
Clarence Ipae4e60c2016-06-26 22:44:04 -0400177
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700178 /* assigned by crtc blender */
179 enum sde_stage stage;
180
Clarence Ip282dad62016-09-27 17:07:35 -0400181 /* bitmask for which pipe h/w config functions need to be updated */
182 uint32_t dirty;
183
184 /* whether the current update is still pending */
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700185 bool pending : 1;
186};
187
188#define to_sde_plane_state(x) \
Clarence Ip4c1d9772016-06-26 09:35:38 -0400189 container_of(x, struct sde_plane_state, base)
190
191/**
192 * sde_plane_get_property - Query integer value of plane property
193 *
194 * @S: Pointer to plane state
195 * @X: Property index, from enum msm_mdp_plane_property
196 *
197 * Return: Integer value of requested property
198 */
199#define sde_plane_get_property(S, X) \
200 ((S) && ((X) < PLANE_PROP_COUNT) ? ((S)->property_values[(X)]) : 0)
201
202/**
Clarence Ipdd395242016-09-09 10:47:17 -0400203 * sde_is_custom_client - whether or not to enable non-standard customizations
204 *
205 * Return: Whether or not the 'sdeclient' module parameter was set on boot up
206 */
207bool sde_is_custom_client(void);
208
209/**
Clarence Ip4ce59322016-06-26 22:27:51 -0400210 * Debugfs functions - extra helper functions for debugfs support
211 *
212 * Main debugfs documentation is located at,
213 *
214 * Documentation/filesystems/debugfs.txt
215 *
216 * @sde_debugfs_setup_regset32: Initialize data for sde_debugfs_create_regset32
217 * @sde_debugfs_create_regset32: Create 32-bit register dump file
218 * @sde_debugfs_get_root: Get root dentry for SDE_KMS's debugfs node
219 */
220
221/**
222 * Companion structure for sde_debugfs_create_regset32. Do not initialize the
223 * members of this structure explicitly; use sde_debugfs_setup_regset32 instead.
224 */
225struct sde_debugfs_regset32 {
226 uint32_t offset;
227 uint32_t blk_len;
Clarence Ipaac9f332016-08-31 15:46:35 -0400228 struct sde_kms *sde_kms;
Clarence Ip4ce59322016-06-26 22:27:51 -0400229};
230
231/**
232 * sde_debugfs_setup_regset32 - Initialize register block definition for debugfs
233 * This function is meant to initialize sde_debugfs_regset32 structures for use
234 * with sde_debugfs_create_regset32.
235 * @regset: opaque register definition structure
236 * @offset: sub-block offset
237 * @length: sub-block length, in bytes
Clarence Ipaac9f332016-08-31 15:46:35 -0400238 * @sde_kms: pointer to sde kms structure
Clarence Ip4ce59322016-06-26 22:27:51 -0400239 */
240void sde_debugfs_setup_regset32(struct sde_debugfs_regset32 *regset,
Clarence Ipaac9f332016-08-31 15:46:35 -0400241 uint32_t offset, uint32_t length, struct sde_kms *sde_kms);
Clarence Ip4ce59322016-06-26 22:27:51 -0400242
243/**
244 * sde_debugfs_create_regset32 - Create register read back file for debugfs
245 *
246 * This function is almost identical to the standard debugfs_create_regset32()
247 * function, with the main difference being that a list of register
248 * names/offsets do not need to be provided. The 'read' function simply outputs
249 * sequential register values over a specified range.
250 *
251 * Similar to the related debugfs_create_regset32 API, the structure pointed to
252 * by regset needs to persist for the lifetime of the created file. The calling
253 * code is responsible for initialization/management of this structure.
254 *
255 * The structure pointed to by regset is meant to be opaque. Please use
256 * sde_debugfs_setup_regset32 to initialize it.
257 *
258 * @name: File name within debugfs
259 * @mode: File mode within debugfs
260 * @parent: Parent directory entry within debugfs, can be NULL
261 * @regset: Pointer to persistent register block definition
262 *
263 * Return: dentry pointer for newly created file, use either debugfs_remove()
264 * or debugfs_remove_recursive() (on a parent directory) to remove the
265 * file
266 */
267void *sde_debugfs_create_regset32(const char *name, umode_t mode,
268 void *parent, struct sde_debugfs_regset32 *regset);
269
270/**
271 * sde_debugfs_get_root - Return root directory entry for SDE's debugfs
272 *
273 * The return value should be passed as the 'parent' argument to subsequent
274 * debugfs create calls.
275 *
276 * @sde_kms: Pointer to SDE's KMS structure
277 *
278 * Return: dentry pointer for SDE's debugfs location
279 */
280void *sde_debugfs_get_root(struct sde_kms *sde_kms);
281
282/**
Clarence Ipb218a3c2016-07-15 14:17:42 -0400283 * SDE info management functions
284 * These functions/definitions allow for building up a 'sde_info' structure
285 * containing one or more "key=value\n" entries.
286 */
287#define SDE_KMS_INFO_MAX_SIZE 4096
288
289/**
290 * struct sde_kms_info - connector information structure container
291 * @data: Array of information character data
292 * @len: Current length of information data
293 * @staged_len: Temporary data buffer length, commit to
294 * len using sde_kms_info_stop
295 * @start: Whether or not a partial data entry was just started
296 */
297struct sde_kms_info {
298 char data[SDE_KMS_INFO_MAX_SIZE];
299 uint32_t len;
300 uint32_t staged_len;
301 bool start;
302};
303
304/**
305 * SDE_KMS_INFO_DATA - Macro for accessing sde_kms_info data bytes
306 * @S: Pointer to sde_kms_info structure
307 * Returns: Pointer to byte data
308 */
309#define SDE_KMS_INFO_DATA(S) ((S) ? ((struct sde_kms_info *)(S))->data : 0)
310
311/**
312 * SDE_KMS_INFO_DATALEN - Macro for accessing sde_kms_info data length
313 * @S: Pointer to sde_kms_info structure
314 * Returns: Size of available byte data
315 */
316#define SDE_KMS_INFO_DATALEN(S) ((S) ? ((struct sde_kms_info *)(S))->len : 0)
317
318/**
319 * sde_kms_info_reset - reset sde_kms_info structure
320 * @info: Pointer to sde_kms_info structure
321 */
322void sde_kms_info_reset(struct sde_kms_info *info);
323
324/**
325 * sde_kms_info_add_keyint - add integer value to 'sde_kms_info'
326 * @info: Pointer to sde_kms_info structure
327 * @key: Pointer to key string
328 * @value: Signed 32-bit integer value
329 */
330void sde_kms_info_add_keyint(struct sde_kms_info *info,
331 const char *key,
332 int32_t value);
333
334/**
335 * sde_kms_info_add_keystr - add string value to 'sde_kms_info'
336 * @info: Pointer to sde_kms_info structure
337 * @key: Pointer to key string
338 * @value: Pointer to string value
339 */
340void sde_kms_info_add_keystr(struct sde_kms_info *info,
341 const char *key,
342 const char *value);
343
344/**
345 * sde_kms_info_start - begin adding key to 'sde_kms_info'
346 * Usage:
347 * sde_kms_info_start(key)
348 * sde_kms_info_append(val_1)
349 * ...
350 * sde_kms_info_append(val_n)
351 * sde_kms_info_stop
352 * @info: Pointer to sde_kms_info structure
353 * @key: Pointer to key string
354 */
355void sde_kms_info_start(struct sde_kms_info *info,
356 const char *key);
357
358/**
359 * sde_kms_info_append - append value string to 'sde_kms_info'
360 * Usage:
361 * sde_kms_info_start(key)
362 * sde_kms_info_append(val_1)
363 * ...
364 * sde_kms_info_append(val_n)
365 * sde_kms_info_stop
366 * @info: Pointer to sde_kms_info structure
367 * @str: Pointer to partial value string
368 */
369void sde_kms_info_append(struct sde_kms_info *info,
370 const char *str);
371
372/**
373 * sde_kms_info_append_format - append format code string to 'sde_kms_info'
374 * Usage:
375 * sde_kms_info_start(key)
376 * sde_kms_info_append_format(fourcc, modifier)
377 * ...
378 * sde_kms_info_stop
379 * @info: Pointer to sde_kms_info structure
380 * @pixel_format: FOURCC format code
381 * @modifier: 64-bit drm format modifier
382 */
383void sde_kms_info_append_format(struct sde_kms_info *info,
384 uint32_t pixel_format,
385 uint64_t modifier);
386
387/**
388 * sde_kms_info_stop - finish adding key to 'sde_kms_info'
389 * Usage:
390 * sde_kms_info_start(key)
391 * sde_kms_info_append(val_1)
392 * ...
393 * sde_kms_info_append(val_n)
394 * sde_kms_info_stop
395 * @info: Pointer to sde_kms_info structure
396 */
397void sde_kms_info_stop(struct sde_kms_info *info);
398
399/**
Ben Chan78647cd2016-06-26 22:02:47 -0400400 * Vblank enable/disable functions
401 */
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700402int sde_enable_vblank(struct msm_kms *kms, struct drm_crtc *crtc);
403void sde_disable_vblank(struct msm_kms *kms, struct drm_crtc *crtc);
404
Abhijit Kulkarni40e38162016-06-26 22:12:09 -0400405/**
406 * Plane functions
407 */
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700408enum sde_sspp sde_plane_pipe(struct drm_plane *plane);
Clarence Ipcae1bb62016-07-07 12:07:13 -0400409void sde_plane_flush(struct drm_plane *plane);
Clarence Ipdbde9832016-06-26 09:48:36 -0400410struct drm_plane *sde_plane_init(struct drm_device *dev,
Clarence Ip2bbf7b32016-09-23 15:07:16 -0400411 uint32_t pipe, bool primary_plane,
412 unsigned long possible_crtcs);
Clarence Ip7a753bb2016-07-07 11:47:44 -0400413
414/**
Clarence Ipcae1bb62016-07-07 12:07:13 -0400415 * sde_plane_wait_input_fence - wait for input fence object
Clarence Ip7a753bb2016-07-07 11:47:44 -0400416 * @plane: Pointer to DRM plane object
417 * @wait_ms: Wait timeout value
418 * Returns: Zero on success
419 */
Clarence Ipcae1bb62016-07-07 12:07:13 -0400420int sde_plane_wait_input_fence(struct drm_plane *plane, uint32_t wait_ms);
Clarence Ipcb410d42016-06-26 22:52:33 -0400421
422/**
Clarence Ipcae1bb62016-07-07 12:07:13 -0400423 * sde_plane_color_fill - Enables color fill on plane
Clarence Ipcb410d42016-06-26 22:52:33 -0400424 * @plane: Pointer to DRM plane object
425 * @color: RGB fill color value, [23..16] Blue, [15..8] Green, [7..0] Red
426 * @alpha: 8-bit fill alpha value, 255 selects 100% alpha
427 *
428 * Returns: 0 on success
429 */
430int sde_plane_color_fill(struct drm_plane *plane,
431 uint32_t color, uint32_t alpha);
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700432
Abhijit Kulkarni40e38162016-06-26 22:12:09 -0400433/**
Lloyd Atkinson5d722782016-05-30 14:09:41 -0400434 * sde_encoder_get_hw_resources - Populate table of required hardware resources
435 * @encoder: encoder pointer
436 * @hw_res: resource table to populate with encoder required resources
Lloyd Atkinson11f34442016-08-11 11:19:52 -0400437 * @conn_state: report hw reqs based on this proposed connector state
Lloyd Atkinson5d722782016-05-30 14:09:41 -0400438 */
Abhijit Kulkarni3e3e0d22016-06-24 17:56:13 -0400439void sde_encoder_get_hw_resources(struct drm_encoder *encoder,
Lloyd Atkinson11f34442016-08-11 11:19:52 -0400440 struct sde_encoder_hw_resources *hw_res,
441 struct drm_connector_state *conn_state);
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700442
Lloyd Atkinson5d722782016-05-30 14:09:41 -0400443/**
444 * sde_encoder_register_vblank_callback - provide callback to encoder that
445 * will be called on the next vblank.
446 * @encoder: encoder pointer
447 * @cb: callback pointer, provide NULL to deregister and disable IRQs
448 * @data: user data provided to callback
449 */
450void sde_encoder_register_vblank_callback(struct drm_encoder *encoder,
451 void (*cb)(void *), void *data);
452
453/**
454 * sde_encoder_schedule_kickoff - Register a callback with the encoder to
455 * trigger a double buffer flip of the ctl path (i.e. ctl flush and start)
456 * at the appropriate time.
457 * Immediately: if no previous commit is outstanding.
458 * Delayed: Save the callback, and return. Does not block. Callback will
459 * be triggered later. E.g. cmd encoder will trigger at pp_done irq
460 * irq if it outstanding.
Lloyd Atkinson5d722782016-05-30 14:09:41 -0400461 * @encoder: encoder pointer
Lloyd Atkinson5d722782016-05-30 14:09:41 -0400462 */
Clarence Ip110d15c2016-08-16 14:44:41 -0400463void sde_encoder_schedule_kickoff(struct drm_encoder *encoder);
Lloyd Atkinson5d722782016-05-30 14:09:41 -0400464
465/**
466 * sde_encoder_wait_nxt_committed - Wait for hardware to have flushed the
467 * current pending frames to hardware at a vblank or ctl_start
468 * Encoders will map this differently depending on irqs
469 * vid mode -> vsync_irq
470 * @encoder: encoder pointer
471 *
472 * Return: 0 on success, -EWOULDBLOCK if already signaled, error otherwise
473 */
474int sde_encoder_wait_for_commit_done(struct drm_encoder *drm_encoder);
475
476/**
Clarence Ip3649f8b2016-10-31 09:59:44 -0400477 * sde_encoder_init - initialize virtual encoder object
478 * @dev: Pointer to drm device structure
479 * @disp_info: Pointer to display information structure
480 * Returns: Pointer to newly created drm encoder
Lloyd Atkinson5d722782016-05-30 14:09:41 -0400481 */
Clarence Ip3649f8b2016-10-31 09:59:44 -0400482struct drm_encoder *sde_encoder_init(
483 struct drm_device *dev,
484 struct msm_display_info *disp_info);
485
486/**
487 * sde_encoder_destroy - destroy previously initialized virtual encoder
488 * @drm_enc: Pointer to previously created drm encoder structure
489 */
490void sde_encoder_destroy(struct drm_encoder *drm_enc);
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700491
Narendra Muppalla1b0b3352015-09-29 10:16:51 -0700492#endif /* __sde_kms_H__ */