1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
|
/**************************************************************************
*
* Copyright 2009 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
/**
* @file
* SDK/DDK compatability.
*
* Different headers/defines on different Windows SDKs / DDKs, so define
* all used status here to keep the code portable.
*
* @author <jfonseca@vmware.com>
*/
#ifndef VMW_WDDM_COMPAT_H_
#define VMW_WDDM_COMPAT_H_
#ifndef __in
#define __in /**/
#endif
#ifndef __out
#define __out /**/
#endif
#ifndef __inout
#define __inout /**/
#endif
#ifndef __in_opt
#define __in_opt /**/
#endif
#ifndef __inout_opt
#define __inout_opt /**/
#endif
#ifndef __ecount
#define __ecount(x) /**/
#endif
#ifndef __in_ecount
#define __in_ecount(x) /**/
#endif
#ifndef __deref_ecount
#define __deref_ecount(x) /**/
#endif
#ifndef __in_bcount
#define __in_bcount(x) /**/
#endif
#ifndef __out_bcount
#define __out_bcount(x) /**/
#endif
#ifndef __out_ecount_opt
#define __out_ecount_opt(x) /**/
#endif
#ifndef __deref_out
#define __deref_out /**/
#endif
#ifndef __in_range
#define __in_range(x,y) /**/
#endif
#ifndef __field_bcount
#define __field_bcount(x) /**/
#endif
#ifndef __out_bcount
#define __out_bcount(x) /**/
#endif
#ifndef __out_bcount_full_opt
#define __out_bcount_full_opt(x) /**/
#endif
#ifndef __out_ecount_part_z_opt
#define __out_ecount_part_z_opt(x, y) /**/
#endif
#ifndef __out_ecount_part_opt
#define __out_ecount_part_opt(x, y) /**/
#endif
#ifndef __field_ecount
#define __field_ecount(x) /**/
#endif
#ifndef __field_ecount_full
#define __field_ecount_full(x) /**/
#endif
#ifndef __checkReturn
#define __checkReturn /**/
#endif
#ifndef __drv_requiresIRQL
#define __drv_requiresIRQL(x) /**/
#endif
#ifndef __drv_minIRQL
#define __drv_minIRQL(x) /**/
#endif
#ifndef __drv_maxIRQL
#define __drv_maxIRQL(x) /**/
#endif
#ifdef __MINGW32__
#define __inline static __inline__
#endif
#ifndef EXTERN_C
#define EXTERN_C /**/
#endif
#ifdef __MINGW32__
typedef unsigned char UINT8;
#endif
#ifndef NTSTATUS
#define NTSTATUS LONG
#endif
typedef LARGE_INTEGER PHYSICAL_ADDRESS;
#ifndef NT_SUCCESS
#define NT_SUCCESS(_status) ((_status) >= 0)
#endif
#ifndef STATUS_SUCCESS
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
#endif
#ifndef STATUS_UNSUCCESSFUL
#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
#endif
#ifndef STATUS_INVALID_PARAMETER
#define STATUS_INVALID_PARAMETER ((NTSTATUS)0xC000000DL)
#endif
#ifndef STATUS_NO_MEMORY
#define STATUS_NO_MEMORY ((NTSTATUS)0xC0000017L)
#endif
#ifndef STATUS_ILLEGAL_INSTRUCTION
#define STATUS_ILLEGAL_INSTRUCTION ((NTSTATUS)0xC000001DL)
#endif
#ifndef STATUS_BUFFER_TOO_SMALL
#define STATUS_BUFFER_TOO_SMALL ((NTSTATUS)0xC0000023L)
#endif
#ifndef STATUS_PRIVILEGED_INSTRUCTION
#define STATUS_PRIVILEGED_INSTRUCTION ((NTSTATUS)0xC0000096L)
#endif
#ifndef STATUS_NOT_SUPPORTED
#define STATUS_NOT_SUPPORTED ((NTSTATUS)0xC00000BBL)
#endif
#ifndef STATUS_DEVICE_REMOVED
#define STATUS_DEVICE_REMOVED ((NTSTATUS)0xC00002B6L)
#endif
#ifndef STATUS_INVALID_USER_BUFFER
#define STATUS_INVALID_USER_BUFFER ((NTSTATUS)0xC00000E8L)
#endif
#ifndef STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER
#define STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER ((NTSTATUS)0xC01E0000L)
#endif
#ifndef STATUS_NO_VIDEO_MEMORY
#define STATUS_NO_VIDEO_MEMORY ((NTSTATUS)0xC01E0100L)
#endif
#ifndef STATUS_GRAPHICS_ALLOCATION_BUSY
#define STATUS_GRAPHICS_ALLOCATION_BUSY ((NTSTATUS)0xC01E0102L)
#endif
#ifndef STATUS_GRAPHICS_TOO_MANY_REFERENCES
#define STATUS_GRAPHICS_TOO_MANY_REFERENCES ((NTSTATUS)0xC01E0103L)
#endif
#ifndef STATUS_GRAPHICS_ALLOCATION_INVALID
#define STATUS_GRAPHICS_ALLOCATION_INVALID ((NTSTATUS)0xC01E0106L)
#endif
#ifndef STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION
#define STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION ((NTSTATUS)0xC01E0109L)
#endif
#ifndef STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION
#define STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION ((NTSTATUS)0xC01E0111L)
#endif
#ifndef STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE
#define STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE ((NTSTATUS)0xC01E0200L)
#endif
#ifndef STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET
#define STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET ((NTSTATUS)0xC01E0333L)
#endif
#endif /* VMW_WDDM_COMPAT_H_ */
|