| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2010, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bxdm_pp_jrc.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 2/16/10 10:51a $ |
|---|
| 13 | * |
|---|
| 14 | * [File Description:] |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/commonutils/xdm/bxdm_pp_jrc.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/1 2/16/10 10:51a nilesh |
|---|
| 21 | * SW7405-2993: Initial XDM version |
|---|
| 22 | * |
|---|
| 23 | ***************************************************************************/ |
|---|
| 24 | |
|---|
| 25 | #ifndef bxdm_pp_JRC_H_ |
|---|
| 26 | #define bxdm_pp_JRC_H_ |
|---|
| 27 | |
|---|
| 28 | #include "bxdm_pp_fp.h" |
|---|
| 29 | |
|---|
| 30 | #ifdef __cplusplus |
|---|
| 31 | extern "C" { |
|---|
| 32 | #endif |
|---|
| 33 | #if 0 |
|---|
| 34 | } |
|---|
| 35 | #endif |
|---|
| 36 | |
|---|
| 37 | typedef struct BXDM_PPJRC_P_Context *BXDM_PPJRC_P_Handle; |
|---|
| 38 | |
|---|
| 39 | typedef struct BXDM_PPJRC_P_Settings |
|---|
| 40 | { |
|---|
| 41 | uint32_t uiQueueDepth; |
|---|
| 42 | uint32_t uiJitterLowerThreshold; |
|---|
| 43 | uint32_t uiJitterUpperThreshold; |
|---|
| 44 | } BXDM_PPJRC_P_Settings; |
|---|
| 45 | |
|---|
| 46 | BERR_Code BXDM_PPJRC_P_GetDefaultSettings( |
|---|
| 47 | BXDM_PPJRC_P_Settings *pstJrcSettings |
|---|
| 48 | ); |
|---|
| 49 | |
|---|
| 50 | /* Create the XVD JRC Handle */ |
|---|
| 51 | BERR_Code BXDM_PPJRC_P_Create( |
|---|
| 52 | BXDM_PPJRC_P_Handle *phJrc, |
|---|
| 53 | const BXDM_PPJRC_P_Settings *pJrcSettings |
|---|
| 54 | ); |
|---|
| 55 | |
|---|
| 56 | /* Destroy the XVD JRC Handle */ |
|---|
| 57 | BERR_Code BXDM_PPJRC_P_Destroy( |
|---|
| 58 | BXDM_PPJRC_P_Handle hJrc |
|---|
| 59 | ); |
|---|
| 60 | |
|---|
| 61 | BERR_Code BXDM_PPJRC_P_Reset( |
|---|
| 62 | BXDM_PPJRC_P_Handle hJrc |
|---|
| 63 | ); |
|---|
| 64 | |
|---|
| 65 | BERR_Code BXDM_PPJRC_P_AddValue( |
|---|
| 66 | BXDM_PPJRC_P_Handle hJrc, |
|---|
| 67 | uint32_t uiOriginalValue, |
|---|
| 68 | const BXDM_PPFP_P_DataType *pstExpectedDelta, |
|---|
| 69 | uint32_t uiStepCount, |
|---|
| 70 | uint32_t *puiJitterCorrectedValue |
|---|
| 71 | ); |
|---|
| 72 | |
|---|
| 73 | BERR_Code BXDM_PPJRC_P_GetLowerThreshold( |
|---|
| 74 | BXDM_PPJRC_P_Handle hJrc, |
|---|
| 75 | uint32_t *puiLowerThreshold |
|---|
| 76 | ); |
|---|
| 77 | |
|---|
| 78 | BERR_Code BXDM_PPJRC_P_SetLowerThreshold( |
|---|
| 79 | BXDM_PPJRC_P_Handle hJrc, |
|---|
| 80 | uint32_t uiLowerThreshold |
|---|
| 81 | ); |
|---|
| 82 | |
|---|
| 83 | BERR_Code BXDM_PPJRC_P_GetUpperThreshold( |
|---|
| 84 | BXDM_PPJRC_P_Handle hJrc, |
|---|
| 85 | uint32_t *puiUpperThreshold |
|---|
| 86 | ); |
|---|
| 87 | |
|---|
| 88 | BERR_Code BXDM_PPJRC_P_SetUpperThreshold( |
|---|
| 89 | BXDM_PPJRC_P_Handle hJrc, |
|---|
| 90 | uint32_t uiUpperThreshold |
|---|
| 91 | ); |
|---|
| 92 | |
|---|
| 93 | #ifdef __cplusplus |
|---|
| 94 | } |
|---|
| 95 | #endif |
|---|
| 96 | |
|---|
| 97 | #endif /* bxdm_pp_JRC_H_ */ |
|---|