amdgpu_version.h revision d6c0b56e
1/*
2 * Copyright 2000 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 _AMDGPU_VERSION_H_
24#define _AMDGPU_VERSION_H_ 1
25
26#undef  AMDGPU_NAME
27#undef  AMDGPU_DRIVER_NAME
28#undef  R200_DRIVER_NAME
29#undef  AMDGPU_VERSION_MAJOR
30#undef  AMDGPU_VERSION_MINOR
31#undef  AMDGPU_VERSION_PATCH
32#undef  AMDGPU_VERSION_CURRENT
33#undef  AMDGPU_VERSION_EVALUATE
34#undef  AMDGPU_VERSION_STRINGIFY
35#undef  AMDGPU_VERSION_NAME
36
37#define AMDGPU_NAME          "AMDGPU"
38#define AMDGPU_DRIVER_NAME   "amdgpu"
39#define SI_DRIVER_NAME       "radeonsi"
40
41#define AMDGPU_VERSION_MAJOR PACKAGE_VERSION_MAJOR
42#define AMDGPU_VERSION_MINOR PACKAGE_VERSION_MINOR
43#define AMDGPU_VERSION_PATCH PACKAGE_VERSION_PATCHLEVEL
44
45#ifndef AMDGPU_VERSION_EXTRA
46#define AMDGPU_VERSION_EXTRA ""
47#endif
48
49#define AMDGPU_VERSION_CURRENT \
50    ((AMDGPU_VERSION_MAJOR << 20) | \
51     (AMDGPU_VERSION_MINOR << 10) | \
52     (AMDGPU_VERSION_PATCH))
53
54#define AMDGPU_VERSION_EVALUATE(__x) #__x
55#define AMDGPU_VERSION_STRINGIFY(_x) AMDGPU_VERSION_EVALUATE(_x)
56#define AMDGPU_VERSION_NAME                                             \
57    AMDGPU_VERSION_STRINGIFY(AMDGPU_VERSION_MAJOR) "."                  \
58    AMDGPU_VERSION_STRINGIFY(AMDGPU_VERSION_MINOR) "."                  \
59    AMDGPU_VERSION_STRINGIFY(AMDGPU_VERSION_PATCH) AMDGPU_VERSION_EXTRA
60
61#endif /* _AMDGPU_VERSION_H_ */
62