| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2011, 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: bxvd_dip.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/3 $ |
|---|
| 12 | * $brcm_Date: 6/30/11 4:25p $ |
|---|
| 13 | * |
|---|
| 14 | * [File Description:] |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/xvd/7401/bxvd_dip.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/3 6/30/11 4:25p davidp |
|---|
| 21 | * SW7425-826: Clear vsync interrupt but when registering vdc mask with |
|---|
| 22 | * decoder. |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/2 6/27/11 4:18p davidp |
|---|
| 25 | * SW7425-542: Merge devel branch to mainline. |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/SW7425-542/2 6/8/11 7:07p davidp |
|---|
| 28 | * SW7425-542: Add Display Info macros. |
|---|
| 29 | * |
|---|
| 30 | * Hydra_Software_Devel/SW7425-542/1 6/7/11 5:51p davidp |
|---|
| 31 | * SW7425-542: Add support for AVD FW Host Interface Memory API. |
|---|
| 32 | * |
|---|
| 33 | * Hydra_Software_Devel/1 2/25/10 4:24p nilesh |
|---|
| 34 | * SW7405-2993: XDM Merge |
|---|
| 35 | * |
|---|
| 36 | ***************************************************************************/ |
|---|
| 37 | |
|---|
| 38 | #ifndef BXVD_DIP_H_ |
|---|
| 39 | #define BXVD_DIP_H_ |
|---|
| 40 | |
|---|
| 41 | #include "bxdm.h" |
|---|
| 42 | |
|---|
| 43 | #ifdef __cplusplus |
|---|
| 44 | extern "C" { |
|---|
| 45 | #endif |
|---|
| 46 | |
|---|
| 47 | typedef struct BXVD_DisplayInterruptProvider_P_ChannelContext *BXVD_DisplayInterruptProvider_P_ChannelHandle; |
|---|
| 48 | |
|---|
| 49 | typedef struct BXVD_DisplayInterruptProvider_P_ChannelSettings |
|---|
| 50 | { |
|---|
| 51 | BXVD_Handle hXvd; |
|---|
| 52 | BINT_Handle hInterrupt; |
|---|
| 53 | BREG_Handle hRegister; |
|---|
| 54 | BINT_Id interruptId; |
|---|
| 55 | uint32_t uiInterruptClearRegister; |
|---|
| 56 | uint32_t uiInterruptMaskRegister; |
|---|
| 57 | BXVD_DisplayInterrupt eDisplayInterrupt; |
|---|
| 58 | #if BXVD_P_FW_HIM_API |
|---|
| 59 | uint32_t uiDisplayInfoOffset; |
|---|
| 60 | #else |
|---|
| 61 | BXVD_P_DisplayInfo *pstDisplayInfo; |
|---|
| 62 | #endif |
|---|
| 63 | } BXVD_DisplayInterruptProvider_P_ChannelSettings; |
|---|
| 64 | |
|---|
| 65 | typedef struct BXVD_DisplayInterruptProvider_P_RULIDMasks |
|---|
| 66 | { |
|---|
| 67 | uint32_t ui32TopFieldRULIDMask; |
|---|
| 68 | uint32_t ui32BottomFieldRULIDMask; |
|---|
| 69 | uint32_t ui32ProgressiveFieldRULIDMask; |
|---|
| 70 | } BXVD_DisplayInterruptProvider_P_RULIDMasks; |
|---|
| 71 | |
|---|
| 72 | typedef struct BXVD_DisplayInterruptProvider_P_InterruptSettings |
|---|
| 73 | { |
|---|
| 74 | BXVD_DisplayInterruptProvider_P_RULIDMasks stRULIDMasks; |
|---|
| 75 | } BXVD_DisplayInterruptProvider_P_InterruptSettings; |
|---|
| 76 | |
|---|
| 77 | BERR_Code BXVD_DisplayInterruptProvider_P_GetDefaultChannelSettings( BXVD_DisplayInterruptProvider_P_ChannelSettings *pstXvdDipChSettings ); |
|---|
| 78 | |
|---|
| 79 | BERR_Code BXVD_DisplayInterruptProvider_P_OpenChannel( BXVD_DisplayInterruptProvider_P_ChannelHandle *phXvdDipCh, |
|---|
| 80 | const BXVD_DisplayInterruptProvider_P_ChannelSettings *pstXvdDipChSettings ); |
|---|
| 81 | |
|---|
| 82 | BERR_Code BXVD_DisplayInterruptProvider_P_CloseChannel( BXVD_DisplayInterruptProvider_P_ChannelHandle hXvdDipCh ); |
|---|
| 83 | |
|---|
| 84 | BERR_Code BXVD_DisplayInterruptProvider_P_ProcessWatchdog( BXVD_DisplayInterruptProvider_P_ChannelHandle hXvdDipCh ); |
|---|
| 85 | |
|---|
| 86 | BERR_Code BXVD_DisplayInterruptProvider_P_GetDefaultInterruptSettings( BXVD_DisplayInterruptProvider_P_InterruptSettings *pstXvdDipIntSettings ); |
|---|
| 87 | |
|---|
| 88 | BERR_Code BXVD_DisplayInterruptProvider_P_SetInterruptConfiguration( BXVD_DisplayInterruptProvider_P_ChannelHandle hXvdDipCh, |
|---|
| 89 | const BXVD_DisplayInterruptProvider_P_InterruptSettings *pstXvdDipIntSettings); |
|---|
| 90 | |
|---|
| 91 | BERR_Code BXVD_DisplayInterruptProvider_P_GetInterruptConfiguration( BXVD_DisplayInterruptProvider_P_ChannelHandle hXvdDipCh, |
|---|
| 92 | BXVD_DisplayInterruptProvider_P_InterruptSettings *pstXvdDipIntSettings); |
|---|
| 93 | |
|---|
| 94 | BERR_Code BXVD_DisplayInterruptProvider_InstallCallback_DisplayInterrupt( BXVD_DisplayInterruptProvider_P_ChannelHandle hXvdDipCh, |
|---|
| 95 | BXDM_DisplayInterruptHandler_isr fCallback, |
|---|
| 96 | void *pPrivateContext ); |
|---|
| 97 | |
|---|
| 98 | BERR_Code BXVD_DisplayInterruptProvider_GetDisplayInterruptInfo_isr( BXVD_DisplayInterruptProvider_P_ChannelHandle hXvdDipCh, |
|---|
| 99 | BXDM_DisplayInterruptInfo *pstXvdDisplayInterruptInfo ); |
|---|
| 100 | |
|---|
| 101 | |
|---|
| 102 | #ifdef __cplusplus |
|---|
| 103 | } |
|---|
| 104 | #endif |
|---|
| 105 | |
|---|
| 106 | #endif /* BXVD_DIP_H_ */ |
|---|