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

📄 xport.h

📁 一个两碟控制的VCD的代码,两碟之间的转动及连续播放,已大量生产的CODE.
💻 H
字号:
/* SCCSID @(#)xport.h	1.34 2/25/98 *//* * $Log$ */#ifndef __XPORT_H__#define __XPORT_H__#include "common.h"/**************************************************************************** The various xport types ****************************************************************************/#define MULTI_XPORT            -1#define MPEG1_PS               	0#define AUDIO_ELM_ONLY          1#define VIDEO_ELM_ONLY          2#define DSS_SIMPLE           	3#define DVD_SIMPLE		4#define PS_SIMPLE		5/**************************************************************************** Various defines ****************************************************************************/#define XPORT_RESET     0x00000001#define XPORT_LDMC      0x00000002#define XPORT_LDPID     0x00000004#define XPORT_ENDN      0x00000008#define XPORT_FLUSHCAM  0x00000010#define XPORT_NEEDRST   0x00000020/************************************************************************ * Entry points (or offsets) of various transport microcode.		* *									* * Assignments here have to be kept consistent with the transport	* * microcode (xport11.xpc, xport20.xpc and mp1cdda.xpc)			* ************************************************************************//*  * Shared entry points for 1.1 transport mircocode (xport11), 2.0 * transport microcode (xport20), and CD/file transport microcode (mp1cdda) */#define	XPORT_OFFSET_FUZZY_PLAY		0	/* For fuzzyPlay	*/#define	XPORT_OFFSET_PLAY_CDDA		2	/* For playSector	*//*  * Shared entry points for xport11 and mp1cdda. */#define	XPORT_OFFSET_ALL_ZERO		3	/* Detection of all 0	*//*  * Entry points unqiue to xport20 */#define	XPORT_OFFSET_PLAY_SECTOR	3	/* For playSector	*/#define	XPORT_OFFSET_GET_SECTOR		4	/* For getSector	*/#define	XPORT_OFFSET_LOAD_GETSECTOR_LOW3 5	/* Load the counter 3 low*/#define	XPORT_OFFSET_STOP		6	/* Stop copying		*/#define	XPORT_OFFSET_STOP_STATE		7	/* Stop copying (drain)	*/#define	XPORT_OFFSET_BEG_MM		8	/* For MM of begCDtime	*/#define	XPORT_OFFSET_BEG_SS		10	/* For SS of begCDtime	*/#define	XPORT_OFFSET_BEG_FF		13	/* For FF of begCDtime	*/#define	XPORT_OFFSET_END_MM		15	/* For MM of endCDtime	*/#define	XPORT_OFFSET_END_SS		17	/* For SS of endCDtime	*/#define	XPORT_OFFSET_END_FF		20	/* For FF of endCDtime	*/#define	XPORT_OFFSET_MATCH_CHANNEL	23	/* Matching channel no.	*//* * Unique entry pints for DVDVCD */#define	XPORT_FLUSH_PIPE		28	/* Start pipe flush	*/#define	XPORT_FIND_SYNC2_END		36	/* End of 2nd find synd	*//************************************************************************ * Entry points (or offsets) of transport's CAM				* *									* * Assignments here have to be kept consistent with the transport pid	* * table.								* ************************************************************************/#ifdef XPORT11#define	XPORT_PID_E0			1	/* MPEG video		*/#define	XPORT_PID_C0			2	/* MPEG audio		*/#define	XPORT_PID_E1E2			3	/* Low/high still	*/#else/* XPORT20 */#define	XPORT_PID_E0			16	/* MPEG video		*/#define	XPORT_PID_C0			17	/* MPEG audio		*/#define	XPORT_PID_E1E2			18	/* Low/high still	*/#define	XPORT_PID_B7			19	/* Sequence end code	*/#endif/************************************************************************ * Xport CAM's bit definition (refer to ERS)				* ************************************************************************/#define	PID_ID(x)		(0x200000 | (x << 8))#define	PID_COUNTER(x)		(0x10 | (x << 3))#define	PID_DEST_VIDEO		(0x0)#define	PID_DEST_AUDIO		(0x2)#define	PID_DEST_AUX		(0x4)#define	PID_DEST_USER		(0x6)#define	PID_DEST_RISC		(0x1)#define	PID_DEST_JUNK		(0x3)GBLDEF_0(volatile unsigned int XPORT_active, 0);	/* Is XPORT active?*/GBLDEF_0(unsigned int XPORT_start, 0);	/* Set when XPORT is restarted.	*/GBLDEF_0(int XPORT_fifo_length, 0);	/* Number of items in XPORT FIFO*/extern	unsigned short XPORT_fifo[];	/* Data in XPORT->RISC FIFO	*/int	XPORT_init(int xport_type, int xfer_mode);int	XPORT_interrupt_service(void);void	XPORT_restart_at(int addr, int swap);void	XPORT_restore_e0_c0(void);void	XPORT_play20video(int, int);void	XPORT_loadstill(int);void 	XPORT_flushGateway(void);void	XPORT_load_ucode(int *, int);#endif /* __XPORT_H__ */

⌨️ 快捷键说明

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