⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 av7110.h

📁 linux TV 源码
💻 H
字号:
#ifndef _AV7110_H_#define _AV7110_H_#define DVB_FIRM_PATH "/lib/DVB/"#include <linux/interrupt.h>#include <linux/videodev.h>#include <linux/socket.h>#include <linux/netdevice.h>#ifdef CONFIG_DEVFS_FS#include <linux/devfs_fs_kernel.h>#endif/* DEBI transfer mode defs */#define DEBINOSWAP 0x000e0000#define DEBISWAB   0x001e0000#define DEBISWAP   0x002e0000#define ARM_WAIT_FREE  (HZ)#define ARM_WAIT_SHAKE (HZ/5)#define ARM_WAIT_OSD (HZ)#if LINUX_VERSION_CODE < 0x020300#define net_device device#define DECLARE_MUTEX(foo)         struct semaphore foo = MUTEX#define DECLARE_MUTEX_LOCKED(foo)  struct semaphore foo = MUTEX_LOCKED#define WAIT_QUEUE                 struct wait_queue*#define init_waitqueue_head(wq)    *(wq) = NULL;#define DECLARE_WAITQUEUE(wait, current) struct wait_queue wait = { current, NULL }#define set_current_state(state_value)                  \        do { current->state = state_value; } while (0)#define list_for_each(pos, head) \        for (pos = (head)->next; pos != (head); pos = pos->next)#else#define WAIT_QUEUE                 wait_queue_head_t#endif#include <linux/dvb/video.h>#include <linux/dvb/audio.h>#include <linux/dvb/dmx.h>#include <linux/dvb/ca.h>#include <linux/dvb/osd.h>#include <linux/dvb/net.h>#include "dvbdev.h"#include "demux.h"#include "dvb_demux.h"#include "dmxdev.h"#include "dvb_filter.h"#include "dvb_net.h"typedef enum BOOTSTATES{	BOOTSTATE_BUFFER_EMPTY	= 0,	BOOTSTATE_BUFFER_FULL	= 1,	BOOTSTATE_BOOT_COMPLETE	= 2} BOOTSTATES;typedef enum GPIO_MODE{	GPIO_INPUT = 0x00,	GPIO_IRQHI = 0x10,	GPIO_IRQLO = 0x20,	GPIO_IRQHL = 0x30,	GPIO_OUTLO = 0x40,	GPIO_OUTHI = 0x50} GPIO_MODE;typedef enum{	RP_None,	AudioPES,	AudioMp2,	AudioPCM,	VideoPES,	AV_PES} TYPE_REC_PLAY_FORMAT;typedef struct PARAMSTRUCT{	unsigned int	wCommand;        int             error;	unsigned long	pdwData[100];} PARAMSTRUCT, *PPARAMSTRUCT;typedef enum OSDPALTYPE{	NoPalet =  0,      /* No palette */	Pal1Bit =  2,      /* 2 colors for 1 Bit Palette    */	Pal2Bit =  4,      /* 4 colors for 2 bit palette    */	Pal4Bit =  16,     /* 16 colors for 4 bit palette   */	Pal8Bit =  256     /* 256 colors for 16 bit palette */} OSDPALTYPE, *POSDPALTYPE;typedef enum {   BITMAP1,           /* 1 bit bitmap */   BITMAP2,           /* 2 bit bitmap */   BITMAP4,           /* 4 bit bitmap */   BITMAP8,           /* 8 bit bitmap */   BITMAP1HR,         /* 1 Bit bitmap half resolution */   BITMAP2HR,         /* 2 bit bitmap half resolution */   BITMAP4HR,         /* 4 bit bitmap half resolution */   BITMAP8HR,         /* 8 bit bitmap half resolution */   YCRCB422,          /* 4:2:2 YCRCB Graphic Display */   YCRCB444,          /* 4:4:4 YCRCB Graphic Display */   YCRCB444HR,        /* 4:4:4 YCRCB graphic half resolution */   VIDEOTSIZE,        /* True Size Normal MPEG Video Display */   VIDEOHSIZE,        /* MPEG Video Display Half Resolution */   VIDEOQSIZE,        /* MPEG Video Display Quarter Resolution */   VIDEODSIZE,        /* MPEG Video Display Double Resolution */   VIDEOTHSIZE,       /* True Size MPEG Video Display Half Resolution */   VIDEOTQSIZE,       /* True Size MPEG Video Display Quarter Resolution*/   VIDEOTDSIZE,       /* True Size MPEG Video Display Double Resolution */   VIDEONSIZE,        /* Full Size MPEG Video Display */   CURSOR             /* Cursor */} DISPTYPE;           /* Window display type           */// switch defines#define SB_GPIO 3#define SB_OFF	GPIO_OUTLO  //SlowBlank aus (TV-Mode)#define SB_ON	GPIO_INPUT  //SlowBlank an  (AV-Mode)#define SB_WIDE GPIO_OUTHI  //SlowBlank 6V  (16/9-Mode) nicht realisiert#define FB_GPIO 1#define FB_OFF	GPIO_LO     //FastBlank aus (CVBS-Mode)#define FB_ON   GPIO_OUTHI  //FastBlank an  (RGB-Mode)#define FB_LOOP	GPIO_INPUT  //FastBlank der PC-Grafik durchschleifentypedef enum VIDEOOUTPUTMODE{        NO_OUT       = 0,		//disable analog Output	CVBS_RGB_OUT = 1,	CVBS_YC_OUT  = 2,	YC_OUT	     = 3} VIDEOOUTPUTMODE, *PVIDEOOUTPUTMODE;#define GPMQFull        0x0001                  //Main Message Queue Full#define GPMQOver        0x0002                  //Main Message Queue Overflow#define HPQFull         0x0004                  //High Priority Msg Queue Full#define HPQOver         0x0008#define OSDQFull        0x0010                  //OSD Queue Full#define OSDQOver        0x0020#define	SECTION_EIT	        0x01#define	SECTION_SINGLE	        0x00#define	SECTION_CYCLE		0x02#define	SECTION_CONTINUOS	0x04#define	SECTION_MODE		0x06#define SECTION_IPMPE		0x0C	// bis zu 4k gro

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -