#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/firmware.h>
#include "dvb_frontend.h"
#include "cx24116.h"
Go to the source code of this file.
|
enum | cmds {
CMD_SET_VCO = 0x10,
CMD_TUNEREQUEST = 0x11,
CMD_MPEGCONFIG = 0x13,
CMD_TUNERINIT = 0x14,
CMD_BANDWIDTH = 0x15,
CMD_GETAGC = 0x19,
CMD_LNBCONFIG = 0x20,
CMD_LNBSEND = 0x21,
CMD_LNBDCLEVEL = 0x22,
CMD_SET_TONE = 0x23,
CMD_UPDFWVERS = 0x35,
CMD_TUNERSLEEP = 0x36,
CMD_AGCCONTROL = 0x3b
} |
|
|
| module_param (debug, int, 0644) |
|
| MODULE_PARM_DESC (debug,"Activates frontend debugging (default:0)") |
|
| module_param (toneburst, int, 0644) |
|
| MODULE_PARM_DESC (toneburst,"DiSEqC toneburst 0=OFF, 1=TONE CACHE, ""2=MESSAGE CACHE (default:1)") |
|
| module_param (esno_snr, int, 0644) |
|
| MODULE_PARM_DESC (esno_snr,"SNR return units, 0=PERCENTAGE 0-100, ""1=ESNO(db * 10) (default:0)") |
|
struct dvb_frontend * | cx24116_attach (const struct cx24116_config *config, struct i2c_adapter *i2c) |
|
| EXPORT_SYMBOL (cx24116_attach) |
|
| MODULE_DESCRIPTION ("DVB Frontend module for Conexant cx24116/cx24118 hardware") |
|
| MODULE_AUTHOR ("Steven Toth") |
|
| MODULE_LICENSE ("GPL") |
|
#define CX24116_ARGLEN (0x1e) |
#define CX24116_DEFAULT_FIRMWARE "dvb-fe-cx24116.fw" |
#define CX24116_DISEQC_BURST (1) |
#define CX24116_DISEQC_MINI_A (0) |
#define CX24116_DISEQC_MINI_B (1) |
#define CX24116_DISEQC_MSGLEN (5) |
#define CX24116_DISEQC_MSGOFS (6) |
#define CX24116_DISEQC_TONECACHE (1) /* toneburst cached */ |
#define CX24116_DISEQC_TONEOFF (0) /* toneburst never sent */ |
#define CX24116_FEC_DVBS (0x20) |
#define CX24116_FEC_FECMASK (0x1f) |
#define CX24116_FEC_PILOT (0x80) |
#define CX24116_FEC_UNKNOWN (0x40) /* Unknown/unused */ |
#define CX24116_HAS_CARRIER (0x02) |
#define CX24116_HAS_SIGNAL (0x01) |
#define CX24116_HAS_SYNCLOCK (0x08) |
#define CX24116_HAS_UNKNOWN1 (0x10) |
#define CX24116_HAS_UNKNOWN2 (0x20) |
#define CX24116_HAS_VITERBI (0x04) |
#define CX24116_PILOT_OFF (0x00) |
#define CX24116_PILOT_ON (0x40) |
#define CX24116_REG_BER0 (0xc9) |
#define CX24116_REG_BER16 (0xc7) |
#define CX24116_REG_BER24 (0xc6) |
#define CX24116_REG_BER8 (0xc8) |
#define CX24116_REG_CLKDIV (0xf3) |
#define CX24116_REG_COMMAND (0x00) /* command args 0x00..0x1e */ |
#define CX24116_REG_EXECUTE (0x1f) /* execute command */ |
#define CX24116_REG_FECSTATUS (0x9c) |
#define CX24116_REG_MAILBOX (0x96) /* FW or multipurpose mailbox? */ |
#define CX24116_REG_QSTATUS (0xbc) |
#define CX24116_REG_QUALITY0 (0xd5) |
#define CX24116_REG_QUALITY8 (0xa3) |
#define CX24116_REG_RATEDIV (0xf9) |
#define CX24116_REG_RESET (0x20) /* reset status > 0 */ |
#define CX24116_REG_SIGNAL (0x9e) /* signal low */ |
#define CX24116_REG_SSTATUS (0x9d) /* signal high / status */ |
#define CX24116_REG_UCB0 (0xcb) |
#define CX24116_REG_UCB8 (0xca) |
#define CX24116_ROLLOFF_020 (0x00) |
#define CX24116_ROLLOFF_025 (0x01) |
#define CX24116_ROLLOFF_035 (0x02) |
#define CX24116_SEARCH_RANGE_KHZ 5000 |
#define CX24116_SIGNAL_MASK (0xc0) |
#define CX24116_STATUS_MASK (0x0f) |
#define dprintk |
( |
|
args... | ) |
|
- Enumerator:
CMD_SET_VCO |
|
CMD_TUNEREQUEST |
|
CMD_MPEGCONFIG |
|
CMD_TUNERINIT |
|
CMD_BANDWIDTH |
|
CMD_GETAGC |
|
CMD_LNBCONFIG |
|
CMD_LNBSEND |
|
CMD_LNBDCLEVEL |
|
CMD_SET_TONE |
|
CMD_UPDFWVERS |
|
CMD_TUNERSLEEP |
|
CMD_AGCCONTROL |
|
Definition at line 143 of file cx24116.c.
MODULE_AUTHOR |
( |
"Steven Toth" |
| ) |
|
module_param |
( |
toneburst |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
esno_snr |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
debug |
, |
|
|
"Activates frontend debugging (default:0)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
toneburst |
, |
|
|
"DiSEqC toneburst |
0 = OFF , |
|
|
1 |
= TONE CACHE |
|
) |
| |
MODULE_PARM_DESC |
( |
esno_snr |
, |
|
|
"SNR return |
units, |
|
|
0 |
= PERCENTAGE 0-100 |
|
) |
| |