• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /*
11  * The minimum compatible version - update to match VCHIQ_VERSION with any
12  * incompatible change
13  */
14 #define VCHIQ_VERSION_MIN        3
15 
16 /* The version that introduced the VCHIQ_IOC_LIB_VERSION ioctl */
17 #define VCHIQ_VERSION_LIB_VERSION 7
18 
19 /* The version that introduced the VCHIQ_IOC_CLOSE_DELIVERED ioctl */
20 #define VCHIQ_VERSION_CLOSE_DELIVERED 7
21 
22 /* The version that made it safe to use SYNCHRONOUS mode */
23 #define VCHIQ_VERSION_SYNCHRONOUS_MODE 8
24 
25 #define VCHIQ_MAX_STATES         1
26 #define VCHIQ_MAX_SERVICES       4096
27 #define VCHIQ_MAX_SLOTS          128
28 #define VCHIQ_MAX_SLOTS_PER_SIDE 64
29 
30 #define VCHIQ_NUM_CURRENT_BULKS        32
31 #define VCHIQ_NUM_SERVICE_BULKS        4
32 
33 #ifndef VCHIQ_ENABLE_DEBUG
34 #define VCHIQ_ENABLE_DEBUG             1
35 #endif
36 
37 #ifndef VCHIQ_ENABLE_STATS
38 #define VCHIQ_ENABLE_STATS             1
39 #endif
40 
41 #endif /* VCHIQ_CFG_H */
42