171bad7f0Spopcornmix /**
271bad7f0Spopcornmix  * Copyright (c) 2010-2014 Broadcom. All rights reserved.
371bad7f0Spopcornmix  *
471bad7f0Spopcornmix  * Redistribution and use in source and binary forms, with or without
571bad7f0Spopcornmix  * modification, are permitted provided that the following conditions
671bad7f0Spopcornmix  * are met:
771bad7f0Spopcornmix  * 1. Redistributions of source code must retain the above copyright
871bad7f0Spopcornmix  *    notice, this list of conditions, and the following disclaimer,
971bad7f0Spopcornmix  *    without modification.
1071bad7f0Spopcornmix  * 2. Redistributions in binary form must reproduce the above copyright
1171bad7f0Spopcornmix  *    notice, this list of conditions and the following disclaimer in the
1271bad7f0Spopcornmix  *    documentation and/or other materials provided with the distribution.
1371bad7f0Spopcornmix  * 3. The names of the above-listed copyright holders may not be used
1471bad7f0Spopcornmix  *    to endorse or promote products derived from this software without
1571bad7f0Spopcornmix  *    specific prior written permission.
1671bad7f0Spopcornmix  *
1771bad7f0Spopcornmix  * ALTERNATIVELY, this software may be distributed under the terms of the
1871bad7f0Spopcornmix  * GNU General Public License ("GPL") version 2, as published by the Free
1971bad7f0Spopcornmix  * Software Foundation.
2071bad7f0Spopcornmix  *
2171bad7f0Spopcornmix  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
2271bad7f0Spopcornmix  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
2371bad7f0Spopcornmix  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2471bad7f0Spopcornmix  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
2571bad7f0Spopcornmix  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
2671bad7f0Spopcornmix  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2771bad7f0Spopcornmix  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
2871bad7f0Spopcornmix  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
2971bad7f0Spopcornmix  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
3071bad7f0Spopcornmix  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
3171bad7f0Spopcornmix  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3271bad7f0Spopcornmix  */
3371bad7f0Spopcornmix 
3471bad7f0Spopcornmix #ifndef VCHIQ_CFG_H
3571bad7f0Spopcornmix #define VCHIQ_CFG_H
3671bad7f0Spopcornmix 
3771bad7f0Spopcornmix #define VCHIQ_MAGIC              VCHIQ_MAKE_FOURCC('V', 'C', 'H', 'I')
3871bad7f0Spopcornmix /* The version of VCHIQ - change with any non-trivial change */
3971bad7f0Spopcornmix #define VCHIQ_VERSION            8
4071bad7f0Spopcornmix /* The minimum compatible version - update to match VCHIQ_VERSION with any
4171bad7f0Spopcornmix ** incompatible change */
4271bad7f0Spopcornmix #define VCHIQ_VERSION_MIN        3
4371bad7f0Spopcornmix 
4471bad7f0Spopcornmix /* The version that introduced the VCHIQ_IOC_LIB_VERSION ioctl */
4571bad7f0Spopcornmix #define VCHIQ_VERSION_LIB_VERSION 7
4671bad7f0Spopcornmix 
4771bad7f0Spopcornmix /* The version that introduced the VCHIQ_IOC_CLOSE_DELIVERED ioctl */
4871bad7f0Spopcornmix #define VCHIQ_VERSION_CLOSE_DELIVERED 7
4971bad7f0Spopcornmix 
5071bad7f0Spopcornmix /* The version that made it safe to use SYNCHRONOUS mode */
5171bad7f0Spopcornmix #define VCHIQ_VERSION_SYNCHRONOUS_MODE 8
5271bad7f0Spopcornmix 
5371bad7f0Spopcornmix #define VCHIQ_MAX_STATES         1
5471bad7f0Spopcornmix #define VCHIQ_MAX_SERVICES       4096
5571bad7f0Spopcornmix #define VCHIQ_MAX_SLOTS          128
5671bad7f0Spopcornmix #define VCHIQ_MAX_SLOTS_PER_SIDE 64
5771bad7f0Spopcornmix 
5871bad7f0Spopcornmix #define VCHIQ_NUM_CURRENT_BULKS        32
5971bad7f0Spopcornmix #define VCHIQ_NUM_SERVICE_BULKS        4
6071bad7f0Spopcornmix 
6171bad7f0Spopcornmix #ifndef VCHIQ_ENABLE_DEBUG
6271bad7f0Spopcornmix #define VCHIQ_ENABLE_DEBUG             1
6371bad7f0Spopcornmix #endif
6471bad7f0Spopcornmix 
6571bad7f0Spopcornmix #ifndef VCHIQ_ENABLE_STATS
6671bad7f0Spopcornmix #define VCHIQ_ENABLE_STATS             1
6771bad7f0Spopcornmix #endif
6871bad7f0Spopcornmix 
6971bad7f0Spopcornmix #endif /* VCHIQ_CFG_H */
70