coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ast_tables.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TextModeIndex   0
 
#define EGAModeIndex   1
 
#define VGAModeIndex   2
 
#define HiCModeIndex   3
 
#define TrueCModeIndex   4
 
#define Charx8Dot   0x00000001
 
#define HalfDCLK   0x00000002
 
#define DoubleScanMode   0x00000004
 
#define LineCompareOff   0x00000008
 
#define HBorder   0x00000020
 
#define VBorder   0x00000010
 
#define WideScreenMode   0x00000100
 
#define NewModeInfo   0x00000200
 
#define NHSync   0x00000400
 
#define PHSync   0x00000800
 
#define NVSync   0x00001000
 
#define PVSync   0x00002000
 
#define SyncPP   (PVSync | PHSync)
 
#define SyncPN   (PVSync | NHSync)
 
#define SyncNP   (NVSync | PHSync)
 
#define SyncNN   (NVSync | NHSync)
 
#define AST2500PreCatchCRT   0x00004000
 
#define VCLK25_175   0x00
 
#define VCLK28_322   0x01
 
#define VCLK31_5   0x02
 
#define VCLK36   0x03
 
#define VCLK40   0x04
 
#define VCLK49_5   0x05
 
#define VCLK50   0x06
 
#define VCLK56_25   0x07
 
#define VCLK65   0x08
 
#define VCLK75   0x09
 
#define VCLK78_75   0x0A
 
#define VCLK94_5   0x0B
 
#define VCLK108   0x0C
 
#define VCLK135   0x0D
 
#define VCLK157_5   0x0E
 
#define VCLK162   0x0F
 
#define VCLK154   0x10
 
#define VCLK83_5   0x11
 
#define VCLK106_5   0x12
 
#define VCLK146_25   0x13
 
#define VCLK148_5   0x14
 
#define VCLK71   0x15
 
#define VCLK88_75   0x16
 
#define VCLK119   0x17
 
#define VCLK85_5   0x18
 
#define VCLK97_75   0x19
 
#define VCLK118_25   0x1A
 

Variables

static struct ast_vbios_dclk_info dclk_table []
 
static const struct ast_vbios_dclk_info dclk_table_ast2500 []
 
static struct ast_vbios_stdtable vbios_stdtable []
 
static const struct ast_vbios_enhtable res_640x480 []
 
static const struct ast_vbios_enhtable res_800x600 []
 
static const struct ast_vbios_enhtable res_1024x768 []
 
static const struct ast_vbios_enhtable res_1280x1024 []
 
static const struct ast_vbios_enhtable res_1600x1200 []
 
static const struct ast_vbios_enhtable res_1360x768 []
 
static const struct ast_vbios_enhtable res_1600x900 []
 
static const struct ast_vbios_enhtable res_1920x1080 []
 
static const struct ast_vbios_enhtable res_1280x800 []
 
static const struct ast_vbios_enhtable res_1440x900 []
 
static const struct ast_vbios_enhtable res_1680x1050 []
 
static const struct ast_vbios_enhtable res_1920x1200 []
 

Macro Definition Documentation

◆ AST2500PreCatchCRT

#define AST2500PreCatchCRT   0x00004000

Definition at line 30 of file ast_tables.h.

◆ Charx8Dot

#define Charx8Dot   0x00000001

Definition at line 14 of file ast_tables.h.

◆ DoubleScanMode

#define DoubleScanMode   0x00000004

Definition at line 16 of file ast_tables.h.

◆ EGAModeIndex

#define EGAModeIndex   1

Definition at line 9 of file ast_tables.h.

◆ HalfDCLK

#define HalfDCLK   0x00000002

Definition at line 15 of file ast_tables.h.

◆ HBorder

#define HBorder   0x00000020

Definition at line 18 of file ast_tables.h.

◆ HiCModeIndex

#define HiCModeIndex   3

Definition at line 11 of file ast_tables.h.

◆ LineCompareOff

#define LineCompareOff   0x00000008

