xref: /aosp_15_r20/external/gmmlib/Source/GmmLib/ULT/stdafx.h (revision 35ffd701415c9e32e53136d61a677a8d0a8fc4a5)
1 /*==============================================================================
2 Copyright(c) 2017 Intel Corporation
3 
4 Permission is hereby granted, free of charge, to any person obtaining a
5 copy of this software and associated documentation files(the "Software"),
6 to deal in the Software without restriction, including without limitation
7 the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 and / or sell copies of the Software, and to permit persons to whom the
9 Software is furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included
12 in all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 OTHER DEALINGS IN THE SOFTWARE.
21 ============================================================================*/
22 
23 
24 //Abstract:   include file for standard system include files,
25 //            or project specific include files that are used frequently
26 
27 
28 #pragma once
29 #ifndef _WIN32
30 #include "../../inc/portable_compiler.h"
31 #endif
32 
33 
34 #include "targetver.h"
35 #include <stdio.h>
36 #include <math.h>
37 #ifdef _WIN32
38 #include <tchar.h>
39 #include <windows.h>
40 #endif
41 #include <iostream>
42 #include "gtest.h"
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 #include "sharedata.h"
49 #include "../../inc/common/igfxfmid.h"
50 #include "../../inc/common/sku_wa.h"
51 #include "../../inc/common/gfxmacro.h"
52 #include "../inc/External/Common/GmmCommonExt.h"
53 #include "../inc/External/Common/GmmPlatformExt.h"
54 #include "../inc/External/Common/GmmCachePolicy.h"
55 #include "../inc/External/Common/GmmTextureExt.h"
56 #include "../inc/External/Common/GmmResourceInfoExt.h"
57 #include "../inc/External/Common/GmmResourceInfo.h"
58 #include "../inc/External/Common/GmmUtil.h"
59 #include "../inc/External/Common/GmmInfoExt.h"
60 #include "../inc/External/Common/GmmInfo.h"
61 #include "../inc/External/Common/GmmClientContext.h"
62 #include "../inc/External/Common/GmmPageTableMgr.h"
63 #include "../inc/External/Common/GmmLibDll.h"
64 #include "../inc/External/Common/GmmLibDllName.h"
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #ifndef NT_SUCCESS
71 #define NT_SUCCESS(Status)                      ((NTSTATUS)(Status) >= 0)
72 #endif
73 
74 #ifndef STATUS_UNSUCCESSFUL
75 #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
76 #endif
77 
78 #ifndef STATUS_SUCCESS
79 #define STATUS_SUCCESS   ((NTSTATUS)0x00000000L)
80 #endif
81 
82 extern int g_argc;
83 extern char** g_argv;
84 
85