1
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/aticlock.h,v 1.8 2003/01/01 19:16:31 tsi Exp $ */
3
* Copyright 1997 through 2003 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
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.
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.
24
#ifndef ___ATICLOCK_H___
25
#define ___ATICLOCK_H___ 1
33
* Definitions related to non-programmable clock generators.
39
ATI_CLOCK_CRYSTALS = 2,
48
extern const char *ATIClockNames[];
51
* Definitions related to programmable clock generators.
55
ATI_CLOCK_UNKNOWN = -1,
56
ATI_CLOCK_FIXED = 0, /* Further described by ATIClockType */
63
ATI_CLOCK_MAX /* Must be last */
64
} ATIProgrammableClockType;
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[];
78
extern void ATIClockPreInit FunctionPrototype((ScrnInfoPtr, ATIPtr, GDevPtr,
80
extern void ATIClockSave FunctionPrototype((ScrnInfoPtr, ATIPtr,
82
extern Bool ATIClockCalculate FunctionPrototype((int, ATIPtr, ATIHWPtr,
84
extern void ATIClockSet FunctionPrototype((ATIPtr, ATIHWPtr));
86
#endif /* ___ATICLOCK_H___ */