1 | /*
|
---|
2 | * Copyright 2008 Francois Gouget for CodeWeavers
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef _NTDDK_
|
---|
29 | #define _NTDDK_
|
---|
30 |
|
---|
31 | /* Note: We will probably have to duplicate everything ultimately :-( */
|
---|
32 | #include <ddk/wdm.h>
|
---|
33 |
|
---|
34 | #include <excpt.h>
|
---|
35 | /* FIXME: #include <ntdef.h> */
|
---|
36 | #include <ntstatus.h>
|
---|
37 | /* FIXME: #include <bugcodes.h> */
|
---|
38 | /* FIXME: #include <ntiologc.h> */
|
---|
39 |
|
---|
40 |
|
---|
41 | typedef enum _BUS_DATA_TYPE
|
---|
42 | {
|
---|
43 | ConfigurationSpaceUndefined = -1,
|
---|
44 | Cmos,
|
---|
45 | EisaConfiguration,
|
---|
46 | Pos,
|
---|
47 | CbusConfiguration,
|
---|
48 | PCIConfiguration,
|
---|
49 | VMEConfiguration,
|
---|
50 | NuBusConfiguration,
|
---|
51 | PCMCIAConfiguration,
|
---|
52 | MPIConfiguration,
|
---|
53 | MPSAConfiguration,
|
---|
54 | PNPISAConfiguration,
|
---|
55 | MaximumBusDataType
|
---|
56 | } BUS_DATA_TYPE, *PBUS_DATA_TYPE;
|
---|
57 |
|
---|
58 | typedef struct _CONFIGURATION_INFORMATION
|
---|
59 | {
|
---|
60 | ULONG DiskCount;
|
---|
61 | ULONG FloppyCount;
|
---|
62 | ULONG CdRomCount;
|
---|
63 | ULONG TapeCount;
|
---|
64 | ULONG ScsiPortCount;
|
---|
65 | ULONG SerialCount;
|
---|
66 | ULONG ParallelCount;
|
---|
67 | BOOLEAN AtDiskPrimaryAddressClaimed;
|
---|
68 | BOOLEAN AtDiskSecondaryAddressClaimed;
|
---|
69 | ULONG Version;
|
---|
70 | ULONG MediumChangerCount;
|
---|
71 | } CONFIGURATION_INFORMATION, *PCONFIGURATION_INFORMATION;
|
---|
72 |
|
---|
73 | typedef VOID (WINAPI *PDRIVER_REINITIALIZE)(PDRIVER_OBJECT,PVOID,ULONG);
|
---|
74 |
|
---|
75 | void WINAPI IoRegisterDriverReinitialization(PDRIVER_OBJECT,PDRIVER_REINITIALIZE,PVOID);
|
---|
76 | NTSTATUS WINAPI IoRegisterShutdownNotification(PDEVICE_OBJECT);
|
---|
77 |
|
---|
78 | #endif
|
---|