1371ebdbeSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 271bad7f0Spopcornmix /** 371bad7f0Spopcornmix * Copyright (c) 2010-2012 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_CONNECTED_H 3671bad7f0Spopcornmix #define VCHIQ_CONNECTED_H 3771bad7f0Spopcornmix 3871bad7f0Spopcornmix /* ---- Include Files ----------------------------------------------------- */ 3971bad7f0Spopcornmix 4071bad7f0Spopcornmix /* ---- Constants and Types ---------------------------------------------- */ 4171bad7f0Spopcornmix 4271bad7f0Spopcornmix typedef void (*VCHIQ_CONNECTED_CALLBACK_T)(void); 4371bad7f0Spopcornmix 4471bad7f0Spopcornmix /* ---- Variable Externs ------------------------------------------------- */ 4571bad7f0Spopcornmix 4671bad7f0Spopcornmix /* ---- Function Prototypes ---------------------------------------------- */ 4771bad7f0Spopcornmix 4871bad7f0Spopcornmix void vchiq_add_connected_callback(VCHIQ_CONNECTED_CALLBACK_T callback); 4971bad7f0Spopcornmix void vchiq_call_connected_callbacks(void); 5071bad7f0Spopcornmix 5171bad7f0Spopcornmix #endif /* VCHIQ_CONNECTED_H */ 52