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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/drivers/sunbw2/bw2.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
 * BW2 framebuffer - defines.
 
3
 *
 
4
 * Copyright (C) 2000 Jakub Jelinek (jakub@redhat.com)
 
5
 *
 
6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 
7
 * of this software and associated documentation files (the "Software"), to deal
 
8
 * in the Software without restriction, including without limitation the rights
 
9
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
10
 * copies of the Software, and to permit persons to whom the Software is
 
11
 * furnished to do so, subject to the following conditions:
 
12
 *
 
13
 * The above copyright notice and this permission notice shall be included in
 
14
 * all copies or substantial portions of the Software.
 
15
 *
 
16
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
17
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
18
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
19
 * JAKUB JELINEK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 
20
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
21
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
22
 */
 
23
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sunbw2/bw2.h,v 1.1 2000/06/30 17:15:13 dawes Exp $ */
 
24
 
 
25
#ifndef BW2_H
 
26
#define BW2_H
 
27
 
 
28
#include "xf86.h"
 
29
#include "xf86_OSproc.h"
 
30
#include "xf86_ansic.h"
 
31
#include "xf86RamDac.h"
 
32
#include "Xmd.h"
 
33
#include "gcstruct.h"
 
34
#include "xf86sbusBus.h"
 
35
 
 
36
/* Various offsets in virtual (ie. mmap()) spaces Linux and Solaris support. */
 
37
#define BW2_RAM_VOFF    0
 
38
 
 
39
typedef struct {
 
40
        unsigned char   *fb;
 
41
        int             width;
 
42
        int             height;
 
43
 
 
44
        sbusDevicePtr   psdp;
 
45
        CloseScreenProcPtr CloseScreen;
 
46
} Bw2Rec, *Bw2Ptr;
 
47
 
 
48
#define GET_BW2_FROM_SCRN(p)    ((Bw2Ptr)((p)->driverPrivate))
 
49
 
 
50
#endif /* BW2_H */