~sbeattie/ubuntu/lucid/vnc4/lp556147

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/drivers/nsc/panel/panel.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/panel/panel.h,v 1.3 2003/01/14 09:34:36 alanh Exp $ */
 
2
/*
 
3
 * $Workfile: panel.h $
 
4
 * $Revision: 17 $
 
5
 *
 
6
 * File Contents: This file contains the Geode frame buffer panel 
 
7
 *                functions prototypes and it includes panel 
 
8
 *                definitions   header file.
 
9
 *
 
10
 * SubModule:     Geode FlatPanel library
 
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
/* COMPILER OPTION FOR C++ PROGRAMS */
 
144
 
 
145
#ifndef _panel_h
 
146
#define _panel_h
 
147
 
 
148
#include "pnl_defs.h"
 
149
 
 
150
#ifdef __cplusplus
 
151
extern "C"
 
152
{
 
153
#endif
 
154
 
 
155
/* CLOSE BRACKET FOR C++ COMPLILATION */
 
156
 
 
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);
 
171
 
 
172
   int Pnl_IsPanelEnabledInBIOS(void);
 
173
   void Pnl_GetPanelInfoFromBIOS(int *xres, int *yres, int *bpp, int *hz);
 
174
/* from durango */
 
175
 
 
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);
 
182
#endif
 
183
 
 
184
#ifdef __cplusplus
 
185
}
 
186
#endif
 
187
 
 
188
#endif                                  /* !_panel_h */
 
189
 
 
190
/* END OF FILE */