Definition at line 17 of file ast_tables.h.

◆ NewModeInfo

#define NewModeInfo   0x00000200

Definition at line 21 of file ast_tables.h.

◆ NHSync

#define NHSync   0x00000400

Definition at line 22 of file ast_tables.h.

◆ NVSync

#define NVSync   0x00001000

Definition at line 24 of file ast_tables.h.

◆ PHSync

#define PHSync   0x00000800

Definition at line 23 of file ast_tables.h.

◆ PVSync

#define PVSync   0x00002000

Definition at line 25 of file ast_tables.h.

◆ SyncNN

#define SyncNN   (NVSync | NHSync)

Definition at line 29 of file ast_tables.h.

◆ SyncNP

#define SyncNP   (NVSync | PHSync)

Definition at line 28 of file ast_tables.h.

◆ SyncPN

#define SyncPN   (PVSync | NHSync)

Definition at line 27 of file ast_tables.h.

◆ SyncPP

#define SyncPP   (PVSync | PHSync)

Definition at line 26 of file ast_tables.h.

◆ TextModeIndex

#define TextModeIndex   0

Definition at line 8 of file ast_tables.h.

◆ TrueCModeIndex

#define TrueCModeIndex   4

Definition at line 12 of file ast_tables.h.

◆ VBorder

#define VBorder   0x00000010

Definition at line 19 of file ast_tables.h.

◆ VCLK106_5

#define VCLK106_5   0x12

Definition at line 52 of file ast_tables.h.

◆ VCLK108

#define VCLK108   0x0C

Definition at line 45 of file ast_tables.h.

◆ VCLK118_25

#define VCLK118_25   0x1A

Definition at line 60 of file ast_tables.h.

◆ VCLK119

#define VCLK119   0x17

Definition at line 57 of file ast_tables.h.

◆ VCLK135

#define VCLK135   0x0D

Definition at line 46 of file ast_tables.h.

◆ VCLK146_25

#define VCLK146_25   0x13

Definition at line 53 of file ast_tables.h.

◆ VCLK148_5

#define VCLK148_5   0x14

Definition at line 54 of file ast_tables.h.

◆ VCLK154

#define VCLK154   0x10

Definition at line 50 of file ast_tables.h.

◆ VCLK157_5

#define VCLK157_5   0x0E

Definition at line 47 of file ast_tables.h.

◆ VCLK162

#define VCLK162   0x0F

Definition at line 48 of file ast_tables.h.

◆ VCLK25_175

#define VCLK25_175   0x00

Definition at line 33 of file ast_tables.h.

◆ VCLK28_322

#define VCLK28_322   0x01

Definition at line 34 of file ast_tables.h.

◆ VCLK31_5

#define VCLK31_5   0x02

Definition at line 35 of file ast_tables.h.

◆ VCLK36

#define VCLK36   0x03

Definition at line 36 of file ast_tables.h.

◆ VCLK40

#define VCLK40   0x04

Definition at line 37 of file ast_tables.h.

◆ VCLK49_5

#define VCLK49_5   0x05

Definition at line 38 of file ast_tables.h.

◆ VCLK50

#define VCLK50   0x06

Definition at line 39 of file ast_tables.h.

◆ VCLK56_25

#define VCLK56_25   0x07

Definition at line 40 of file ast_tables.h.

◆ VCLK65

#define VCLK65   0x08

Definition at line 41 of file ast_tables.h.

◆ VCLK71

#define VCLK71   0x15

Definition at line 55 of file ast_tables.h.

◆ VCLK75

#define VCLK75   0x09

Definition at line 42 of file ast_tables.h.

◆ VCLK78_75

#define VCLK78_75   0x0A

Definition at line 43 of file ast_tables.h.

◆ VCLK83_5

#define VCLK83_5   0x11

Definition at line 51 of file ast_tables.h.

◆ VCLK85_5

#define VCLK85_5   0x18

Definition at line 58 of file ast_tables.h.

◆ VCLK88_75

