xref: /reactos/drivers/bus/pcix/intrface/pmeintf.c (revision 7d6bda16)
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 
13 #define NDEBUG
14 #include <debug.h>
15 
16 /* GLOBALS ********************************************************************/
17 
18 PCI_INTERFACE PciPmeInterface =
19 {
20     &GUID_PCI_PME_INTERFACE,
21     sizeof(PCI_PME_INTERFACE),
22     PCI_PME_INTRF_STANDARD_VER,
23     PCI_PME_INTRF_STANDARD_VER,
24     PCI_INTERFACE_FDO | PCI_INTERFACE_ROOT,
25     0,
26     PciInterface_PmeHandler,
27     PciPmeInterfaceConstructor,
28     PciPmeInterfaceInitializer
29 };
30 
31 /* FUNCTIONS ******************************************************************/
32 
33 NTSTATUS
34 NTAPI
PciPmeInterfaceInitializer(IN PVOID Instance)35 PciPmeInterfaceInitializer(IN PVOID Instance)
36 {
37     UNREFERENCED_PARAMETER(Instance);
38     /* PnP Interfaces don't get Initialized */
39     ASSERTMSG("PCI PciPmeInterfaceInitializer, unexpected call.\n", FALSE);
40     return STATUS_UNSUCCESSFUL;
41 }
42 
43 NTSTATUS
44 NTAPI
PciPmeInterfaceConstructor(IN PVOID DeviceExtension,IN PVOID Instance,IN PVOID InterfaceData,IN USHORT Version,IN USHORT Size,IN PINTERFACE Interface)45 PciPmeInterfaceConstructor(IN PVOID DeviceExtension,
46                            IN PVOID Instance,
47                            IN PVOID InterfaceData,
48                            IN USHORT Version,
49                            IN USHORT Size,
50                            IN PINTERFACE Interface)
51 {
52     UNREFERENCED_PARAMETER(DeviceExtension);
53     UNREFERENCED_PARAMETER(Instance);
54     UNREFERENCED_PARAMETER(InterfaceData);
55     UNREFERENCED_PARAMETER(Size);
56     UNREFERENCED_PARAMETER(Interface);
57 
58     /* Only version 1 is supported */
59     if (Version != PCI_PME_INTRF_STANDARD_VER) return STATUS_NOINTERFACE;
60 
61     /* Not yet implemented */
62     UNIMPLEMENTED_DBGBREAK();
63     return STATUS_NOT_IMPLEMENTED;
64 }
65 
66 /* EOF */
67