cregit-Linux how code gets into the kernel

Release 4.11 drivers/gpu/drm/sti/sti_mixer.h

/*
 * Copyright (C) STMicroelectronics SA 2014
 * Authors: Benjamin Gaignard <benjamin.gaignard@st.com>
 *          Fabien Dessenne <fabien.dessenne@st.com>
 *          for STMicroelectronics.
 * License terms:  GNU General Public License (GPL), version 2
 */

#ifndef _STI_MIXER_H_

#define _STI_MIXER_H_

#include <drm/drmP.h>

#include "sti_plane.h"


#define to_sti_mixer(x) container_of(x, struct sti_mixer, drm_crtc)


enum sti_mixer_status {
	
STI_MIXER_READY,
	
STI_MIXER_DISABLING,
	
STI_MIXER_DISABLED,
};

/**
 * STI Mixer subdevice structure
 *
 * @dev: driver device
 * @regs: mixer registers
 * @id: id of the mixer
 * @drm_crtc: crtc object link to the mixer
 * @status: to know the status of the mixer
 */

struct sti_mixer {
	
struct device *dev;
	
void __iomem *regs;
	
int id;
	
struct drm_crtc drm_crtc;
	
enum sti_mixer_status status;
};

const char *sti_mixer_to_str(struct sti_mixer *mixer);

struct sti_mixer *sti_mixer_create(struct device *dev,
				   struct drm_device *drm_dev,
				   int id,
				   void __iomem *baseaddr);

int sti_mixer_set_plane_status(struct sti_mixer *mixer,
			       struct sti_plane *plane, bool status);
int sti_mixer_set_plane_depth(struct sti_mixer *mixer, struct sti_plane *plane);
int sti_mixer_active_video_area(struct sti_mixer *mixer,
				struct drm_display_mode *mode);

void sti_mixer_set_background_status(struct sti_mixer *mixer, bool enable);

int sti_mixer_debugfs_init(struct sti_mixer *mixer, struct drm_minor *minor);

/* depth in Cross-bar control = z order */

#define GAM_MIXER_NB_DEPTH_LEVEL 6


#define STI_MIXER_MAIN 0

#define STI_MIXER_AUX  1

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Benjamin Gaignard15184.83%333.33%
Vincent Abriou2614.61%555.56%
Fabien Dessenne10.56%111.11%
Total178100.00%9100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.