Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
flexcop-common.h File Reference
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include "flexcop-reg.h"
#include "dmxdev.h"
#include "dvb_demux.h"
#include "dvb_filter.h"
#include "dvb_net.h"
#include "dvb_frontend.h"

Go to the source code of this file.

Data Structures

struct  flexcop_dma
 
struct  flexcop_i2c_adapter
 
struct  flexcop_device
 

Macros

#define FC_MAX_FEED   256
 
#define FC_LOG_PREFIX   "b2c2-undef"
 
#define err(format, arg...)   printk(KERN_ERR FC_LOG_PREFIX ": " format "\n" , ## arg)
 
#define info(format, arg...)   printk(KERN_INFO FC_LOG_PREFIX ": " format "\n" , ## arg)
 
#define warn(format, arg...)   printk(KERN_WARNING FC_LOG_PREFIX ": " format "\n" , ## arg)
 
#define FC_STATE_DVB_INIT   0x01
 
#define FC_STATE_I2C_INIT   0x02
 
#define FC_STATE_FE_INIT   0x04
 

Functions

void flexcop_pass_dmx_data (struct flexcop_device *fc, u8 *buf, u32 len)
 
void flexcop_pass_dmx_packets (struct flexcop_device *fc, u8 *buf, u32 no)
 
struct flexcop_deviceflexcop_device_kmalloc (size_t bus_specific_len)
 
void flexcop_device_kfree (struct flexcop_device *)
 
int flexcop_device_initialize (struct flexcop_device *)
 
void flexcop_device_exit (struct flexcop_device *fc)
 
void flexcop_reset_block_300 (struct flexcop_device *fc)
 
int flexcop_dma_allocate (struct pci_dev *pdev, struct flexcop_dma *dma, u32 size)
 
void flexcop_dma_free (struct flexcop_dma *dma)
 
int flexcop_dma_control_timer_irq (struct flexcop_device *fc, flexcop_dma_index_t no, int onoff)
 
int flexcop_dma_control_size_irq (struct flexcop_device *fc, flexcop_dma_index_t no, int onoff)
 
int flexcop_dma_config (struct flexcop_device *fc, struct flexcop_dma *dma, flexcop_dma_index_t dma_idx)
 
int flexcop_dma_xfer_control (struct flexcop_device *fc, flexcop_dma_index_t dma_idx, flexcop_dma_addr_index_t index, int onoff)
 
int flexcop_dma_config_timer (struct flexcop_device *fc, flexcop_dma_index_t dma_idx, u8 cycles)
 
int flexcop_eeprom_check_mac_addr (struct flexcop_device *fc, int extended)
 
int flexcop_i2c_request (struct flexcop_i2c_adapter *, flexcop_access_op_t, u8 chipaddr, u8 addr, u8 *buf, u16 len)
 
int flexcop_sram_set_dest (struct flexcop_device *fc, flexcop_sram_dest_t dest, flexcop_sram_dest_target_t target)
 
void flexcop_wan_set_speed (struct flexcop_device *fc, flexcop_wan_speed_t s)
 
void flexcop_sram_ctrl (struct flexcop_device *fc, int usb_wan, int sramdma, int maximumfill)
 
int flexcop_frontend_init (struct flexcop_device *fc)
 
void flexcop_frontend_exit (struct flexcop_device *fc)
 
int flexcop_i2c_init (struct flexcop_device *fc)
 
void flexcop_i2c_exit (struct flexcop_device *fc)
 
int flexcop_sram_init (struct flexcop_device *fc)
 
void flexcop_determine_revision (struct flexcop_device *fc)
 
void flexcop_device_name (struct flexcop_device *fc, const char *prefix, const char *suffix)
 
void flexcop_dump_reg (struct flexcop_device *fc, flexcop_ibi_register reg, int num)
 
int flexcop_pid_feed_control (struct flexcop_device *fc, struct dvb_demux_feed *dvbdmxfeed, int onoff)
 
void flexcop_hw_filter_init (struct flexcop_device *fc)
 
void flexcop_smc_ctrl (struct flexcop_device *fc, int onoff)
 
void flexcop_set_mac_filter (struct flexcop_device *fc, u8 mac[6])
 
void flexcop_mac_filter_ctrl (struct flexcop_device *fc, int onoff)
 

Macro Definition Documentation