#define VCLK88_75   0x16

Definition at line 56 of file ast_tables.h.

◆ VCLK94_5

#define VCLK94_5   0x0B

Definition at line 44 of file ast_tables.h.

◆ VCLK97_75

#define VCLK97_75   0x19

Definition at line 59 of file ast_tables.h.

◆ VGAModeIndex

#define VGAModeIndex   2

Definition at line 10 of file ast_tables.h.

◆ WideScreenMode

#define WideScreenMode   0x00000100

Definition at line 20 of file ast_tables.h.

Variable Documentation

◆ dclk_table

struct ast_vbios_dclk_info dclk_table[]
static
Initial value:
= {
{0x2C, 0xE7, 0x03},
{0x95, 0x62, 0x03},
{0x67, 0x63, 0x01},
{0x76, 0x63, 0x01},
{0xEE, 0x67, 0x01},
{0x82, 0x62, 0x01},
{0xC6, 0x64, 0x01},
{0x94, 0x62, 0x01},
{0x80, 0x64, 0x00},
{0x7B, 0x63, 0x00},
{0x67, 0x62, 0x00},
{0x7C, 0x62, 0x00},
{0x8E, 0x62, 0x00},
{0x85, 0x24, 0x00},
{0x67, 0x22, 0x00},
{0x6A, 0x22, 0x00},
{0x4d, 0x4c, 0x80},
{0xa7, 0x78, 0x80},
{0x28, 0x49, 0x80},
{0x37, 0x49, 0x80},
{0x1f, 0x45, 0x80},
{0x47, 0x6c, 0x80},
{0x25, 0x65, 0x80},
{0x77, 0x58, 0x80},
{0x32, 0x67, 0x80},
{0x6a, 0x6d, 0x80},
{0x3b, 0x2c, 0x81},
}

Definition at line 1 of file ast_tables.h.

Referenced by ast_set_dclk_reg().

◆ dclk_table_ast2500

const struct ast_vbios_dclk_info dclk_table_ast2500[]
static
Initial value:
= {
{0x2C, 0xE7, 0x03},
{0x95, 0x62, 0x03},
{0x67, 0x63, 0x01},
{0x76, 0x63, 0x01},
{0xEE, 0x67, 0x01},
{0x82, 0x62, 0x01},
{0xC6, 0x64, 0x01},
{0x94, 0x62, 0x01},
{0x80, 0x64, 0x00},
{0x7B, 0x63, 0x00},
{0x67, 0x62, 0x00},
{0x7C, 0x62, 0x00},
{0x8E, 0x62, 0x00},
{0x85, 0x24, 0x00},
{0x67, 0x22, 0x00},
{0x6A, 0x22, 0x00},
{0x4d, 0x4c, 0x80},
{0x68, 0x6f, 0x80},
{0x28, 0x49, 0x80},
{0x37, 0x49, 0x80},
{0x1f, 0x45, 0x80},
{0x47, 0x6c, 0x80},
{0x25, 0x65, 0x80},
{0x58, 0x01, 0x42},
{0x32, 0x67, 0x80},
{0x6a, 0x6d, 0x80},
{0x44, 0x20, 0x43},
}

Definition at line 1 of file ast_tables.h.

Referenced by ast_set_dclk_reg().

◆ res_1024x768

const struct ast_vbios_enhtable res_1024x768[]
static
Initial value:
= {
{1344, 1024, 24, 136, 806, 768, 3, 6, VCLK65,
(SyncNN | Charx8Dot), 60, 1, 0x31 },
{1328, 1024, 24, 136, 806, 768, 3, 6, VCLK75,
(SyncNN | Charx8Dot), 70, 2, 0x31 },
{1312, 1024, 16, 96, 800, 768, 1, 3, VCLK78_75,
(SyncPP | Charx8Dot), 75, 3, 0x31 },
{1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5,
(SyncPP | Charx8Dot), 84, 4, 0x31 },
{1376, 1024, 48, 96, 808, 768, 1, 3, VCLK94_5,
(SyncPP | Charx8Dot), 0xFF, 4, 0x31 },
}
#define VCLK78_75
Definition: ast_tables.h:43
#define SyncPP
Definition: ast_tables.h:26
#define SyncNN
Definition: ast_tables.h:29
#define VCLK94_5
Definition: ast_tables.h:44
#define VCLK75
Definition: ast_tables.h:42
#define Charx8Dot
Definition: ast_tables.h:14
#define VCLK65
Definition: ast_tables.h:41

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1280x1024

