pnl_defs.h revision f29dbc25
1/* Copyright (c) 2005 Advanced Micro Devices, Inc.
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to
5 * deal in the Software without restriction, including without limitation the
6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
9 *
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 * IN THE SOFTWARE.
20 *
21 * Neither the name of the Advanced Micro Devices, Inc. nor the names of its
22 * contributors may be used to endorse or promote products derived from this
23 * software without specific prior written permission.
24 * */
25
26/*
27 * File Contents:   This file contains definitions of the Geode frame buffer
28 *                  panel data structures.
29 *
30 * SubModule:       Geode FlatPanel library
31 * */
32
33#ifndef _pnl_defs_h
34#define _pnl_defs_h
35
36typedef enum
37{
38    MARMOT_PLATFORM = 0,
39    UNICORN_PLATFORM,
40    CENTAURUS_PLATFORM,
41    ARIES_PLATFORM,
42    CARMEL_PLATFORM,
43    HYDRA_PLATFORM,
44    DORADO_PLATFORM,
45    DRACO_PLATFORM,
46    REDCLOUD_PLATFORM,
47    OTHER_PLATFORM
48}
49SYS_BOARD;
50
51#define PNL_9210             0x01
52#define PNL_9211_A           0x02
53#define PNL_9211_C           0x04
54#define PNL_UNKNOWN_CHIP     0x08
55
56#define PNL_TFT              0x01
57#define PNL_SSTN             0x02
58#define PNL_DSTN             0x04
59#define PNL_TWOP             0x08
60#define PNL_UNKNOWN_PANEL    0x10
61
62#define PNL_MONO_PANEL       0x01
63#define PNL_COLOR_PANEL      0x02
64#define PNL_UNKNOWN_COLOR    0x08
65
66#define PNL_PANELPRESENT     0x01
67#define PNL_PLATFORM         0x02
68#define PNL_PANELCHIP        0x04
69#define PNL_PANELSTAT        0x08
70#define PNL_OVERRIDE_STAT    0x10
71#define PNL_OVERRIDE_ALL     0x1F
72
73typedef struct _Pnl_PanelStat_
74{
75    int Type;
76    int XRes;
77    int YRes;
78    int Depth;
79    int MonoColor;
80}
81Pnl_PanelStat;
82
83typedef struct _Pnl_Params_
84{
85    unsigned long Flags;
86    int PanelPresent;
87    int Platform;
88    int PanelChip;
89    Pnl_PanelStat PanelStat;
90}
91Pnl_PanelParams, *PPnl_PanelParams;
92
93#endif /* _pnl_defs_h */
94
95/* END OF FILE */
96