source: svn/newcon3bcm2_21bu/dta/src/settop_api/bsettop_tuner_vsb_p.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 3.1 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2012, 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:  $
11 * $brcm_Revision:  $
12 * $brcm_Date: $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log:  $
19 *
20 ***************************************************************************/
21
22#ifndef BSETTOP_TUNER_VSB_P_H__
23#define BSETTOP_TUNER_VSB_P_H__
24
25#include "ministd.h"
26#include "bvsb.h"
27#include "bi2c.h"
28#include "breg_i2c.h"
29
30#ifdef CONFIG_NXP_TDA182I4
31#include "tmNxTypes.h"
32#include "tmCompId.h"
33#include "tmbslFrontEndTypes.h"
34#include "tmbslTDA182I4.h"
35#include "bkni_multi.h"
36
37
38tmErrorCode_t   UserWrittenI2CRead(tmUnitSelect_t tUnit,UInt32 AddrSize, UInt8* pAddr,UInt32 ReadLen, UInt8* pData);
39tmErrorCode_t   UserWrittenI2CWrite (tmUnitSelect_t tUnit, UInt32 AddrSize, UInt8* pAddr,UInt32 WriteLen, UInt8* pData);
40tmErrorCode_t   UserWrittenWait(tmUnitSelect_t tUnit, UInt32 tms);
41tmErrorCode_t   UserWrittenPrint(UInt32 level, const char* format, ...);
42tmErrorCode_t   UserWrittenMutexInit(ptmbslFrontEndMutexHandle *ppMutexHandle);
43tmErrorCode_t   UserWrittenMutexDeInit( ptmbslFrontEndMutexHandle pMutex);
44tmErrorCode_t   UserWrittenMutexAcquire(ptmbslFrontEndMutexHandle pMutex, UInt32 timeOut);
45tmErrorCode_t   UserWrittenMutexRelease(ptmbslFrontEndMutexHandle pMutex);
46#endif
47
48#define BVSB_I2C_BUS    1
49#define REV_A1 0x1
50#define VSB_TASK_STACK  0x100   /* changed from 0x400 */
51//RLQ
52//#define VSB_EVT_TIMEOUT_MS 5
53#define VSB_EVT_TIMEOUT_MS      10
54#define VSB_TASK_TIMEOUT_MS     10
55#define VSB_TUNE_TIMEOUT_MS     2000            /* change from 500 to 2000 per TOM's suggestion */
56#define MXL_I2C_ADDR 0x60
57#define TDA_I2C_ADDR 0x60
58#define TCL_I2C_ADDR 0x61
59#define NXP_TDA182I4_I2C_ADDR 0x60
60#ifndef BXPT_EXT_INPUT_BAND
61#define BXPT_EXT_INPUT_BAND 2
62#endif
63
64typedef enum tuner_type_t
65{
66        eTUNER_ID_TCLTI,
67        eTUNER_ID_NXP_TDA182I4
68}tuner_type_t;
69
70struct btuner
71{
72        b_task_params       task_params;
73        b_task_t            task_h;
74        uint32_t            task_stack[VSB_TASK_STACK];
75        uint16_t            tuner_i2c_addr;
76    int                 i2c_cnt;
77    uint8_t             tunerID;
78        tuner_type_t        tuner_type;
79    uint32_t            IF_frequency_HZ;
80    uint32_t            frequency_HZ;
81
82    BI2C_ChannelHandle  i2cChannelHandle;
83        BREG_I2C_Handle     i2cRegHandle;
84        uint16_t            chipAddr;
85    BVSB_Handle         vsbHandle;
86    BVSB_Settings       vsbSettings;
87    BKNI_EventHandle    isrEvent;
88    BKNI_EventHandle    lockEvent;
89
90    bool intEnable;
91
92    int agcPolarityInversion;
93    int agcSingleSupply;
94    int agcExternal;
95    int ifInversion;
96       
97        bool long_yield;        /* yield more to other tasks if true */
98        bool in_critical;       /* in critical section or not */
99
100    uint32_t elapedTime_in_ms;          /* for signal quality */
101};
102
103
104
105
106#endif /* BSETTOP_TUNER_VSB_P_H__ */
Note: See TracBrowser for help on using the repository browser.