Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
au0828.h File Reference
#include <linux/usb.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <media/tveeprom.h>
#include <linux/videodev2.h>
#include <media/videobuf-vmalloc.h>
#include <media/v4l2-device.h>
#include "demux.h"
#include "dmxdev.h"
#include "dvb_demux.h"
#include "dvb_frontend.h"
#include "dvb_net.h"
#include "dvbdev.h"
#include "au0828-reg.h"
#include "au0828-cards.h"

Go to the source code of this file.

Data Structures

struct  au0828_input
 
struct  au0828_board
 
struct  au0828_dvb
 
struct  au0828_fh
 
struct  au0828_usb_isoc_ctl
 
struct  au0828_buffer
 
struct  au0828_dmaqueue
 
struct  au0828_dev
 

Macros

#define DRIVER_NAME   "au0828"
 
#define URB_COUNT   16
 
#define URB_BUFSIZE   (0xe522)
 
#define NTSC_STD_W   720
 
#define NTSC_STD_H   480
 
#define AU0828_INTERLACED_DEFAULT   1
 
#define V4L2_CID_PRIVATE_SHARPNESS   (V4L2_CID_PRIVATE_BASE + 0)
 
#define AU0828_MAX_ISO_BUFS   12 /* maybe resize this value in the future */
 
#define AU0828_ISO_PACKETS_PER_URB   128
 
#define AU0828_MIN_BUF   4
 
#define AU0828_DEF_BUF   8
 
#define AU0828_MAX_INPUT   4
 
#define AU0828_RESOURCE_VIDEO   0x01
 
#define AU0828_RESOURCE_VBI   0x02
 
#define AUVI_INPUT(nr)   (dev->board.input[nr])
 
#define au0828_read(dev, reg)   au0828_readreg(dev, reg)
 
#define au0828_write(dev, reg, value)   au0828_writereg(dev, reg, value)
 
#define au0828_andor(dev, reg, mask, value)
 
#define au0828_set(dev, reg, bit)   au0828_andor(dev, (reg), (bit), (bit))
 
#define au0828_clear(dev, reg, bit)   au0828_andor(dev, (reg), (bit), 0)
 
#define dprintk(level, fmt, arg...)
 

Enumerations

enum  au0828_itype {
  AU0828_VMUX_UNDEFINED = 0, AU0828_VMUX_COMPOSITE, AU0828_VMUX_SVIDEO, AU0828_VMUX_CABLE,
  AU0828_VMUX_TELEVISION, AU0828_VMUX_DVB, AU0828_VMUX_DEBUG
}
 
enum  au0828_stream_state { STREAM_OFF, STREAM_INTERRUPT, STREAM_ON }
 
enum  au0828_dev_state { DEV_INITIALIZED = 0x01, DEV_DISCONNECTED = 0x02, DEV_MISCONFIGURED = 0x04 }
 

Functions

u32 au0828_read (struct au0828_dev *dev, u16 reg)
 
u32 au0828_write (struct au0828_dev *dev, u16 reg, u32 val)
 
void au0828_gpio_setup (struct au0828_dev *dev)
 
int au0828_tuner_callback (void *priv, int component, int command, int arg)
 
void au0828_card_setup (struct au0828_dev *dev)
 
int au0828_i2c_register (struct au0828_dev *dev)
 
int au0828_i2c_unregister (struct au0828_dev *dev)
 
int au0828_analog_register (struct au0828_dev *dev, struct usb_interface *interface)
 
int au0828_analog_stream_disable (struct au0828_dev *d)
 
void au0828_analog_unregister (struct au0828_dev *dev)
 
int au0828_dvb_register (struct au0828_dev *dev)
 
void au0828_dvb_unregister (struct au0828_dev *dev)
 

Variables

int au0828_debug
 
struct au0828_board au0828_boards []
 
struct usb_device_id au0828_usb_id_table []
 
struct videobuf_queue_ops au0828_vbi_qops
 

Macro Definition Documentation

#define au0828_andor (   dev,
  reg,
  mask,
  value 
)
Value:

Definition at line 259 of file au0828.h.

#define au0828_clear (   dev,
  reg,
  bit 
)    au0828_andor(dev, (reg), (bit), 0)

Definition at line 264 of file au0828.h.

#define AU0828_DEF_BUF   8

Definition at line 59 of file au0828.h.

#define AU0828_INTERLACED_DEFAULT   1

Definition at line 51 of file au0828.h.

