Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
pd-common.h File Reference
#include <linux/fs.h>
#include <linux/wait.h>
#include <linux/list.h>
#include <linux/videodev2.h>
#include <linux/semaphore.h>
#include <linux/usb.h>
#include <linux/poll.h>
#include <media/videobuf-vmalloc.h>
#include <media/v4l2-device.h>
#include "dvb_frontend.h"
#include "dvbdev.h"
#include "dvb_demux.h"
#include "dmxdev.h"

Go to the source code of this file.

Data Structures

struct  vbi_data
struct  running_context
struct  video_data
struct  poseidon_audio
struct  radio_data
struct  pd_dvb_adapter
struct  front_face
struct  poseidon
struct  poseidon_format
struct  poseidon_tvnorm


#define SBUF_NUM   8
#define MAX_BUFFER_NUM   6
#define PK_PER_URB   32
#define ISO_PKT_SIZE   3072
#define POSEIDON_STATE_NONE   (0x0000)
#define POSEIDON_STATE_ANALOG   (0x0001)
#define POSEIDON_STATE_FM   (0x0002)
#define POSEIDON_STATE_DVBT   (0x0004)
#define POSEIDON_STATE_VBI   (0x0008)
#define PM_SUSPEND_DELAY   3
#define V4L_PAL_VBI_LINES   18
#define V4L_NTSC_VBI_LINES   12
#define V4L_PAL_VBI_FRAMESIZE   (V4L_PAL_VBI_LINES * 1440 * 2)
#define V4L_NTSC_VBI_FRAMESIZE   (V4L_NTSC_VBI_LINES * 1440 * 2)
#define TUNER_FREQ_MIN   (45000000)
#define TUNER_FREQ_MAX   (862000000)
#define AUDIO_BUFS   (3)
#define DVB_SBUF_NUM   4
#define DVB_URB_BUF_SIZE   0x2000
#define in_hibernation(pd)   (0)
#define get_pm_count(p)   (atomic_read(&(p)->interface->pm_usage_cnt))
#define log(a,...)
#define logpm(pd)
#define logs(f)


enum  pcm_stream_state { STREAM_OFF, STREAM_ON, STREAM_SUSPEND }


int pd_video_init (struct poseidon *)
void pd_video_exit (struct poseidon *)
int stop_all_video_stream (struct poseidon *)
int poseidon_audio_init (struct poseidon *)
int poseidon_audio_free (struct poseidon *)
int pd_dvb_usb_device_init (struct poseidon *)
void pd_dvb_usb_device_exit (struct poseidon *)
void pd_dvb_usb_device_cleanup (struct poseidon *)
int pd_dvb_get_adapter_num (struct pd_dvb_adapter *)
void dvb_stop_streaming (struct pd_dvb_adapter *)
int poseidon_fm_init (struct poseidon *)
int poseidon_fm_exit (struct poseidon *)
struct video_devicevdev_init (struct poseidon *, struct video_device *)
int send_set_req (struct poseidon *, u8, s32, s32 *)
int send_get_req (struct poseidon *, u8, s32, void *, s32 *, s32)
s32 set_tuner_mode (struct poseidon *, unsigned char)
int alloc_bulk_urbs_generic (struct urb **urb_array, int num, struct usb_device *udev, u8 ep_addr, int buf_size, gfp_t gfp_flags, usb_complete_t complete_fn, void *context)
void free_all_urb_generic (struct urb **urb_array, int num)
void poseidon_delete (struct kref *kref)
void destroy_video_device (struct video_device **v_dev)
void set_debug_mode (struct video_device *vfd, int debug_mode)


int debug_mode

Macro Definition Documentation

#define AUDIO_BUFS   (3)

Definition at line 100 of file pd-common.h.


Definition at line 101 of file pd-common.h.

#define DVB_SBUF_NUM   4

Definition at line 124 of file pd-common.h.

#define DVB_URB_BUF_SIZE   0x2000

Definition at line 125 of file pd-common.h.

#define get_pm_count (   p)    (atomic_read(&(p)->interface->pm_usage_cnt))

Definition at line 261 of file pd-common.h.

#define in_hibernation (   pd)    (0)

Definition at line 259 of file pd-common.h.

#define ISO_PKT_SIZE   3072

Definition at line 22 of file pd-common.h.