const struct ast_vbios_enhtable res_1280x1024[]
static
Initial value:
= {
{1688, 1280, 48, 112, 1066, 1024, 1, 3, VCLK108,
(SyncPP | Charx8Dot), 60, 1, 0x32 },
{1688, 1280, 16, 144, 1066, 1024, 1, 3, VCLK135,
(SyncPP | Charx8Dot), 75, 2, 0x32 },
{1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5,
(SyncPP | Charx8Dot), 85, 3, 0x32 },
{1728, 1280, 64, 160, 1072, 1024, 1, 3, VCLK157_5,
(SyncPP | Charx8Dot), 0xFF, 3, 0x32 },
}
#define VCLK157_5
Definition: ast_tables.h:47
#define VCLK108
Definition: ast_tables.h:45
#define VCLK135
Definition: ast_tables.h:46

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1280x800

const struct ast_vbios_enhtable res_1280x800[]
static
Initial value:
= {
{1440, 1280, 48, 32, 823, 800, 3, 6, VCLK71,
AST2500PreCatchCRT), 60, 1, 0x35 },
{1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5,
{1680, 1280, 72,128, 831, 800, 3, 6, VCLK83_5,
}
#define AST2500PreCatchCRT
Definition: ast_tables.h:30
#define LineCompareOff
Definition: ast_tables.h:17
#define WideScreenMode
Definition: ast_tables.h:20
#define SyncNP
Definition: ast_tables.h:28
#define SyncPN
Definition: ast_tables.h:27
#define VCLK71
Definition: ast_tables.h:55
#define VCLK83_5
Definition: ast_tables.h:51
#define NewModeInfo
Definition: ast_tables.h:21

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1360x768

const struct ast_vbios_enhtable res_1360x768[]
static
Initial value:
= {
{1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5,
{1792, 1360, 64, 112, 795, 768, 3, 6, VCLK85_5,
AST2500PreCatchCRT), 0xFF, 1, 0x39 },
}
#define VCLK85_5
Definition: ast_tables.h:58

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1440x900

const struct ast_vbios_enhtable res_1440x900[]
static
Initial value:
= {
{1600, 1440, 48, 32, 926, 900, 3, 6, VCLK88_75,
AST2500PreCatchCRT), 60, 1, 0x36 },
{1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5,
{1904, 1440, 80,152, 934, 900, 3, 6, VCLK106_5,
}
#define VCLK88_75
Definition: ast_tables.h:56
#define VCLK106_5
Definition: ast_tables.h:52

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1600x1200

const struct ast_vbios_enhtable res_1600x1200[]
static
Initial value:
= {
{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162,
(SyncPP | Charx8Dot), 60, 1, 0x33 },
{2160, 1600, 64, 192, 1250, 1200, 1, 3, VCLK162,
(SyncPP | Charx8Dot), 0xFF, 1, 0x33 },
}
#define VCLK162
Definition: ast_tables.h:48

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1600x900

const struct ast_vbios_enhtable res_1600x900[]
static
Initial value:
= {
{1760, 1600, 48, 32, 926, 900, 3, 5, VCLK97_75,
AST2500PreCatchCRT), 60, 1, 0x3A },
{2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25,
{2112, 1600, 88, 168, 934, 900, 3, 5, VCLK118_25,
}
#define VCLK118_25
Definition: ast_tables.h:60
#define VCLK97_75
Definition: ast_tables.h:59

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1680x1050

const struct ast_vbios_enhtable res_1680x1050[]
static
Initial value:
= {
{1840, 1680, 48, 32, 1080, 1050, 3, 6, VCLK119,
AST2500PreCatchCRT), 60, 1, 0x37 },
{2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25,
{2240, 1680,104,176, 1089, 1050, 3, 6, VCLK146_25,
}
#define VCLK146_25
Definition: ast_tables.h:53
#define VCLK119
Definition: ast_tables.h:57

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1920x1080

const struct ast_vbios_enhtable res_1920x1080[]
static
Initial value:
= {
{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5,
AST2500PreCatchCRT), 60, 1, 0x38 },
{2200, 1920, 88, 44, 1125, 1080, 4, 5, VCLK148_5,
AST2500PreCatchCRT), 0xFF, 1, 0x38 },
}
#define VCLK148_5
Definition: ast_tables.h:54

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_1920x1200

const struct ast_vbios_enhtable res_1920x1200[]
static
Initial value:
= {
{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154,
AST2500PreCatchCRT), 60, 1, 0x34 },
{2080, 1920, 48, 32, 1235, 1200, 3, 6, VCLK154,
AST2500PreCatchCRT), 0xFF, 1, 0x34 },
}
#define VCLK154
Definition: ast_tables.h:50

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_640x480

