1 /* 2 * Copyright 2015 Rockchip Electronics Co. LTD 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __MPP_PLATFORM__ 18 #define __MPP_PLATFORM__ 19 20 #include "rk_type.h" 21 #include "mpp_soc.h" 22 23 /* 24 * Platform flag detection is for rockchip hardware platform detection 25 */ 26 typedef enum MppIoctlVersion_e { 27 IOCTL_VCODEC_SERVICE, 28 IOCTL_MPP_SERVICE_V1, 29 IOCTL_VERSION_BUTT, 30 } MppIoctlVersion; 31 32 typedef enum MppKernelVersion_e { 33 KERNEL_UNKNOWN, 34 KERNEL_3_10, 35 KERNEL_4_4, 36 KERNEL_4_19, 37 KERNEL_VERSION_BUTT, 38 } MppKernelVersion; 39 40 #ifdef __cplusplus 41 extern "C" { 42 #endif 43 44 MppIoctlVersion mpp_get_ioctl_version(void); 45 MppKernelVersion mpp_get_kernel_version(void); 46 RK_U32 mpp_get_2d_hw_flag(void); 47 RK_U32 mpp_get_client_hw_id(RK_S32 client_type); 48 RK_U32 mpp_get_vcodec_type(void); 49 50 #ifdef __cplusplus 51 } 52 #endif 53 54 #endif /*__MPP_PLATFORM__*/ 55