Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-06-03 02:21:54 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2003-06-03 02:21:54 +0400
commit38b524b3858c96cca78e32e80cb67509b38aab05 (patch)
tree31a12dd51cc46343ce4c9954e56df55a304c396d /winsup/w32api/include
parent3786526ea849a4b7daba6ca5609bf8c4445c894e (diff)
* include/ddk/ntpoapi.h (POWER_INFORMATION_LEVEL): Remove.
* include/winnt.h (POWER_INFORMATION_LEVEL): Add. * include/ddk/winddk.h (SINGLE_LIST_ENTRY,SLIST_HEADER): Remove. * include/ddk/ndis.h (NdisAllocateSpinLock): Add missing '\'.
Diffstat (limited to 'winsup/w32api/include')
-rw-r--r--winsup/w32api/include/ddk/ndis.h2
-rw-r--r--winsup/w32api/include/ddk/ntpoapi.h26
-rw-r--r--winsup/w32api/include/ddk/winddk.h16
-rw-r--r--winsup/w32api/include/winnt.h26
4 files changed, 27 insertions, 43 deletions
diff --git a/winsup/w32api/include/ddk/ndis.h b/winsup/w32api/include/ddk/ndis.h
index a1133f918..d1d46515f 100644
--- a/winsup/w32api/include/ddk/ndis.h
+++ b/winsup/w32api/include/ddk/ndis.h
@@ -2524,7 +2524,7 @@ NdisUnicodeStringToAnsiString(
* NdisAllocateSpinLock(
* IN PNDIS_SPIN_LOCK SpinLock);
*/
-#define NdisAllocateSpinLock(_SpinLock)
+#define NdisAllocateSpinLock(_SpinLock) \
KeInitializeSpinLock(&(_SpinLock)->SpinLock)
/*
diff --git a/winsup/w32api/include/ddk/ntpoapi.h b/winsup/w32api/include/ddk/ntpoapi.h
index d1cdc64c5..d33de7140 100644
--- a/winsup/w32api/include/ddk/ntpoapi.h
+++ b/winsup/w32api/include/ddk/ntpoapi.h
@@ -36,32 +36,6 @@ extern "C" {
#include "ntddk.h"
#include "batclass.h"
-typedef enum _POWER_INFORMATION_LEVEL {
- SystemPowerPolicyAc,
- SystemPowerPolicyDc,
- VerifySystemPolicyAc,
- VerifySystemPolicyDc,
- SystemPowerCapabilities,
- SystemBatteryState,
- SystemPowerStateHandler,
- ProcessorStateHandler,
- SystemPowerPolicyCurrent,
- AdministratorPowerPolicy,
- SystemReserveHiberFile,
- ProcessorInformation,
- SystemPowerInformation,
- ProcessorStateHandler2,
- LastWakeTime,
- LastSleepTime,
- SystemExecutionState,
- SystemPowerStateNotifyHandler,
- ProcessorPowerPolicyAc,
- ProcessorPowerPolicyDc,
- VerifyProcessorPowerPolicyAc,
- VerifyProcessorPowerPolicyDc,
- ProcessorPowerPolicyCurrent
-} POWER_INFORMATION_LEVEL;
-
#define POWER_PERF_SCALE 100
#define PERF_LEVEL_TO_PERCENT(x) (((x) * 1000) / (POWER_PERF_SCALE * 10))
#define PERCENT_TO_PERF_LEVEL(x) (((x) * POWER_PERF_SCALE * 10) / 1000)
diff --git a/winsup/w32api/include/ddk/winddk.h b/winsup/w32api/include/ddk/winddk.h
index 986313369..f724377dc 100644
--- a/winsup/w32api/include/ddk/winddk.h
+++ b/winsup/w32api/include/ddk/winddk.h
@@ -138,22 +138,6 @@ typedef enum _MODE {
MaximumMode
} MODE;
-typedef struct _SINGLE_LIST_ENTRY {
- struct _SINGLE_LIST_ENTRY *Next;
-} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
-
-#define SLIST_ENTRY SINGLE_LIST_ENTRY
-#define PSLIST_ENTRY PSINGLE_LIST_ENTRY
-
-typedef union _SLIST_HEADER {
- ULONGLONG Alignment;
- struct {
- SLIST_ENTRY Next;
- USHORT Depth;
- USHORT Sequence;
- };
-} SLIST_HEADER, *PSLIST_HEADER;
-
/* Structures not exposed to drivers */
typedef struct _IO_TIMER *PIO_TIMER;
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index 4d91016ac..ea87f453c 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -2962,6 +2962,32 @@ typedef struct _SYSTEM_BATTERY_STATE {
ULONG DefaultAlert2;
} SYSTEM_BATTERY_STATE, *PSYSTEM_BATTERY_STATE;
+typedef enum _POWER_INFORMATION_LEVEL {
+ SystemPowerPolicyAc,
+ SystemPowerPolicyDc,
+ VerifySystemPolicyAc,
+ VerifySystemPolicyDc,
+ SystemPowerCapabilities,
+ SystemBatteryState,
+ SystemPowerStateHandler,
+ ProcessorStateHandler,
+ SystemPowerPolicyCurrent,
+ AdministratorPowerPolicy,
+ SystemReserveHiberFile,
+ ProcessorInformation,
+ SystemPowerInformation,
+ ProcessorStateHandler2,
+ LastWakeTime,
+ LastSleepTime,
+ SystemExecutionState,
+ SystemPowerStateNotifyHandler,
+ ProcessorPowerPolicyAc,
+ ProcessorPowerPolicyDc,
+ VerifyProcessorPowerPolicyAc,
+ VerifyProcessorPowerPolicyDc,
+ ProcessorPowerPolicyCurrent
+} POWER_INFORMATION_LEVEL;
+
#if 1 /* (WIN32_WINNT >= 0x0500) */
typedef struct _SYSTEM_POWER_INFORMATION {
ULONG MaxIdlenessAllowed;