Files
mpp/osal/driver/inc/mpp_service_impl.h
Herman Chen dc6e82f146 Move implement define to new header
Change-Id: Ic8bde5aa6ea9faf25793bb91a420bfeba0e9e9f7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-06-02 15:55:25 +08:00

57 lines
1.6 KiB
C

/*
* Copyright 2021 Rockchip Electronics Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __MPP_SERVICE_IMPL_H__
#define __MPP_SERVICE_IMPL_H__
#include "mpp_service.h"
#define MAX_REG_OFFSET 32
#define MAX_RCB_OFFSET 32
#define MAX_INFO_COUNT 16
typedef struct FdTransInfo_t {
RK_U32 reg_idx;
RK_U32 offset;
} RegOffsetInfo;
typedef struct RcbInfo_t {
RK_U32 reg_idx;
RK_U32 size;
} RcbInfo;
typedef struct MppDevMppService_t {
RK_S32 client_type;
RK_S32 fd;
RK_S32 req_cnt;
RK_S32 reg_offset_count;
MppReqV1 reqs[MAX_REQ_NUM];
RegOffsetInfo reg_offset_info[MAX_REG_OFFSET];
RK_S32 rcb_count;
RcbInfo rcb_info[MAX_RCB_OFFSET];
RK_S32 info_count;
MppDevInfoCfg info[MAX_INFO_COUNT];
/* support max cmd buttom */
const MppServiceCmdCap *cap;
RK_U32 support_set_info;
RK_U32 support_set_rcb_info;
} MppDevMppService;
#endif /* __MPP_SERVICE_IMPL_H__ */