diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-23 10:41:04 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-03-23 10:41:04 +0000 |
commit | e89e30c90cbb96fa605d6b3f75907b096fc31aec (patch) | |
tree | 6adf0ef989e044748a8dcfccd41b454f578b52b5 /libdha/dhahelperwin/dhahelper.h | |
parent | 543c00752d19e74fcde0c6139eee985d3c1476c0 (diff) | |
download | mpv-e89e30c90cbb96fa605d6b3f75907b096fc31aec.tar.bz2 mpv-e89e30c90cbb96fa605d6b3f75907b096fc31aec.tar.xz |
Windows XP support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12058 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libdha/dhahelperwin/dhahelper.h')
-rw-r--r-- | libdha/dhahelperwin/dhahelper.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/libdha/dhahelperwin/dhahelper.h b/libdha/dhahelperwin/dhahelper.h new file mode 100644 index 0000000000..a93b6ebc67 --- /dev/null +++ b/libdha/dhahelperwin/dhahelper.h @@ -0,0 +1,50 @@ +#ifndef _DHAHELPER_H +#define _DHAHELPER_H 1 + +// Define the various device type values. Note that values used by Microsoft +// Corporation are in the range 0-32767, and 32768-65535 are reserved for use +// by customers. + +#define FILE_DEVICE_DHAHELPER 0x00008011 + +// Macro definition for defining IOCTL and FSCTL function control codes. +// Note that function codes 0-2047 are reserved for Microsoft Corporation, +// and 2048-4095 are reserved for customers. + +#define DHAHELPER_IOCTL_INDEX 0x810 + +#define IOCTL_DHAHELPER_MAPPHYSTOLIN CTL_CODE(FILE_DEVICE_DHAHELPER, \ + DHAHELPER_IOCTL_INDEX, \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_DHAHELPER_UNMAPPHYSADDR CTL_CODE(FILE_DEVICE_DHAHELPER, \ + DHAHELPER_IOCTL_INDEX + 1, \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_DHAHELPER_ENABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \ + DHAHELPER_IOCTL_INDEX + 2, \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + +#define IOCTL_DHAHELPER_DISABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \ + DHAHELPER_IOCTL_INDEX + 3, \ + METHOD_BUFFERED, \ + FILE_ANY_ACCESS) + + +#if !defined(__MINGW32__) && !defined(__CYGWIN__) +#pragma pack(1) +typedef struct dhahelper_t { +#else +struct __attribute__((__packed__)) dhahelper_t { +#endif + unsigned int size; + void* base; + void* ptr; +}; + +typedef struct dhahelper_t dhahelper_t; + +#endif |