Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / drivers / staging / vc04_services / interface / vchiq_arm / vchiq_cfg.h
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright (c) 2010-2014 Broadcom. All rights reserved. */
3
4 #ifndef VCHIQ_CFG_H
5 #define VCHIQ_CFG_H
6
7 #define VCHIQ_MAGIC              VCHIQ_MAKE_FOURCC('V', 'C', 'H', 'I')
8 /* The version of VCHIQ - change with any non-trivial change */
9 #define VCHIQ_VERSION            8
10 /* The minimum compatible version - update to match VCHIQ_VERSION with any
11 ** incompatible change */
12 #define VCHIQ_VERSION_MIN        3
13
14 /* The version that introduced the VCHIQ_IOC_LIB_VERSION ioctl */
15 #define VCHIQ_VERSION_LIB_VERSION 7
16
17 /* The version that introduced the VCHIQ_IOC_CLOSE_DELIVERED ioctl */
18 #define VCHIQ_VERSION_CLOSE_DELIVERED 7
19
20 /* The version that made it safe to use SYNCHRONOUS mode */
21 #define VCHIQ_VERSION_SYNCHRONOUS_MODE 8
22
23 #define VCHIQ_MAX_STATES         1
24 #define VCHIQ_MAX_SERVICES       4096
25 #define VCHIQ_MAX_SLOTS          128
26 #define VCHIQ_MAX_SLOTS_PER_SIDE 64
27
28 #define VCHIQ_NUM_CURRENT_BULKS        32
29 #define VCHIQ_NUM_SERVICE_BULKS        4
30
31 #ifndef VCHIQ_ENABLE_DEBUG
32 #define VCHIQ_ENABLE_DEBUG             1
33 #endif
34
35 #ifndef VCHIQ_ENABLE_STATS
36 #define VCHIQ_ENABLE_STATS             1
37 #endif
38
39 #endif /* VCHIQ_CFG_H */