1 /* 2 * drivers/amlogic/amports/vdec_profile.h 3 * 4 * Copyright (C) 2016 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 VDEC_PROFILE_H 19 #define VDEC_PROFILE_H 20 21 struct vdec_s; 22 23 #define VDEC_PROFILE_EVENT_RUN 0 24 #define VDEC_PROFILE_EVENT_CB 1 25 #define VDEC_PROFILE_EVENT_SAVE_INPUT 2 26 #define VDEC_PROFILE_EVENT_CHK_RUN_READY 3 27 #define VDEC_PROFILE_EVENT_RUN_READY 4 28 #define VDEC_PROFILE_EVENT_DISCONNECT 5 29 #define VDEC_PROFILE_EVENT_DEC_WORK 6 30 #define VDEC_PROFILE_EVENT_INFO 7 31 #define VDEC_PROFILE_MAX_EVENT 8 32 33 extern void vdec_profile(struct vdec_s *vdec, int event); 34 extern void vdec_profile_more(struct vdec_s *vdec, int event, int para1, int para2); 35 extern void vdec_profile_flush(struct vdec_s *vdec); 36 37 int vdec_profile_init_debugfs(void); 38 void vdec_profile_exit_debugfs(void); 39 40 #endif /* VDEC_PROFILE_H */ 41