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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/drivers/glint/glint_common.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
/* glint_common.h -- common header definitions for Gamma 2D/3D/DRM suite
 
2
 *
 
3
 * Copyright 2002 Tungsten Graphics, 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 "Software"),
 
8
 * to deal in the Software without restriction, including without limitation
 
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
10
 * and/or sell copies of the Software, and to permit persons to whom the
 
11
 * Software is furnished to do so, subject to the following conditions:
 
12
 *
 
13
 * The above copyright notice and this permission notice (including the next
 
14
 * paragraph) shall be included in all copies or substantial portions of the
 
15
 * Software.
 
16
 *
 
17
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
18
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
19
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
20
 * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
21
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
22
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
23
 * DEALINGS IN THE SOFTWARE.
 
24
 *
 
25
 * Converted to common header format:
 
26
 *   Jens Owen <jens@tungstengraphics.com>
 
27
 *
 
28
 * $XFree86: xc/programs/Xserver/hw/xfree86/drivers/glint/glint_common.h,v 1.1 2002/10/30 12:52:15 alanh Exp $
 
29
 *
 
30
 */
 
31
 
 
32
#ifndef _GLINT_COMMON_H_
 
33
#define _GLINT_COMMON_H_
 
34
 
 
35
/*
 
36
 * WARNING: If you change any of these defines, make sure to change
 
37
 * the kernel include file as well (gamma_drm.h)
 
38
 */
 
39
 
 
40
/* Driver specific DRM command indices
 
41
 * NOTE: these are not OS specific, but they are driver specific
 
42
 */
 
43
#define DRM_GAMMA_INIT                0x00
 
44
#define DRM_GAMMA_COPY                0x01
 
45
 
 
46
typedef struct {
 
47
   enum {
 
48
      GAMMA_INIT_DMA    = 0x01,
 
49
      GAMMA_CLEANUP_DMA = 0x02
 
50
   } func;
 
51
   int sarea_priv_offset;
 
52
   int pcimode;
 
53
   unsigned int mmio0;
 
54
   unsigned int mmio1;
 
55
   unsigned int mmio2;
 
56
   unsigned int mmio3;
 
57
   unsigned int buffers_offset;
 
58
} drmGAMMAInit;
 
59
 
 
60
extern int drmGAMMAInitDMA( int fd, drmGAMMAInit *info );
 
61
extern int drmGAMMACleanupDMA( int fd );
 
62
 
 
63
#endif