Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/drivers/gpu/drm/ast/ast_tables.h
50868 views
1
/*
2
* Copyright (c) 2005 ASPEED Technology Inc.
3
*
4
* Permission to use, copy, modify, distribute, and sell this software and its
5
* documentation for any purpose is hereby granted without fee, provided that
6
* the above copyright notice appear in all copies and that both that
7
* copyright notice and this permission notice appear in supporting
8
* documentation, and that the name of the authors not be used in
9
* advertising or publicity pertaining to distribution of the software without
10
* specific, written prior permission. The authors makes no representations
11
* about the suitability of this software for any purpose. It is provided
12
* "as is" without express or implied warranty.
13
*
14
* THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16
* EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
* PERFORMANCE OF THIS SOFTWARE.
21
*/
22
/* Ported from xf86-video-ast driver */
23
24
#ifndef AST_TABLES_H
25
#define AST_TABLES_H
26
27
#include "ast_drv.h"
28
29
/* Std. Table Index Definition */
30
#define TextModeIndex 0
31
#define EGAModeIndex 1
32
#define VGAModeIndex 2
33
#define HiCModeIndex 3
34
#define TrueCModeIndex 4
35
36
static const struct ast_vbios_stdtable vbios_stdtable[] = {
37
/* MD_2_3_400 */
38
{
39
0x67,
40
{0x00,0x03,0x00,0x02},
41
{0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
42
0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00,
43
0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3,
44
0xff},
45
{0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
46
0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
47
0x0c,0x00,0x0f,0x08},
48
{0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
49
0xff}
50
},
51
/* Mode12/ExtEGATable */
52
{
53
0xe3,
54
{0x01,0x0f,0x00,0x06},
55
{0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e,
56
0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
57
0xe9,0x8b,0xdf,0x28,0x00,0xe7,0x04,0xe3,
58
0xff},
59
{0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
60
0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
61
0x01,0x00,0x0f,0x00},
62
{0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
63
0xff}
64
},
65
/* ExtVGATable */
66
{
67
0x2f,
68
{0x01,0x0f,0x00,0x0e},
69
{0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
70
0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
71
0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
72
0xff},
73
{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
74
0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
75
0x01,0x00,0x00,0x00},
76
{0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0f,
77
0xff}
78
},
79
/* ExtHiCTable */
80
{
81
0x2f,
82
{0x01,0x0f,0x00,0x0e},
83
{0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
84
0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
85
0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
86
0xff},
87
{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
88
0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
89
0x01,0x00,0x00,0x00},
90
{0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
91
0xff}
92
},
93
/* ExtTrueCTable */
94
{
95
0x2f,
96
{0x01,0x0f,0x00,0x0e},
97
{0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
98
0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
99
0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
100
0xff},
101
{0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
102
0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
103
0x01,0x00,0x00,0x00},
104
{0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
105
0xff}
106
},
107
};
108
109
#endif
110
111