171d7fec4Smrg/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/panel/pnl_defs.h,v 1.1 2002/12/10 15:12:28 alanh Exp $ */
271d7fec4Smrg/*
371d7fec4Smrg * $Workfile: pnl_defs.h $
471d7fec4Smrg *
571d7fec4Smrg * File Contents:   This file contains definitions of the Geode
671d7fec4Smrg *                  frame buffer panel data structures.
771d7fec4Smrg *
871d7fec4Smrg * SubModule:       Geode FlatPanel library
971d7fec4Smrg *
1071d7fec4Smrg */
1171d7fec4Smrg
1271d7fec4Smrg/*
1371d7fec4Smrg * NSC_LIC_ALTERNATIVE_PREAMBLE
1471d7fec4Smrg *
1571d7fec4Smrg * Revision 1.0
1671d7fec4Smrg *
1771d7fec4Smrg * National Semiconductor Alternative GPL-BSD License
1871d7fec4Smrg *
1971d7fec4Smrg * National Semiconductor Corporation licenses this software
2071d7fec4Smrg * ("Software"):
2171d7fec4Smrg *
2271d7fec4Smrg * Panel Library
2371d7fec4Smrg *
2471d7fec4Smrg * under one of the two following licenses, depending on how the
2571d7fec4Smrg * Software is received by the Licensee.
2671d7fec4Smrg *
2771d7fec4Smrg * If this Software is received as part of the Linux Framebuffer or
2871d7fec4Smrg * other GPL licensed software, then the GPL license designated
2971d7fec4Smrg * NSC_LIC_GPL applies to this Software; in all other circumstances
3071d7fec4Smrg * then the BSD-style license designated NSC_LIC_BSD shall apply.
3171d7fec4Smrg *
3271d7fec4Smrg * END_NSC_LIC_ALTERNATIVE_PREAMBLE */
3371d7fec4Smrg
3471d7fec4Smrg/* NSC_LIC_BSD
3571d7fec4Smrg *
3671d7fec4Smrg * National Semiconductor Corporation Open Source License for
3771d7fec4Smrg *
3871d7fec4Smrg * Panel Library
3971d7fec4Smrg *
4071d7fec4Smrg * (BSD License with Export Notice)
4171d7fec4Smrg *
4271d7fec4Smrg * Copyright (c) 1999-2001
4371d7fec4Smrg * National Semiconductor Corporation.
4471d7fec4Smrg * All rights reserved.
4571d7fec4Smrg *
4671d7fec4Smrg * Redistribution and use in source and binary forms, with or without
4771d7fec4Smrg * modification, are permitted provided that the following conditions
4871d7fec4Smrg * are met:
4971d7fec4Smrg *
5071d7fec4Smrg *   * Redistributions of source code must retain the above copyright
5171d7fec4Smrg *     notice, this list of conditions and the following disclaimer.
5271d7fec4Smrg *
5371d7fec4Smrg *   * Redistributions in binary form must reproduce the above
5471d7fec4Smrg *     copyright notice, this list of conditions and the following
5571d7fec4Smrg *     disclaimer in the documentation and/or other materials provided
5671d7fec4Smrg *     with the distribution.
5771d7fec4Smrg *
5871d7fec4Smrg *   * Neither the name of the National Semiconductor Corporation nor
5971d7fec4Smrg *     the names of its contributors may be used to endorse or promote
6071d7fec4Smrg *     products derived from this software without specific prior
6171d7fec4Smrg *     written permission.
6271d7fec4Smrg *
6371d7fec4Smrg * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
6471d7fec4Smrg * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
6571d7fec4Smrg * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
6671d7fec4Smrg * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
6771d7fec4Smrg * NATIONAL SEMICONDUCTOR CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY
6871d7fec4Smrg * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
6971d7fec4Smrg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
7071d7fec4Smrg * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
7171d7fec4Smrg * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
7271d7fec4Smrg * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE,
7371d7fec4Smrg * INTELLECTUAL PROPERTY INFRINGEMENT, OR OTHERWISE) ARISING IN ANY WAY
7471d7fec4Smrg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
7571d7fec4Smrg * OF SUCH DAMAGE.
7671d7fec4Smrg *
7771d7fec4Smrg * EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF
7871d7fec4Smrg * YOUR JURISDICTION. It is licensee's responsibility to comply with
7971d7fec4Smrg * any export regulations applicable in licensee's jurisdiction. Under
8071d7fec4Smrg * CURRENT (2001) U.S. export regulations this software
8171d7fec4Smrg * is eligible for export from the U.S. and can be downloaded by or
8271d7fec4Smrg * otherwise exported or reexported worldwide EXCEPT to U.S. embargoed
8371d7fec4Smrg * destinations which include Cuba, Iraq, Libya, North Korea, Iran,
8471d7fec4Smrg * Syria, Sudan, Afghanistan and any other country to which the U.S.
8571d7fec4Smrg * has embargoed goods and services.
8671d7fec4Smrg *
8771d7fec4Smrg * END_NSC_LIC_BSD */
8871d7fec4Smrg
8971d7fec4Smrg/* NSC_LIC_GPL
9071d7fec4Smrg *
9171d7fec4Smrg * National Semiconductor Corporation Gnu General Public License for
9271d7fec4Smrg *
9371d7fec4Smrg * Panel Library
9471d7fec4Smrg *
9571d7fec4Smrg * (GPL License with Export Notice)
9671d7fec4Smrg *
9771d7fec4Smrg * Copyright (c) 1999-2001
9871d7fec4Smrg * National Semiconductor Corporation.
9971d7fec4Smrg * All rights reserved.
10071d7fec4Smrg *
10171d7fec4Smrg * Redistribution and use in source and binary forms, with or without
10271d7fec4Smrg * modification, are permitted under the terms of the GNU General
10371d7fec4Smrg * Public License as published by the Free Software Foundation; either
10471d7fec4Smrg * version 2 of the License, or (at your option) any later version
10571d7fec4Smrg *
10671d7fec4Smrg * In addition to the terms of the GNU General Public License, neither
10771d7fec4Smrg * the name of the National Semiconductor Corporation nor the names of
10871d7fec4Smrg * its contributors may be used to endorse or promote products derived
10971d7fec4Smrg * from this software without specific prior written permission.
11071d7fec4Smrg *
11171d7fec4Smrg * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
11271d7fec4Smrg * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
11371d7fec4Smrg * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
11471d7fec4Smrg * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
11571d7fec4Smrg * NATIONAL SEMICONDUCTOR CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY
11671d7fec4Smrg * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
11771d7fec4Smrg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
11871d7fec4Smrg * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
11971d7fec4Smrg * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
12071d7fec4Smrg * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE,
12171d7fec4Smrg * INTELLECTUAL PROPERTY INFRINGEMENT, OR OTHERWISE) ARISING IN ANY WAY
12271d7fec4Smrg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
12371d7fec4Smrg * OF SUCH DAMAGE. See the GNU General Public License for more details.
12471d7fec4Smrg *
12571d7fec4Smrg * EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF
12671d7fec4Smrg * YOUR JURISDICTION. It is licensee's responsibility to comply with
12771d7fec4Smrg * any export regulations applicable in licensee's jurisdiction. Under
12871d7fec4Smrg * CURRENT (2001) U.S. export regulations this software
12971d7fec4Smrg * is eligible for export from the U.S. and can be downloaded by or
13071d7fec4Smrg * otherwise exported or reexported worldwide EXCEPT to U.S. embargoed
13171d7fec4Smrg * destinations which include Cuba, Iraq, Libya, North Korea, Iran,
13271d7fec4Smrg * Syria, Sudan, Afghanistan and any other country to which the U.S.
13371d7fec4Smrg * has embargoed goods and services.
13471d7fec4Smrg *
13571d7fec4Smrg * You should have received a copy of the GNU General Public License
13671d7fec4Smrg * along with this file; if not, write to the Free Software Foundation,
13771d7fec4Smrg * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
13871d7fec4Smrg *
13971d7fec4Smrg * END_NSC_LIC_GPL */
14071d7fec4Smrg
14171d7fec4Smrg#ifndef _pnl_defs_h
14271d7fec4Smrg#define _pnl_defs_h
14371d7fec4Smrg
14471d7fec4Smrgtypedef enum
14571d7fec4Smrg{
14671d7fec4Smrg   MARMOT_PLATFORM = 0,
14771d7fec4Smrg   UNICORN_PLATFORM,
14871d7fec4Smrg   CENTAURUS_PLATFORM,
14971d7fec4Smrg   ARIES_PLATFORM,
15071d7fec4Smrg   CARMEL_PLATFORM,
15171d7fec4Smrg   HYDRA_PLATFORM,
15271d7fec4Smrg   DORADO_PLATFORM,
15371d7fec4Smrg   DRACO_PLATFORM,
15471d7fec4Smrg   REDCLOUD_PLATFORM,
15571d7fec4Smrg   OTHER_PLATFORM
15671d7fec4Smrg}
15771d7fec4SmrgSYS_BOARD;
15871d7fec4Smrg
15971d7fec4Smrg#define PNL_9210             0x01
16071d7fec4Smrg#define PNL_9211_A           0x02
16171d7fec4Smrg#define PNL_9211_C           0x04
16271d7fec4Smrg#define PNL_UNKNOWN_CHIP     0x08
16371d7fec4Smrg
16471d7fec4Smrg#define PNL_TFT              0x01
16571d7fec4Smrg#define PNL_SSTN             0x02
16671d7fec4Smrg#define PNL_DSTN             0x04
16771d7fec4Smrg#define PNL_TWOP             0x08
16871d7fec4Smrg#define PNL_UNKNOWN_PANEL    0x10
16971d7fec4Smrg
17071d7fec4Smrg#define PNL_MONO_PANEL       0x01
17171d7fec4Smrg#define PNL_COLOR_PANEL      0x02
17271d7fec4Smrg#define PNL_UNKNOWN_COLOR    0x08
17371d7fec4Smrg
17471d7fec4Smrg#define PNL_PANELPRESENT     0x01
17571d7fec4Smrg#define PNL_PLATFORM         0x02
17671d7fec4Smrg#define PNL_PANELCHIP        0x04
17771d7fec4Smrg#define PNL_PANELSTAT        0x08
17871d7fec4Smrg#define PNL_OVERRIDE_STAT    0x10
17971d7fec4Smrg#define PNL_OVERRIDE_ALL     0x1F
18071d7fec4Smrg
18171d7fec4Smrgtypedef struct _Pnl_PanelStat_
18271d7fec4Smrg{
18371d7fec4Smrg   int Type;
18471d7fec4Smrg   int XRes;
18571d7fec4Smrg   int YRes;
18671d7fec4Smrg   int Depth;
18771d7fec4Smrg   int MonoColor;
18871d7fec4Smrg}
18971d7fec4SmrgPnl_PanelStat;
19071d7fec4Smrg
19171d7fec4Smrgtypedef struct _Pnl_Params_
19271d7fec4Smrg{
19371d7fec4Smrg   unsigned long Flags;
19471d7fec4Smrg   int PanelPresent;
19571d7fec4Smrg   int Platform;
19671d7fec4Smrg   int PanelChip;
19771d7fec4Smrg   Pnl_PanelStat PanelStat;
19871d7fec4Smrg}
19971d7fec4SmrgPnl_PanelParams, *PPnl_PanelParams;
20071d7fec4Smrg
20171d7fec4Smrg#endif /* _pnl_defs_h */
20271d7fec4Smrg
20371d7fec4Smrg/* END OF FILE */
204