summaryrefstree
path: root/kernel/drivers/media/platform/exynos/fimc-is2/fimc-is-pipe.h
blob: ae284d17f1ca44b4d447cd98dd7b64e15f6085e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Samsung Exynos5 SoC series FIMC-IS driver
 *
 *
 * Copyright (c) 2015 Samsung Electronics Co., Ltd
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
#ifndef FIMC_IS_PIPE_H
#define FIMC_IS_PIPE_H

#include "fimc-is-groupmgr.h"

#define FIMC_IS_MAX_PIPE_BUFS (5)

enum pipe_slot_type {
	PIPE_SLOT_SRC,
	PIPE_SLOT_JUNCTION,
	PIPE_SLOT_DST,
	PIPE_SLOT_MAX,
};

struct fimc_is_pipe {
	u32 id;
	struct fimc_is_group *src;
	struct fimc_is_group *dst;
	struct fimc_is_video_ctx *vctx[PIPE_SLOT_MAX];
	struct camera2_dm pipe_dm;
	struct camera2_udm pipe_udm;
	struct v4l2_buffer buf[PIPE_SLOT_MAX][FIMC_IS_MAX_PIPE_BUFS];
	struct v4l2_plane planes[PIPE_SLOT_MAX][FIMC_IS_MAX_PIPE_BUFS][FIMC_IS_MAX_PLANES];
};

int fimc_is_pipe_probe(struct fimc_is_pipe *pipe);
int fimc_is_pipe_create(struct fimc_is_pipe *pipe,
	struct fimc_is_group *src,
	struct fimc_is_group *dst);
#endif