| 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_hddvi_input.h $ |
|---|
| 39 | * $brcm_Revision: 3 $ |
|---|
| 40 | * $brcm_Date: 5/13/11 12:18p $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /nexus/modules/display/7400/include/nexus_hddvi_input.h $ |
|---|
| 47 | * |
|---|
| 48 | * 3 5/13/11 12:18p erickson |
|---|
| 49 | * SW7420-1873: remove shutdown attribute |
|---|
| 50 | * |
|---|
| 51 | * 2 11/18/10 4:59p erickson |
|---|
| 52 | * SW7420-1177: merge |
|---|
| 53 | * |
|---|
| 54 | * SW7420-1177/1 11/5/10 3:28p spothana |
|---|
| 55 | * SW7420-1177: Adding format and autoformat variables to HDDVI. |
|---|
| 56 | * |
|---|
| 57 | * 1 7/23/09 12:33p erickson |
|---|
| 58 | * PR56969: added nexus_hddvi_input.h |
|---|
| 59 | * |
|---|
| 60 | **************************************************************************/ |
|---|
| 61 | #ifndef NEXUS_HDDVI_INPUT_H__ |
|---|
| 62 | #define NEXUS_HDDVI_INPUT_H__ |
|---|
| 63 | |
|---|
| 64 | #include "nexus_types.h" |
|---|
| 65 | #include "nexus_display_types.h" |
|---|
| 66 | |
|---|
| 67 | #ifdef __cplusplus |
|---|
| 68 | extern "C" { |
|---|
| 69 | #endif |
|---|
| 70 | |
|---|
| 71 | /** |
|---|
| 72 | Summary: |
|---|
| 73 | Settings for HdDvi input |
|---|
| 74 | **/ |
|---|
| 75 | typedef struct NEXUS_HdDviInputSettings { |
|---|
| 76 | bool autoFormat; /* If true, auto-detection is performed. 'format' is ignored. */ |
|---|
| 77 | NEXUS_VideoFormat format; /* If autoFormat is false, 'format' will set the HD-DVI video format. */ |
|---|
| 78 | bool enableDe; |
|---|
| 79 | unsigned inputDataMode; /* 24, 30 or 36 bit */ |
|---|
| 80 | struct { |
|---|
| 81 | unsigned width; |
|---|
| 82 | unsigned height; |
|---|
| 83 | } formatDetectionTolerance; |
|---|
| 84 | } NEXUS_HdDviInputSettings; |
|---|
| 85 | |
|---|
| 86 | /** |
|---|
| 87 | Summary: |
|---|
| 88 | Handle for the HD-DVI input interface |
|---|
| 89 | **/ |
|---|
| 90 | typedef struct NEXUS_HdDviInput *NEXUS_HdDviInputHandle; |
|---|
| 91 | |
|---|
| 92 | /** |
|---|
| 93 | Summary: |
|---|
| 94 | Get default settings for the structure. |
|---|
| 95 | |
|---|
| 96 | Description: |
|---|
| 97 | This is required in order to make application code resilient to the addition of new strucutre members in the future. |
|---|
| 98 | **/ |
|---|
| 99 | void NEXUS_HdDviInput_GetDefaultSettings( |
|---|
| 100 | NEXUS_HdDviInputSettings *pSettings /* [out] */ |
|---|
| 101 | ); |
|---|
| 102 | |
|---|
| 103 | /** |
|---|
| 104 | Summary: |
|---|
| 105 | Open a new HD-DVI Input. |
|---|
| 106 | |
|---|
| 107 | **/ |
|---|
| 108 | NEXUS_HdDviInputHandle NEXUS_HdDviInput_Open( /* attr{destructor=NEXUS_HdDviInput_Close} */ |
|---|
| 109 | unsigned index, |
|---|
| 110 | const NEXUS_HdDviInputSettings *pSettings |
|---|
| 111 | ); |
|---|
| 112 | |
|---|
| 113 | /** |
|---|
| 114 | Summary: |
|---|
| 115 | Close an HD-DVI Input. |
|---|
| 116 | **/ |
|---|
| 117 | void NEXUS_HdDviInput_Close( |
|---|
| 118 | NEXUS_HdDviInputHandle hdDviInput |
|---|
| 119 | ); |
|---|
| 120 | |
|---|
| 121 | /** |
|---|
| 122 | Summary: |
|---|
| 123 | This function is used to get current configuration |
|---|
| 124 | **/ |
|---|
| 125 | void NEXUS_HdDviInput_GetSettings( |
|---|
| 126 | NEXUS_HdDviInputHandle hdDviInput, |
|---|
| 127 | NEXUS_HdDviInputSettings *pSettings /* [out] */ |
|---|
| 128 | ); |
|---|
| 129 | |
|---|
| 130 | /** |
|---|
| 131 | Summary: |
|---|
| 132 | This function is used to set new configuration |
|---|
| 133 | **/ |
|---|
| 134 | NEXUS_Error NEXUS_HdDviInput_SetSettings( |
|---|
| 135 | NEXUS_HdDviInputHandle hdDviInput, |
|---|
| 136 | const NEXUS_HdDviInputSettings *pSettings |
|---|
| 137 | ); |
|---|
| 138 | |
|---|
| 139 | /** |
|---|
| 140 | Summary: |
|---|
| 141 | Returns the abstract NEXUS_VideoInput connector for the video input. |
|---|
| 142 | |
|---|
| 143 | Description: |
|---|
| 144 | Connect to a VideoWindow using NEXUS_VideoWindow_AddInput. |
|---|
| 145 | **/ |
|---|
| 146 | NEXUS_VideoInput NEXUS_HdDviInput_GetConnector( |
|---|
| 147 | NEXUS_HdDviInputHandle hdDviInput |
|---|
| 148 | ); |
|---|
| 149 | |
|---|
| 150 | /** |
|---|
| 151 | Summary: |
|---|
| 152 | Status returned by NEXUS_HdDviInput_GetStatus |
|---|
| 153 | **/ |
|---|
| 154 | typedef struct NEXUS_HdDviInputStatus |
|---|
| 155 | { |
|---|
| 156 | NEXUS_VideoFormat videoFormat; |
|---|
| 157 | NEXUS_AspectRatio aspectRatio; |
|---|
| 158 | } NEXUS_HdDviInputStatus; |
|---|
| 159 | |
|---|
| 160 | /** |
|---|
| 161 | Summary: |
|---|
| 162 | Get status |
|---|
| 163 | **/ |
|---|
| 164 | NEXUS_Error NEXUS_HdDviInput_GetStatus( |
|---|
| 165 | NEXUS_HdDviInputHandle hdDviInput, |
|---|
| 166 | NEXUS_HdDviInputStatus *pStatus /* [out] */ |
|---|
| 167 | ); |
|---|
| 168 | |
|---|
| 169 | #ifdef __cplusplus |
|---|
| 170 | } |
|---|
| 171 | #endif |
|---|
| 172 | |
|---|
| 173 | #endif /* NEXUS_HDDVI_INPUT_H__ */ |
|---|
| 174 | |
|---|