Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) STMicroelectronics SA 2014
0004  * Author: Fabien Dessenne <fabien.dessenne@st.com> for STMicroelectronics.
0005  */
0006 
0007 #ifndef _STI_VID_H_
0008 #define _STI_VID_H_
0009 
0010 /**
0011  * STI VID structure
0012  *
0013  * @dev:   driver device
0014  * @regs:  vid registers
0015  * @id:    id of the vid
0016  */
0017 struct sti_vid {
0018     struct device *dev;
0019     void __iomem *regs;
0020     int id;
0021 };
0022 
0023 void sti_vid_commit(struct sti_vid *vid,
0024             struct drm_plane_state *state);
0025 void sti_vid_disable(struct sti_vid *vid);
0026 struct sti_vid *sti_vid_create(struct device *dev, struct drm_device *drm_dev,
0027                    int id, void __iomem *baseaddr);
0028 
0029 void vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor);
0030 
0031 #endif