blob: d3c990516432319a506cf2e56570cda5dd999ee1 [file] [log] [blame]
#ifndef _UBM_INC
#define _UBM_INC
#define HIF_DATA_TRACE_ENABLED 1
#include "kal_public_api.h"
#include "ubm_type.h"
#include "lhif_if.h"
#include "upcm_did.h"
#include "hif_trace.h"
#include "TrcMod.h"
#include "qmu_bm_util.h"
#include "ubm_export.h"
#include "hif_common.h"
#include "hifusb_qmu.h"
#include "prbm.h"
#include "dpcopro_custom.h"
#if !defined(__MAUI_BASIC__)
#include "TrcMod.h"
#endif
#define UBM_TX_QUEUE_NUM 1
#define UBM_RX_QUEUE_NUM 1
#define UBM_TX_RB_Q 0
#define UBM_RX_RB_Q 0
#define XIT_QUEUE_RX_MASK 0x80
#define UBM_FH_SIZE 256
#define UBM_FH_NUM 7
#define UBM_FH_ALIAS_LEN 11
#define UBM_LOC_ASSERT_UNIQUE_CODE_BASE 0xA5500000
typedef enum
{
UBM_LOC_UNIQUE_CODE_START = UBM_LOC_ASSERT_UNIQUE_CODE_BASE,
UBM_LOC_DRB_BASE_ADDRESS_NULL,
UBM_LOC_QUEST_DRB_UNUSED_INVALID_Q,
UBM_LOC_QUEST_DRB_UNUSED_INVALID_COUNT,
UBM_LOC_QUEST_DRB_UNUSED_FORBIDDEN_STATUS,
UBM_LOC_SUBMIT_DRB_ERROR_COUNT,
UBM_LOC_SUBMIT_DRB_FORBIDDEN_STATUS,
UBM_LOC_REPAY_DRB_INVALID_Q,
UBM_LOC_REPAY_DRB_STOCK_EMPTY,
UBM_LOC_REPAY_DRB_INVALID_STOCK_IDX,
UBM_LOC_RELEASE_DRB_INVALID_Q,
UBM_LOC_POLLING_DRB_INVALID_Q,
UBM_LOC_GET_DRB_WRITE_IDX_INVALID_Q,
UBM_LOC_GET_DRB_WRITE_IDX_ERROR_IN_LOAD,
UBM_LOC_DRB_IDX_TO_ADDR_INVALID_Q,
UBM_LOC_DRB_IDX_TO_ADDR_INVALID_DRB_IDX,
UBM_LOC_DRB_ADDR_TO_IDX_INVALID_Q, //0xA550000010
UBM_LOC_DRB_ADDR_TO_IDX_INVALID_ADDR,
UBM_LOC_FLUSH_DRB_INVALID_Q,
UBM_LOC_SET_FBH_OVERSIZE_LENGTH,
UBM_LOC_UPDATE_FBH_ERROR_INPUT,
UBM_LOC_CLEAR_FBH_ERROR_INPUT,
UBM_LOC_UL_META_IDX_TO_ADDR_INVALID_Q,
UBM_LOC_UL_META_GET_NEXT_IDX_INVALID_Q,
UBM_LOC_UL_META_GET_LHIF_NET_TYPE_INVALID_Q,
UBM_LOC_UL_META_ENQ_INVALID_Q,
UBM_LOC_UL_META_ENQ_DID_INVALID_Q,
UBM_LOC_VRB_TO_PHY_INVALID_Q,
UBM_LOC_VRB_TO_PHY_FULL_LIST,
UBM_LOC_PHY_TO_VRB_INVALID_Q,
UBM_LOC_PHY_TO_VRB_EMPTY_LIST,
UBM_LOC_PHY_TO_VRB_PHY_ADDR_NOT_MATCH,
UBM_LOC_RELEASE_XIT_INVALID_Q, //0xA5500020
UBM_LOC_POLL_XIT_INVALID_Q,
UBM_LOC_XIT_IDX_TO_ADDR_INVALID_Q,
UBM_LOC_XIT_IDX_TO_ADDR_INVALID_IDX,
UBM_LOC_XIT_FLUSH_INVALID_Q,
UBM_LOC_XIT_ADDR_TO_IDX_INVALID_Q,
UBM_LOC_XIT_ADDR_TO_IDX_INVALID_ADDR,
UBM_LOC_XIT_GET_NEXT_IDX_INVALID_Q,
UBM_LOC_ASSERT_UNIQUE_CODE_NUM
}ubm_assert_loc_e;
void ubm_fhb_init();
void ubm_xit_init();
void ubm_vrb_init();
#endif /* _UBM_INC */