1/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/panel.c,v 1.2 2002/12/11 22:51:00 dawes Exp $ */ 2/* 3 * $Workfile: panel.c $ 4 * $Revision: 1.1.1.1 $ 5 * $Author: mrg $ 6 * 7 * File Contents: This file contailns the panel include files and 8 * external pointer to the hardware. 9 * 10 * Project: Geode Xfree Frame buffer device driver. 11 * 12 */ 13 14/* 15 * NSC_LIC_ALTERNATIVE_PREAMBLE 16 * 17 * Revision 1.0 18 * 19 * National Semiconductor Alternative GPL-BSD License 20 * 21 * National Semiconductor Corporation licenses this software 22 * ("Software"): 23 * 24 * Panel Library 25 * 26 * under one of the two following licenses, depending on how the 27 * Software is received by the Licensee. 28 * 29 * If this Software is received as part of the Linux Framebuffer or 30 * other GPL licensed software, then the GPL license designated 31 * NSC_LIC_GPL applies to this Software; in all other circumstances 32 * then the BSD-style license designated NSC_LIC_BSD shall apply. 33 * 34 * END_NSC_LIC_ALTERNATIVE_PREAMBLE */ 35 36/* NSC_LIC_BSD 37 * 38 * National Semiconductor Corporation Open Source License for 39 * 40 * Panel Library 41 * 42 * (BSD License with Export Notice) 43 * 44 * Copyright (c) 1999-2001 45 * National Semiconductor Corporation. 46 * All rights reserved. 47 * 48 * Redistribution and use in source and binary forms, with or without 49 * modification, are permitted provided that the following conditions 50 * are met: 51 * 52 * * Redistributions of source code must retain the above copyright 53 * notice, this list of conditions and the following disclaimer. 54 * 55 * * Redistributions in binary form must reproduce the above 56 * copyright notice, this list of conditions and the following 57 * disclaimer in the documentation and/or other materials provided 58 * with the distribution. 59 * 60 * * Neither the name of the National Semiconductor Corporation nor 61 * the names of its contributors may be used to endorse or promote 62 * products derived from this software without specific prior 63 * written permission. 64 * 65 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 66 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 67 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 68 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 69 * NATIONAL SEMICONDUCTOR CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY 70 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 71 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 72 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 73 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 74 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE, 75 * INTELLECTUAL PROPERTY INFRINGEMENT, OR OTHERWISE) ARISING IN ANY WAY 76 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 77 * OF SUCH DAMAGE. 78 * 79 * EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF 80 * YOUR JURISDICTION. It is licensee's responsibility to comply with 81 * any export regulations applicable in licensee's jurisdiction. Under 82 * CURRENT (2001) U.S. export regulations this software 83 * is eligible for export from the U.S. and can be downloaded by or 84 * otherwise exported or reexported worldwide EXCEPT to U.S. embargoed 85 * destinations which include Cuba, Iraq, Libya, North Korea, Iran, 86 * Syria, Sudan, Afghanistan and any other country to which the U.S. 87 * has embargoed goods and services. 88 * 89 * END_NSC_LIC_BSD */ 90 91/* NSC_LIC_GPL 92 * 93 * National Semiconductor Corporation Gnu General Public License for 94 * 95 * Panel Library 96 * 97 * (GPL License with Export Notice) 98 * 99 * Copyright (c) 1999-2001 100 * National Semiconductor Corporation. 101 * All rights reserved. 102 * 103 * Redistribution and use in source and binary forms, with or without 104 * modification, are permitted under the terms of the GNU General 105 * Public License as published by the Free Software Foundation; either 106 * version 2 of the License, or (at your option) any later version 107 * 108 * In addition to the terms of the GNU General Public License, neither 109 * the name of the National Semiconductor Corporation nor the names of 110 * its contributors may be used to endorse or promote products derived 111 * from this software without specific prior written permission. 112 * 113 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 114 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 115 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 116 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 117 * NATIONAL SEMICONDUCTOR CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY 118 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 119 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 120 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 121 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 122 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE, 123 * INTELLECTUAL PROPERTY INFRINGEMENT, OR OTHERWISE) ARISING IN ANY WAY 124 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 125 * OF SUCH DAMAGE. See the GNU General Public License for more details. 126 * 127 * EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF 128 * YOUR JURISDICTION. It is licensee's responsibility to comply with 129 * any export regulations applicable in licensee's jurisdiction. Under 130 * CURRENT (2001) U.S. export regulations this software 131 * is eligible for export from the U.S. and can be downloaded by or 132 * otherwise exported or reexported worldwide EXCEPT to U.S. embargoed 133 * destinations which include Cuba, Iraq, Libya, North Korea, Iran, 134 * Syria, Sudan, Afghanistan and any other country to which the U.S. 135 * has embargoed goods and services. 136 * 137 * You should have received a copy of the GNU General Public License 138 * along with this file; if not, write to the Free Software Foundation, 139 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 140 * 141 * END_NSC_LIC_GPL */ 142 143#ifdef HAVE_CONFIG_H 144#include "config.h" 145#endif 146 147#if defined(linux) /* Linux */ 148 149#ifdef __KERNEL__ 150 151#include <linux/string.h> 152#include <asm/io.h> 153 154#elif !defined(XFree86Server) 155 156#include <linux/fs.h> 157#include <asm/mman.h> 158 159#endif /* __KERNEL__ */ 160#elif defined(_WIN32) /* windows */ 161 162#include <windows.h> 163 164#endif 165 166#include "panel.h" 167#include "gfx_defs.h" 168#include "nsc.h" 169 170#define PLATFORM_DYNAMIC 1 /* runtime selection */ 171#define PLATFORM_DRACO 0 /* Draco + 9210 */ 172#define PLATFORM_CENTAURUS 1 /* Centaurus + 9211 RevA */ 173#define PLATFORM_DORADO 1 /* Dorado + 9211 RevC */ 174#define PLATFORM_GX2BASED 1 /* Redcloud */ 175 176unsigned char *XpressROMPtr; 177 178#include "pnl_init.c" 179#include "pnl_bios.c" 180