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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/drivers/ati/aticlock.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/ati/aticlock.h,v 1.8 2003/01/01 19:16:31 tsi Exp $ */
 
2
/*
 
3
 * Copyright 1997 through 2003 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
 
4
 *
 
5
 * Permission to use, copy, modify, distribute, and sell this software and its
 
6
 * documentation for any purpose is hereby granted without fee, provided that
 
7
 * the above copyright notice appear in all copies and that both that copyright
 
8
 * notice and this permission notice appear in supporting documentation, and
 
9
 * that the name of Marc Aurele La France not be used in advertising or
 
10
 * publicity pertaining to distribution of the software without specific,
 
11
 * written prior permission.  Marc Aurele La France makes no representations
 
12
 * about the suitability of this software for any purpose.  It is provided
 
13
 * "as-is" without express or implied warranty.
 
14
 *
 
15
 * MARC AURELE LA FRANCE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
16
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO
 
17
 * EVENT SHALL MARC AURELE LA FRANCE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
18
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
19
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 
20
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
21
 * PERFORMANCE OF THIS SOFTWARE.
 
22
 */
 
23
 
 
24
#ifndef ___ATICLOCK_H___
 
25
#define ___ATICLOCK_H___ 1
 
26
 
 
27
#include "atipriv.h"
 
28
#include "atiproto.h"
 
29
 
 
30
#include "xf86str.h"
 
31
 
 
32
/*
 
33
 * Definitions related to non-programmable clock generators.
 
34
 */
 
35
typedef enum
 
36
{
 
37
    ATI_CLOCK_NONE = 0,
 
38
    ATI_CLOCK_VGA = 1,
 
39
    ATI_CLOCK_CRYSTALS = 2,
 
40
    ATI_CLOCK_18810,
 
41
    ATI_CLOCK_18811_0,
 
42
    ATI_CLOCK_18811_1,
 
43
    ATI_CLOCK_2494AM,
 
44
    ATI_CLOCK_MACH64A,
 
45
    ATI_CLOCK_MACH64B,
 
46
    ATI_CLOCK_MACH64C
 
47
} ATIClockType;
 
48
extern const char *ATIClockNames[];
 
49
 
 
50
/*
 
51
 * Definitions related to programmable clock generators.
 
52
 */
 
53
typedef enum
 
54
{
 
55
    ATI_CLOCK_UNKNOWN = -1,
 
56
    ATI_CLOCK_FIXED = 0,        /* Further described by ATIClockType */
 
57
    ATI_CLOCK_ICS2595,
 
58
    ATI_CLOCK_STG1703,
 
59
    ATI_CLOCK_CH8398,
 
60
    ATI_CLOCK_INTERNAL,
 
61
    ATI_CLOCK_ATT20C408,
 
62
    ATI_CLOCK_IBMRGB514,
 
63
    ATI_CLOCK_MAX               /* Must be last */
 
64
} ATIProgrammableClockType;
 
65
 
 
66
typedef struct
 
67
{
 
68
    CARD16 MinN, MaxN;          /* Feedback divider and ... */
 
69
    CARD16 NAdjust;             /* ... its adjustment and ... */
 
70
    CARD16 N1, N2;              /* ... its restrictions */
 
71
    CARD16 MinM, MaxM;          /* Reference divider and ... */
 
72
    CARD16 MAdjust;             /* ... its adjustment */
 
73
    CARD16 NumD, *PostDividers; /* Post-dividers */
 
74
    const char *ClockName;
 
75
} ClockRec, *ClockPtr;
 
76
extern ClockRec ATIClockDescriptors[];
 
77
 
 
78
extern void ATIClockPreInit   FunctionPrototype((ScrnInfoPtr, ATIPtr, GDevPtr,
 
79
                                                 ClockRangePtr));
 
80
extern void ATIClockSave      FunctionPrototype((ScrnInfoPtr, ATIPtr,
 
81
                                                 ATIHWPtr));
 
82
extern Bool ATIClockCalculate FunctionPrototype((int, ATIPtr, ATIHWPtr,
 
83
                                                 DisplayModePtr));
 
84
extern void ATIClockSet       FunctionPrototype((ATIPtr, ATIHWPtr));
 
85
 
 
86
#endif /* ___ATICLOCK_H___ */