Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dvbdev.h File Reference
#include <linux/types.h>
#include <linux/poll.h>
#include <linux/fs.h>
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  dvb_adapter
 
struct  dvb_device
 

Macros

#define DVB_MAJOR   212
 
#define DVB_MAX_ADAPTERS   8
 
#define DVB_UNSET   (-1)
 
#define DVB_DEVICE_VIDEO   0
 
#define DVB_DEVICE_AUDIO   1
 
#define DVB_DEVICE_SEC   2
 
#define DVB_DEVICE_FRONTEND   3
 
#define DVB_DEVICE_DEMUX   4
 
#define DVB_DEVICE_DVR   5
 
#define DVB_DEVICE_CA   6
 
#define DVB_DEVICE_NET   7
 
#define DVB_DEVICE_OSD   8
 
#define DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr)
 
#define dvb_attach(FUNCTION, ARGS...)
 

Functions

int dvb_register_adapter (struct dvb_adapter *adap, const char *name, struct module *module, struct device *device, short *adapter_nums)
 
int dvb_unregister_adapter (struct dvb_adapter *adap)
 
int dvb_register_device (struct dvb_adapter *adap, struct dvb_device **pdvbdev, const struct dvb_device *template, void *priv, int type)
 
void dvb_unregister_device (struct dvb_device *dvbdev)
 
int dvb_generic_open (struct inode *inode, struct file *file)
 
int dvb_generic_release (struct inode *inode, struct file *file)
 
long dvb_generic_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
int dvb_usercopy (struct file *file, unsigned int cmd, unsigned long arg, int(*func)(struct file *file, unsigned int cmd, void *arg))
 

Macro Definition Documentation

#define dvb_attach (   FUNCTION,
  ARGS... 
)
Value:
({ \
FUNCTION(ARGS); \
})

generic DVB attach function.

Definition at line 140 of file dvbdev.h.

#define DVB_DEFINE_MOD_OPT_ADAPTER_NR (   adapter_nr)
Value:
static short adapter_nr[] = \
{[0 ... (DVB_MAX_ADAPTERS - 1)] = DVB_UNSET }; \
module_param_array(adapter_nr, short, NULL, 0444); \
MODULE_PARM_DESC(adapter_nr, "DVB adapter numbers")

Definition at line 51 of file dvbdev.h.

#define DVB_DEVICE_AUDIO   1

Definition at line 42 of file dvbdev.h.

#define DVB_DEVICE_CA   6

Definition at line 47 of file dvbdev.h.

#define DVB_DEVICE_DEMUX   4

Definition at line 45 of file dvbdev.h.

#define DVB_DEVICE_DVR   5

Definition at line 46 of file dvbdev.h.

#define DVB_DEVICE_FRONTEND   3

Definition at line 44 of file dvbdev.h.

#define DVB_DEVICE_NET   7

Definition at line 48 of file dvbdev.h.

#define DVB_DEVICE_OSD   8

Definition at line 49 of file dvbdev.h.

#define DVB_DEVICE_SEC   2

Definition at line 43 of file dvbdev.h.

#define DVB_DEVICE_VIDEO   0

Definition at line 41 of file dvbdev.h.

#define DVB_MAJOR   212

Definition at line 31 of file dvbdev.h.

#define DVB_MAX_ADAPTERS   8

Definition at line 36 of file dvbdev.h.

#define DVB_UNSET   (-1)

Definition at line 39 of file dvbdev.h.

Function Documentation

long dvb_generic_ioctl ( struct file file,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 158 of file dvbdev.c.

int dvb_generic_open ( struct inode inode,
struct file file 
)

Definition at line 113 of file dvbdev.c.

int dvb_generic_release ( struct inode inode,
struct file file 
)

Definition at line 139 of file dvbdev.c.

int dvb_register_adapter ( struct dvb_adapter adap,
const char name,
struct module module,
struct device device,
short adapter_nums 
)

Definition at line 320 of file dvbdev.c.

int dvb_register_device ( struct dvb_adapter adap,
struct dvb_device **  pdvbdev,
const struct dvb_device template,
void priv,
int  type 
)

Definition at line 191 of file dvbdev.c.

int dvb_unregister_adapter ( struct dvb_adapter adap)

Definition at line 368 of file dvbdev.c.

void dvb_unregister_device ( struct dvb_device dvbdev)

Definition at line 277 of file dvbdev.c.

int dvb_usercopy ( struct file file,
unsigned int  cmd,
unsigned long  arg,
int(*)(struct file *file, unsigned int cmd, void *arg func 
)

Definition at line 382 of file dvbdev.c.