**
*****************************************************************************/
static void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info,
- u32 f_min, u32 f_max)
+ u32 f_min, u32 f_max)
{
struct MT2063_ExclZone_t *pNode = pAS_Info->usedZones;
struct MT2063_ExclZone_t *pPrev = NULL;
**
****************************************************************************/
static u32 IsSpurInBand(struct MT2063_AvoidSpursData_t *pAS_Info,
- u32 * fm, u32 * fp)
+ u32 *fm, u32 * fp)
{
/*
** Calculate LO frequency settings.
** 096 04-06-2005 DAD Ver 1.11: Fix divide by 0 error if maxH==0.
**
*****************************************************************************/
-static u32 MT2063_AvoidSpurs(void *h, struct MT2063_AvoidSpursData_t * pAS_Info)
+static u32 MT2063_AvoidSpurs(struct MT2063_AvoidSpursData_t *pAS_Info)
{
u32 status = 0;
u32 fm, fp; /* restricted range on LO's */
static const u8 ACFIFMAX[] = { 29, 29, 29, 29, 29, 29 };
static const u8 PD2TGT[] = { 40, 33, 38, 42, 30, 38 };
-/*
-** Local Function Prototypes - not available for external access.
-*/
-
-/* Forward declaration(s): */
-static u32 MT2063_CalcLO1Mult(u32 * Div, u32 * FracN, u32 f_LO,
- u32 f_LO_Step, u32 f_Ref);
-static u32 MT2063_CalcLO2Mult(u32 * Div, u32 * FracN, u32 f_LO,
- u32 f_LO_Step, u32 f_Ref);
-static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num,
- u32 denom);
-
/**
* mt2063_lockStatus - Checks to see if LO1 and LO2 are locked
*
**
******************************************************************************/
static u32 MT2063_SetReceiverMode(struct mt2063_state *state,
- enum MT2063_RCVR_MODES Mode)
+ enum MT2063_RCVR_MODES Mode)
{
u32 status = 0; /* Status to be returned */
u8 val;
** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.
**
****************************************************************************/
-static u32 MT2063_ClearPowerMaskBits(struct mt2063_state *state, enum MT2063_Mask_Bits Bits)
+static u32 MT2063_ClearPowerMaskBits(struct mt2063_state *state,
+ enum MT2063_Mask_Bits Bits)
{
u32 status = 0; /* Status to be returned */
** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.
**
****************************************************************************/
-static u32 MT2063_fLO_FractionalTerm(u32 f_ref,
- u32 num, u32 denom)
+static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num, u32 denom)
{
u32 t1 = (f_ref >> 14) * num;
u32 term1 = t1 / denom;
**
****************************************************************************/
static u32 MT2063_CalcLO1Mult(u32 * Div,
- u32 * FracN,
- u32 f_LO,
- u32 f_LO_Step, u32 f_Ref)
+ u32 * FracN,
+ u32 f_LO,
+ u32 f_LO_Step, u32 f_Ref)
{
/* Calculate the whole number portion of the divider */
*Div = f_LO / f_Ref;
**
****************************************************************************/
static u32 MT2063_CalcLO2Mult(u32 * Div,
- u32 * FracN,
- u32 f_LO,
- u32 f_LO_Step, u32 f_Ref)
+ u32 * FracN,
+ u32 f_LO,
+ u32 f_LO_Step, u32 f_Ref)
{
/* Calculate the whole number portion of the divider */
*Div = f_LO / f_Ref;
** Check for any LO spurs in the output bandwidth and adjust
** the LO settings to avoid them if needed
*/
- status |= MT2063_AvoidSpurs(state, &state->AS_Data);
+ status |= MT2063_AvoidSpurs(&state->AS_Data);
/*
** MT_AvoidSpurs spurs may have changed the LO1 & LO2 values.
** Recalculate the LO frequencies and the values to be placed
}
int mt2063_setTune(struct dvb_frontend *fe, u32 f_in, u32 bw_in,
- enum MTTune_atv_standard tv_type)
+ enum MTTune_atv_standard tv_type)
{
struct mt2063_state *state = fe->tuner_priv;
u32 status = 0;
{
int rc = 0;
- //get tuner lock status
+ /* FIXME: add get tuner lock status */
return rc;
}