| 1 | /*************************************************************************** |
|---|
| 2 | * (c)2007-2011 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_video_output.h $ |
|---|
| 39 | * $brcm_Revision: 5 $ |
|---|
| 40 | * $brcm_Date: 7/22/11 9:03a $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /nexus/modules/display/7400/include/nexus_video_output.h $ |
|---|
| 47 | * |
|---|
| 48 | * 5 7/22/11 9:03a erickson |
|---|
| 49 | * SW7425-745: add NEXUS_VideoOutputSettings |
|---|
| 50 | * |
|---|
| 51 | * 4 7/19/11 11:14a erickson |
|---|
| 52 | * SW7408-291: add NEXUS_VideoOutput_SetVfFilter, requires reverse lookup |
|---|
| 53 | * of DAC assignments |
|---|
| 54 | * |
|---|
| 55 | * 3 1/23/08 9:22p vobadm |
|---|
| 56 | * PR35457: update docs |
|---|
| 57 | * |
|---|
| 58 | * 2 1/23/08 2:39p erickson |
|---|
| 59 | * PR35457: update docs |
|---|
| 60 | * |
|---|
| 61 | * 1 1/18/08 2:16p jgarrett |
|---|
| 62 | * PR 38808: Merging to main branch |
|---|
| 63 | * |
|---|
| 64 | * Nexus_Devel/6 11/30/07 10:53a erickson |
|---|
| 65 | * PR35457: api update |
|---|
| 66 | * |
|---|
| 67 | **************************************************************************/ |
|---|
| 68 | #ifndef NEXUS_VIDEO_OUTPUT_H__ |
|---|
| 69 | #define NEXUS_VIDEO_OUTPUT_H__ |
|---|
| 70 | |
|---|
| 71 | #include "nexus_display_types.h" |
|---|
| 72 | |
|---|
| 73 | #ifdef __cplusplus |
|---|
| 74 | extern "C" { |
|---|
| 75 | #endif |
|---|
| 76 | |
|---|
| 77 | /** |
|---|
| 78 | Summary: |
|---|
| 79 | The application must call NEXUS_VideoOutput_Shutdown after the NEXUS_VideoOutput |
|---|
| 80 | has been disconnected from all displays. |
|---|
| 81 | |
|---|
| 82 | Description: |
|---|
| 83 | This is needed to free internally cached data. |
|---|
| 84 | **/ |
|---|
| 85 | void NEXUS_VideoOutput_Shutdown( |
|---|
| 86 | NEXUS_VideoOutput output |
|---|
| 87 | ); |
|---|
| 88 | |
|---|
| 89 | #define NEXUS_MAX_VF_FILTER_ENTRIES 16 |
|---|
| 90 | |
|---|
| 91 | /** |
|---|
| 92 | Summary: |
|---|
| 93 | Video formatter filter |
|---|
| 94 | |
|---|
| 95 | Description: |
|---|
| 96 | There is one VF per channel of each output. |
|---|
| 97 | **/ |
|---|
| 98 | typedef struct NEXUS_VideoOutputVfFilter |
|---|
| 99 | { |
|---|
| 100 | uint32_t filterRegs[NEXUS_MAX_VF_FILTER_ENTRIES]; |
|---|
| 101 | unsigned numEntries; |
|---|
| 102 | } NEXUS_VideoOutputVfFilter; |
|---|
| 103 | |
|---|
| 104 | /** |
|---|
| 105 | Summary: |
|---|
| 106 | Get current VF filter settings |
|---|
| 107 | |
|---|
| 108 | Description: |
|---|
| 109 | You must specify the correct number of VF filter entries for your chip. This can be determined from the chip specification. |
|---|
| 110 | **/ |
|---|
| 111 | void NEXUS_VideoOutput_GetVfFilter( |
|---|
| 112 | NEXUS_VideoOutput output, |
|---|
| 113 | NEXUS_VideoDac dac, |
|---|
| 114 | NEXUS_VideoOutputVfFilter *pFilter /* [out] */ |
|---|
| 115 | ); |
|---|
| 116 | |
|---|
| 117 | /** |
|---|
| 118 | Summary: |
|---|
| 119 | Override default VF filter settings |
|---|
| 120 | |
|---|
| 121 | Description: |
|---|
| 122 | You must specify the correct number of VF filter entries for your chip. This can be determined from the chip specification. |
|---|
| 123 | **/ |
|---|
| 124 | NEXUS_Error NEXUS_VideoOutput_SetVfFilter( |
|---|
| 125 | NEXUS_VideoOutput output, |
|---|
| 126 | NEXUS_VideoDac dac, |
|---|
| 127 | const NEXUS_VideoOutputVfFilter *pFilter |
|---|
| 128 | ); |
|---|
| 129 | |
|---|
| 130 | /** |
|---|
| 131 | Summary: |
|---|
| 132 | Video output settings |
|---|
| 133 | **/ |
|---|
| 134 | typedef struct NEXUS_VideoOutputSettings |
|---|
| 135 | { |
|---|
| 136 | bool mute; /* send black by muting the CSC, but do not disable the DAC's. outputs will not lose sync. */ |
|---|
| 137 | } NEXUS_VideoOutputSettings; |
|---|
| 138 | |
|---|
| 139 | /** |
|---|
| 140 | Summary: |
|---|
| 141 | Get current video output |
|---|
| 142 | |
|---|
| 143 | Description: |
|---|
| 144 | Output must be connected to a display to have an effect. |
|---|
| 145 | **/ |
|---|
| 146 | void NEXUS_VideoOutput_GetSettings( |
|---|
| 147 | NEXUS_VideoOutput output, |
|---|
| 148 | NEXUS_VideoOutputSettings *pSettings |
|---|
| 149 | ); |
|---|
| 150 | |
|---|
| 151 | /** |
|---|
| 152 | Summary: |
|---|
| 153 | Set new video output |
|---|
| 154 | |
|---|
| 155 | Description: |
|---|
| 156 | Output must be connected to a display to have an effect. |
|---|
| 157 | **/ |
|---|
| 158 | NEXUS_Error NEXUS_VideoOutput_SetSettings( |
|---|
| 159 | NEXUS_VideoOutput output, |
|---|
| 160 | const NEXUS_VideoOutputSettings *pSettings |
|---|
| 161 | ); |
|---|
| 162 | |
|---|
| 163 | #ifdef __cplusplus |
|---|
| 164 | } |
|---|
| 165 | #endif |
|---|
| 166 | |
|---|
| 167 | #endif /* NEXUS_VIDEO_OUTPUT_H__ */ |
|---|