~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/lib/GL/mesa/src/drv/i830/i830_screen.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
/**************************************************************************
 
2
 
 
3
Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
 
4
All Rights Reserved.
 
5
 
 
6
Permission is hereby granted, free of charge, to any person obtaining a
 
7
copy of this software and associated documentation files (the
 
8
"Software"), to deal in the Software without restriction, including
 
9
without limitation the rights to use, copy, modify, merge, publish,
 
10
distribute, sub license, and/or sell copies of the Software, and to
 
11
permit persons to whom the Software is furnished to do so, subject to
 
12
the following conditions:
 
13
 
 
14
The above copyright notice and this permission notice (including the
 
15
next paragraph) shall be included in all copies or substantial portions
 
16
of the Software.
 
17
 
 
18
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
19
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
20
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
 
21
IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
 
22
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 
23
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 
24
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
25
 
 
26
**************************************************************************/
 
27
 
 
28
/*
 
29
 * Authors:
 
30
 *   Keith Whitwell <keith@tungstengraphics.com>
 
31
 * Adapted for use on the I830M:
 
32
 *   Jeff Hartmann <jhartmann@2d3d.com>
 
33
 */
 
34
 
 
35
#ifndef _I830_INIT_H_
 
36
#define _I830_INIT_H_
 
37
 
 
38
#include <sys/time.h>
 
39
#include "dri_util.h"
 
40
 
 
41
 
 
42
typedef struct {
 
43
   drmHandle handle;
 
44
   drmSize size;
 
45
   char *map;
 
46
} i830Region, *i830RegionPtr;
 
47
 
 
48
typedef struct 
 
49
{
 
50
   
 
51
   i830Region front;
 
52
   i830Region back;
 
53
   i830Region depth;
 
54
   i830Region tex;
 
55
   
 
56
   int deviceID;
 
57
   int width;
 
58
   int height;
 
59
   int mem;
 
60
   
 
61
   int cpp;         /* for front and back buffers */
 
62
   int bitsPerPixel;
 
63
   
 
64
   int fbFormat;
 
65
   int fbOffset;
 
66
   int fbStride;
 
67
   
 
68
   int backOffset;
 
69
   int depthOffset;
 
70
   
 
71
   int backPitch;
 
72
   int backPitchBits;
 
73
   
 
74
   int textureOffset;
 
75
   int textureSize;
 
76
   int logTextureGranularity;
 
77
   
 
78
   __DRIscreenPrivate *driScrnPriv;
 
79
   drmBufMapPtr  bufs;
 
80
   int use_copy_buf;
 
81
   unsigned int sarea_priv_offset;
 
82
 
 
83
   int drmMinor;
 
84
   int irq_active;
 
85
}i830ScreenPrivate;
 
86
 
 
87
 
 
88
extern GLboolean
 
89
i830CreateContext( Display *dpy, const __GLcontextModes *mesaVis,
 
90
                   __DRIcontextPrivate *driContextPriv,
 
91
                   void *sharedContextPrivate );
 
92
 
 
93
extern void
 
94
i830DestroyContext(__DRIcontextPrivate *driContextPriv);
 
95
 
 
96
extern GLboolean
 
97
i830UnbindContext(__DRIcontextPrivate *driContextPriv);
 
98
 
 
99
extern GLboolean
 
100
i830MakeCurrent(__DRIcontextPrivate *driContextPriv,
 
101
                __DRIdrawablePrivate *driDrawPriv,
 
102
                __DRIdrawablePrivate *driReadPriv);
 
103
 
 
104
extern void
 
105
i830SwapBuffers(Display *dpy, void *drawablePrivate);
 
106
 
 
107
#endif