Mercurial > mplayer.hg
annotate vidix/dhahelperwin/dhahelper.h @ 29672:bc094de7968e
Sync with current FFmpeg HEAD.
author | diego |
---|---|
date | Thu, 24 Sep 2009 10:09:14 +0000 |
parents | 2391228b7ff0 |
children |
rev | line source |
---|---|
26726
a1c020529cc0
Use standard license header with standard formatting.
diego
parents:
26030
diff
changeset
|
1 /* |
a1c020529cc0
Use standard license header with standard formatting.
diego
parents:
26030
diff
changeset
|
2 * direct hardware access under Windows NT/2000/XP |
a1c020529cc0
Use standard license header with standard formatting.
diego
parents:
26030
diff
changeset
|
3 * |
28307
2391228b7ff0
cosmetics: Remove pointless period after copyright statement non-sentences.
diego
parents:
26726
diff
changeset
|
4 * Copyright (c) 2004 Sascha Sommer <saschasommer@freenet.de> |
23277 | 5 * |
6 * This file is part of MPlayer. | |
7 * | |
8 * MPlayer is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * MPlayer is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
26726
a1c020529cc0
Use standard license header with standard formatting.
diego
parents:
26030
diff
changeset
|
18 * You should have received a copy of the GNU General Public License along |
a1c020529cc0
Use standard license header with standard formatting.
diego
parents:
26030
diff
changeset
|
19 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
a1c020529cc0
Use standard license header with standard formatting.
diego
parents:
26030
diff
changeset
|
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
a1c020529cc0
Use standard license header with standard formatting.
diego
parents:
26030
diff
changeset
|
21 */ |
23277 | 22 |
26030 | 23 #ifndef MPLAYER_DHAHELPER_H |
24 #define MPLAYER_DHAHELPER_H | |
12057 | 25 |
26 // Define the various device type values. Note that values used by Microsoft | |
27 // Corporation are in the range 0-32767, and 32768-65535 are reserved for use | |
28 // by customers. | |
29 | |
30 #define FILE_DEVICE_DHAHELPER 0x00008011 | |
31 | |
32 // Macro definition for defining IOCTL and FSCTL function control codes. | |
33 // Note that function codes 0-2047 are reserved for Microsoft Corporation, | |
34 // and 2048-4095 are reserved for customers. | |
35 | |
36 #define DHAHELPER_IOCTL_INDEX 0x810 | |
37 | |
23276 | 38 #define IOCTL_DHAHELPER_MAPPHYSTOLIN CTL_CODE(FILE_DEVICE_DHAHELPER, \ |
39 DHAHELPER_IOCTL_INDEX, \ | |
40 METHOD_BUFFERED, \ | |
41 FILE_ANY_ACCESS) | |
12057 | 42 |
23276 | 43 #define IOCTL_DHAHELPER_UNMAPPHYSADDR CTL_CODE(FILE_DEVICE_DHAHELPER, \ |
44 DHAHELPER_IOCTL_INDEX + 1, \ | |
45 METHOD_BUFFERED, \ | |
46 FILE_ANY_ACCESS) | |
12057 | 47 |
23276 | 48 #define IOCTL_DHAHELPER_ENABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \ |
49 DHAHELPER_IOCTL_INDEX + 2, \ | |
50 METHOD_BUFFERED, \ | |
51 FILE_ANY_ACCESS) | |
12057 | 52 |
23276 | 53 #define IOCTL_DHAHELPER_DISABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \ |
54 DHAHELPER_IOCTL_INDEX + 3, \ | |
55 METHOD_BUFFERED, \ | |
56 FILE_ANY_ACCESS) | |
57 | |
58 | |
59 #if !defined(__MINGW32__) && !defined(__CYGWIN__) | |
12057 | 60 #pragma pack(1) |
61 typedef struct dhahelper_t { | |
62 #else | |
63 struct __attribute__((__packed__)) dhahelper_t { | |
64 #endif | |
65 unsigned int size; | |
66 void* base; | |
67 void* ptr; | |
68 }; | |
69 | |
70 typedef struct dhahelper_t dhahelper_t; | |
71 | |
26030 | 72 #endif /* MPLAYER_DHAHELPER_H */ |