mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 20:32:36 +00:00
7d6bda16c6
NB: Not touching calls in "third-party" code: class and classpnp.
67 lines
1.8 KiB
C
67 lines
1.8 KiB
C
/*
|
|
* PROJECT: ReactOS PCI Bus Driver
|
|
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
|
* FILE: drivers/bus/pci/intrface/pmeintf.c
|
|
* PURPOSE: Power Management Event# Signal Interface
|
|
* PROGRAMMERS: ReactOS Portable Systems Group
|
|
*/
|
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
#include <pci.h>
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* GLOBALS ********************************************************************/
|
|
|
|
PCI_INTERFACE PciPmeInterface =
|
|
{
|
|
&GUID_PCI_PME_INTERFACE,
|
|
sizeof(PCI_PME_INTERFACE),
|
|
PCI_PME_INTRF_STANDARD_VER,
|
|
PCI_PME_INTRF_STANDARD_VER,
|
|
PCI_INTERFACE_FDO | PCI_INTERFACE_ROOT,
|
|
0,
|
|
PciInterface_PmeHandler,
|
|
PciPmeInterfaceConstructor,
|
|
PciPmeInterfaceInitializer
|
|
};
|
|
|
|
/* FUNCTIONS ******************************************************************/
|
|
|
|
NTSTATUS
|
|
NTAPI
|
|
PciPmeInterfaceInitializer(IN PVOID Instance)
|
|
{
|
|
UNREFERENCED_PARAMETER(Instance);
|
|
/* PnP Interfaces don't get Initialized */
|
|
ASSERTMSG("PCI PciPmeInterfaceInitializer, unexpected call.\n", FALSE);
|
|
return STATUS_UNSUCCESSFUL;
|
|
}
|
|
|
|
NTSTATUS
|
|
NTAPI
|
|
PciPmeInterfaceConstructor(IN PVOID DeviceExtension,
|
|
IN PVOID Instance,
|
|
IN PVOID InterfaceData,
|
|
IN USHORT Version,
|
|
IN USHORT Size,
|
|
IN PINTERFACE Interface)
|
|
{
|
|
UNREFERENCED_PARAMETER(DeviceExtension);
|
|
UNREFERENCED_PARAMETER(Instance);
|
|
UNREFERENCED_PARAMETER(InterfaceData);
|
|
UNREFERENCED_PARAMETER(Size);
|
|
UNREFERENCED_PARAMETER(Interface);
|
|
|
|
/* Only version 1 is supported */
|
|
if (Version != PCI_PME_INTRF_STANDARD_VER) return STATUS_NOINTERFACE;
|
|
|
|
/* Not yet implemented */
|
|
UNIMPLEMENTED_DBGBREAK();
|
|
return STATUS_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
/* EOF */
|