Debian Codegraph @

src/win32/dha/dhahelper.h

raw symbols SCIP
1 /******************************************************************************
2 * dhahelper.c: direct hardware access under Windows NT/2000/XP
3 * Copyright (c) 2004 Sascha Sommer <[email protected]>.
4 *
5 * This file is part of MPlayer.
6 *
7 * MPlayer is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * MPlayer is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with MPlayer; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 *****************************************************************************/
21
22 #ifndef _DHAHELPER_H
23 #define _DHAHELPER_H 1
24
25 // Define the various device type values. Note that values used by Microsoft
26 // Corporation are in the range 0-32767, and 32768-65535 are reserved for use
27 // by customers.
28
29 #define FILE_DEVICE_DHAHELPER 0x00008011
30
31 // Macro definition for defining IOCTL and FSCTL function control codes.
32 // Note that function codes 0-2047 are reserved for Microsoft Corporation,
33 // and 2048-4095 are reserved for customers.
34
35 #define DHAHELPER_IOCTL_INDEX 0x810
36
37 #define IOCTL_DHAHELPER_MAPPHYSTOLIN CTL_CODE(FILE_DEVICE_DHAHELPER, \
38 DHAHELPER_IOCTL_INDEX, \
39 METHOD_BUFFERED, \
40 FILE_ANY_ACCESS)
41
42 #define IOCTL_DHAHELPER_UNMAPPHYSADDR CTL_CODE(FILE_DEVICE_DHAHELPER, \
43 DHAHELPER_IOCTL_INDEX + 1, \
44 METHOD_BUFFERED, \
45 FILE_ANY_ACCESS)
46
47 #define IOCTL_DHAHELPER_ENABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
48 DHAHELPER_IOCTL_INDEX + 2, \
49 METHOD_BUFFERED, \
50 FILE_ANY_ACCESS)
51
52 #define IOCTL_DHAHELPER_DISABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
53 DHAHELPER_IOCTL_INDEX + 3, \
54 METHOD_BUFFERED, \
55 FILE_ANY_ACCESS)
56
57
58 #if !defined(__MINGW32__) && !defined(__CYGWIN__)
59 #pragma pack(1)
60 typedef struct dhahelper_t {
61 #else
62 struct __attribute__((__packed__)) dhahelper_t {
63 #endif
64 unsigned int size;
65 void* base;
66 void* ptr;
67 };
68
69 typedef struct dhahelper_t dhahelper_t;
70
71 #endif