mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00

- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup - In the future, DO NOT under any circumstances branch another branch. This leads to merge problems! svn path=/branches/usb-bringup-trunk/; revision=55018
50 lines
1 KiB
C
50 lines
1 KiB
C
|
|
#include <ntifs.h>
|
|
#include <wdmguid.h>
|
|
#include <stdio.h>
|
|
#include <ntddk.h>
|
|
|
|
typedef enum {
|
|
dsStopped,
|
|
dsStarted,
|
|
dsPaused,
|
|
dsRemoved,
|
|
dsSurpriseRemoved
|
|
} PCMCIA_DEVICE_STATE;
|
|
|
|
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;
|
|
} PCMCIA_COMMON_EXTENSION, *PPCMCIA_COMMON_EXTENSION;
|
|
|
|
typedef struct _PCMCIA_PDO_EXTENSION {
|
|
PCMCIA_COMMON_EXTENSION Common;
|
|
} PCMCIA_PDO_EXTENSION, *PPCMCIA_PDO_EXTENSION;
|
|
|
|
typedef struct _PCMCIA_FDO_EXTENSION {
|
|
PCMCIA_COMMON_EXTENSION Common;
|
|
PDEVICE_OBJECT Ldo;
|
|
LIST_ENTRY ChildDeviceList;
|
|
KSPIN_LOCK Lock;
|
|
} 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);
|
|
|