mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 14:43:58 +08:00
c942fddf87
Based on 3 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [graeme] [gregory] [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema] [hk] [hemahk]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1105 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
66 lines
1.9 KiB
C
66 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* mxl111sf-tuner.h - driver for the MaxLinear MXL111SF CMOS tuner
|
|
*
|
|
* Copyright (C) 2010-2014 Michael Krufky <mkrufky@linuxtv.org>
|
|
*/
|
|
|
|
#ifndef __MXL111SF_TUNER_H__
|
|
#define __MXL111SF_TUNER_H__
|
|
|
|
#include <media/dvb_frontend.h>
|
|
#include "mxl111sf.h"
|
|
|
|
enum mxl_if_freq {
|
|
#if 0
|
|
MXL_IF_LO = 0x00, /* other IF < 9MHz */
|
|
#endif
|
|
MXL_IF_4_0 = 0x01, /* 4.0 MHz */
|
|
MXL_IF_4_5 = 0x02, /* 4.5 MHz */
|
|
MXL_IF_4_57 = 0x03, /* 4.57 MHz */
|
|
MXL_IF_5_0 = 0x04, /* 5.0 MHz */
|
|
MXL_IF_5_38 = 0x05, /* 5.38 MHz */
|
|
MXL_IF_6_0 = 0x06, /* 6.0 MHz */
|
|
MXL_IF_6_28 = 0x07, /* 6.28 MHz */
|
|
MXL_IF_7_2 = 0x08, /* 7.2 MHz */
|
|
MXL_IF_35_25 = 0x09, /* 35.25 MHz */
|
|
MXL_IF_36 = 0x0a, /* 36 MHz */
|
|
MXL_IF_36_15 = 0x0b, /* 36.15 MHz */
|
|
MXL_IF_44 = 0x0c, /* 44 MHz */
|
|
#if 0
|
|
MXL_IF_HI = 0x0f, /* other IF > 35 MHz and < 45 MHz */
|
|
#endif
|
|
};
|
|
|
|
struct mxl111sf_tuner_config {
|
|
enum mxl_if_freq if_freq;
|
|
unsigned int invert_spectrum:1;
|
|
|
|
int (*read_reg)(struct mxl111sf_state *state, u8 addr, u8 *data);
|
|
int (*write_reg)(struct mxl111sf_state *state, u8 addr, u8 data);
|
|
int (*program_regs)(struct mxl111sf_state *state,
|
|
struct mxl111sf_reg_ctrl_info *ctrl_reg_info);
|
|
int (*top_master_ctrl)(struct mxl111sf_state *state, int onoff);
|
|
int (*ant_hunt)(struct dvb_frontend *fe);
|
|
};
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
#if IS_ENABLED(CONFIG_DVB_USB_MXL111SF)
|
|
extern
|
|
struct dvb_frontend *mxl111sf_tuner_attach(struct dvb_frontend *fe,
|
|
struct mxl111sf_state *mxl_state,
|
|
const struct mxl111sf_tuner_config *cfg);
|
|
#else
|
|
static inline
|
|
struct dvb_frontend *mxl111sf_tuner_attach(struct dvb_frontend *fe,
|
|
struct mxl111sf_state *mxl_state,
|
|
const struct mxl111sf_tuner_config *cfg)
|
|
{
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
return NULL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __MXL111SF_TUNER_H__ */
|