annotate libdha/dhahelperwin/dhahelper.h @ 12999:bc8cda64ad7f

RGBA variants
author michael
date Wed, 11 Aug 2004 10:31:38 +0000
parents 0f058e9cd422
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12057
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
1 #ifndef _DHAHELPER_H
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
2 #define _DHAHELPER_H 1
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
3
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
4 // Define the various device type values. Note that values used by Microsoft
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
5 // Corporation are in the range 0-32767, and 32768-65535 are reserved for use
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
6 // by customers.
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
7
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
8 #define FILE_DEVICE_DHAHELPER 0x00008011
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
9
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
10 // Macro definition for defining IOCTL and FSCTL function control codes.
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
11 // Note that function codes 0-2047 are reserved for Microsoft Corporation,
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
12 // and 2048-4095 are reserved for customers.
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
13
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
14 #define DHAHELPER_IOCTL_INDEX 0x810
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
15
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
16 #define IOCTL_DHAHELPER_MAPPHYSTOLIN CTL_CODE(FILE_DEVICE_DHAHELPER, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
17 DHAHELPER_IOCTL_INDEX, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
18 METHOD_BUFFERED, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
19 FILE_ANY_ACCESS)
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
20
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
21 #define IOCTL_DHAHELPER_UNMAPPHYSADDR CTL_CODE(FILE_DEVICE_DHAHELPER, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
22 DHAHELPER_IOCTL_INDEX + 1, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
23 METHOD_BUFFERED, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
24 FILE_ANY_ACCESS)
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
25
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
26 #define IOCTL_DHAHELPER_ENABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
27 DHAHELPER_IOCTL_INDEX + 2, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
28 METHOD_BUFFERED, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
29 FILE_ANY_ACCESS)
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
30
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
31 #define IOCTL_DHAHELPER_DISABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
32 DHAHELPER_IOCTL_INDEX + 3, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
33 METHOD_BUFFERED, \
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
34 FILE_ANY_ACCESS)
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
35
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
36
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
37 #if !defined(__MINGW32__) && !defined(__CYGWIN__)
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
38 #pragma pack(1)
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
39 typedef struct dhahelper_t {
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
40 #else
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
41 struct __attribute__((__packed__)) dhahelper_t {
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
42 #endif
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
43 unsigned int size;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
44 void* base;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
45 void* ptr;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
46 };
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
47
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
48 typedef struct dhahelper_t dhahelper_t;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
49
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
50 #endif