1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright (C) 2016 Rockchip Electronics Co., Ltd. 3*4882a593Smuzhiyun * Authors: 4*4882a593Smuzhiyun * Zhiqin Wei <wzq@rock-chips.com> 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Licensed under the Apache License, Version 2.0 (the "License"); 7*4882a593Smuzhiyun * you may not use this file except in compliance with the License. 8*4882a593Smuzhiyun * You may obtain a copy of the License at 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * http://www.apache.org/licenses/LICENSE-2.0 11*4882a593Smuzhiyun * 12*4882a593Smuzhiyun * Unless required by applicable law or agreed to in writing, software 13*4882a593Smuzhiyun * distributed under the License is distributed on an "AS IS" BASIS, 14*4882a593Smuzhiyun * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15*4882a593Smuzhiyun * See the License for the specific language governing permissions and 16*4882a593Smuzhiyun * limitations under the License. 17*4882a593Smuzhiyun */ 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun #ifndef _rockchip_normal_rga_context_h_ 20*4882a593Smuzhiyun #define _rockchip_normal_rga_context_h_ 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun #include "rga_ioctl.h" 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #ifndef ANDROID 25*4882a593Smuzhiyun #define ALOGD(...) { printf(__VA_ARGS__); printf("\n"); } 26*4882a593Smuzhiyun #define ALOGE(...) { printf(__VA_ARGS__); printf("\n"); } 27*4882a593Smuzhiyun #endif 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun typedef enum { 30*4882a593Smuzhiyun RGA_DRIVER_IOC_UNKONW = 0, 31*4882a593Smuzhiyun RGA_DRIVER_IOC_RGA2, 32*4882a593Smuzhiyun RGA_DRIVER_IOC_MULTI_RGA, 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun RGA_DRIVER_IOC_DEFAULT = RGA_DRIVER_IOC_MULTI_RGA, 35*4882a593Smuzhiyun } RGA_DRIVER_IOC_TYPE; 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun struct rgaContext { 38*4882a593Smuzhiyun int rgaFd; 39*4882a593Smuzhiyun int mLogAlways; 40*4882a593Smuzhiyun int mLogOnce; 41*4882a593Smuzhiyun float mVersion; 42*4882a593Smuzhiyun int Is_debug; 43*4882a593Smuzhiyun struct rga_hw_versions_t mHwVersions; 44*4882a593Smuzhiyun struct rga_version_t mDriverVersion; 45*4882a593Smuzhiyun RGA_DRIVER_IOC_TYPE driver = RGA_DRIVER_IOC_DEFAULT; 46*4882a593Smuzhiyun }; 47*4882a593Smuzhiyun #endif 48