blob: 9b67ed0e34653770d8fa396deb7ab715f0544b39 [file] [log] [blame]
Duy Truonge833aca2013-02-12 13:35:08 -08001/* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
Vinay Kaliab5598742011-12-21 16:52:33 -08002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#ifndef _VCD_ERR_STATUS_H_
15#define _VCD_ERR_STATUS_H_
16
17#define VCD_EVT_RESP_BASE 0x1000
18#define VCD_EVT_RESP_OPEN (VCD_EVT_RESP_BASE + 0x1)
19#define VCD_EVT_RESP_START (VCD_EVT_RESP_BASE + 0x2)
20#define VCD_EVT_RESP_STOP (VCD_EVT_RESP_BASE + 0x3)
21#define VCD_EVT_RESP_PAUSE (VCD_EVT_RESP_BASE + 0x4)
22#define VCD_EVT_RESP_FLUSH_INPUT_DONE (VCD_EVT_RESP_BASE + 0x5)
23#define VCD_EVT_RESP_FLUSH_OUTPUT_DONE (VCD_EVT_RESP_BASE + 0x6)
24#define VCD_EVT_RESP_INPUT_FLUSHED (VCD_EVT_RESP_BASE + 0x7)
25#define VCD_EVT_RESP_OUTPUT_FLUSHED (VCD_EVT_RESP_BASE + 0x8)
26#define VCD_EVT_RESP_INPUT_DONE (VCD_EVT_RESP_BASE + 0x9)
27#define VCD_EVT_RESP_OUTPUT_DONE (VCD_EVT_RESP_BASE + 0xa)
28
29#define VCD_EVT_IND_BASE 0x2000
30#define VCD_EVT_IND_INPUT_RECONFIG (VCD_EVT_IND_BASE + 0x1)
31#define VCD_EVT_IND_OUTPUT_RECONFIG (VCD_EVT_IND_BASE + 0x2)
32#define VCD_EVT_IND_HWERRFATAL (VCD_EVT_IND_BASE + 0x3)
33#define VCD_EVT_IND_RESOURCES_LOST (VCD_EVT_IND_BASE + 0x4)
34#define VCD_EVT_IND_INFO_OUTPUT_RECONFIG (VCD_EVT_IND_BASE + 0x5)
35#define VCD_EVT_IND_INFO_FIELD_DROPPED (VCD_EVT_IND_BASE + 0x6)
36
37#define VCD_S_SUCCESS 0x0
38
39#define VCD_S_ERR_BASE 0x80000000
40#define VCD_ERR_FAIL (VCD_S_ERR_BASE + 0x01)
41#define VCD_ERR_ALLOC_FAIL (VCD_S_ERR_BASE + 0x02)
42#define VCD_ERR_ILLEGAL_OP (VCD_S_ERR_BASE + 0x03)
43#define VCD_ERR_ILLEGAL_PARM (VCD_S_ERR_BASE + 0x04)
44#define VCD_ERR_BAD_POINTER (VCD_S_ERR_BASE + 0x05)
45#define VCD_ERR_BAD_HANDLE (VCD_S_ERR_BASE + 0x06)
46#define VCD_ERR_NOT_SUPPORTED (VCD_S_ERR_BASE + 0x07)
47#define VCD_ERR_BAD_STATE (VCD_S_ERR_BASE + 0x08)
48#define VCD_ERR_BUSY (VCD_S_ERR_BASE + 0x09)
49#define VCD_ERR_MAX_CLIENT (VCD_S_ERR_BASE + 0x0a)
50#define VCD_ERR_IFRAME_EXPECTED (VCD_S_ERR_BASE + 0x0b)
51#define VCD_ERR_INTRLCD_FIELD_DROP (VCD_S_ERR_BASE + 0x0c)
52#define VCD_ERR_HW_FATAL (VCD_S_ERR_BASE + 0x0d)
53#define VCD_ERR_BITSTREAM_ERR (VCD_S_ERR_BASE + 0x0e)
54#define VCD_ERR_QEMPTY (VCD_S_ERR_BASE + 0x0f)
55#define VCD_ERR_SEQHDR_PARSE_FAIL (VCD_S_ERR_BASE + 0x10)
56#define VCD_ERR_INPUT_NOT_PROCESSED (VCD_S_ERR_BASE + 0x11)
57#define VCD_ERR_INDEX_NOMORE (VCD_S_ERR_BASE + 0x12)
58
59#define VCD_FAILED(rc) ((rc > VCD_S_ERR_BASE) ? true : false)
60
61#endif