osdep: Fix gettimeofday type to match the real one
[mplayer/glamo.git] / vidix / dhahelperwin / dhahelper.h
bloba41880a97d8f37221bc3ae1c06fb2585381de22b
1 /*
2 * direct hardware access under Windows NT/2000/XP
4 * Copyright (c) 2004 Sascha Sommer <saschasommer@freenet.de>
6 * This file is part of MPlayer.
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.
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.
18 * You should have received a copy of the GNU General Public License along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef MPLAYER_DHAHELPER_H
24 #define MPLAYER_DHAHELPER_H
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.
30 #define FILE_DEVICE_DHAHELPER 0x00008011
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.
36 #define DHAHELPER_IOCTL_INDEX 0x810
38 #define IOCTL_DHAHELPER_MAPPHYSTOLIN CTL_CODE(FILE_DEVICE_DHAHELPER, \
39 DHAHELPER_IOCTL_INDEX, \
40 METHOD_BUFFERED, \
41 FILE_ANY_ACCESS)
43 #define IOCTL_DHAHELPER_UNMAPPHYSADDR CTL_CODE(FILE_DEVICE_DHAHELPER, \
44 DHAHELPER_IOCTL_INDEX + 1, \
45 METHOD_BUFFERED, \
46 FILE_ANY_ACCESS)
48 #define IOCTL_DHAHELPER_ENABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
49 DHAHELPER_IOCTL_INDEX + 2, \
50 METHOD_BUFFERED, \
51 FILE_ANY_ACCESS)
53 #define IOCTL_DHAHELPER_DISABLEDIRECTIO CTL_CODE(FILE_DEVICE_DHAHELPER, \
54 DHAHELPER_IOCTL_INDEX + 3, \
55 METHOD_BUFFERED, \
56 FILE_ANY_ACCESS)
59 #if !defined(__MINGW32__) && !defined(__CYGWIN__)
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;
70 typedef struct dhahelper_t dhahelper_t;
72 #endif /* MPLAYER_DHAHELPER_H */