ativersion.h revision 209ff23f
1/*
2 * Copyright 1997 through 2004 by Marc Aurele La France (TSI @ UQV), tsi@xfree86.org
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting documentation, and
8 * that the name of Marc Aurele La France not be used in advertising or
9 * publicity pertaining to distribution of the software without specific,
10 * written prior permission.  Marc Aurele La France makes no representations
11 * about the suitability of this software for any purpose.  It is provided
12 * "as-is" without express or implied warranty.
13 *
14 * MARC AURELE LA FRANCE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO
16 * EVENT SHALL MARC AURELE LA FRANCE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 */
22
23#ifndef ___ATIVERSION_H___
24#define ___ATIVERSION_H___ 1
25
26#undef  ATI_NAME
27#undef  ATI_DRIVER_NAME
28#undef  ATI_VERSION_CURRENT
29#undef  ATI_VERSION_EVALUATE
30#undef  ATI_VERSION_STRINGIFY
31#undef  ATI_VERSION_NAME
32
33#define ATI_NAME          "ATI"
34#define ATI_DRIVER_NAME   "ati"
35
36#ifndef ATI_VERSION_EXTRA
37#define ATI_VERSION_EXTRA ""
38#endif
39
40#define ATI_VERSION_MAJOR PACKAGE_VERSION_MAJOR
41#define ATI_VERSION_MINOR PACKAGE_VERSION_MINOR
42#define ATI_VERSION_PATCH PACKAGE_VERSION_PATCHLEVEL
43
44#define ATI_VERSION_CURRENT \
45    ((ATI_VERSION_MAJOR << 20) | (ATI_VERSION_MINOR << 10) | ATI_VERSION_PATCH)
46
47#define ATI_VERSION_EVALUATE(__x) #__x
48#define ATI_VERSION_STRINGIFY(_x) ATI_VERSION_EVALUATE(_x)
49#define ATI_VERSION_NAME                                        \
50    ATI_VERSION_STRINGIFY(ATI_VERSION_MAJOR) "."                \
51    ATI_VERSION_STRINGIFY(ATI_VERSION_MINOR) "."                \
52    ATI_VERSION_STRINGIFY(ATI_VERSION_PATCH) ATI_VERSION_EXTRA
53
54#endif /* ___ATIVERSION_H___ */
55