| 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: bxpt_directv_pcr.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 10/25/10 2:09p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/xpt/base2/bxpt_directv_pcr.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/1 10/25/10 2:09p gmullen |
|---|
| 21 | * SW7425-15: Moved srcs to base2 folder |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/1 10/8/10 2:57p gmullen |
|---|
| 24 | * SW7425-15: Added header files |
|---|
| 25 | * |
|---|
| 26 | * Hydra_Software_Devel/1 5/13/05 1:26p gmullen |
|---|
| 27 | * PR15309: First draft of XPT PI. |
|---|
| 28 | * |
|---|
| 29 | ***************************************************************************/ |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | #ifndef BXPT_DIRECTV_PCR_H__ |
|---|
| 33 | #define BXPT_DIRECTV_PCR_H__ |
|---|
| 34 | |
|---|
| 35 | #include "bxpt_pcr.h" |
|---|
| 36 | |
|---|
| 37 | #ifdef __cplusplus |
|---|
| 38 | extern "C"{ |
|---|
| 39 | #endif |
|---|
| 40 | |
|---|
| 41 | /*=************************ Module Overview ******************************** |
|---|
| 42 | <verbatim> |
|---|
| 43 | The API module provides the direcTV only APIs for the PCR module. The APIs |
|---|
| 44 | in bxpt_pcr.h are required to complete PCR modules configuration in directv mode. |
|---|
| 45 | |
|---|
| 46 | The DirecTV PCR API operates on a PCR channel handle. |
|---|
| 47 | </verbatim> |
|---|
| 48 | ***************************************************************************/ |
|---|
| 49 | |
|---|
| 50 | /*************************************************************************** |
|---|
| 51 | Summary: |
|---|
| 52 | Enumeration for the different types of channels supported by the record |
|---|
| 53 | module. |
|---|
| 54 | ****************************************************************************/ |
|---|
| 55 | typedef enum BXPT_PcrMode |
|---|
| 56 | { |
|---|
| 57 | BXPT_PcrMode_eDirecTv, |
|---|
| 58 | BXPT_PcrMode_eMpeg |
|---|
| 59 | } |
|---|
| 60 | BXPT_PcrMode; |
|---|
| 61 | |
|---|
| 62 | /*************************************************************************** |
|---|
| 63 | Summary: |
|---|
| 64 | Set the stream type used by a PCR module. |
|---|
| 65 | |
|---|
| 66 | Description: |
|---|
| 67 | This function sets mode for a given PCR module to DirecTV, or back to the |
|---|
| 68 | default MPEG. |
|---|
| 69 | |
|---|
| 70 | Returns: |
|---|
| 71 | BERR_SUCCESS - Directv mode set |
|---|
| 72 | BERR_INVALID_PARAMETER - Bad input parameter |
|---|
| 73 | ***************************************************************************/ |
|---|
| 74 | BERR_Code BXPT_PCR_DirecTv_SetPcrMode( |
|---|
| 75 | BXPT_PCR_Handle hPcr, /* [In]The Pcr handle */ |
|---|
| 76 | BXPT_PcrMode Mode |
|---|
| 77 | ); |
|---|
| 78 | |
|---|
| 79 | /*************************************************************************** |
|---|
| 80 | Summary: |
|---|
| 81 | Gets the last PCR captured in last PCR Hi/Lo registers for DirecTv mode |
|---|
| 82 | Description: |
|---|
| 83 | This function reads the values from PCR_LAST_PCR_HI/LO registers. |
|---|
| 84 | Returns: |
|---|
| 85 | BERR_SUCCESS - Retrieved last PCR |
|---|
| 86 | BERR_INVALID_PARAMETER - Bad input parameter |
|---|
| 87 | ***************************************************************************/ |
|---|
| 88 | BERR_Code BXPT_PCR_DirecTv_GetLastPcr( |
|---|
| 89 | BXPT_PCR_Handle hPcr, /* [in]The Pcr handle */ |
|---|
| 90 | uint32_t *pPcr /*[out] 32 bits of RTS*/ |
|---|
| 91 | ); |
|---|
| 92 | |
|---|
| 93 | /*************************************************************************** |
|---|
| 94 | Summary: |
|---|
| 95 | Gets the STC counter values for DirecTv mode |
|---|
| 96 | Description: |
|---|
| 97 | This function read the PCR STC counters from STC_HI/LO registers. |
|---|
| 98 | Returns: |
|---|
| 99 | BERR_SUCCESS - Retrieved STC counter values |
|---|
| 100 | BERR_INVALID_PARAMETER - Bad input parameter |
|---|
| 101 | ***************************************************************************/ |
|---|
| 102 | BERR_Code BXPT_PCR_DirecTv_GetStc( |
|---|
| 103 | BXPT_PCR_Handle hPcr, /* [in]The Pcr handle */ |
|---|
| 104 | uint32_t *pStcHi /*[out] 32 bits of RTS*/ |
|---|
| 105 | ); |
|---|
| 106 | |
|---|
| 107 | #ifdef __cplusplus |
|---|
| 108 | } |
|---|
| 109 | #endif |
|---|
| 110 | |
|---|
| 111 | #endif |
|---|
| 112 | |
|---|