Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
mxl111sf.h File Reference
#include "dvb_usb.h"
#include <media/tveeprom.h>

Go to the source code of this file.

Data Structures

struct  mxl111sf_adap_state
 
struct  mxl111sf_state
 
struct  mxl111sf_reg_ctrl_info
 

Macros

#define DVB_USB_LOG_PREFIX   "mxl111sf"
 
#define MXL_EP1_REG_READ   1
 
#define MXL_EP2_REG_WRITE   2
 
#define MXL_EP3_INTERRUPT   3
 
#define MXL_EP4_MPEG2   4
 
#define MXL_EP5_I2S   5
 
#define MXL_EP6_656   6
 
#define MXL_EP6_MPEG2   6
 
#define MXL111SF_V6   1
 
#define MXL111SF_V8_100   2
 
#define MXL111SF_V8_200   3
 
#define MXL_TUNER_MODE   0
 
#define MXL_SOC_MODE   1
 
#define MXL_DEV_MODE_MASK   0x01
 
#define mxl_printk(kern, fmt, arg...)   printk(kern "%s: " fmt "\n", __func__, ##arg)
 
#define mxl_info(fmt, arg...)   mxl_printk(KERN_INFO, fmt, ##arg)
 
#define mxl_debug(fmt, arg...)
 
#define MXL_I2C_DBG   0x04
 
#define MXL_ADV_DBG   0x10
 
#define mxl_debug_adv(fmt, arg...)
 
#define mxl_i2c(fmt, arg...)
 
#define mxl_i2c_adv(fmt, arg...)
 
#define MXL_ADV_DEBUG_ENABLED   dvb_usb_mxl111sf_debug
 
#define mxl_fail(ret)
 

Enumerations

enum  mxl111sf_gpio_port_expander { mxl111sf_gpio_hw, mxl111sf_PCA9534 }
 

Functions

int mxl111sf_read_reg (struct mxl111sf_state *state, u8 addr, u8 *data)
 
int mxl111sf_write_reg (struct mxl111sf_state *state, u8 addr, u8 data)
 
int mxl111sf_write_reg_mask (struct mxl111sf_state *state, u8 addr, u8 mask, u8 data)
 
int mxl111sf_ctrl_program_regs (struct mxl111sf_state *state, struct mxl111sf_reg_ctrl_info *ctrl_reg_info)
 
int mxl111sf_ctrl_msg (struct dvb_usb_device *d, u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
 

Variables

int dvb_usb_mxl111sf_debug
 

Macro Definition Documentation

#define DVB_USB_LOG_PREFIX   "mxl111sf"

Definition at line 17 of file mxl111sf.h.

#define MXL111SF_V6   1

Definition at line 59 of file mxl111sf.h.

#define MXL111SF_V8_100   2

Definition at line 60 of file mxl111sf.h.

#define MXL111SF_V8_200   3

Definition at line 61 of file mxl111sf.h.

#define MXL_ADV_DBG   0x10

Definition at line 121 of file mxl111sf.h.

#define MXL_ADV_DEBUG_ENABLED   dvb_usb_mxl111sf_debug

Definition at line 141 of file mxl111sf.h.

#define mxl_debug (   fmt,
  arg... 
)
Value:
mxl_printk(KERN_DEBUG, fmt, ##arg)

Definition at line 116 of file mxl111sf.h.

#define mxl_debug_adv (   fmt,
  arg... 
)
Value:

Definition at line 122 of file mxl111sf.h.

#define MXL_DEV_MODE_MASK   0x01

Definition at line 70 of file mxl111sf.h.

#define MXL_EP1_REG_READ   1

Definition at line 21 of file mxl111sf.h.

#define MXL_EP2_REG_WRITE   2

Definition at line 22 of file mxl111sf.h.

#define MXL_EP3_INTERRUPT   3

Definition at line 23 of file mxl111sf.h.

#define MXL_EP4_MPEG2   4

Definition at line 24 of file mxl111sf.h.

#define MXL_EP5_I2S   5

Definition at line 25 of file mxl111sf.h.

#define MXL_EP6_656   6

Definition at line 26 of file mxl111sf.h.

#define MXL_EP6_MPEG2   6

Definition at line 27 of file mxl111sf.h.

#define mxl_fail (   ret)
Value:
({ \
int __ret; \
__ret = (ret < 0); \
if ((__ret) && (MXL_ADV_DEBUG_ENABLED & MXL_ADV_DBG)) \
mxl_printk(KERN_ERR, "error %d on line %d", \
ret, __LINE__); \
__ret; \
})

Definition at line 144 of file mxl111sf.h.

#define mxl_i2c (   fmt,
  arg... 
)
Value:

Definition at line 126 of file mxl111sf.h.

#define mxl_i2c_adv (   fmt,
  arg... 
)
Value:

Definition at line 130 of file mxl111sf.h.

#define MXL_I2C_DBG   0x04

Definition at line 120 of file mxl111sf.h.

#define mxl_info (   fmt,
  arg... 
)    mxl_printk(KERN_INFO, fmt, ##arg)

Definition at line 112 of file mxl111sf.h.

#define mxl_printk (   kern,
  fmt,
  arg... 
)    printk(kern "%s: " fmt "\n", __func__, ##arg)

Definition at line 109 of file mxl111sf.h.

#define MXL_SOC_MODE   1

Definition at line 69 of file mxl111sf.h.

#define MXL_TUNER_MODE   0

Definition at line 68 of file mxl111sf.h.

Enumeration Type Documentation

Enumerator:
mxl111sf_gpio_hw 
mxl111sf_PCA9534 

Definition at line 37 of file mxl111sf.h.

Function Documentation

int mxl111sf_ctrl_msg ( struct dvb_usb_device d,
u8  cmd,
u8 wbuf,
int  wlen,
u8 rbuf,
int  rlen 
)

Definition at line 61 of file mxl111sf.c.

int mxl111sf_ctrl_program_regs ( struct mxl111sf_state state,
struct mxl111sf_reg_ctrl_info ctrl_reg_info 
)

Definition at line 156 of file mxl111sf.c.

int mxl111sf_read_reg ( struct mxl111sf_state state,
u8  addr,
u8 data 
)

Definition at line 87 of file mxl111sf.c.

int mxl111sf_write_reg ( struct mxl111sf_state state,
u8  addr,
u8  data 
)

Definition at line 111 of file mxl111sf.c.

int mxl111sf_write_reg_mask ( struct mxl111sf_state state,
u8  addr,
u8  mask,
u8  data 
)

Definition at line 126 of file mxl111sf.c.

Variable Documentation

int dvb_usb_mxl111sf_debug

Definition at line 26 of file mxl111sf.c.