#define err (   format,
  arg... 
)    printk(KERN_ERR FC_LOG_PREFIX ": " format "\n" , ## arg)

Definition at line 30 of file flexcop-common.h.

#define FC_LOG_PREFIX   "b2c2-undef"

Definition at line 25 of file flexcop-common.h.

#define FC_MAX_FEED   256

Definition at line 21 of file flexcop-common.h.

#define FC_STATE_DVB_INIT   0x01

Definition at line 64 of file flexcop-common.h.

#define FC_STATE_FE_INIT   0x04

Definition at line 66 of file flexcop-common.h.

#define FC_STATE_I2C_INIT   0x02

Definition at line 65 of file flexcop-common.h.

#define info (   format,
  arg... 
)    printk(KERN_INFO FC_LOG_PREFIX ": " format "\n" , ## arg)

Definition at line 33 of file flexcop-common.h.

#define warn (   format,
  arg... 
)    printk(KERN_WARNING FC_LOG_PREFIX ": " format "\n" , ## arg)

Definition at line 36 of file flexcop-common.h.

Function Documentation

void flexcop_determine_revision ( struct flexcop_device fc)

Definition at line 8 of file flexcop-misc.c.

void flexcop_device_exit ( struct flexcop_device fc)

Definition at line 301 of file flexcop.c.

int flexcop_device_initialize ( struct flexcop_device )

Definition at line 258 of file flexcop.c.

void flexcop_device_kfree ( struct flexcop_device )

Definition at line 251 of file flexcop.c.

struct flexcop_device* flexcop_device_kmalloc ( size_t  bus_specific_len)
read

Definition at line 228 of file flexcop.c.

void flexcop_device_name ( struct flexcop_device fc,
const char prefix,
const char suffix 
)

Definition at line 66 of file flexcop-misc.c.

int flexcop_dma_allocate ( struct pci_dev pdev,
struct flexcop_dma dma,
u32  size 
)

Definition at line 8 of file flexcop-dma.c.

int flexcop_dma_config ( struct flexcop_device fc,
struct flexcop_dma dma,
flexcop_dma_index_t  dma_idx 
)

Definition at line 40 of file flexcop-dma.c.

int flexcop_dma_config_timer ( struct flexcop_device fc,
flexcop_dma_index_t  dma_idx,
u8  cycles 
)

Definition at line 158 of file flexcop-dma.c.

int flexcop_dma_control_size_irq ( struct flexcop_device fc,
flexcop_dma_index_t  no,
int  onoff 
)

Definition at line 123 of file flexcop-dma.c.

int flexcop_dma_control_timer_irq ( struct flexcop_device fc,
flexcop_dma_index_t  no,
int  onoff 
)

Definition at line 140 of file flexcop-dma.c.

void flexcop_dma_free ( struct flexcop_dma dma)

Definition at line 32 of file flexcop-dma.c.

int flexcop_dma_xfer_control ( struct flexcop_device fc,
flexcop_dma_index_t  dma_idx,
flexcop_dma_addr_index_t  index,
int  onoff 
)

Definition at line 70 of file flexcop-dma.c.

void flexcop_dump_reg ( struct flexcop_device fc,
flexcop_ibi_register  reg,
int  num 
)

Definition at line 75 of file flexcop-misc.c.

int flexcop_eeprom_check_mac_addr ( struct flexcop_device fc,
int  extended 
)

Definition at line 132 of file flexcop-eeprom.c.

void flexcop_frontend_exit ( struct flexcop_device fc)

Definition at line 671 of file flexcop-fe-tuner.c.

int flexcop_frontend_init ( struct flexcop_device fc)

Definition at line 638 of file flexcop-fe-tuner.c.

void flexcop_hw_filter_init ( struct flexcop_device fc)

Definition at line 216 of file flexcop-hw-filter.c.

void flexcop_i2c_exit ( struct flexcop_device fc)

Definition at line 280 of file flexcop-i2c.c.

int flexcop_i2c_init ( struct flexcop_device fc)

Definition at line 225 of file flexcop-i2c.c.

int flexcop_i2c_request ( struct flexcop_i2c_adapter ,
flexcop_access_op_t  ,
u8  chipaddr,
u8  addr,
u8 buf,
u16  len 
)

Definition at line 106 of file flexcop-i2c.c.

void flexcop_mac_filter_ctrl ( struct flexcop_device fc,
int  onoff 
)

Definition at line 40 of file flexcop-hw-filter.c.

void flexcop_pass_dmx_data ( struct flexcop_device fc,
u8 buf,
u32  len 
)

Definition at line 170 of file flexcop.c.

void flexcop_pass_dmx_packets ( struct flexcop_device fc,
u8 buf,
u32  no 
)

Definition at line 176 of file flexcop.c.

int flexcop_pid_feed_control ( struct flexcop_device fc,
struct dvb_demux_feed dvbdmxfeed,
int  onoff 
)

Definition at line 170 of file flexcop-hw-filter.c.

void flexcop_reset_block_300 ( struct flexcop_device fc)

Definition at line 213 of file flexcop.c.

void flexcop_set_mac_filter ( struct flexcop_device fc,
u8  mac[6] 
)

Definition at line 24 of file flexcop-hw-filter.c.

void flexcop_smc_ctrl ( struct flexcop_device fc,
int  onoff 
)

Definition at line 14 of file flexcop-hw-filter.c.

void flexcop_sram_ctrl ( struct flexcop_device fc,
int  usb_wan,
int  sramdma,
int  maximumfill 
)

Definition at line 64 of file flexcop-sram.c.

int flexcop_sram_init ( struct flexcop_device fc)

Definition at line 14 of file flexcop-sram.c.

int flexcop_sram_set_dest ( struct flexcop_device fc,
flexcop_sram_dest_t  dest,
flexcop_sram_dest_target_t  target 
)

Definition at line 30 of file flexcop-sram.c.

void flexcop_wan_set_speed ( struct flexcop_device fc,
flexcop_wan_speed_t  s 
)

Definition at line 58 of file flexcop-sram.c.