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