Linux-libre 4.14.2-gnu
[librecmc/linux-libre.git] / drivers / staging / vc04_services / interface / vchiq_arm / vchiq_cfg.h
1 /**
2  * Copyright (c) 2010-2014 Broadcom. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions, and the following disclaimer,
9  *    without modification.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. The names of the above-listed copyright holders may not be used
14  *    to endorse or promote products derived from this software without
15  *    specific prior written permission.
16  *
17  * ALTERNATIVELY, this software may be distributed under the terms of the
18  * GNU General Public License ("GPL") version 2, as published by the Free
19  * Software Foundation.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
22  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
25  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33
34 #ifndef VCHIQ_CFG_H
35 #define VCHIQ_CFG_H
36
37 #define VCHIQ_MAGIC              VCHIQ_MAKE_FOURCC('V', 'C', 'H', 'I')
38 /* The version of VCHIQ - change with any non-trivial change */
39 #define VCHIQ_VERSION            8
40 /* The minimum compatible version - update to match VCHIQ_VERSION with any
41 ** incompatible change */
42 #define VCHIQ_VERSION_MIN        3
43
44 /* The version that introduced the VCHIQ_IOC_LIB_VERSION ioctl */
45 #define VCHIQ_VERSION_LIB_VERSION 7
46
47 /* The version that introduced the VCHIQ_IOC_CLOSE_DELIVERED ioctl */
48 #define VCHIQ_VERSION_CLOSE_DELIVERED 7
49
50 /* The version that made it safe to use SYNCHRONOUS mode */
51 #define VCHIQ_VERSION_SYNCHRONOUS_MODE 8
52
53 #define VCHIQ_MAX_STATES         1
54 #define VCHIQ_MAX_SERVICES       4096
55 #define VCHIQ_MAX_SLOTS          128
56 #define VCHIQ_MAX_SLOTS_PER_SIDE 64
57
58 #define VCHIQ_NUM_CURRENT_BULKS        32
59 #define VCHIQ_NUM_SERVICE_BULKS        4
60
61 #ifndef VCHIQ_ENABLE_DEBUG
62 #define VCHIQ_ENABLE_DEBUG             1
63 #endif
64
65 #ifndef VCHIQ_ENABLE_STATS
66 #define VCHIQ_ENABLE_STATS             1
67 #endif
68
69 #endif /* VCHIQ_CFG_H */