#define log (   a,
printk(KERN_DEBUG "\t[ %s : %.3d ] "a"\n", \
__func__, __LINE__, ## __VA_ARGS__)

Definition at line 263 of file pd-common.h.

#define logpm (   pd)
do {\
if (debug_mode & 0x10)\
} while (0)

Definition at line 267 of file pd-common.h.

#define logs (   f)
do { \
if ((debug_mode & 0x4) && \
log("type : VBI");\
if ((debug_mode & 0x8) && \
log("type : VIDEO");\
} while (0)

Definition at line 272 of file pd-common.h.

#define MAX_BUFFER_NUM   6

Definition at line 20 of file pd-common.h.

#define PK_PER_URB   32

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

#define PM_SUSPEND_DELAY   3

Definition at line 31 of file pd-common.h.

#define POSEIDON_STATE_ANALOG   (0x0001)

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


Definition at line 29 of file pd-common.h.

#define POSEIDON_STATE_DVBT   (0x0004)

Definition at line 27 of file pd-common.h.

#define POSEIDON_STATE_FM   (0x0002)

Definition at line 26 of file pd-common.h.

#define POSEIDON_STATE_NONE   (0x0000)

Definition at line 24 of file pd-common.h.

#define POSEIDON_STATE_VBI   (0x0008)

Definition at line 28 of file pd-common.h.

#define SBUF_NUM   8

Definition at line 19 of file pd-common.h.

#define TUNER_FREQ_MAX   (862000000)

Definition at line 39 of file pd-common.h.

#define TUNER_FREQ_MIN   (45000000)

Definition at line 38 of file pd-common.h.

#define V4L_NTSC_VBI_FRAMESIZE   (V4L_NTSC_VBI_LINES * 1440 * 2)

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

#define V4L_NTSC_VBI_LINES   12

Definition at line 34 of file pd-common.h.

#define V4L_PAL_VBI_FRAMESIZE   (V4L_PAL_VBI_LINES * 1440 * 2)

Definition at line 35 of file pd-common.h.

#define V4L_PAL_VBI_LINES   18

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

Enumeration Type Documentation


Definition at line 94 of file pd-common.h.

Function Documentation

int alloc_bulk_urbs_generic ( struct urb **  urb_array,
int  num,
struct usb_device *  udev,
u8  ep_addr,
int  buf_size,
gfp_t  gfp_flags,
usb_complete_t  complete_fn,
void context 

Definition at line 509 of file pd-video.c.

void destroy_video_device ( struct video_device **  v_dev)

Definition at line 1614 of file pd-video.c.

void dvb_stop_streaming ( struct pd_dvb_adapter )

Definition at line 468 of file pd-dvb.c.

void free_all_urb_generic ( struct urb **  urb_array,
int  num 

Definition at line 537 of file pd-video.c.

int pd_dvb_get_adapter_num ( struct pd_dvb_adapter )

Definition at line 593 of file pd-dvb.c.

void pd_dvb_usb_device_cleanup ( struct poseidon )

Definition at line 586 of file pd-dvb.c.

void pd_dvb_usb_device_exit ( struct poseidon )

Definition at line 571 of file pd-dvb.c.

int pd_dvb_usb_device_init ( struct poseidon )

Definition at line 514 of file pd-dvb.c.

void pd_video_exit ( struct poseidon )

Definition at line 1628 of file pd-video.c.

int pd_video_init ( struct poseidon )

Definition at line 1638 of file pd-video.c.

int poseidon_audio_free ( struct poseidon )

Definition at line 329 of file pd-alsa.c.

int poseidon_audio_init ( struct poseidon )

Definition at line 296 of file pd-alsa.c.

void poseidon_delete ( struct kref kref)

Definition at line 191 of file pd-main.c.

int poseidon_fm_exit ( struct poseidon )

Definition at line 417 of file pd-radio.c.

int poseidon_fm_init ( struct poseidon )

Definition at line 401 of file pd-radio.c.

int send_get_req ( struct poseidon ,
u8  ,
s32  ,
void ,
s32 ,

Definition at line 104 of file pd-main.c.

int send_set_req ( struct poseidon ,
u8  ,
s32  ,

Definition at line 64 of file pd-main.c.

void set_debug_mode ( struct video_device vfd,
int  debug_mode 

Definition at line 1373 of file pd-video.c.

s32 set_tuner_mode ( struct poseidon ,
unsigned  char 

Definition at line 178 of file pd-main.c.

int stop_all_video_stream ( struct poseidon )

Definition at line 1211 of file pd-video.c.

struct video_device* vdev_init ( struct poseidon ,
struct video_device  

Definition at line 1598 of file pd-video.c.

Variable Documentation

int debug_mode

Definition at line 52 of file pd-main.c.