亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xport.c

?? 一個兩碟控制的VCD的代碼,兩碟之間的轉動及連續播放,已大量生產的CODE.
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* Copyright 1997, ESS Technology, Inc.					*//* SCCSID @(#)xport.c	1.59 2/25/98 *//* * $Log$ */#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include "buffer.h"#include "const.h"#include "common.h"#include "debug.h"#include "mvd.h"#include "tdm.h"#include "low.h"#include "util.h"#include "vcxi.h"#include "xport.h"#define PRINTF(a)#if 0	/* doing sub-picture */#undef SUB_PICTURE#endif/**************************************************************************** Various defines ****************************************************************************/#define ALTMODE         0x00000013#define DVBMODE         0x00000003#define PS8MODE         DVBMODE#define PS16MODE        0x00000001#define DestVideo       0#define DestAudio       2#define DestAux         4#define DestUser        6#define DestRisc        1#define makepid(pid,CCvalid,CCvalue,dest)	\	((1L<<21L) +				\	((pid    &0x01fffL)<<8L)	+	\	((CCvalid&0x00001L)<<7L)	+	\	((CCvalue&0x0000fL)<<3L)	+	\	(dest & 0x00007L) )/**************************************************************************** Transport mode select. Things like 8 or 16 bit, DVB or DSS. ****************************************************************************/#define select_xport_mode(xport_type) 		\	(xport_type == DSS_SIMPLE)? (PS16MODE | 0x10) : PS16MODE;#define AID_CHECK 0x2d	/* AC3 substream ID patch location */#define PS_BYPASS 0x2c	/* AC3 substream ID check bypass for generic PS */#define SP_BYPASS 0x2f	/* AC3 extra info code bypass for sub-picture */#define CONTINUE  0x32	/* This is where continue is *//**************************************************************************** Local function prototypes ****************************************************************************/#ifdef MPEG2static void patch_xport_ucode(int, int);#endifstatic void load_xport_cam(int *, int);PRIVATE	void		XPORT_adj_match_channel(int);PRIVATE	unsigned int	XPORT_UcodeImmd(int, unsigned int);/**************************************************************************** Local variables ****************************************************************************/#ifdef MPEG2static int xport_video = -1;	/* PID of video packets */static int xport_audio = -1;	/* PID of audio packets */#endifstatic int x07f07fff = 0x07f07fff;#ifdef MPEG2/**************************************************************************** Patch transport ucode. ****************************************************************************/static void patch_xport_ucode(int location, int code){    int  real;    mvd[xport_misc] = XPORT_LDMC | XPORT_RESET;    mvd[xport_microcode_table+location] = code;#ifdef DEBUG    mvd[xport_misc] = XPORT_RESET;    mvd[xport_misc] = XPORT_LDMC | XPORT_RESET;    real = mvd[xport_microcode_table+location];    real = mvd[xport_microcode_table+location] & 0x0fffffffL;    if (real != code) {	FATAL(("Xport ucode patch verification error\n"));    }#endif    mvd[xport_misc] = XPORT_RESET;}#endif/**************************************************************************** XPORT interrupt service routine ****************************************************************************/#ifdef XPORT20#define XPORT_MAX_FIFO	7	/* <00:mm> <ss:ff> <sub:code> <01:ID>	*				 * <junk:d> <d:d> <d:d>			*/#else#define XPORT_MAX_FIFO	8	/* Add <mode:filenumber>		*/#endifunsigned short XPORT_fifo[XPORT_MAX_FIFO]; /* XPORT->RISC FIFO data	*//* * XPORT seq interrupt handler. This routine reads all the XPORT * FIFO data. Due to a bug in XPORT hardware, it is more reliable to  * read the FIFO while nobody is writing to the FIFO. The current * XPORT microcode will make sure that after the last RISC FIFO data * is sent, trigger a seq. interrupt; this interrupt is far away from * the next RISC FIFO data. * * The data will be read out, and it will be process in TDM interrup * just like before. * * Return: *	1:	Equivalent to TDM interrupt (for DVD_VCD) */int XPORT_interrupt_service(void){    int loop, max, cnt;    mvd[xport_clear_stat_bits] = 2;	/* Clear seq. IRQ */    /*      * Counter is usually one less than what is in the FIFO. However,      * if there is nothing in FIFO, the counter is still 0.     */    cnt = (mvd[xport_read_rff_count] & 0x3f) + 1;#ifdef DVD_VCD    /*     * For DVD_VCD, we have the following cases for RISC FIFO     * 1) No data, this is equivalent to TDM interrupt (i.e. all the     *    data are in)     * 2) 2 items, this is currCDtime. This is also equivalent to      *    TDM interrupt     * 3) 3 items. For M2F1 (i.e. getSector), data is not in yet;     *    For M2F2 (playSector), this means we can't find stream ID,     *    so equivalent to TDM interrupt     * 4) 5/7 items. Since there is ID and PTS etc, data is not in yet.     *     * There can be at most 2 XPORT interrupts in a sector, so if      * XPORT_fifo_length is not zero, then we had 1 previous XPORT      * interrupt without calling TDM interrupt handler; in which case,      * don't read the RISC FIFO since it may hold data for the next      * sector if the interrupt latency is too long.     *     * There is one corner case:     * If the number of data bytes in a sector is very small, we may     * get the end-of-data interrupt before we even handle the RISC-FIFO     * data interrupt. As a result, we handle both interrupts in one     * call to XPORT_interrupt_service. In which case, XPORT_fifo_length      * will be 0 and cnt will be non-zero. If cnt is 5, we'll be mislead      * to believe that data is not in yet when it is really in already.     *     * To be on the safe side, we'll do two things:     * 1) When we enter, if XPORT_fifo_length == 0 and XPORT is executing      *    flush_pipe/find_synd2, treat it as a "TDM interrupt."     * 2) When XPORT is in "stop state", force a "TDM interrupt."     */    if (XPORT_fifo_length)      cnt = 0;				/* No real data			*/    else {	int pc;	pc = mvd[xport_read_status] & 0x7f;	XPORT_fifo_length = cnt;	/*	 * Since nobody is writing to the RISC FIFO, reading it now	 * shall give reliable result!	 *	 * Make sure the number of data item makes sense.	 */	if ((max = XPORT_fifo_length) > XPORT_MAX_FIFO)	  max = XPORT_MAX_FIFO;	/* Read the FIFO data into an array */	for (loop = 0; loop < max; loop++)	  XPORT_fifo[loop] = mvd[xport_read_risc_data];	/* If we have more data unexpectly, throw them away */	for (loop; loop < XPORT_fifo_length; loop++)	  reg0 = mvd[xport_read_risc_data];	/*	 * Equivalent to TDM interrupt if we are flushing the pipe or	 * find next SYNC.	 */	if ((pc == XPORT_OFFSET_STOP_STATE) ||	    ((pc >= XPORT_FLUSH_PIPE) && (pc <= XPORT_FIND_SYNC2_END)))	  return(1);			/* Equivalent to TDM interrupt	*/    }    if (cnt >= 5) return(0);		/* Data not in yet		*/    else if (cnt == 3) 			/* Last data is <submode:coding>*/      return(XPORT_fifo[2] & 0x2000);	/* Eq. to TDM int. for M2F2 data*/    else return(1);			/* Equivalent to TDM interrupt	*/#else    /* For VCD 1.1/2.0 */    /*     * If XPORT_fifo_length is not 0, then TDM interrupt has not happened     * yet; in other words, this is the "2nd packet" interrupt. Ignore     * the interrupt. Don't touch the FIFO data because if the interrupt     * latency is long, the next currCDtime may be in!     */    if (XPORT_fifo_length == 0) {	XPORT_fifo_length = cnt;	/*	 * Since nobody is writing to the RISC FIFO, reading it now	 * shall give reliable result!	 *	 * Make sure the number of data item makes sense.	 */	if ((max = XPORT_fifo_length) > XPORT_MAX_FIFO)	  max = XPORT_MAX_FIFO;	/* Read the FIFO data into an array */	for (loop = 0; loop < max; loop++)	  XPORT_fifo[loop] = mvd[xport_read_risc_data];	/* If we have more data unexpectly, throw them away */	for (loop; loop < XPORT_fifo_length; loop++)	  reg0 = mvd[xport_read_risc_data];    }    return(0);#endif /* else of DVD_VCD */}/**************************************************************************** Download transport ucode. ****************************************************************************/void XPORT_load_ucode(uCode_table, size)int 	    *uCode_table; 	/* table address */int 	    size;		/* table size in ints, 0 for user input */ {    int *uCode;    int  i;    PRINTF(("Loading xport ucode.\n"));    assert(size);    uCode = uCode_table;    if (size > 0x80) {	FATAL(("Ucode too long. Download aborted.\n"));    }    mvd[xport_misc] = XPORT_LDMC | XPORT_RESET;    for (i=0; i < size; i++)  	mvd[xport_microcode_table+i] = uCode[i];     for(; i < 0x80; i++)	mvd[xport_microcode_table+i] = 0x3f07f00L; #ifdef DEBUG    mvd[xport_misc] = XPORT_RESET;    mvd[xport_misc] = XPORT_LDMC | XPORT_RESET;    for (i=0; i < size; i++)  {        int tmp;	tmp = mvd[xport_microcode_table+i];	tmp = mvd[xport_microcode_table+i] & 0x0fffffffL;	if( tmp != (uCode[i] & 0x0fffffffL)){	    FATAL(("Xport ucode verify error\n"));	}     }#endif    mvd[xport_misc] = XPORT_RESET;}/**************************************************************************** Load xport PID. ****************************************************************************/static void load_xport_cam(PID_table, size)int 	    *PID_table; 	/* table address */int 	    size;{    int *pid_data;    int	i, data, tmp;    PRINTF(("Load pid table \n"));    assert(size);    pid_data = PID_table;#ifdef DEBUG    if (size > 0x20) {	FATAL(("PID table too long. Download aborted.\n"));    }#endif    /*-write ucode-*/    mvd[xport_misc] = XPORT_FLUSHCAM| XPORT_RESET;    mvd[xport_misc] = XPORT_RESET;    mvd[xport_misc] = XPORT_LDPID | XPORT_RESET;	/* Load all the CAM entries */    for (i = 0; i < 0x20; i++) {	    data = 0;	    if (i < size) data = pid_data[i]; 	    mvd[xport_pid_table+i] = data;    }#ifdef DEBUG	/* Check to make sure loading is successful */    for (i = 0; i < 0x20; i++) {	    data = 0;	    if (i < size) data = pid_data[i];	    	    tmp = mvd[xport_pid_table+i];	    tmp = mvd[xport_pid_table+i];	    if ((unsigned char) tmp != (unsigned char) data)	      break;    }#endif    mvd[xport_misc] = XPORT_RESET;}#if (MPEG1 && MKROM)/* * Routine to restore CAM table. There is report that CAM table * content may change in some situation. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一本大道在线| 久久理论电影网| 欧美一区二区视频在线观看| 欧美成人性战久久| 日本一区二区三区dvd视频在线| 日韩精品中午字幕| 国产日韩亚洲欧美综合| 日韩美女久久久| 青青青伊人色综合久久| 日韩三级视频在线观看| 久久久久久亚洲综合影院红桃| 国产日韩欧美激情| 伊人婷婷欧美激情| 91色视频在线| 日韩午夜激情av| 亚洲色大成网站www久久九九| 日本免费在线视频不卡一不卡二| 国产69精品久久久久毛片| 欧美日韩大陆一区二区| 中国色在线观看另类| 日本在线不卡一区| av在线综合网| 国产欧美精品国产国产专区 | 欧美一区二区黄| 综合分类小说区另类春色亚洲小说欧美| 一区二区三区影院| 91精品国产色综合久久久蜜香臀| av激情综合网| 国产精品久久毛片| 成人一区二区三区在线观看| 精品国产一区二区三区忘忧草| 亚洲一级二级在线| 97久久超碰国产精品电影| 欧美精彩视频一区二区三区| 一本大道av伊人久久综合| 国产精品久久久久久久久搜平片 | 3d动漫精品啪啪1区2区免费| 亚洲视频在线一区| 成人av在线播放网站| 国产白丝精品91爽爽久久 | 奇米888四色在线精品| 日韩欧美在线影院| 国产精品资源站在线| 色偷偷久久一区二区三区| 一区二区三区国产精华| 4438x亚洲最大成人网| 蜜臀av一级做a爰片久久| 欧美变态口味重另类| 成人午夜免费电影| 中文字幕制服丝袜一区二区三区| 不卡的电影网站| 一区二区三区美女视频| 欧美一级欧美一级在线播放| 国内成人精品2018免费看| 国产精品视频线看| 51精品国自产在线| 91精品国产乱码久久蜜臀| 成人一区在线观看| 欧美精品第1页| 懂色av中文一区二区三区| 亚洲电影视频在线| 亚洲欧美综合在线精品| 日韩一区二区三区免费观看| 欧美一区欧美二区| 亚洲成人动漫在线观看| 亚洲国产高清不卡| 欧美xxxx在线观看| 日韩欧美一级在线播放| 欧美色图在线观看| 在线免费观看一区| 成人黄色网址在线观看| 精品一区二区三区免费视频| 一区二区高清在线| 一区二区在线免费观看| www.亚洲免费av| 成人在线视频一区| 国产精品影音先锋| 亚洲影院理伦片| 一区二区三区不卡在线观看| 欧美精品一区二区在线观看| 欧美丰满嫩嫩电影| 91精品国产入口| 精品嫩草影院久久| 国产欧美日韩精品一区| 精品在线你懂的| 成人精品视频网站| 午夜天堂影视香蕉久久| 日韩精品久久理论片| 蜜臀av一区二区在线观看 | 91亚洲精品久久久蜜桃| 国产乱子伦视频一区二区三区 | 欧美老肥妇做.爰bbww| 精品国产不卡一区二区三区| 久久无码av三级| 国产偷v国产偷v亚洲高清| 中文字幕第一区第二区| 一区二区三区在线观看网站| 日韩不卡手机在线v区| 国精产品一区一区三区mba视频| 国产日韩高清在线| 亚洲综合成人在线视频| 麻豆精品在线视频| 色综合天天综合狠狠| 欧美日本在线播放| 国产精品视频看| 国模一区二区三区白浆| 日韩精彩视频在线观看| 精品一区二区三区视频在线观看| 99国产精品久久久久久久久久| 51午夜精品国产| 亚洲日本免费电影| 高清国产一区二区| 精品国产伦一区二区三区免费| 中文字幕亚洲不卡| 成人午夜在线播放| 26uuu精品一区二区| 亚洲主播在线观看| 一本色道亚洲精品aⅴ| 久久久久亚洲蜜桃| 久久国产成人午夜av影院| 色呦呦日韩精品| 亚洲人成网站在线| 99在线热播精品免费| 欧美一区二区精美| 精品一二三四区| 国产日韩av一区| 高清视频一区二区| 亚洲蜜臀av乱码久久精品| 色综合天天综合狠狠| 日本在线观看不卡视频| 日韩精品一级中文字幕精品视频免费观看| 成人黄色免费短视频| 亚洲欧美日韩国产成人精品影院| 99精品在线观看视频| 亚洲成人一区二区| 欧美精品久久一区| 国产成人精品三级麻豆| 在线亚洲一区二区| 污片在线观看一区二区| 久久久久99精品一区| 成人av动漫在线| 亚洲一区二区欧美| 精品免费国产二区三区| 高清av一区二区| 99精品在线观看视频| 国产一区二区福利视频| 国产日韩欧美电影| 日本黄色一区二区| 亚洲一区二区3| 亚洲欧美韩国综合色| 国产精品嫩草99a| 亚洲天堂网中文字| 一区二区成人在线| 夜夜嗨av一区二区三区| 久久久.com| 国产午夜精品一区二区三区嫩草 | 久久久精品日韩欧美| 亚洲日本va在线观看| 亚洲日本免费电影| 亚洲欧美偷拍三级| 亚洲欧洲色图综合| 国产精品久久影院| 国产精品免费视频一区| 国产亚洲女人久久久久毛片| 日韩精品在线一区| 欧美mv和日韩mv的网站| 日韩一区二区三区精品视频 | 亚洲国产wwwccc36天堂| 亚洲美女视频在线观看| 综合自拍亚洲综合图不卡区| 欧美激情在线观看视频免费| 久久精品网站免费观看| 亚洲视频在线观看三级| 天天影视涩香欲综合网| 蜜臀va亚洲va欧美va天堂| 成人午夜电影小说| 欧美亚洲高清一区| 精品国产人成亚洲区| 亚洲日本欧美天堂| 国产精品99精品久久免费| 91网站在线观看视频| 日韩你懂的电影在线观看| 激情久久久久久久久久久久久久久久| 懂色av中文一区二区三区| 欧美在线观看一区| 日韩成人免费电影| 懂色av一区二区在线播放| 欧美一区二区在线不卡| 中文乱码免费一区二区| 狠狠久久亚洲欧美| 欧美日韩国产一二三| 亚洲日本乱码在线观看| 91原创在线视频| 亚洲丝袜制服诱惑| av电影天堂一区二区在线| 亚洲精品在线观| 国产一区二区福利| 久久综合色一综合色88| 激情综合网天天干| 欧美精品高清视频|