comparison vidix/dhahelperwin/dhahelper.h @ 22900:a9e111b88c4a

merged libdha and libvidix, moved all files from libdha to vidix directory
author ben
date Fri, 06 Apr 2007 15:20:49 +0000
parents libdha/dhahelperwin/dhahelper.h@0f058e9cd422
children 1eb8ea777dc4
comparison
equal deleted inserted replaced
22899:515545f81186 22900:a9e111b88c4a
1 #ifndef _DHAHELPER_H
2 #define _DHAHELPER_H 1
3
4 // Define the various device type values. Note that values used by Microsoft
5 // Corporation are in the range 0-32767, and 32768-65535 are reserved for use
6 // by customers.
7
8 #define FILE_DEVICE_DHAHELPER 0x00008011
9
10 // Macro definition for defining IOCTL and FSCTL function control codes.
11 // Note that function codes 0-2047 are reserved for Microsoft Corporation,
12 // and 2048-4095 are reserved for customers.
13
14 #define DHAHELPER_IOCTL_INDEX 0x810
15
16 #define IOCTL_DHAHELPER_MAPPHYSTOLIN CTL_CODE(FILE_DEVICE_DHAHELPER, \
17 DHAHELPER_IOCTL_INDEX, \
18 METHOD_BUFFERED, \
19 FILE_ANY_ACCESS)
20
21 #define IOCTL_DHAHELPER_UNMAPPHYSADDR CTL_CODE(FILE_DEVICE_DHAHELPER, \
22 DHAHELPER_IOCTL_INDEX + 1, \
23 METHOD_BUFFERED, \
24 FILE_ANY_ACCESS)
25
26 #define IOCTL_DHAHELPER_ENABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
27 DHAHELPER_IOCTL_INDEX + 2, \
28 METHOD_BUFFERED, \
29 FILE_ANY_ACCESS)
30
31 #define IOCTL_DHAHELPER_DISABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
32 DHAHELPER_IOCTL_INDEX + 3, \
33 METHOD_BUFFERED, \
34 FILE_ANY_ACCESS)
35
36
37 #if !defined(__MINGW32__) && !defined(__CYGWIN__)
38 #pragma pack(1)
39 typedef struct dhahelper_t {
40 #else
41 struct __attribute__((__packed__)) dhahelper_t {
42 #endif
43 unsigned int size;
44 void* base;
45 void* ptr;
46 };
47
48 typedef struct dhahelper_t dhahelper_t;
49
50 #endif