📄 sysinfo.h
字号:
/* Copyright 1996, ESS Technology, Inc. *//* SCCSID @(#)sysinfo.h 4.23.1.7 02/22/05 */ /* * $Log$ */#ifndef __SYSINFO_H__#define __SYSINFO_H__#include "ioport.h"#include "constvar.h"#include <setjmp.h>#include "config.h"/* * Custom settings */#ifdef VCDLC#define NAV_MENU_BKGD COLOR_BLUE#else#define NAV_MENU_BKGD COLOR_BLACK#endif /* VCDLC *//* Make sure that both ABV and PCM are integer multiples of CDDA_chunk. */#define CDDA_chunk 128 /* Different drive manufactural */#define CD_TOSHIBA 0 /* Toshiba 9269 (not tested!!) */#define CD_GDT3000 3 /* GDT3000 servo */#define CD_MITSUBISHI 0 /* Mitsubish IIS format */#define CD_THOMSON 0 /* Thomson DSP */#define CD_SANYO 1 /* Sanyo CD */#define CD_PHILIPS 2 /* Philips CD */#define CD_SONY 3 /* Sony 2500/Samsung CD */#define CD_MATSUSHITA 4 /* Matsushita DSP *//* TV encoder/TV mode selection */#define TV_PAL 0 /* Set encoder to PAL mode */#define TV_NTSC 1 /* Set encoder to NTSC mode */#define TV_AUTO 2 /* Depend on disk being played to set */#define TV_INVALID 3 /* Invalid value *//* For showingLogo */#define SHOWING_NOLOGO 0#define SHOWING_POWERUPLOGO 1#define SHOWING_CDDALOGO 1 /* Set to 2 if a different CDDA * * logo is used. */#define PREPARE_DETECTION /* no more mvd_version */#define DETECT_NTSC IS_TV_NTSC#ifdef CDG#ifdef EXCK_REVERSEDGBLDEF(unsigned int EXCK_CLOCK_EDGE, 0x03);#elseGBLDEF(unsigned int EXCK_CLOCK_EDGE, 0x01);#endifGBLDEF(int cdg_code_ready, 0);/*----------------------------------------------- cdg_trick_mode = 0; CDG keep going in FF/FR cdg_trick_mode = 1; CDG skip in FF/FR cdg_trick_mode = 2; CDG stop when FF/FR ------------------------------------------------*/GBLDEF(int cdg_trick_mode, 1);#ifdef DEMUX_ON_FLYGBLDEF(int demux_rom_start, 0);extern void Switch_demux_base(int on);#endif#endifGBLDEF_0(int gbl_define_flg, 0);/*bit 0 for ANTI_SHOCK definition *//*bit 1 for MIC_RECORD definition *//*bit 2 for SCLK_USE_AUX definition *//*bit 3 for FOK_USE_SENS definition *//*bit 4 for DSC_ENABLE_S0S1 definition *//*bit 5 for DSC_ENABLE_C2PO definition *//*bit 6 for CDG or CD_TEXT definition */#define ANTI_SHOCK_ENABLE (gbl_define_flg&0x01)#define MIC_RECORD_ENABLE (gbl_define_flg&0x02)#define SCLK_AUX_ENABLE (gbl_define_flg&0x04)#define FOK_SENS_SHARE (gbl_define_flg&0x08)#define DSC_S0S1_ENABLE (gbl_define_flg&0x10)#define DSC_C2PO_ENABLE (gbl_define_flg&0x20)#define CDG_CDT_ENABLE (gbl_define_flg&0x40)#ifdef PLAYONLYGBLDEF_0(volatile int PO_newdata, 0); /* 1 changing from guess to CDDA* * 2 changing from guess to VCD * * 3 changing to "guess mode" */GBLDEF(char showingLogo, SHOWING_POWERUPLOGO); /* Which logo is shown */#elseGBLDEF(char showingLogo, 0); /* non-zero: currently displaying logo */#endif /* PLAYONLY */#define GAME_GB 0x20#define GAME_INES 0x60#define MP3_ID 0x01#define WMA_ID 0x02#define MP3CDG_ID 0x03#define AVI_ID 0x04#define JPEG_ID 0x10#define GAME_GB_ID 0x20#define GAME_NES_ID 0x60GBLDEF_0(int STREAM_type, 0); /* 0 for normal VCD Audio/Video * * other for MP3/GAME */#ifdef VCDLC/* Show B Frame only for VCD */GBLDEF_0(int Show_BF_Only, 0);#endifGBLDEF_0(int AUD_n_frames, 0); GBLDEF_0(int what_to_do_count, 0);GBLDEF_0(int ready_to_switch, 0);GBLDEF_0(int audio_is_way_ahead, 0);GBLDEF_0(int video_is_way_ahead, 0);GBLDEF_0(int current_task, 0);GBLDEF(int picture_type, 0xe0);#ifdef WATCHDOGGBLDEF_0(jmp_buf err_buf, {0});#endifGBLDEF_0(volatile int flush_thy_video, 0);GBLDEF_0(int flush_done, 0);GBLDEF_0(int dont_need_flush_video, 0);GBLDEF_0(int MP3CDG_started, 0);void MP3CDG_get_frames(int index);void MP3CDG_service();GBLDEF_0(int is_jpeg, 0); /* referenced in protected code */#ifdef WMA_DECGBLDEF_0(volatile int flush_thy_audio, 0);#endifGBLDEF(int beam_offset, 16*2);GBLDEF_0(int VBV_fullness, 0);GBLDEF_0(int ABV_fullness, 0);GBLDEF_0(int PCM_fullness, 0);#ifndef VCDLCGBLDEF_0(int AS_ABV_fullness, 0); /* ANTI_SHOCK */#endifGBLDEF(int keep_mzoom_in_reset, 1);#ifdef ERROR_CONCEALMENT/* * For non-C2PO error concealment in e0, we have three modes to handle bad * video: * (1) when error_concealment_concealment = 0, we will be in auto mode and * adaptively switch between BLOCKY or JERKY depending on EC_index value * (see EC_index description in cust_error_mode() of top.c). * (2) when error_concealment_concealment = 1, we will use JERKY mode. * (3) when error_concealment_concealment = 2, we will use BLOCKY mode. * * NOTE: "error_concealment_mode" and "EC_Index" are customizable. Other * variables (including "concealment_mode") are for internal use and * not intended to be customized. */GBLDEF(int error_concealment_mode, 0); /* 0: auto, 1: jerky, 2: blocky */#ifdef ESS3721GBLDEF(int EC_Index, 6);#elseGBLDEF(int EC_Index, 4); /* more blocky */#endif/* * For C2PO-enabled error concealment in e0, * if we get video error packs more than * VID_error_threshold in latest 1 second, we * reset the concealment_mode to JERKY MODE, * otherwise we use BLOCKY MODE, which gives * us more smooth result. * The threshold can be set by customers.(0-15) */GBLDEF(int VID_error_threshold, 2);/* Internal error-concealment variables */typedef enum { BLOCKY, JERKY} CONCEALMENT_MODE;GBLDEF(CONCEALMENT_MODE concealment_mode, JERKY); /* NOT for customization */GBLDEF_0(int Time_K_Threshold, 2);GBLDEF_0(int last_check_frame, 0);GBLDEF_0(int last_check_time, 0);GBLDEF_0(int video_error, 0);GBLDEF(int Copy_B_in_progress, 0);#endifEXPORT void system_reset(void);EXPORT void system_start(void);EXPORT void system_audio_partial_reset(int);EXPORT void hardware_reset(int);#endif /* __SYSINFO_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -