[CRT] Massively improve performance of rand_s
[reactos.git] / drivers / bus / pcmcia / pcmcia.h
index b653683..254784f 100644 (file)
@@ -1,35 +1,38 @@
-
-#include <ntifs.h>
-#include <wdmguid.h>
-#include <stdio.h>
-#include <ntddk.h>
-
-typedef enum {
-  dsStopped,
-  dsStarted,
-  dsPaused,
-  dsRemoved,
-  dsSurpriseRemoved
+#ifndef _PCMCIA_PCH_
+#define _PCMCIA_PCH_
+
+#include <wdm.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;
+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;
+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;
+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 */
@@ -48,3 +51,4 @@ NTAPI
 PcmciaFdoPlugPlay(PPCMCIA_FDO_EXTENSION FdoExt,
                   PIRP Irp);
 
+#endif /* _PCMCIA_PCH_ */