📄 cim_modes.c
字号:
/*
* <LIC_AMD_STD>
* Copyright (C) 2005 Advanced Micro Devices, Inc. All Rights Reserved.
* </LIC_AMD_STD>
*
* <CTL_AMD_STD>
* </CTL_AMD_STD>
*
* <DOC_AMD_STD>
* Cimarron mode tables.
* </DOC_AMD_STD>
*
*/
/*-------------------------------*/
/* PREDEFINED DISPLAY TIMINGS */
/*-------------------------------*/
VG_DISPLAY_MODE CimarronDisplayModes[] =
{
/* 320 x 240 PANEL */
{ VG_SUPPORTFLAG_75HZ | /* refresh rate = 75 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP | /* All BPP supported. */
VG_SUPPORTFLAG_PANEL, /* Panel Mode. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
VG_MODEFLAG_PANELOUT | /* Panel output. */
VG_MODEFLAG_NEG_HSYNC | VG_MODEFLAG_NEG_VSYNC | /* negative syncs */
VG_MODEFLAG_QVGA, /* QVGA Panel size. */
320, 240, /* No scaling. */
320, 240, /* 320x240 active */
320, 240, /* 320x240 panel */
0, 0, 0, 0, 0, /* No panel registers */
0x0140, 0x0148, 0x0162, 0x0180, 0x0188, 0x0190, /* horizontal timings */
0x00F0, 0x00F4, 0x00F9, 0x00FD, 0x00FF, 0x0104, /* vertical timings */
(31L << 16) | ((2000L * 65536L) / 10000L), /* freq = 31.2000 MHz */
},
/* 640 x 400 */
{ VG_SUPPORTFLAG_70HZ | /* refresh rate = 60 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
VG_MODEFLAG_NEG_HSYNC, /* negative HSYNC */
640, 400, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x280, 0x288, 0x290, 0x2F0, 0x318, 0x320, /* horizontal timings */
0x190, 0x197, 0x19C, 0x19E, 0x1BA, 0x1C1, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(25L << 16) | ((1750L * 65536L) / 10000L), /* freq = 25.175 MHz */
},
/* 640x480 */
{ VG_SUPPORTFLAG_60HZ | /* refresh rate = 60 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
VG_MODEFLAG_NEG_HSYNC | VG_MODEFLAG_NEG_VSYNC, /* negative syncs */
640, 480, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0288, 0x0290, 0x02E8, 0x0318, 0x0320, /* horizontal timings */
0x01E0, 0x01E8, 0x01EA, 0x01EC, 0x0205, 0x020D, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(25L << 16) | ((1750L * 65536L) / 10000L), /* freq = 25.175 MHz */
},
{ VG_SUPPORTFLAG_70HZ | /* refresh rate = 70 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
0,
640, 480, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0280, 0x0298, 0x02D8, 0x0330, 0x0330, /* horizontal timings */
0x01E0, 0x01E0, 0x01E2, 0x01E5, 0x01F4, 0x01F4, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(28L << 16) | ((5600L * 65536L) / 10000L), /* freq = 28.560 MHz */
},
{ VG_SUPPORTFLAG_72HZ | /* refresh rate = 72 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
VG_MODEFLAG_NEG_HSYNC | VG_MODEFLAG_NEG_VSYNC, /* negative syncs */
640, 480, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0288, 0x0298, 0x02c0, 0x0338, 0x0340, /* horizontal timings */
0x01e0, 0x01e8, 0x01e9, 0x01ec, 0x0200, 0x0208, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(31L << 16) | ((5000L * 65536L) / 10000L), /* freq = 31.5 MHz */
},
{ VG_SUPPORTFLAG_75HZ | /* refresh rate = 75 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
VG_MODEFLAG_NEG_HSYNC | VG_MODEFLAG_NEG_VSYNC, /* negative syncs */
640, 480, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0280, 0x0290, 0x02D0, 0x0348, 0x0348, /* horizontal timings */
0x01E0, 0x01E0, 0x01E1, 0x01E4, 0x01F4, 0x01F4, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(31L << 16) | ((5000L * 65536L) / 10000L), /* freq = 31.5 MHz */
},
{ VG_SUPPORTFLAG_85HZ | /* refresh rate = 85 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
VG_MODEFLAG_NEG_HSYNC | VG_MODEFLAG_NEG_VSYNC, /* negative syncs */
640, 480, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0280, 0x02B8, 0x02F0, 0x0340, 0x0340, /* horizontal timings */
0x01E0, 0x01E0, 0x01E1, 0x01E4, 0x01FD, 0x01FD, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(36L << 16) | ((0000L * 65536L) / 10000L), /* freq = 36.0 MHz */
},
{ VG_SUPPORTFLAG_90HZ | /* refresh rate = 90 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
0,
640, 480, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0280, 0x02A0, 0x02E0, 0x0340, 0x0340, /* horizontal timings */
0x01E0, 0x01E0, 0x01E1, 0x01E4, 0x01FA, 0x01FA, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(37L << 16) | ((8890L * 65536L) / 10000L), /* freq = 37.889 MHz */
},
{ VG_SUPPORTFLAG_100HZ | /* refresh rate = 100 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP, /* All BPP supported. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
0,
640, 480, /* No scaling. */
0, 0, /* No mode dimensions. */
0, 0, /* No panel dimensions. */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0280, 0x02A8, 0x02E8, 0x0350, 0x0350, /* horizontal timings */
0x01E0, 0x01E0, 0x01E1, 0x01E4, 0x01FD, 0x01FD, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(43L << 16) | ((1630L * 65536L) / 10000L), /* freq = 43.163 MHz */
},
/* 640 x 480 PANEL */
{ VG_SUPPORTFLAG_60HZ | /* refresh rate = 60 */
VG_SUPPORTFLAG_8BPP | VG_SUPPORTFLAG_12BPP |
VG_SUPPORTFLAG_15BPP | VG_SUPPORTFLAG_16BPP |
VG_SUPPORTFLAG_24BPP | VG_SUPPORTFLAG_32BPP | /* All BPP supported. */
VG_SUPPORTFLAG_PANEL, /* Panel Mode. */
VG_MODEFLAG_LOW_BAND | /* Low bandwidth mode. */
VG_MODEFLAG_PANELOUT | /* Panel output. */
VG_MODEFLAG_NEG_HSYNC | VG_MODEFLAG_NEG_VSYNC, /* negative syncs */
640, 480, /* No scaling. */
640, 480, /* 640x480 active */
640, 480, /* 640x480 panel */
0, 0, 0, 0, 0, /* No panel registers */
0x0280, 0x0280, 0x0290, 0x02E8, 0x0318, 0x0320, /* horizontal timings */
0x01E0, 0x01E0, 0x01EA, 0x01EC, 0x0205, 0x020D, /* vertical timings */
0, 0, 0, 0, 0, 0, /* No even timings */
(25L << 16) | ((1750L * 65536L) / 10000L), /* freq = 25.175 MHz */
},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -