1 /* 2 * include/linux/amlogic/media/video_sink/ionvideo_ext.h 3 * 4 * Copyright (C) 2017 Amlogic, Inc. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 14 * more details. 15 * 16 */ 17 18 #ifndef IONVIDEO_EXT_H 19 #define IONVIDEO_EXT_H 20 21 #ifndef CONFIG_AMLOGIC_IONVIDEO 22 ionvideo_assign_map(char ** receiver_name,int * inst)23static inline int ionvideo_assign_map(char **receiver_name, int *inst) 24 { 25 pr_err("Error: %s() is not supported.\n", __func__); 26 return -1; 27 } 28 ionvideo_alloc_map(int * inst)29static inline int ionvideo_alloc_map(int *inst) 30 { 31 pr_err("Error: %s() is not supported.\n", __func__); 32 return -1; 33 } 34 ionvideo_release_map(int inst)35static inline void ionvideo_release_map(int inst) 36 { 37 pr_err("Error: %s() is not supported.\n", __func__); 38 } 39 40 #else 41 extern int ionvideo_assign_map(char **receiver_name, int *inst); 42 43 extern int ionvideo_alloc_map(int *inst); 44 45 extern void ionvideo_release_map(int inst); 46 #endif 47 48 #endif /* IONVIDEO_EXT_H */ 49