1
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/panel/panel.h,v 1.3 2003/01/14 09:34:36 alanh Exp $ */
6
* File Contents: This file contains the Geode frame buffer panel
7
* functions prototypes and it includes panel
8
* definitions header file.
10
* SubModule: Geode FlatPanel library
15
* NSC_LIC_ALTERNATIVE_PREAMBLE
19
* National Semiconductor Alternative GPL-BSD License
21
* National Semiconductor Corporation licenses this software
26
* under one of the two following licenses, depending on how the
27
* Software is received by the Licensee.
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.
34
* END_NSC_LIC_ALTERNATIVE_PREAMBLE */
38
* National Semiconductor Corporation Open Source License for
42
* (BSD License with Export Notice)
44
* Copyright (c) 1999-2001
45
* National Semiconductor Corporation.
46
* All rights reserved.
48
* Redistribution and use in source and binary forms, with or without
49
* modification, are permitted provided that the following conditions
52
* * Redistributions of source code must retain the above copyright
53
* notice, this list of conditions and the following disclaimer.
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.
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
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
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.
93
* National Semiconductor Corporation Gnu General Public License for
97
* (GPL License with Export Notice)
99
* Copyright (c) 1999-2001
100
* National Semiconductor Corporation.
101
* All rights reserved.
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
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.
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.
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.
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
143
/* COMPILER OPTION FOR C++ PROGRAMS */
148
#include "pnl_defs.h"
155
/* CLOSE BRACKET FOR C++ COMPLILATION */
157
void Pnl_SetPlatform(int platform);
158
int Pnl_GetPlatform(void);
159
int Pnl_IsPanelPresent(void);
160
void Pnl_SetPanelPresent(int present);
161
void Pnl_SetPanelChip(int panelChip);
162
int Pnl_GetPanelChip(void);
163
void Pnl_SetPanelParam(PPnl_PanelParams pParam);
164
void Pnl_GetPanelParam(PPnl_PanelParams pParam);
165
int Pnl_InitPanel(PPnl_PanelParams pParam);
166
int Detect_Platform(void);
167
void Pnl_SavePanelState(void);
168
void Pnl_RestorePanelState(void);
169
void Pnl_PowerUp(void);
170
void Pnl_PowerDown(void);
172
int Pnl_IsPanelEnabledInBIOS(void);
173
void Pnl_GetPanelInfoFromBIOS(int *xres, int *yres, int *bpp, int *hz);
176
#if defined(_WIN32) /* windows */
177
extern void gfx_delay_milliseconds(unsigned long milliseconds);
178
extern unsigned long gfx_ind(unsigned short port);
179
extern void gfx_outd(unsigned short port, unsigned long data);
180
extern unsigned char gfx_inb(unsigned short port);
181
extern void gfx_outb(unsigned short port, unsigned char data);
188
#endif /* !_panel_h */