annotate vidix/dhahelperwin/dhahelper.h @ 31107:a29b422baba5

Do not run xmllint prior to building the XML documentation. xmllint is just a convenient way to check for syntax errors; it is not a requirement to build the documentation.
author diego
date Tue, 11 May 2010 21:21:45 +0000
parents 2391228b7ff0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
5 *
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
6 * This file is part of MPlayer.
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
7 *
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
8 * MPlayer is free software; you can redistribute it and/or modify
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
9 * it under the terms of the GNU General Public License as published by
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
11 * (at your option) any later version.
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
12 *
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
13 * MPlayer is distributed in the hope that it will be useful,
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
16 * GNU General Public License for more details.
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
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
32873ccfb007 Add correct boilerplate license headers.
diego
parents: 23276
diff changeset
22
26030
a93e46adb54c Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25618
diff changeset
23 #ifndef MPLAYER_DHAHELPER_H
a93e46adb54c Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25618
diff changeset
24 #define MPLAYER_DHAHELPER_H
12057
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
25
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
26 // Define the various device type values. Note that values used by Microsoft
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
27 // Corporation are in the range 0-32767, and 32768-65535 are reserved for use
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
28 // by customers.
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
29
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
30 #define FILE_DEVICE_DHAHELPER 0x00008011
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
31
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
32 // Macro definition for defining IOCTL and FSCTL function control codes.
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
33 // Note that function codes 0-2047 are reserved for Microsoft Corporation,
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
34 // and 2048-4095 are reserved for customers.
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
35
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
36 #define DHAHELPER_IOCTL_INDEX 0x810
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
37
23276
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
38 #define IOCTL_DHAHELPER_MAPPHYSTOLIN CTL_CODE(FILE_DEVICE_DHAHELPER, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
39 DHAHELPER_IOCTL_INDEX, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
40 METHOD_BUFFERED, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
41 FILE_ANY_ACCESS)
12057
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
42
23276
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
43 #define IOCTL_DHAHELPER_UNMAPPHYSADDR CTL_CODE(FILE_DEVICE_DHAHELPER, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
44 DHAHELPER_IOCTL_INDEX + 1, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
45 METHOD_BUFFERED, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
46 FILE_ANY_ACCESS)
12057
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
47
23276
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
48 #define IOCTL_DHAHELPER_ENABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
49 DHAHELPER_IOCTL_INDEX + 2, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
50 METHOD_BUFFERED, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
51 FILE_ANY_ACCESS)
12057
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
52
23276
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
53 #define IOCTL_DHAHELPER_DISABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
54 DHAHELPER_IOCTL_INDEX + 3, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
55 METHOD_BUFFERED, \
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
56 FILE_ANY_ACCESS)
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
57
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
58
1eb8ea777dc4 prettyprinting cosmetics
diego
parents: 22900
diff changeset
59 #if !defined(__MINGW32__) && !defined(__CYGWIN__)
12057
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
60 #pragma pack(1)
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
61 typedef struct dhahelper_t {
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
62 #else
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
63 struct __attribute__((__packed__)) dhahelper_t {
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
64 #endif
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
65 unsigned int size;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
66 void* base;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
67 void* ptr;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
68 };
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
69
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
70 typedef struct dhahelper_t dhahelper_t;
0f058e9cd422 Windows XP support
faust3
parents:
diff changeset
71
26030
a93e46adb54c Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25618
diff changeset
72 #endif /* MPLAYER_DHAHELPER_H */