const struct ast_vbios_enhtable res_640x480[]
static
Initial value:
= {
{ 800, 640, 8, 96, 525, 480, 2, 2, VCLK25_175,
(SyncNN | HBorder | VBorder | Charx8Dot), 60, 1, 0x2E },
{ 832, 640, 16, 40, 520, 480, 1, 3, VCLK31_5,
(SyncNN | HBorder | VBorder | Charx8Dot), 72, 2, 0x2E },
{ 840, 640, 16, 64, 500, 480, 1, 3, VCLK31_5,
(SyncNN | Charx8Dot) , 75, 3, 0x2E },
{ 832, 640, 56, 56, 509, 480, 1, 3, VCLK36,
(SyncNN | Charx8Dot) , 85, 4, 0x2E },
{ 832, 640, 56, 56, 509, 480, 1, 3, VCLK36,
(SyncNN | Charx8Dot) , 0xFF, 4, 0x2E },
}
#define VBorder
Definition: ast_tables.h:19
#define VCLK31_5
Definition: ast_tables.h:35
#define VCLK36
Definition: ast_tables.h:36
#define VCLK25_175
Definition: ast_tables.h:33
#define HBorder
Definition: ast_tables.h:18

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ res_800x600

const struct ast_vbios_enhtable res_800x600[]
static
Initial value:
= {
{1024, 800, 24, 72, 625, 600, 1, 2, VCLK36,
(SyncPP | Charx8Dot), 56, 1, 0x30 },
{1056, 800, 40, 128, 628, 600, 1, 4, VCLK40,
(SyncPP | Charx8Dot), 60, 2, 0x30 },
{1040, 800, 56, 120, 666, 600, 37, 6, VCLK50,
(SyncPP | Charx8Dot), 72, 3, 0x30 },
{1056, 800, 16, 80, 625, 600, 1, 3, VCLK49_5,
(SyncPP | Charx8Dot), 75, 4, 0x30 },
{1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25,
(SyncPP | Charx8Dot), 84, 5, 0x30 },
{1048, 800, 32, 64, 631, 600, 1, 3, VCLK56_25,
(SyncPP | Charx8Dot), 0xFF, 5, 0x30 },
}
#define VCLK49_5
Definition: ast_tables.h:38
#define VCLK50
Definition: ast_tables.h:39
#define VCLK56_25
Definition: ast_tables.h:40
#define VCLK40
Definition: ast_tables.h:37

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info().

◆ vbios_stdtable

struct ast_vbios_stdtable vbios_stdtable[]
static

Definition at line 1 of file ast_tables.h.

Referenced by ast_get_vbios_mode_info(), and ast_set_std_reg().