📄 porttable.c
字号:
/*
$Workfile: porttable.c $
$Revision: 1.76 $
$Date: Aug 23 2006 23:02:56 $
*/
//******************************************************************
//
// Copyright (C) 2002. GENESIS MICROCHIP INC.
// All rights reserved. No part of this program may be reproduced.
//
// Genesis Microchip Corp., 2150 Gold Street
// Alviso, CA 95002 USA
// Genesis Microchip Inc., 165 Commerce Valley Dr. West
// Thornhill, Ontario, Canada, L3T 7V8
//
//================================================================
//
// MODULE: porttable.c
//
// USAGE : This module contains the InputPortArray initialization.
//
//******************************************************************
//******************************************************************
// I N C L U D E F I L E S
//******************************************************************
#include "inc\all.h"
BYTE const far RGB_StdModeArray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,
11,12,13,14,15,16,17,18,19,20,21,
22,23,24,25,26,27,28,29,30,31,32,
33,34,35,36,37,38,39,40,41,
#ifdef PHOENIX_U
54,55,56,57,
#endif
42,43,44,45,46,47,48,49,50,51,0xff};
BYTE const far RGB_EstModeArray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,
0xff};
// for video input, place video modes first.
BYTE const far VIDEO_StdModeArray[] = {42,43,44,45,46,47,48,49,50,51,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,
11,12,13,14,15,16,17,18,19,20,21,
22,23,24,25,26,27,28,29,30,31,32,
33,34,35,36,37,38,39,40,41,0xff};
BYTE const far VIDEO_EstModeArray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,
0xff};
BYTE const far DVI_StdModeArray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,
11,12,13,14,15,16,17,18,19,20,21,
22,23,24,25,26,27,28,29,30,31,32,
33,34,35,36,37,38,39,40,41,
#ifdef PHOENIX_U
54,55,56,57,
#endif
42,43,44,45,46,47,48,49,50,51,0xff};
BYTE const far DVI_EstModeArray[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,
0xff};
#ifdef PHOENIX_U
BYTE const far VIDEO_CompStdModeArray[] = {42,43,44,45,46,47,48,49,50,51,52,53,
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,
15,16,17,18,19,20,21,22,23,24,25,
26,27,28,29,30,31,32,33,34,35,36,
37,38,39,40,41,0xff};
#else
BYTE const far VIDEO_CompStdModeArray[] = {42,43,44,45,46,47,48,49,50,51,
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,
15,16,17,18,19,20,21,22,23,24,25,
26,27,28,29,30,31,32,33,34,35,36,
37,38,39,40,41,0xff};
#endif
BYTE const far VIDEO_CompEstModeArray[] = {0,1,11,2,3,4,5,6,7,8,9,10,0xff};
BYTE const far VIDEO_MUXArray[] = {0,2,3,1,0xff};
gmt_SYNC_TYPE const far SyncArray[] =
{
gmd_DCS_SYNC, // composit sync
gmd_DSS_SYNC, // normal sync
gmd_SOG_SYNC, // SOG sync
0x00
};
gmt_SYNC_TYPE const far DviSyncArray[] =
{
gmd_DSS_SYNC, // normal sync
0x00
};
gmt_SYNC_TYPE const far VideoSyncArray[] =
{
#ifdef PHOENIX_U
gmd_VPORT_SYNC,
#else
gmd_DSS_SYNC,
#endif
0x00
};
gmt_SYNC_TYPE const far CompSyncArray[] =
{
#ifdef PHOENIX_U
gmd_SOG_SYNC,
#else
gmd_TRI_SYNC,
#endif
0x00
};
#ifdef PHOENIX_U
InputPortArrayType ROM InputPortArray[] = {
{ // 0
IP_RGB, //Port:3 Port on 52xx
#ifdef MUX_ON_PCD_RGB_ENABLE
MUX_ON_RGB, //MuxInput:3 If MUX attached, this is input on MUX.
gmd_TRUE, //MuxFlag gmd_TRUE if this is a MUX input.
#else
0x00, //MuxInput:3 If MUX attached, this is input on MUX.
gmd_FALSE, //MuxFlag gmd_TRUE if this is a MUX input.
#endif
gmd_FALSE, //YUV, gmd_TRUE if input is YUV.
gmd_FALSE, //Component, gmd_TRUE if Component source.
gmd_FALSE, //AudioFlag gmd_TRUE if audio config. required on this input.
#ifdef PHOENIX_U
USE_ACC_ACM | USE_ACM_3D, //ACC_En gmd_TRUE to enable ACC on this port.
USE_ACC_ACM | USE_ACM_3D, //ACM_En gmd_TRUE to enable AFM on this port.
#else
USE_ACC_ACM, //ACC_En gmd_TRUE to enable ACC on this port.
USE_ACC_ACM, //ACM_En gmd_TRUE to enable AFM on this port.
#endif
gmd_TRUE, //AFR_Enable gmd_TRUE to Enable AFR on this port.
gmd_FALSE, //SkipAutoScan, gmd_TRUE to skip port when performing an auto scan.
#ifdef MUX_ON_AUDIO_PATH_ENABLE
MUX_ON_PC_AUDIO, //AudioMuxInput, if Audio MUX attached, this is input on MUX.
#else
0x00, //AudioMuxInput, if Audio MUX attached, this is input on MUX.
#endif
// Video decoder related elements
DEV_NONE,//DeviceType, i.e. DEV_VPC3230
0x00, //InputFormat, i.e. VDD_MODE_NTSC device specific. see device header file
0x00, //VideoInput, i.e. VDD_INTYP_SVIDEO device specific. see divice header file
// Port scan and stability timeouts
100, // 50, //StabilityCheckTime how long to wait for sync while scanning Ports in 10ms units. // 1116
200, // 150, //StabilityHoldTime how long to wait while sync lost before scanning Ports in 10ms units. // 1116
10, //IsStablePeriod how long signal is stable before actually becoming stable in 10ms. units.
gmd_PCD_RGB,//PowerControlDeviceType PowerDev device enum to pass to PowerUp/DownDevice(dev)
SyncArray,// *SyncArray; NULL terminated ordered array of supported syncs.
RGB_StdModeArray, //*StdModeArray[] ptr to Array of StandardMode table indicies.
RGB_EstModeArray, //*EstModeArray[] ptr to Array of EstimatedMode table indicies.
NULL_PTR, // *UserTypeInfo ptr to additional data for future expansion
NULL_PTR, // *SystemTypeInfo ptr to additional data for future expansion
},
{ // 1
IP_DVI, // Port:3, Port on 52xx
#ifdef MUX_ON_PCD_DVI_ENABLE
MUX_ON_DVI_A, //MuxInput:3 If MUX attached, this is input on MUX.
gmd_TRUE, //MuxFlag gmd_TRUE if this is a MUX input.
#else
0x00, //MuxInput:3 If MUX attached, this is input on MUX.
gmd_FALSE, //MuxFlag gmd_TRUE if this is a MUX input.
#endif
gmd_FALSE, //YUV, gmd_TRUE if input is YUV.
gmd_FALSE, //Component, gmd_TRUE if Component source.
gmd_FALSE, //AudioFlag gmd_TRUE if audio config. required on this input.
#ifdef PHOENIX_U
USE_ACC_ACM | USE_ACM_3D, //ACC_En gmd_TRUE to enable ACC on this port.
USE_ACC_ACM | USE_ACM_3D, //ACM_En gmd_TRUE to enable AFM on this port.
#else
USE_ACC_ACM, //ACC_En gmd_TRUE to enable ACC on this port.
USE_ACC_ACM, //ACM_En gmd_TRUE to enable AFM on this port.
#endif
gmd_TRUE, //AFR_Enable gmd_TRUE to Enable AFR on this port.
gmd_FALSE, //SkipAutoScan, gmd_TRUE to skip port when performing an auto scan.
#ifdef MUX_ON_AUDIO_PATH_ENABLE
MUX_ON_PC_AUDIO, //AudioMuxInput, if Audio MUX attached, this is input on MUX.
#else
0x00, //AudioMuxInput, if Audio MUX attached, this is input on MUX.
#endif
// Video decoder related elements
DEV_NONE,//DeviceType, i.e. DEV_VPC3230
0x00, //InputFormat, i.e. VDD_MODE_NTSC device specific. see device header file
0x00, //VideoInput, i.e. VDD_INTYP_SVIDEO device specific. see divice header file
// Port scan and stability timeouts
// Louis, 0616. Add "RunDVI" in GSel, StabilityCheckTime 50 is not enough. Change to 100.
#if !defined(TUCSON) && HDCP_ENABLE_4TH
100, //StabilityCheckTime how long to wait for sync while scanning Ports in 10ms units.
250, //StabilityHoldTime how long to wait while sync lost before scanning Ports in 10ms units.
20, //IsStablePeriod how long signal is stable before actually becoming stable in 10ms. units.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -