summaryrefstree
path: root/kernel/drivers/vision/vpu/vpu-device.h
blob: 2d3e96c7d02d9fce20c70e90d296695b1d951be8 (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
41
42
43
44
45
46
47
48
/*
 * Samsung Exynos SoC series VPU 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 VPU_DEVICE_H_
#define VPU_DEVICE_H_

#include "vpu-graphmgr.h"
#include "vpu-system.h"
#include "vpu-vertex.h"
#include "vpu-exynos.h"
#include "vpu-resource.h"
#include "vpu-debug.h"

enum vpu_device_state {
	VPU_DEVICE_STATE_OPEN,
	VPU_DEVICE_STATE_START
};

enum vpu_device_mode {
	VPU_DEVICE_MODE_NORMAL,
	VPU_DEVICE_MODE_TEST
};

struct vpu_device {
	struct device			*dev;
	unsigned long			state;
	u32				mode;

	struct vpu_graphmgr		graphmgr;
	struct vpu_system		system;
	struct vpu_resource		resource;
	struct vpu_vertex		vertex;
	struct vpu_debug		debug;
};

int vpu_device_open(struct vpu_device *device);
int vpu_device_close(struct vpu_device *device);
int vpu_device_start(struct vpu_device *device);
int vpu_device_stop(struct vpu_device *device);

#endif