1 1.1 skrll /** 2 1.1 skrll * Copyright (c) 2014 Raspberry Pi (Trading) Ltd. All rights reserved. 3 1.1 skrll * 4 1.1 skrll * Redistribution and use in source and binary forms, with or without 5 1.1 skrll * modification, are permitted provided that the following conditions 6 1.1 skrll * are met: 7 1.1 skrll * 1. Redistributions of source code must retain the above copyright 8 1.1 skrll * notice, this list of conditions, and the following disclaimer, 9 1.1 skrll * without modification. 10 1.1 skrll * 2. Redistributions in binary form must reproduce the above copyright 11 1.1 skrll * notice, this list of conditions and the following disclaimer in the 12 1.1 skrll * documentation and/or other materials provided with the distribution. 13 1.1 skrll * 3. The names of the above-listed copyright holders may not be used 14 1.1 skrll * to endorse or promote products derived from this software without 15 1.1 skrll * specific prior written permission. 16 1.1 skrll * 17 1.1 skrll * ALTERNATIVELY, this software may be distributed under the terms of the 18 1.1 skrll * GNU General Public License ("GPL") version 2, as published by the Free 19 1.1 skrll * Software Foundation. 20 1.1 skrll * 21 1.1 skrll * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 22 1.1 skrll * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 23 1.1 skrll * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 24 1.1 skrll * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 25 1.1 skrll * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 26 1.1 skrll * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 27 1.1 skrll * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 28 1.1 skrll * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 29 1.1 skrll * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 30 1.1 skrll * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 31 1.1 skrll * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 1.1 skrll */ 33 1.1 skrll 34 1.1 skrll #ifndef VCHIQ_DEBUGFS_H 35 1.1 skrll #define VCHIQ_DEBUGFS_H 36 1.1 skrll 37 1.1 skrll #include "vchiq_core.h" 38 1.1 skrll 39 1.1 skrll typedef struct vchiq_debugfs_node_struct 40 1.1 skrll { 41 1.1 skrll struct dentry *dentry; 42 1.1 skrll } VCHIQ_DEBUGFS_NODE_T; 43 1.1 skrll 44 1.1 skrll int vchiq_debugfs_init(void); 45 1.1 skrll 46 1.1 skrll void vchiq_debugfs_deinit(void); 47 1.1 skrll 48 1.1 skrll int vchiq_debugfs_add_instance(VCHIQ_INSTANCE_T instance); 49 1.1 skrll 50 1.1 skrll void vchiq_debugfs_remove_instance(VCHIQ_INSTANCE_T instance); 51 1.1 skrll 52 1.1 skrll #endif /* VCHIQ_DEBUGFS_H */ 53