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
1071bad7f0Spopcornmix /* The minimum compatible version - update to match VCHIQ_VERSION with any
1171bad7f0Spopcornmix ** incompatible change */
1271bad7f0Spopcornmix #define VCHIQ_VERSION_MIN        3
1371bad7f0Spopcornmix 
1471bad7f0Spopcornmix /* The version that introduced the VCHIQ_IOC_LIB_VERSION ioctl */
1571bad7f0Spopcornmix #define VCHIQ_VERSION_LIB_VERSION 7
1671bad7f0Spopcornmix 
1771bad7f0Spopcornmix /* The version that introduced the VCHIQ_IOC_CLOSE_DELIVERED ioctl */
1871bad7f0Spopcornmix #define VCHIQ_VERSION_CLOSE_DELIVERED 7
1971bad7f0Spopcornmix 
2071bad7f0Spopcornmix /* The version that made it safe to use SYNCHRONOUS mode */
2171bad7f0Spopcornmix #define VCHIQ_VERSION_SYNCHRONOUS_MODE 8
2271bad7f0Spopcornmix 
2371bad7f0Spopcornmix #define VCHIQ_MAX_STATES         1
2471bad7f0Spopcornmix #define VCHIQ_MAX_SERVICES       4096
2571bad7f0Spopcornmix #define VCHIQ_MAX_SLOTS          128
2671bad7f0Spopcornmix #define VCHIQ_MAX_SLOTS_PER_SIDE 64
2771bad7f0Spopcornmix 
2871bad7f0Spopcornmix #define VCHIQ_NUM_CURRENT_BULKS        32
2971bad7f0Spopcornmix #define VCHIQ_NUM_SERVICE_BULKS        4
3071bad7f0Spopcornmix 
3171bad7f0Spopcornmix #ifndef VCHIQ_ENABLE_DEBUG
3271bad7f0Spopcornmix #define VCHIQ_ENABLE_DEBUG             1
3371bad7f0Spopcornmix #endif
3471bad7f0Spopcornmix 
3571bad7f0Spopcornmix #ifndef VCHIQ_ENABLE_STATS
3671bad7f0Spopcornmix #define VCHIQ_ENABLE_STATS             1
3771bad7f0Spopcornmix #endif
3871bad7f0Spopcornmix 
3971bad7f0Spopcornmix #endif /* VCHIQ_CFG_H */
40