#define AU0828_ISO_PACKETS_PER_URB   128

Definition at line 56 of file au0828.h.

#define AU0828_MAX_INPUT   4

Definition at line 61 of file au0828.h.

#define AU0828_MAX_ISO_BUFS   12 /* maybe resize this value in the future */

Definition at line 55 of file au0828.h.

#define AU0828_MIN_BUF   4

Definition at line 58 of file au0828.h.

#define au0828_read (   dev,
  reg 
)    au0828_readreg(dev, reg)

Definition at line 257 of file au0828.h.

#define AU0828_RESOURCE_VBI   0x02

Definition at line 65 of file au0828.h.

#define AU0828_RESOURCE_VIDEO   0x01

Definition at line 64 of file au0828.h.

#define au0828_set (   dev,
  reg,
  bit 
)    au0828_andor(dev, (reg), (bit), (bit))

Definition at line 263 of file au0828.h.

#define au0828_write (   dev,
  reg,
  value 
)    au0828_writereg(dev, reg, value)

Definition at line 258 of file au0828.h.

#define AUVI_INPUT (   nr)    (dev->board.input[nr])

Definition at line 111 of file au0828.h.

#define dprintk (   level,
  fmt,
  arg... 
)
Value:
do { if (au0828_debug & level)\
printk(KERN_DEBUG DRIVER_NAME "/0: " fmt, ## arg);\
} while (0)

Definition at line 301 of file au0828.h.

#define DRIVER_NAME   "au0828"

Definition at line 43 of file au0828.h.

#define NTSC_STD_H   480

Definition at line 49 of file au0828.h.

#define NTSC_STD_W   720

Definition at line 48 of file au0828.h.

#define URB_BUFSIZE   (0xe522)

Definition at line 45 of file au0828.h.

#define URB_COUNT   16

Definition at line 44 of file au0828.h.

#define V4L2_CID_PRIVATE_SHARPNESS   (V4L2_CID_PRIVATE_BASE + 0)

Definition at line 52 of file au0828.h.

Enumeration Type Documentation

Enumerator:
DEV_INITIALIZED 
DEV_DISCONNECTED 
DEV_MISCONFIGURED 

Definition at line 114 of file au0828.h.

Enumerator:
AU0828_VMUX_UNDEFINED 
AU0828_VMUX_COMPOSITE 
AU0828_VMUX_SVIDEO 
AU0828_VMUX_CABLE 
AU0828_VMUX_TELEVISION 
AU0828_VMUX_DVB 
AU0828_VMUX_DEBUG 

Definition at line 67 of file au0828.h.

Enumerator:
STREAM_OFF 
STREAM_INTERRUPT 
STREAM_ON 

Definition at line 105 of file au0828.h.

Function Documentation

int au0828_analog_register ( struct au0828_dev dev,
struct usb_interface interface 
)

Definition at line 1913 of file au0828-video.c.

int au0828_analog_stream_disable ( struct au0828_dev d)

Definition at line 806 of file au0828-video.c.

void au0828_analog_unregister ( struct au0828_dev dev)

Definition at line 843 of file au0828-video.c.

void au0828_card_setup ( struct au0828_dev dev)

Definition at line 186 of file au0828-cards.c.

int au0828_dvb_register ( struct au0828_dev dev)

Definition at line 421 of file au0828-dvb.c.

void au0828_dvb_unregister ( struct au0828_dev dev)

Definition at line 398 of file au0828-dvb.c.

void au0828_gpio_setup ( struct au0828_dev dev)

Definition at line 244 of file au0828-cards.c.

int au0828_i2c_register ( struct au0828_dev dev)

Definition at line 363 of file au0828-i2c.c.

int au0828_i2c_unregister ( struct au0828_dev dev)

Definition at line 396 of file au0828-i2c.c.

u32 au0828_read ( struct au0828_dev dev,
u16  reg 
)
int au0828_tuner_callback ( void priv,
int  component,
int  command,
int  arg 
)

Definition at line 124 of file au0828-cards.c.

u32 au0828_write ( struct au0828_dev dev,
u16  reg,
u32  val 
)

Variable Documentation

struct au0828_board au0828_boards[]

Definition at line 39 of file au0828-cards.c.

int au0828_debug

Definition at line 36 of file au0828-core.c.

struct usb_device_id au0828_usb_id_table[]

Definition at line 301 of file au0828-cards.c.

struct videobuf_queue_ops au0828_vbi_qops

Definition at line 133 of file au0828-vbi.c.