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