blob: 066d88516693586383a5f4dc78fd26593f7e1f98 [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:
* ---------
* qbm_stats.h
*
* Project:
* --------
* MOLY
*
* Description:
* ------------
* Used for EM shown.
*
*
* Author:
* -------
* -------
*
*
* ==========================================================================
* $Log$
*
* 04 09 2018 wen-jiunn.liu
* [MOLY00318641] [MT6295][EL2] EM info structure refine
* [QMU_BM] Add em_info_enum field for EM_QBM_STATUS @ em_qbm_status_ind_struct
*
*/
#ifndef QBM_STATS_INC
#define QBM_STATS_INC
#include "qmu_bm_enum.h"
#include "em_public_struct.h"
typedef struct
{
kal_uint32 init_fail;
/*
* don't need to record free number,
* Because the queue won't be allocated if there is no free
*/
kal_uint32 alloc_num;
kal_uint32 alloc_num_flc;
kal_uint32 alloc_nobuf;
/*
* only increased when the de_q has data.
*/
kal_uint32 de_q_rx_times;
/*
* total buffers de-queued
*/
kal_uint32 de_q_rx_num_total;
kal_uint32 de_q_rx_num_max;
/*
* User should use qbm_get_buff_remain_num to fill this filed
* when he wants to deliver stats to Tool/AP
*/
kal_uint32 rem_buff;
} qbm_queue_stats;
typedef struct
{
LOCAL_PARA_HDR
em_info_enum em_info;
qbm_queue_stats queue_stats[QBM_QUEUE_NUM];
}em_qbm_status_ind_struct;
extern em_qbm_status_ind_struct g_qbm_status;
#endif /* ----- #ifndef QBM_STATS_INC ----- */