blob: 5edeeec48601cca5470b372181e45e4be7f11ba1 [file] [log] [blame]
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2012
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* ccci_ims_if.h
*
* Project:
* --------
* MOLY
*
* Description:
* ------------
* CCCI_IMS header file
*
* Author:
* -------
* -------
*
* ==========================================================================
* $Log$
*
* 03 23 2016 cs.huang
* [MOLY00169828] [IMS] EM CCCI Channel
* [CCCI IMS] Add IMS EM feature
*
* 03 23 2016 cs.huang
* [MOLY00169828] [IMS] EM CCCI Channel
* [CCCI IMS] Add IMS EM feature
*
* 03 23 2016 cs.huang
* [MOLY00169828] [IMS] EM CCCI Channel
* [CCCI IMS] Add IMS EM feature
*
* 12 22 2014 hsin-jun.tang
* [MOLY00088229] [CCCI IMS] Add latency measurement feature
* .
*
* 12 19 2014 hsin-jun.tang
* [MOLY00088228] [CCCI IMS] Add latency measurement feature
* [CCCI IMS] Add latency measurement feature
*
* 05 30 2013 ap.wang
* [MOLY00024263] [CCCI IMS] Add CCCI IMS Data Control channel
* [CCCI_IMS] Add IMS_DCTRL channel
*
* 01 17 2013 ian.cheng
* [MOLY00008993] [CCCI_SRV] CCCI_IMS 1st version
* [CCCI] CCCI_IMS 1st verison loopback support
****************************************************************************/
#ifndef _CCCI_IMS_IF_H
#define _CCCI_IMS_IF_H
#define CCCI_IMS_LATENCY_MEASUREMENT
#include "kal_public_api.h"
#include "ccci_if.h"
typedef enum
{
CCCI_IMS_CTRL = 0x00,
CCCI_IMS_VIDEO = 0x01,
CCCI_IMS_AUD = 0x02,
CCCI_IMS_DCTRL = 0x03,
CCCI_IMS_EM = 0x04,
CCCI_IMS_CH_MAX = 0x05,
CCCI_IMS_DEC_NUM = CCCI_IMS_CH_MAX
} CCCI_IMS_CH_E;
typedef void (* CCCI_IMSCALLBACK )(kal_uint8 ims_ch, ccci_io_request_t *p_ior);
kal_bool ccci_ims_svc_init (void);
kal_bool ccci_ims_dl_req (kal_uint32 ims_ch, ccci_io_request_t *p_ior);
kal_bool ccci_ims_ulcb_reg (kal_uint8 ims_ch, CCCI_IMSCALLBACK ulcb_funp);
typedef struct
{
// IMS to CLDMA
kal_uint32 ccci_ims_mdims_to_hif_start;
kal_uint32 ccci_ims_mdims_to_hif_end;
kal_uint32 ccci_ims_mdims_to_hif_diff;
kal_uint32 ccci_ims_mdims_to_hif_count;
// CLDMA to IMS
kal_uint32 ccci_ims_hif_to_mdims_start;
kal_uint32 ccci_ims_hif_to_mdims_end;
kal_uint32 ccci_ims_hif_to_mdims_diff;
kal_uint32 ccci_ims_hif_to_mdims_count;
//
kal_uint32 ccci_ims_hif_task_interval;
} ccci_ims_latency_t;
#endif // _CCCI_IMS_IF_H