1/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/panel/pnl_defs.h,v 1.1 2002/12/10 15:12:28 alanh Exp $ */ 2/* 3 * $Workfile: pnl_defs.h $ 4 * 5 * File Contents: This file contains definitions of the Geode 6 * frame buffer panel data structures. 7 * 8 * SubModule: Geode FlatPanel library 9 * 10 */ 11 12/* 13 * NSC_LIC_ALTERNATIVE_PREAMBLE 14 * 15 * Revision 1.0 16 * 17 * National Semiconductor Alternative GPL-BSD License 18 * 19 * National Semiconductor Corporation licenses this software 20 * ("Software"): 21 * 22 * Panel Library 23 * 24 * under one of the two following licenses, depending on how the 25 * Software is received by the Licensee. 26 * 27 * If this Software is received as part of the Linux Framebuffer or 28 * other GPL licensed software, then the GPL license designated 29 * NSC_LIC_GPL applies to this Software; in all other circumstances 30 * then the BSD-style license designated NSC_LIC_BSD shall apply. 31 * 32 * END_NSC_LIC_ALTERNATIVE_PREAMBLE */ 33 34/* NSC_LIC_BSD 35 * 36 * National Semiconductor Corporation Open Source License for 37 * 38 * Panel Library 39 * 40 * (BSD License with Export Notice) 41 * 42 * Copyright (c) 1999-2001 43 * National Semiconductor Corporation. 44 * All rights reserved. 45 * 46 * Redistribution and use in source and binary forms, with or without 47 * modification, are permitted provided that the following conditions 48 * are met: 49 * 50 * * Redistributions of source code must retain the above copyright 51 * notice, this list of conditions and the following disclaimer. 52 * 53 * * Redistributions in binary form must reproduce the above 54 * copyright notice, this list of conditions and the following 55 * disclaimer in the documentation and/or other materials provided 56 * with the distribution. 57 * 58 * * Neither the name of the National Semiconductor Corporation nor 59 * the names of its contributors may be used to endorse or promote 60 * products derived from this software without specific prior 61 * written permission. 62 * 63 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 64 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 65 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 66 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 67 * NATIONAL SEMICONDUCTOR CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY 68 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 69 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 70 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 71 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 72 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE, 73 * INTELLECTUAL PROPERTY INFRINGEMENT, OR OTHERWISE) ARISING IN ANY WAY 74 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 75 * OF SUCH DAMAGE. 76 * 77 * EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF 78 * YOUR JURISDICTION. It is licensee's responsibility to comply with 79 * any export regulations applicable in licensee's jurisdiction. Under 80 * CURRENT (2001) U.S. export regulations this software 81 * is eligible for export from the U.S. and can be downloaded by or 82 * otherwise exported or reexported worldwide EXCEPT to U.S. embargoed 83 * destinations which include Cuba, Iraq, Libya, North Korea, Iran, 84 * Syria, Sudan, Afghanistan and any other country to which the U.S. 85 * has embargoed goods and services. 86 * 87 * END_NSC_LIC_BSD */ 88 89/* NSC_LIC_GPL 90 * 91 * National Semiconductor Corporation Gnu General Public License for 92 * 93 * Panel Library 94 * 95 * (GPL License with Export Notice) 96 * 97 * Copyright (c) 1999-2001 98 * National Semiconductor Corporation. 99 * All rights reserved. 100 * 101 * Redistribution and use in source and binary forms, with or without 102 * modification, are permitted under the terms of the GNU General 103 * Public License as published by the Free Software Foundation; either 104 * version 2 of the License, or (at your option) any later version 105 * 106 * In addition to the terms of the GNU General Public License, neither 107 * the name of the National Semiconductor Corporation nor the names of 108 * its contributors may be used to endorse or promote products derived 109 * from this software without specific prior written permission. 110 * 111 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 112 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 113 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 114 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 115 * NATIONAL SEMICONDUCTOR CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY 116 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 117 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 118 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 119 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 120 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE, 121 * INTELLECTUAL PROPERTY INFRINGEMENT, OR OTHERWISE) ARISING IN ANY WAY 122 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 123 * OF SUCH DAMAGE. See the GNU General Public License for more details. 124 * 125 * EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF 126 * YOUR JURISDICTION. It is licensee's responsibility to comply with 127 * any export regulations applicable in licensee's jurisdiction. Under 128 * CURRENT (2001) U.S. export regulations this software 129 * is eligible for export from the U.S. and can be downloaded by or 130 * otherwise exported or reexported worldwide EXCEPT to U.S. embargoed 131 * destinations which include Cuba, Iraq, Libya, North Korea, Iran, 132 * Syria, Sudan, Afghanistan and any other country to which the U.S. 133 * has embargoed goods and services. 134 * 135 * You should have received a copy of the GNU General Public License 136 * along with this file; if not, write to the Free Software Foundation, 137 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 138 * 139 * END_NSC_LIC_GPL */ 140 141#ifndef _pnl_defs_h 142#define _pnl_defs_h 143 144typedef enum 145{ 146 MARMOT_PLATFORM = 0, 147 UNICORN_PLATFORM, 148 CENTAURUS_PLATFORM, 149 ARIES_PLATFORM, 150 CARMEL_PLATFORM, 151 HYDRA_PLATFORM, 152 DORADO_PLATFORM, 153 DRACO_PLATFORM, 154 REDCLOUD_PLATFORM, 155 OTHER_PLATFORM 156} 157SYS_BOARD; 158 159#define PNL_9210 0x01 160#define PNL_9211_A 0x02 161#define PNL_9211_C 0x04 162#define PNL_UNKNOWN_CHIP 0x08 163 164#define PNL_TFT 0x01 165#define PNL_SSTN 0x02 166#define PNL_DSTN 0x04 167#define PNL_TWOP 0x08 168#define PNL_UNKNOWN_PANEL 0x10 169 170#define PNL_MONO_PANEL 0x01 171#define PNL_COLOR_PANEL 0x02 172#define PNL_UNKNOWN_COLOR 0x08 173 174#define PNL_PANELPRESENT 0x01 175#define PNL_PLATFORM 0x02 176#define PNL_PANELCHIP 0x04 177#define PNL_PANELSTAT 0x08 178#define PNL_OVERRIDE_STAT 0x10 179#define PNL_OVERRIDE_ALL 0x1F 180 181typedef struct _Pnl_PanelStat_ 182{ 183 int Type; 184 int XRes; 185 int YRes; 186 int Depth; 187 int MonoColor; 188} 189Pnl_PanelStat; 190 191typedef struct _Pnl_Params_ 192{ 193 unsigned long Flags; 194 int PanelPresent; 195 int Platform; 196 int PanelChip; 197 Pnl_PanelStat PanelStat; 198} 199Pnl_PanelParams, *PPnl_PanelParams; 200 201#endif /* _pnl_defs_h */ 202 203/* END OF FILE */ 204