| 1 | /*************************************************************************** |
|---|
| 2 | * (c)2004-2008 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_ifd.c $ |
|---|
| 39 | * $brcm_Revision: 2 $ |
|---|
| 40 | * $brcm_Date: 2/7/08 5:36p $ |
|---|
| 41 | * |
|---|
| 42 | * API Description: |
|---|
| 43 | * API name: Frontend IFD |
|---|
| 44 | * Generic APIs for an IF Demodulator, used demodulate an analog (NTSC/PAL) |
|---|
| 45 | * input signal from a tuner device. |
|---|
| 46 | * |
|---|
| 47 | * Revision History: |
|---|
| 48 | * |
|---|
| 49 | * $brcm_Log: /nexus/modules/frontend/common/src/nexus_ifd.c $ |
|---|
| 50 | * |
|---|
| 51 | * 2 2/7/08 5:36p jgarrett |
|---|
| 52 | * PR 39407: Converting to common close functions |
|---|
| 53 | * |
|---|
| 54 | * 1 1/18/08 2:19p jgarrett |
|---|
| 55 | * PR 38808: Merging to main branch |
|---|
| 56 | * |
|---|
| 57 | * Nexus_Devel/2 12/20/07 2:30p jgarrett |
|---|
| 58 | * PR 38019: Adding GetStatus |
|---|
| 59 | * |
|---|
| 60 | * Nexus_Devel/1 10/5/07 5:52p jgarrett |
|---|
| 61 | * PR 35551: Adding initial version |
|---|
| 62 | * |
|---|
| 63 | ***************************************************************************/ |
|---|
| 64 | |
|---|
| 65 | #include "nexus_frontend_module.h" |
|---|
| 66 | |
|---|
| 67 | BDBG_MODULE(nexus_frontend_ifd); |
|---|
| 68 | |
|---|
| 69 | /*************************************************************************** |
|---|
| 70 | Summary: |
|---|
| 71 | Get IFD Settings |
|---|
| 72 | See Also: |
|---|
| 73 | NEXUS_Ifd_SetSettings |
|---|
| 74 | ***************************************************************************/ |
|---|
| 75 | void NEXUS_Ifd_GetSettings( |
|---|
| 76 | NEXUS_IfdHandle handle, |
|---|
| 77 | NEXUS_IfdSettings *pSettings /* [out] */ |
|---|
| 78 | ) |
|---|
| 79 | { |
|---|
| 80 | #if NEXUS_IFD_SUPPORT |
|---|
| 81 | #error not implemented |
|---|
| 82 | #else |
|---|
| 83 | BSTD_UNUSED(handle); |
|---|
| 84 | BSTD_UNUSED(pSettings); |
|---|
| 85 | #endif |
|---|
| 86 | } |
|---|
| 87 | |
|---|
| 88 | /*************************************************************************** |
|---|
| 89 | Summary: |
|---|
| 90 | Set IFD Settings |
|---|
| 91 | See Also: |
|---|
| 92 | NEXUS_Ifd_GetSettings |
|---|
| 93 | ***************************************************************************/ |
|---|
| 94 | void NEXUS_Ifd_SetSettings( |
|---|
| 95 | NEXUS_IfdHandle handle, |
|---|
| 96 | const NEXUS_IfdSettings *pSettings |
|---|
| 97 | ) |
|---|
| 98 | { |
|---|
| 99 | #if NEXUS_IFD_SUPPORT |
|---|
| 100 | #error not implemented |
|---|
| 101 | #else |
|---|
| 102 | BSTD_UNUSED(handle); |
|---|
| 103 | BSTD_UNUSED(pSettings); |
|---|
| 104 | #endif |
|---|
| 105 | } |
|---|
| 106 | |
|---|
| 107 | /*************************************************************************** |
|---|
| 108 | Summary: |
|---|
| 109 | Get current IFD status |
|---|
| 110 | See Also: |
|---|
| 111 | NEXUS_Ifd_SetSettings |
|---|
| 112 | ***************************************************************************/ |
|---|
| 113 | void NEXUS_Ifd_GetStatus( |
|---|
| 114 | NEXUS_IfdHandle handle, |
|---|
| 115 | NEXUS_IfdStatus *pStatus /* [out] */ |
|---|
| 116 | ) |
|---|
| 117 | { |
|---|
| 118 | #if NEXUS_IFD_SUPPORT |
|---|
| 119 | #error not implemented |
|---|
| 120 | #else |
|---|
| 121 | BSTD_UNUSED(handle); |
|---|
| 122 | BSTD_UNUSED(pStatus); |
|---|
| 123 | #endif |
|---|
| 124 | } |
|---|
| 125 | |
|---|
| 126 | void NEXUS_Ifd_P_GetDefaultSettings( |
|---|
| 127 | NEXUS_IfdSettings *pSettings |
|---|
| 128 | ) |
|---|
| 129 | { |
|---|
| 130 | BKNI_Memset(pSettings, 0, sizeof(NEXUS_IfdSettings)); |
|---|
| 131 | pSettings->enabled = true; |
|---|
| 132 | pSettings->videoInputType = NEXUS_IfdInputType_eIf; |
|---|
| 133 | pSettings->audioInputType = NEXUS_IfdInputType_eIf; |
|---|
| 134 | pSettings->carrierFrequency = 45750000; |
|---|
| 135 | pSettings->videoFormat = NEXUS_VideoFormat_eNtsc; |
|---|
| 136 | } |
|---|
| 137 | |
|---|
| 138 | /*************************************************************************** |
|---|
| 139 | Summary: |
|---|
| 140 | Close an IFD handle |
|---|
| 141 | ***************************************************************************/ |
|---|
| 142 | void NEXUS_Ifd_Close( |
|---|
| 143 | NEXUS_IfdHandle handle |
|---|
| 144 | ) |
|---|
| 145 | { |
|---|
| 146 | #if NEXUS_IFD_SUPPORT |
|---|
| 147 | #error not implemented |
|---|
| 148 | #else |
|---|
| 149 | BSTD_UNUSED(handle); |
|---|
| 150 | #endif |
|---|
| 151 | } |
|---|
| 152 | |
|---|