Lloyd Atkinson | 8772e20 | 2016-09-26 17:52:16 -0400 | [diff] [blame] | 1 | /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 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_VBIF_H__ |
| 14 | #define __SDE_VBIF_H__ |
| 15 | |
| 16 | #include "sde_kms.h" |
| 17 | |
| 18 | struct sde_vbif_set_ot_params { |
| 19 | u32 xin_id; |
| 20 | u32 num; |
| 21 | u32 width; |
| 22 | u32 height; |
| 23 | u32 frame_rate; |
| 24 | bool rd; |
| 25 | bool is_wfd; |
| 26 | u32 vbif_idx; |
| 27 | u32 clk_ctrl; |
| 28 | }; |
| 29 | |
| 30 | /** |
| 31 | * sde_vbif_set_ot_limit - set OT limit for vbif client |
| 32 | * @sde_kms: SDE handler |
| 33 | * @params: Pointer to OT configuration parameters |
| 34 | */ |
| 35 | void sde_vbif_set_ot_limit(struct sde_kms *sde_kms, |
| 36 | struct sde_vbif_set_ot_params *params); |
| 37 | |
Alan Kwong | 748e833d | 2016-10-26 12:34:48 -0400 | [diff] [blame] | 38 | #ifdef CONFIG_DEBUG_FS |
| 39 | int sde_debugfs_vbif_init(struct sde_kms *sde_kms, struct dentry *debugfs_root); |
| 40 | void sde_debugfs_vbif_destroy(struct sde_kms *sde_kms); |
| 41 | #else |
| 42 | static inline int sde_debugfs_vbif_init(struct sde_kms *sde_kms, |
| 43 | struct dentry *debugfs_root) |
| 44 | { |
| 45 | return 0; |
| 46 | } |
| 47 | static inline void sde_debugfs_vbif_destroy(struct sde_kms *sde_kms) |
| 48 | { |
| 49 | } |
| 50 | #endif |
Lloyd Atkinson | 8772e20 | 2016-09-26 17:52:16 -0400 | [diff] [blame] | 51 | #endif /* __SDE_VBIF_H__ */ |