2014-02-06 11:18:34 +00:00
|
|
|
#ifndef _PCMCIA_PCH_
|
|
|
|
#define _PCMCIA_PCH_
|
|
|
|
|
2014-01-04 13:04:11 +00:00
|
|
|
#include <wdm.h>
|
2010-04-15 01:59:15 +00:00
|
|
|
|
2013-11-23 18:36:05 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
dsStopped,
|
|
|
|
dsStarted,
|
|
|
|
dsPaused,
|
|
|
|
dsRemoved,
|
|
|
|
dsSurpriseRemoved
|
2010-04-15 01:59:15 +00:00
|
|
|
} PCMCIA_DEVICE_STATE;
|
|
|
|
|
2013-11-23 18:36:05 +00:00
|
|
|
typedef struct _PCMCIA_COMMON_EXTENSION
|
|
|
|
{
|
|
|
|
PDEVICE_OBJECT Self;
|
|
|
|
BOOLEAN IsFDO;
|
|
|
|
POWER_SEQUENCE PowerSequence;
|
|
|
|
PCMCIA_DEVICE_STATE State;
|
|
|
|
DEVICE_POWER_STATE DevicePowerState;
|
|
|
|
SYSTEM_POWER_STATE SystemPowerState;
|
2010-04-15 01:59:15 +00:00
|
|
|
} PCMCIA_COMMON_EXTENSION, *PPCMCIA_COMMON_EXTENSION;
|
|
|
|
|
2013-11-23 18:36:05 +00:00
|
|
|
typedef struct _PCMCIA_PDO_EXTENSION
|
|
|
|
{
|
|
|
|
PCMCIA_COMMON_EXTENSION Common;
|
2010-04-15 01:59:15 +00:00
|
|
|
} PCMCIA_PDO_EXTENSION, *PPCMCIA_PDO_EXTENSION;
|
|
|
|
|
2013-11-23 18:36:05 +00:00
|
|
|
typedef struct _PCMCIA_FDO_EXTENSION
|
|
|
|
{
|
|
|
|
PCMCIA_COMMON_EXTENSION Common;
|
|
|
|
PDEVICE_OBJECT Ldo;
|
|
|
|
LIST_ENTRY ChildDeviceList;
|
|
|
|
KSPIN_LOCK Lock;
|
2010-04-15 01:59:15 +00:00
|
|
|
} PCMCIA_FDO_EXTENSION, *PPCMCIA_FDO_EXTENSION;
|
|
|
|
|
|
|
|
/* pdo.c */
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
PcmciaPdoPlugPlay(PPCMCIA_PDO_EXTENSION PdoExt,
|
|
|
|
PIRP Irp);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
PcmciaPdoSetPowerState(PPCMCIA_PDO_EXTENSION PdoExt);
|
|
|
|
|
|
|
|
/* fdo.c */
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
PcmciaFdoPlugPlay(PPCMCIA_FDO_EXTENSION FdoExt,
|
|
|
|
PIRP Irp);
|
|
|
|
|
2014-02-06 11:18:34 +00:00
|
|
|
#endif /* _PCMCIA_PCH_ */
|