aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/samsung/mfc50/mfc_errorno.h
blob: 7f27115c76c0f23ac579ed355be43ba8994c4032 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
 * drivers/media/video/samsung/mfc50/mfc_errorno.h
 *
 * Header file for Samsung MFC (Multi Function Codec - FIMV) driver
 *
 * Jaeryul Oh, Copyright (c) 2009 Samsung Electronics
 * http://www.samsungsemi.com/
 *
 * Change Logs
 *   2009.09.14 - Beautify source code (Key Young, Park)
 *   2009.09.21 - Implement clock & power gating.
 *                including suspend & resume fuction. (Key Young, Park)
 *
 * 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 _MFC_ERRORNO_H_
#define _MFC_ERRORNO_H_

enum mfc_error_code {
	MFCINST_RET_OK = 1,
	MFCINST_ERR_INVALID_PARAM = -1001,
	MFCINST_ERR_STATE_INVALID = -1002,
	MFCINST_ERR_POWER_OFF = -1003,
	MFCINST_ERR_WRONG_CODEC_MODE = -1004,
	MFCINST_ERR_INIT_FAIL = -1005,
	MFCINST_ERR_FILE_OPEN_FAIL = -1006,
	MFCINST_ERR_INTR_TIME_OUT = -1007,
	MFCINST_ERR_INTR_INIT_FAIL = -1008,
	MFCINST_ERR_OPEN_FAIL = -1009,
	MFCINST_ERR_CLOSE_FAIL = -1010,


	MFCINST_ERR_DEC_INIT_CMD_FAIL = -2001,
	MFCINST_ERR_DEC_HEADER_DECODE_FAIL = -2002,
	MFCINST_ERR_DEC_INIT_BUFFER_FAIL = -2003,
	MFCINST_ERR_DEC_DECODE_CMD_FAIL = -2004,
	MFCINST_ERR_DEC_DECODE_DONE_FAIL = -2005,
	MFCINST_ERR_DEC_INVALID_STRM  = -2006,
	MFCINST_ERR_DEC_STRM_SIZE_INVALID  = -2007,
	MFCINST_ERR_DEC_SEQ_DONE_FAIL	= -2008,
	MFCINST_ERR_DEC_NON_I_FRAME_START  = -2009,

	MFCINST_ERR_ENC_INIT_CMD_FAIL = -3001,
	MFCINST_ERR_ENC_HEADER_DECODE_FAIL = -3002,
	MFCINST_ERR_ENC_ENCODE_CMD_FAIL = -3003,
	MFCINST_ERR_ENC_ENCODE_DONE_FAIL = -3004,
	MFCINST_ERR_ENC_PARAM_INVALID_VALUE = -3005,

	MFCINST_ERR_STRM_BUF_INVALID = -4001,
	MFCINST_ERR_FRM_BUF_INVALID = -4002,
	MFCINST_ERR_FRM_BUF_SIZE = -4003,

	MFCINST_ERR_FW_LOAD_FAIL = -5001,
	MFCINST_ERR_FW_MEMORY_INVALID = -5002,
	MFCINST_ERR_FW_DMA_SET_FAIL = -5003,
	MFCINST_ERR_FW_INIT_FAIL = -5004,
	MFCINST_ERR_SEQ_START_FAIL = -5005,

	MFCINST_INST_NUM_INVALID = -6001,
	MFCINST_INST_NUM_EXCEEDED = -6002,
	MFCINST_ERR_SET_CONF = -6003,
	MFCINST_ERR_GET_CONF = -6004,

	MFCINST_MEMORY_ALLOC_FAIL = -8001,
	MFCINST_MUTEX_CREATE_FAIL = -8002,
	MFCINST_POWER_INIT_FAIL = -8003,
	MFCINST_POWER_ON_OFF_FAIL = -8004,
	MFCINST_POWER_STATE_INVALID = -8005,
	MFCINST_POWER_MANAGER_ERR = -8006,
	MFCINST_SLEEP_FAIL = -8007,
	MFCINST_WAKEUP_FAIL = -8008,

	MFCINST_MEMORY_INVALID_ADDR = -8101,
	MFCINST_MEMORY_MAPPING_FAIL = -8102,

	MFCAPI_RET_FAIL = -9001,
};

#endif /* _MFC_ERRORNO_H_ */