1371ebdbeSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
23baad68aSGreg Kroah-Hartman /* Copyright (c) 2010-2014 Broadcom. All rights reserved. */
371bad7f0Spopcornmix 
471bad7f0Spopcornmix #ifndef VCHIQ_CFG_H
571bad7f0Spopcornmix #define VCHIQ_CFG_H
671bad7f0Spopcornmix 
771bad7f0Spopcornmix #define VCHIQ_MAGIC              VCHIQ_MAKE_FOURCC('V', 'C', 'H', 'I')
871bad7f0Spopcornmix /* The version of VCHIQ - change with any non-trivial change */
971bad7f0Spopcornmix #define VCHIQ_VERSION            8
10*3da87575SAmarjargal Gundjalam /*
11*3da87575SAmarjargal Gundjalam  * The minimum compatible version - update to match VCHIQ_VERSION with any
12*3da87575SAmarjargal Gundjalam  * incompatible change
13*3da87575SAmarjargal Gundjalam  */
1471bad7f0Spopcornmix #define VCHIQ_VERSION_MIN        3
1571bad7f0Spopcornmix 
1671bad7f0Spopcornmix /* The version that introduced the VCHIQ_IOC_LIB_VERSION ioctl */
1771bad7f0Spopcornmix #define VCHIQ_VERSION_LIB_VERSION 7
1871bad7f0Spopcornmix 
1971bad7f0Spopcornmix /* The version that introduced the VCHIQ_IOC_CLOSE_DELIVERED ioctl */
2071bad7f0Spopcornmix #define VCHIQ_VERSION_CLOSE_DELIVERED 7
2171bad7f0Spopcornmix 
2271bad7f0Spopcornmix /* The version that made it safe to use SYNCHRONOUS mode */
2371bad7f0Spopcornmix #define VCHIQ_VERSION_SYNCHRONOUS_MODE 8
2471bad7f0Spopcornmix 
2571bad7f0Spopcornmix #define VCHIQ_MAX_STATES         1
2671bad7f0Spopcornmix #define VCHIQ_MAX_SERVICES       4096
2771bad7f0Spopcornmix #define VCHIQ_MAX_SLOTS          128
2871bad7f0Spopcornmix #define VCHIQ_MAX_SLOTS_PER_SIDE 64
2971bad7f0Spopcornmix 
3071bad7f0Spopcornmix #define VCHIQ_NUM_CURRENT_BULKS        32
3171bad7f0Spopcornmix #define VCHIQ_NUM_SERVICE_BULKS        4
3271bad7f0Spopcornmix 
3371bad7f0Spopcornmix #ifndef VCHIQ_ENABLE_DEBUG
3471bad7f0Spopcornmix #define VCHIQ_ENABLE_DEBUG             1
3571bad7f0Spopcornmix #endif
3671bad7f0Spopcornmix 
3771bad7f0Spopcornmix #ifndef VCHIQ_ENABLE_STATS
3871bad7f0Spopcornmix #define VCHIQ_ENABLE_STATS             1
3971bad7f0Spopcornmix #endif
4071bad7f0Spopcornmix 
4171bad7f0Spopcornmix #endif /* VCHIQ_CFG_H */
42