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