| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2012, 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: bxpt_rsbuf_priv.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/2 $ |
|---|
| 12 | * $brcm_Date: 3/8/12 3:41p $ |
|---|
| 13 | * |
|---|
| 14 | * Porting interface code for the rate smoothing buffer block in the |
|---|
| 15 | * transport core. |
|---|
| 16 | * |
|---|
| 17 | * Revision History: |
|---|
| 18 | * |
|---|
| 19 | * $brcm_Log: /magnum/portinginterface/xpt/base2/bxpt_rsbuf_priv.h $ |
|---|
| 20 | * |
|---|
| 21 | * Hydra_Software_Devel/2 3/8/12 3:41p gmullen |
|---|
| 22 | * SW7425-2497: Merged to Hydra |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/SW7425-2497/1 3/5/12 4:30p gmullen |
|---|
| 25 | * SW7425-2497: Checks for errors in data pipeline |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/1 10/25/10 2:09p gmullen |
|---|
| 28 | * SW7425-15: Moved srcs to base2 folder |
|---|
| 29 | * |
|---|
| 30 | * Hydra_Software_Devel/1 10/25/10 9:12a gmullen |
|---|
| 31 | * SW7425-15: Updated headers and added stub versions of C files |
|---|
| 32 | * |
|---|
| 33 | * Hydra_Software_Devel/1 10/8/10 2:58p gmullen |
|---|
| 34 | * SW7425-15: Added header files |
|---|
| 35 | * |
|---|
| 36 | * Hydra_Software_Devel/7 4/16/09 7:20p piyushg |
|---|
| 37 | * PR53728: Each of the XC buffer clients (Remux, RAVE, and the Mesg |
|---|
| 38 | * filters) would get a separate API to set |
|---|
| 39 | * their input bitrates. That API would take a client handle and the ID of |
|---|
| 40 | * the parser band. The XPT PI would |
|---|
| 41 | * then walk backwards through the pipeline, increasing only the bitrates |
|---|
| 42 | * for the XC and RS buffers that it |
|---|
| 43 | * needs to. |
|---|
| 44 | * |
|---|
| 45 | * Hydra_Software_Devel/6 5/7/08 10:47a gmullen |
|---|
| 46 | * PR42443: Removed call to change band rates when changing parser mode. |
|---|
| 47 | * |
|---|
| 48 | * Hydra_Software_Devel/5 7/20/06 5:30p katrep |
|---|
| 49 | * PR22365: Added better mangement of XC buffer client BW for playback.XC |
|---|
| 50 | * buf for PB is given max BW & BW throtle is done at PB engine.Spare BW |
|---|
| 51 | * enabllag is used to provide more BW for PB if available. |
|---|
| 52 | * |
|---|
| 53 | * Hydra_Software_Devel/4 7/12/06 5:54p gmullen |
|---|
| 54 | * PR21042: XC and RS buffers can be customized to reduce total memory |
|---|
| 55 | * needs. |
|---|
| 56 | * |
|---|
| 57 | * Hydra_Software_Devel/3 4/13/06 4:02p gmullen |
|---|
| 58 | * PR20914: Ported over Prashant's fix from 7401A0 |
|---|
| 59 | * |
|---|
| 60 | * Hydra_Software_Devel/2 2/1/06 10:19a gmullen |
|---|
| 61 | * PR18998: Fixed overflow issue in RAVE ITB/CDB, added support for PB |
|---|
| 62 | * channels. |
|---|
| 63 | * |
|---|
| 64 | * Hydra_Software_Devel/2 7/15/05 9:04a gmullen |
|---|
| 65 | * PR15309: Inita i |
|---|
| 66 | * |
|---|
| 67 | * Hydra_Software_Devel/1 5/13/05 1:27p gmullen |
|---|
| 68 | * PR15309: First draft of XPT PI. |
|---|
| 69 | * |
|---|
| 70 | ***************************************************************************/ |
|---|
| 71 | |
|---|
| 72 | #ifndef BXPT_RS_BUFFER_PRIV_H__ |
|---|
| 73 | #define BXPT_RS_BUFFER_PRIV_H__ |
|---|
| 74 | |
|---|
| 75 | #include "bxpt.h" |
|---|
| 76 | |
|---|
| 77 | #ifdef __cplusplus |
|---|
| 78 | extern "C"{ |
|---|
| 79 | #endif |
|---|
| 80 | |
|---|
| 81 | |
|---|
| 82 | /* |
|---|
| 83 | ** These functions are called internally from BXPT_Open() and BXPT_Close(). |
|---|
| 84 | ** Users should NOT uses these functions directly. |
|---|
| 85 | */ |
|---|
| 86 | |
|---|
| 87 | BERR_Code BXPT_P_RsBuf_Init( |
|---|
| 88 | BXPT_Handle hXpt, /* [in] Handle for this transport */ |
|---|
| 89 | const BXPT_BandWidthConfig *BandwidthConfig |
|---|
| 90 | ); |
|---|
| 91 | |
|---|
| 92 | BERR_Code BXPT_P_RsBuf_Shutdown( |
|---|
| 93 | BXPT_Handle hXpt /* [in] Handle for this transport */ |
|---|
| 94 | ); |
|---|
| 95 | |
|---|
| 96 | BERR_Code BXPT_P_RsBuf_ReportOverflows( BXPT_Handle hXpt ); |
|---|
| 97 | |
|---|
| 98 | #ifdef __cplusplus |
|---|
| 99 | } |
|---|
| 100 | #endif |
|---|
| 101 | |
|---|
| 102 | #endif /* BXPT_RS_BUFFER_H__ */ |
|---|
| 103 | |
|---|
| 104 | |
|---|