Create a branch for Aleksandar Andrejevic for his work on NTVDM. See http://jira...
[reactos.git] / drivers / bus / pcix / intrface / pmeintf.c
1 /*
2 * PROJECT: ReactOS PCI Bus Driver
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: drivers/bus/pci/intrface/pmeintf.c
5 * PURPOSE: Power Management Event# Signal Interface
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9 /* INCLUDES *******************************************************************/
10
11 #include <pci.h>
12 #define NDEBUG
13 #include <debug.h>
14
15 /* GLOBALS ********************************************************************/
16
17 PCI_INTERFACE PciPmeInterface =
18 {
19 &GUID_PCI_PME_INTERFACE,
20 sizeof(PCI_PME_INTERFACE),
21 PCI_PME_INTRF_STANDARD_VER,
22 PCI_PME_INTRF_STANDARD_VER,
23 PCI_INTERFACE_FDO | PCI_INTERFACE_ROOT,
24 0,
25 PciInterface_PmeHandler,
26 PciPmeInterfaceConstructor,
27 PciPmeInterfaceInitializer
28 };
29
30 /* FUNCTIONS ******************************************************************/
31
32 NTSTATUS
33 NTAPI
34 PciPmeInterfaceInitializer(IN PVOID Instance)
35 {
36 UNREFERENCED_PARAMETER(Instance);
37 /* PnP Interfaces don't get Initialized */
38 ASSERTMSG(FALSE, "PCI PciPmeInterfaceInitializer, unexpected call.");
39 return STATUS_UNSUCCESSFUL;
40 }
41
42 NTSTATUS
43 NTAPI
44 PciPmeInterfaceConstructor(IN PVOID DeviceExtension,
45 IN PVOID Instance,
46 IN PVOID InterfaceData,
47 IN USHORT Version,
48 IN USHORT Size,
49 IN PINTERFACE Interface)
50 {
51 UNREFERENCED_PARAMETER(DeviceExtension);
52 UNREFERENCED_PARAMETER(Instance);
53 UNREFERENCED_PARAMETER(InterfaceData);
54 UNREFERENCED_PARAMETER(Size);
55 UNREFERENCED_PARAMETER(Interface);
56
57 /* Only version 1 is supported */
58 if (Version != PCI_PME_INTRF_STANDARD_VER) return STATUS_NOINTERFACE;
59
60 /* Not yet implemented */
61 UNIMPLEMENTED_DBGBREAK();
62 return STATUS_NOT_IMPLEMENTED;
63 }
64
65 /* EOF */