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
3604007ebaSmrgtypedef enum {
37f29dbc25Smrg    MARMOT_PLATFORM = 0,
38f29dbc25Smrg    UNICORN_PLATFORM,
39f29dbc25Smrg    CENTAURUS_PLATFORM,
40f29dbc25Smrg    ARIES_PLATFORM,
41f29dbc25Smrg    CARMEL_PLATFORM,
42f29dbc25Smrg    HYDRA_PLATFORM,
43f29dbc25Smrg    DORADO_PLATFORM,
44f29dbc25Smrg    DRACO_PLATFORM,
45f29dbc25Smrg    REDCLOUD_PLATFORM,
46f29dbc25Smrg    OTHER_PLATFORM
4704007ebaSmrg} SYS_BOARD;
48f29dbc25Smrg
49f29dbc25Smrg#define PNL_9210             0x01
50f29dbc25Smrg#define PNL_9211_A           0x02
51f29dbc25Smrg#define PNL_9211_C           0x04
52f29dbc25Smrg#define PNL_UNKNOWN_CHIP     0x08
53f29dbc25Smrg
54f29dbc25Smrg#define PNL_TFT              0x01
55f29dbc25Smrg#define PNL_SSTN             0x02
56f29dbc25Smrg#define PNL_DSTN             0x04
57f29dbc25Smrg#define PNL_TWOP             0x08
58f29dbc25Smrg#define PNL_UNKNOWN_PANEL    0x10
59f29dbc25Smrg
60f29dbc25Smrg#define PNL_MONO_PANEL       0x01
61f29dbc25Smrg#define PNL_COLOR_PANEL      0x02
62f29dbc25Smrg#define PNL_UNKNOWN_COLOR    0x08
63f29dbc25Smrg
64f29dbc25Smrg#define PNL_PANELPRESENT     0x01
65f29dbc25Smrg#define PNL_PLATFORM         0x02
66f29dbc25Smrg#define PNL_PANELCHIP        0x04
67f29dbc25Smrg#define PNL_PANELSTAT        0x08
68f29dbc25Smrg#define PNL_OVERRIDE_STAT    0x10
69f29dbc25Smrg#define PNL_OVERRIDE_ALL     0x1F
70f29dbc25Smrg
7104007ebaSmrgtypedef struct _Pnl_PanelStat_ {
72f29dbc25Smrg    int Type;
73f29dbc25Smrg    int XRes;
74f29dbc25Smrg    int YRes;
75f29dbc25Smrg    int Depth;
76f29dbc25Smrg    int MonoColor;
7704007ebaSmrg} Pnl_PanelStat;
78f29dbc25Smrg
7904007ebaSmrgtypedef struct _Pnl_Params_ {
80f29dbc25Smrg    unsigned long Flags;
81f29dbc25Smrg    int PanelPresent;
82f29dbc25Smrg    int Platform;
83f29dbc25Smrg    int PanelChip;
84f29dbc25Smrg    Pnl_PanelStat PanelStat;
8504007ebaSmrg} Pnl_PanelParams, *PPnl_PanelParams;
86f29dbc25Smrg
8704007ebaSmrg#endif                          /* _pnl_defs_h */
88f29dbc25Smrg
89f29dbc25Smrg/* END OF FILE */
90