File: Driver_Model.h

package info (click to toggle)
intel-graphics-compiler 1.0.12504.6-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 83,912 kB
  • sloc: cpp: 910,147; lisp: 202,655; ansic: 15,197; python: 4,025; yacc: 2,241; lex: 1,570; pascal: 244; sh: 104; makefile: 25
file content (59 lines) | stat: -rw-r--r-- 1,465 bytes parent folder | download | duplicates (3)
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
/*========================== begin_copyright_notice ============================

Copyright (C) 2019-2021 Intel Corporation

SPDX-License-Identifier: MIT

============================= end_copyright_notice ===========================*/

//
//  Filename : Driver_Model.h
//  Purpose  : Global definitions for many #defines and Macros to be used
//             By all portions of the driver
//
//  Date     : 7/11/2005
//  Date     : 4/04/2012  -  Removed XP support. Win7/Win8 only.
//=============================================================================

#ifndef  _DRIVER_MODEL_H_
#define  _DRIVER_MODEL_H_

// Info to determine version of OS for build

#ifdef _WIN32

    // These symbols should be taken from sdkddkver.h. But if not defined
    // for any reason or driver_model.h is included before sdkddkver.h,
    // do it here.
    #ifndef _WIN32_WINNT_WIN7
        #define _WIN32_WINNT_WIN7    0x0601
    #endif

    #ifdef WINVER
        #undef WINVER
    #endif

    #ifdef _WIN32_WINNT
       #undef _WIN32_WINNT
    #endif

    #undef  _NT_TARGET_VERSION  
    #undef  NTDDI_VERSION

    #define  _WIN32_WINNT   _WIN32_WINNT_WIN7
    #define WINVER  _WIN32_WINNT_WIN7
    #define  _NT_TARGET_VERSION  _WIN32_WINNT_WIN7
    #define NTDDI_VERSION   0x06010000

    #define LHDM    1
    #define XPDM    0
     
#else // #ifdef _WIN32

// Not a Windows OS
  #define LHDM    0
  #define XPDM    0

#endif // #ifdef _WIN32

#endif // _DRIVER_MODEL_H_