A couple of header fixes to get all the FreeLDR-loaded boot drivers to compile and...
[reactos.git] / reactos / include / ddk / miniport.h
1 /*
2 * miniport.h
3 *
4 * Type definitions for miniport drivers
5 *
6 * This file is part of the w32api package.
7 *
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 */
22
23 #ifndef __MINIPORT_H
24 #define __MINIPORT_H
25
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 #define EMULATOR_READ_ACCESS 0x01
35 #define EMULATOR_WRITE_ACCESS 0x02
36
37 typedef enum _EMULATOR_PORT_ACCESS_TYPE {
38 Uchar,
39 Ushort,
40 Ulong
41 } EMULATOR_PORT_ACCESS_TYPE, *PEMULATOR_PORT_ACCESS_TYPE;
42
43
44 typedef struct _EMULATOR_ACCESS_ENTRY {
45 ULONG BasePort;
46 ULONG NumConsecutivePorts;
47 EMULATOR_PORT_ACCESS_TYPE AccessType;
48 UCHAR AccessMode;
49 UCHAR StringSupport;
50 PVOID Routine;
51 } EMULATOR_ACCESS_ENTRY, *PEMULATOR_ACCESS_ENTRY;
52
53 #ifndef VIDEO_ACCESS_RANGE_DEFINED /* also in video.h */
54 #define VIDEO_ACCESS_RANGE_DEFINED
55 typedef struct _VIDEO_ACCESS_RANGE {
56 PHYSICAL_ADDRESS RangeStart;
57 ULONG RangeLength;
58 UCHAR RangeInIoSpace;
59 UCHAR RangeVisible;
60 UCHAR RangeShareable;
61 UCHAR RangePassive;
62 } VIDEO_ACCESS_RANGE, *PVIDEO_ACCESS_RANGE;
63 #endif
64
65 typedef VOID DDKAPI
66 (*PBANKED_SECTION_ROUTINE)(
67 IN ULONG ReadBank,
68 IN ULONG WriteBank,
69 IN PVOID Context);
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif /* __MINIPORT_H */