source: svn/newcon3bcm2_21bu/dta/src/settop_api/bsettop_tuner_isdb_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.3 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_THD_P_H__
23#define BSETTOP_TUNER_THD_P_H__
24
25#include "ministd.h"
26#include "bthd.h"
27#include "btnr.h"
28#include "bi2c.h"
29#include "breg_i2c.h"
30
31#ifdef CONFIG_NXP_TDA182I4
32#include "tmNxTypes.h"
33#include "tmCompId.h"
34#include "tmbslFrontEndTypes.h"
35#include "tmbslTDA182I4.h"
36#include "bkni_multi.h"
37
38
39tmErrorCode_t   UserWrittenI2CRead(tmUnitSelect_t tUnit,UInt32 AddrSize, UInt8* pAddr,UInt32 ReadLen, UInt8* pData);
40tmErrorCode_t   UserWrittenI2CWrite (tmUnitSelect_t tUnit, UInt32 AddrSize, UInt8* pAddr,UInt32 WriteLen, UInt8* pData);
41tmErrorCode_t   UserWrittenWait(tmUnitSelect_t tUnit, UInt32 tms);
42tmErrorCode_t   UserWrittenPrint(UInt32 level, const char* format, ...);
43tmErrorCode_t   UserWrittenMutexInit(ptmbslFrontEndMutexHandle *ppMutexHandle);
44tmErrorCode_t   UserWrittenMutexDeInit( ptmbslFrontEndMutexHandle pMutex);
45tmErrorCode_t   UserWrittenMutexAcquire(ptmbslFrontEndMutexHandle pMutex, UInt32 timeOut);
46tmErrorCode_t   UserWrittenMutexRelease(ptmbslFrontEndMutexHandle pMutex);
47#endif
48
49#define BTHD_I2C_BUS    1
50#define REV_A1 0x1
51#define THD_TASK_STACK  0x400
52#define THD_EVT_TIMEOUT_MS      10
53#define THD_TASK_TIMEOUT_MS     10
54#define THD_TUNE_TIMEOUT_MS     500
55#define MXL_I2C_ADDR 0x60
56#define TDA_I2C_ADDR 0x60
57#define TCL_I2C_ADDR 0x61
58#define NXP_TDA182I4_I2C_ADDR 0x60
59#ifndef BXPT_EXT_INPUT_BAND
60#define BXPT_EXT_INPUT_BAND 2
61#endif
62
63typedef enum tuner_type_t
64{
65        eTUNER_ID_TCLTI,                        /* note that not sure if TCL tuner supports ISDB-T or not */
66        eTUNER_ID_NXP_TDA182I4
67}tuner_type_t;
68
69struct btuner
70{
71        b_task_params       task_params;
72        b_task_t            task_h;
73        uint32_t            task_stack[THD_TASK_STACK];
74        uint16_t            tuner_i2c_addr;
75    int                 i2c_cnt;
76    uint8_t             tunerID;
77        tuner_type_t        tuner_type;
78    uint32_t            IF_frequency_HZ;
79    uint32_t            frequency_HZ;
80
81    BI2C_ChannelHandle  i2cChannelHandle;
82        BREG_I2C_Handle     i2cRegHandle;
83        uint16_t            chipAddr;
84    BTHD_Handle         thdHandle;
85    BTHD_Settings       thdSettings;
86    BTNR_3x7x_Settings  tnrSettings;
87    BTNR_Handle                 tnrHandle;
88    BKNI_EventHandle    thdIsrEvent;
89    BKNI_EventHandle    tnrIsrEvent;
90    BKNI_EventHandle    thdLockEvent;
91    BKNI_EventHandle    thdEwsEvent;
92    BKNI_EventHandle    thdBbsEvent;
93    BKNI_EventHandle    thdUnlockEvent;
94    BKNI_EventHandle    thdAsyncStatusEvent;
95
96    bool lockEventReceived;
97    bool intEnable;
98
99    int agcPolarityInversion;
100    int agcSingleSupply;
101    int agcExternal;
102    int ifInversion;
103       
104        bool long_yield;        /* yield more to other tasks if true */
105        bool in_critical;       /* in critical section or not */
106
107    uint32_t elapedTime_in_ms;          /* for signal quality */
108};
109
110#endif /* BSETTOP_TUNER_THD_P_H__ */
111
Note: See TracBrowser for help on using the repository browser.