| 1 | /*************************************************************************** |
|---|
| 2 | * (c)2007-2010 Broadcom Corporation |
|---|
| 3 | * |
|---|
| 4 | * This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | * and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | * conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | * no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | * Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | * |
|---|
| 14 | * Except as expressly set forth in the Authorized License, |
|---|
| 15 | * |
|---|
| 16 | * 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | * and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | * |
|---|
| 20 | * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | * USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | * |
|---|
| 29 | * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | * ANY LIMITED REMEDY. |
|---|
| 37 | * |
|---|
| 38 | * $brcm_Workfile: nexus_vdb_impl.h $ |
|---|
| 39 | * $brcm_Revision: 6 $ |
|---|
| 40 | * $brcm_Date: 6/2/10 10:17a $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /nexus/modules/display/7400/src/nexus_vdb_impl.h $ |
|---|
| 47 | * |
|---|
| 48 | * 6 6/2/10 10:17a erickson |
|---|
| 49 | * SW3548-2962: refactor NEXUS_DisplayModule_SetConfigurationId for settop |
|---|
| 50 | * |
|---|
| 51 | * 5 1/27/10 5:17p petlee |
|---|
| 52 | * SW35230-66: Update stub definition of NEXUS_Vdb_P_SourceModeChanged() |
|---|
| 53 | * to use ((void)x) insetad of (i)=(i) |
|---|
| 54 | * |
|---|
| 55 | * 4 3/5/09 3:32p erickson |
|---|
| 56 | * PR52266: fix warning |
|---|
| 57 | * |
|---|
| 58 | * 3 2/20/09 4:49p jgarrett |
|---|
| 59 | * PR 52266: Adding memory requirements interface |
|---|
| 60 | * |
|---|
| 61 | * 2 2/10/09 11:47a jgarrett |
|---|
| 62 | * PR 48984: Incorporating comments from vdb review |
|---|
| 63 | * |
|---|
| 64 | * 1 1/6/09 11:33a jgarrett |
|---|
| 65 | * PR 48984: Merge dynamic RTS code to main branch |
|---|
| 66 | * |
|---|
| 67 | * PR48984/1 11/20/08 6:47p jgarrett |
|---|
| 68 | * PR 48984: Adding VDB stubs |
|---|
| 69 | * |
|---|
| 70 | **************************************************************************/ |
|---|
| 71 | #ifndef NEXUS_VDB_IMPL_H__ |
|---|
| 72 | #define NEXUS_VDB_IMPL_H__ |
|---|
| 73 | |
|---|
| 74 | #if (BCHP_CHIP == 3548 || BCHP_CHIP == 3556) && BCHP_VER >= BCHP_VER_B0 |
|---|
| 75 | |
|---|
| 76 | #define NEXUS_HAS_DYNAMIC_RTS 1 |
|---|
| 77 | |
|---|
| 78 | NEXUS_Error NEXUS_Vdb_P_Init(void); |
|---|
| 79 | void NEXUS_Vdb_P_Uninit(void); |
|---|
| 80 | |
|---|
| 81 | bool NEXUS_Vdb_P_PixelFormatValid(NEXUS_PixelFormat requestedFormat, NEXUS_PixelFormat maxFormat); |
|---|
| 82 | |
|---|
| 83 | unsigned int NEXUS_Vdb_P_GetBpp(NEXUS_PixelFormat format); |
|---|
| 84 | |
|---|
| 85 | NEXUS_Error NEXUS_Vdb_P_HandleSourcePending(NEXUS_VideoInput input); |
|---|
| 86 | NEXUS_Error NEXUS_Vdb_P_CheckLayout(void); |
|---|
| 87 | NEXUS_Error NEXUS_Vdb_P_SourceModeChanged(NEXUS_VideoInput input); |
|---|
| 88 | NEXUS_Error NEXUS_Vdb_P_GetMemorySettings( |
|---|
| 89 | unsigned configurationId, /* Configuration ID */ |
|---|
| 90 | uint32_t mask, /* Must contain at least one window and at least one input */ |
|---|
| 91 | NEXUS_DisplayBufferTypeSettings *pFullHdBuffers, /* [out] Full HD buffer requirements */ |
|---|
| 92 | NEXUS_DisplayBufferTypeSettings *pHdBuffers, /* [out] HD buffer requirements */ |
|---|
| 93 | NEXUS_DisplayBufferTypeSettings *pSdBuffers, /* [out] SD buffer requirements */ |
|---|
| 94 | unsigned *pHeapSize /* [out] Heap size in bytes */ |
|---|
| 95 | ); |
|---|
| 96 | NEXUS_Error NEXUS_DisplayModule_P_SetConfigurationId( unsigned id, bool recalcNow ); |
|---|
| 97 | |
|---|
| 98 | #else |
|---|
| 99 | |
|---|
| 100 | /* Stubs for platforms without dynamic RTS */ |
|---|
| 101 | |
|---|
| 102 | #define NEXUS_Vdb_P_Init() (NEXUS_SUCCESS) |
|---|
| 103 | #define NEXUS_Vdb_P_Uninit() (void)0 |
|---|
| 104 | #define NEXUS_Vdb_P_PixelFormatValid(r,m) (true) |
|---|
| 105 | #define NEXUS_Vdb_P_GetBpp(f) (0) |
|---|
| 106 | #define NEXUS_Vdb_P_HandleSourcePending(i) NEXUS_VideoInput_SetResumeMode((i), NEXUS_VideoInputResumeMode_eNow) |
|---|
| 107 | #define NEXUS_Vdb_P_CheckLayout() (NEXUS_SUCCESS) |
|---|
| 108 | #define NEXUS_Vdb_P_SourceModeChanged(i) ((void)i) |
|---|
| 109 | |
|---|
| 110 | #endif |
|---|
| 111 | |
|---|
| 112 | #endif /* !defined NEXUS_VDB_IMPL_H__ */ |
|---|
| 113 | |
|---|
| 114 | |
|---|