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