mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
- Move INTERFACE_TYPE, IO_RESOURCE_DESCRIPTOR, IO_RESOURCE_REQUIREMENTS_LIST, CM_PARTIAL_RESOURCE_DESCRIPTOR to wdm.h
- Fix alignment of CM_PARTIAL_RESOURCE_DESCRIPTOR - Remove typedef of PEX_RUNDOWN_REF_CACHE_AWARE, it already exists in wdm.h (verified with WinDDK7) - Fix build 1/2 svn path=/trunk/; revision=40809
This commit is contained in:
parent
80f131ebef
commit
d4551d4f61
3 changed files with 172 additions and 172 deletions
|
@ -71,7 +71,100 @@ typedef int CM_RESOURCE_TYPE;
|
||||||
#define CmResourceTypePcCardConfig 130
|
#define CmResourceTypePcCardConfig 130
|
||||||
#define CmResourceTypeMfCardConfig 131
|
#define CmResourceTypeMfCardConfig 131
|
||||||
|
|
||||||
|
typedef enum _INTERFACE_TYPE {
|
||||||
|
InterfaceTypeUndefined = -1,
|
||||||
|
Internal,
|
||||||
|
Isa,
|
||||||
|
Eisa,
|
||||||
|
MicroChannel,
|
||||||
|
TurboChannel,
|
||||||
|
PCIBus,
|
||||||
|
VMEBus,
|
||||||
|
NuBus,
|
||||||
|
PCMCIABus,
|
||||||
|
CBus,
|
||||||
|
MPIBus,
|
||||||
|
MPSABus,
|
||||||
|
ProcessorInternal,
|
||||||
|
InternalPowerBus,
|
||||||
|
PNPISABus,
|
||||||
|
PNPBus,
|
||||||
|
MaximumInterfaceType
|
||||||
|
} INTERFACE_TYPE, *PINTERFACE_TYPE;
|
||||||
|
|
||||||
|
/* IO_RESOURCE_DESCRIPTOR.Option */
|
||||||
|
|
||||||
|
#define IO_RESOURCE_PREFERRED 0x01
|
||||||
|
#define IO_RESOURCE_DEFAULT 0x02
|
||||||
|
#define IO_RESOURCE_ALTERNATIVE 0x08
|
||||||
|
|
||||||
|
typedef struct _IO_RESOURCE_DESCRIPTOR {
|
||||||
|
UCHAR Option;
|
||||||
|
UCHAR Type;
|
||||||
|
UCHAR ShareDisposition;
|
||||||
|
UCHAR Spare1;
|
||||||
|
USHORT Flags;
|
||||||
|
USHORT Spare2;
|
||||||
|
union {
|
||||||
|
struct {
|
||||||
|
ULONG Length;
|
||||||
|
ULONG Alignment;
|
||||||
|
PHYSICAL_ADDRESS MinimumAddress;
|
||||||
|
PHYSICAL_ADDRESS MaximumAddress;
|
||||||
|
} Port;
|
||||||
|
struct {
|
||||||
|
ULONG Length;
|
||||||
|
ULONG Alignment;
|
||||||
|
PHYSICAL_ADDRESS MinimumAddress;
|
||||||
|
PHYSICAL_ADDRESS MaximumAddress;
|
||||||
|
} Memory;
|
||||||
|
struct {
|
||||||
|
ULONG MinimumVector;
|
||||||
|
ULONG MaximumVector;
|
||||||
|
} Interrupt;
|
||||||
|
struct {
|
||||||
|
ULONG MinimumChannel;
|
||||||
|
ULONG MaximumChannel;
|
||||||
|
} Dma;
|
||||||
|
struct {
|
||||||
|
ULONG Length;
|
||||||
|
ULONG Alignment;
|
||||||
|
PHYSICAL_ADDRESS MinimumAddress;
|
||||||
|
PHYSICAL_ADDRESS MaximumAddress;
|
||||||
|
} Generic;
|
||||||
|
struct {
|
||||||
|
ULONG Data[3];
|
||||||
|
} DevicePrivate;
|
||||||
|
struct {
|
||||||
|
ULONG Length;
|
||||||
|
ULONG MinBusNumber;
|
||||||
|
ULONG MaxBusNumber;
|
||||||
|
ULONG Reserved;
|
||||||
|
} BusNumber;
|
||||||
|
struct {
|
||||||
|
ULONG Priority;
|
||||||
|
ULONG Reserved1;
|
||||||
|
ULONG Reserved2;
|
||||||
|
} ConfigData;
|
||||||
|
} u;
|
||||||
|
} IO_RESOURCE_DESCRIPTOR, *PIO_RESOURCE_DESCRIPTOR;
|
||||||
|
|
||||||
|
typedef struct _IO_RESOURCE_LIST {
|
||||||
|
USHORT Version;
|
||||||
|
USHORT Revision;
|
||||||
|
ULONG Count;
|
||||||
|
IO_RESOURCE_DESCRIPTOR Descriptors[1];
|
||||||
|
} IO_RESOURCE_LIST, *PIO_RESOURCE_LIST;
|
||||||
|
|
||||||
|
typedef struct _IO_RESOURCE_REQUIREMENTS_LIST {
|
||||||
|
ULONG ListSize;
|
||||||
|
INTERFACE_TYPE InterfaceType;
|
||||||
|
ULONG BusNumber;
|
||||||
|
ULONG SlotNumber;
|
||||||
|
ULONG Reserved[3];
|
||||||
|
ULONG AlternativeLists;
|
||||||
|
IO_RESOURCE_LIST List[1];
|
||||||
|
} IO_RESOURCE_REQUIREMENTS_LIST, *PIO_RESOURCE_REQUIREMENTS_LIST;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Global debug flag
|
// Global debug flag
|
||||||
|
@ -79,6 +172,81 @@ typedef int CM_RESOURCE_TYPE;
|
||||||
extern ULONG NtGlobalFlag;
|
extern ULONG NtGlobalFlag;
|
||||||
|
|
||||||
|
|
||||||
|
#include <pshpack4.h>
|
||||||
|
typedef struct _CM_PARTIAL_RESOURCE_DESCRIPTOR {
|
||||||
|
UCHAR Type;
|
||||||
|
UCHAR ShareDisposition;
|
||||||
|
USHORT Flags;
|
||||||
|
union {
|
||||||
|
struct {
|
||||||
|
PHYSICAL_ADDRESS Start;
|
||||||
|
ULONG Length;
|
||||||
|
} Generic;
|
||||||
|
struct {
|
||||||
|
PHYSICAL_ADDRESS Start;
|
||||||
|
ULONG Length;
|
||||||
|
} Port;
|
||||||
|
struct {
|
||||||
|
ULONG Level;
|
||||||
|
ULONG Vector;
|
||||||
|
KAFFINITY Affinity;
|
||||||
|
} Interrupt;
|
||||||
|
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
||||||
|
struct {
|
||||||
|
union {
|
||||||
|
struct {
|
||||||
|
USHORT Reserved;
|
||||||
|
USHORT MessageCount;
|
||||||
|
ULONG Vector;
|
||||||
|
KAFFINITY Affinity;
|
||||||
|
} Raw;
|
||||||
|
struct {
|
||||||
|
ULONG Level;
|
||||||
|
ULONG Vector;
|
||||||
|
KAFFINITY Affinity;
|
||||||
|
} Translated;
|
||||||
|
};
|
||||||
|
} MessageInterrupt;
|
||||||
|
#endif
|
||||||
|
struct {
|
||||||
|
PHYSICAL_ADDRESS Start;
|
||||||
|
ULONG Length;
|
||||||
|
} Memory;
|
||||||
|
struct {
|
||||||
|
ULONG Channel;
|
||||||
|
ULONG Port;
|
||||||
|
ULONG Reserved1;
|
||||||
|
} Dma;
|
||||||
|
struct {
|
||||||
|
ULONG Data[3];
|
||||||
|
} DevicePrivate;
|
||||||
|
struct {
|
||||||
|
ULONG Start;
|
||||||
|
ULONG Length;
|
||||||
|
ULONG Reserved;
|
||||||
|
} BusNumber;
|
||||||
|
struct {
|
||||||
|
ULONG DataSize;
|
||||||
|
ULONG Reserved1;
|
||||||
|
ULONG Reserved2;
|
||||||
|
} DeviceSpecificData;
|
||||||
|
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
||||||
|
struct {
|
||||||
|
PHYSICAL_ADDRESS Start;
|
||||||
|
ULONG Length40;
|
||||||
|
} Memory40;
|
||||||
|
struct {
|
||||||
|
PHYSICAL_ADDRESS Start;
|
||||||
|
ULONG Length48;
|
||||||
|
} Memory48;
|
||||||
|
struct {
|
||||||
|
PHYSICAL_ADDRESS Start;
|
||||||
|
ULONG Length64;
|
||||||
|
} Memory64;
|
||||||
|
#endif
|
||||||
|
} u;
|
||||||
|
} CM_PARTIAL_RESOURCE_DESCRIPTOR, *PCM_PARTIAL_RESOURCE_DESCRIPTOR;
|
||||||
|
#include <poppack.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Section map options
|
// Section map options
|
||||||
|
@ -2317,6 +2485,8 @@ typedef struct _EX_RUNDOWN_REF {
|
||||||
};
|
};
|
||||||
} EX_RUNDOWN_REF, *PEX_RUNDOWN_REF;
|
} EX_RUNDOWN_REF, *PEX_RUNDOWN_REF;
|
||||||
|
|
||||||
|
typedef struct _EX_RUNDOWN_REF_CACHE_AWARE *PEX_RUNDOWN_REF_CACHE_AWARE;
|
||||||
|
|
||||||
typedef enum _WORK_QUEUE_TYPE {
|
typedef enum _WORK_QUEUE_TYPE {
|
||||||
CriticalWorkQueue,
|
CriticalWorkQueue,
|
||||||
DelayedWorkQueue,
|
DelayedWorkQueue,
|
||||||
|
|
|
@ -1620,108 +1620,12 @@ typedef struct _CM_FLOPPY_DEVICE_DATA {
|
||||||
UCHAR DataTransferRate;
|
UCHAR DataTransferRate;
|
||||||
} CM_FLOPPY_DEVICE_DATA, *PCM_FLOPPY_DEVICE_DATA;
|
} CM_FLOPPY_DEVICE_DATA, *PCM_FLOPPY_DEVICE_DATA;
|
||||||
|
|
||||||
typedef enum _INTERFACE_TYPE {
|
|
||||||
InterfaceTypeUndefined = -1,
|
|
||||||
Internal,
|
|
||||||
Isa,
|
|
||||||
Eisa,
|
|
||||||
MicroChannel,
|
|
||||||
TurboChannel,
|
|
||||||
PCIBus,
|
|
||||||
VMEBus,
|
|
||||||
NuBus,
|
|
||||||
PCMCIABus,
|
|
||||||
CBus,
|
|
||||||
MPIBus,
|
|
||||||
MPSABus,
|
|
||||||
ProcessorInternal,
|
|
||||||
InternalPowerBus,
|
|
||||||
PNPISABus,
|
|
||||||
PNPBus,
|
|
||||||
MaximumInterfaceType
|
|
||||||
} INTERFACE_TYPE, *PINTERFACE_TYPE;
|
|
||||||
|
|
||||||
typedef struct _PNP_BUS_INFORMATION {
|
typedef struct _PNP_BUS_INFORMATION {
|
||||||
GUID BusTypeGuid;
|
GUID BusTypeGuid;
|
||||||
INTERFACE_TYPE LegacyBusType;
|
INTERFACE_TYPE LegacyBusType;
|
||||||
ULONG BusNumber;
|
ULONG BusNumber;
|
||||||
} PNP_BUS_INFORMATION, *PPNP_BUS_INFORMATION;
|
} PNP_BUS_INFORMATION, *PPNP_BUS_INFORMATION;
|
||||||
|
|
||||||
#include <pshpack1.h>
|
|
||||||
typedef struct _CM_PARTIAL_RESOURCE_DESCRIPTOR {
|
|
||||||
UCHAR Type;
|
|
||||||
UCHAR ShareDisposition;
|
|
||||||
USHORT Flags;
|
|
||||||
union {
|
|
||||||
struct {
|
|
||||||
PHYSICAL_ADDRESS Start;
|
|
||||||
ULONG Length;
|
|
||||||
} Generic;
|
|
||||||
struct {
|
|
||||||
PHYSICAL_ADDRESS Start;
|
|
||||||
ULONG Length;
|
|
||||||
} Port;
|
|
||||||
struct {
|
|
||||||
ULONG Level;
|
|
||||||
ULONG Vector;
|
|
||||||
KAFFINITY Affinity;
|
|
||||||
} Interrupt;
|
|
||||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
|
||||||
struct {
|
|
||||||
union {
|
|
||||||
struct {
|
|
||||||
USHORT Reserved;
|
|
||||||
USHORT MessageCount;
|
|
||||||
ULONG Vector;
|
|
||||||
KAFFINITY Affinity;
|
|
||||||
} Raw;
|
|
||||||
struct {
|
|
||||||
ULONG Level;
|
|
||||||
ULONG Vector;
|
|
||||||
KAFFINITY Affinity;
|
|
||||||
} Translated;
|
|
||||||
};
|
|
||||||
} MessageInterrupt;
|
|
||||||
#endif
|
|
||||||
struct {
|
|
||||||
PHYSICAL_ADDRESS Start;
|
|
||||||
ULONG Length;
|
|
||||||
} Memory;
|
|
||||||
struct {
|
|
||||||
ULONG Channel;
|
|
||||||
ULONG Port;
|
|
||||||
ULONG Reserved1;
|
|
||||||
} Dma;
|
|
||||||
struct {
|
|
||||||
ULONG Data[3];
|
|
||||||
} DevicePrivate;
|
|
||||||
struct {
|
|
||||||
ULONG Start;
|
|
||||||
ULONG Length;
|
|
||||||
ULONG Reserved;
|
|
||||||
} BusNumber;
|
|
||||||
struct {
|
|
||||||
ULONG DataSize;
|
|
||||||
ULONG Reserved1;
|
|
||||||
ULONG Reserved2;
|
|
||||||
} DeviceSpecificData;
|
|
||||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
|
||||||
struct {
|
|
||||||
PHYSICAL_ADDRESS Start;
|
|
||||||
ULONG Length40;
|
|
||||||
} Memory40;
|
|
||||||
struct {
|
|
||||||
PHYSICAL_ADDRESS Start;
|
|
||||||
ULONG Length48;
|
|
||||||
} Memory48;
|
|
||||||
struct {
|
|
||||||
PHYSICAL_ADDRESS Start;
|
|
||||||
ULONG Length64;
|
|
||||||
} Memory64;
|
|
||||||
#endif
|
|
||||||
} u;
|
|
||||||
} CM_PARTIAL_RESOURCE_DESCRIPTOR, *PCM_PARTIAL_RESOURCE_DESCRIPTOR;
|
|
||||||
|
|
||||||
/* CM_PARTIAL_RESOURCE_DESCRIPTOR.Type */
|
/* CM_PARTIAL_RESOURCE_DESCRIPTOR.Type */
|
||||||
|
|
||||||
#define CmResourceTypeNull 0
|
#define CmResourceTypeNull 0
|
||||||
|
@ -1836,7 +1740,7 @@ typedef struct _CM_PNP_BIOS_INSTALLATION_CHECK
|
||||||
ULONG ProtectedModeDataBaseAddress;
|
ULONG ProtectedModeDataBaseAddress;
|
||||||
} CM_PNP_BIOS_INSTALLATION_CHECK, *PCM_PNP_BIOS_INSTALLATION_CHECK;
|
} CM_PNP_BIOS_INSTALLATION_CHECK, *PCM_PNP_BIOS_INSTALLATION_CHECK;
|
||||||
|
|
||||||
#include <poppack.h>
|
|
||||||
|
|
||||||
typedef struct _CM_DISK_GEOMETRY_DEVICE_DATA
|
typedef struct _CM_DISK_GEOMETRY_DEVICE_DATA
|
||||||
{
|
{
|
||||||
|
@ -1963,80 +1867,6 @@ typedef enum _KINTERRUPT_POLARITY
|
||||||
InterruptActiveLow
|
InterruptActiveLow
|
||||||
} KINTERRUPT_POLARITY, *PKINTERRUPT_POLARITY;
|
} KINTERRUPT_POLARITY, *PKINTERRUPT_POLARITY;
|
||||||
|
|
||||||
/* IO_RESOURCE_DESCRIPTOR.Option */
|
|
||||||
|
|
||||||
#define IO_RESOURCE_PREFERRED 0x01
|
|
||||||
#define IO_RESOURCE_DEFAULT 0x02
|
|
||||||
#define IO_RESOURCE_ALTERNATIVE 0x08
|
|
||||||
|
|
||||||
typedef struct _IO_RESOURCE_DESCRIPTOR {
|
|
||||||
UCHAR Option;
|
|
||||||
UCHAR Type;
|
|
||||||
UCHAR ShareDisposition;
|
|
||||||
UCHAR Spare1;
|
|
||||||
USHORT Flags;
|
|
||||||
USHORT Spare2;
|
|
||||||
union {
|
|
||||||
struct {
|
|
||||||
ULONG Length;
|
|
||||||
ULONG Alignment;
|
|
||||||
PHYSICAL_ADDRESS MinimumAddress;
|
|
||||||
PHYSICAL_ADDRESS MaximumAddress;
|
|
||||||
} Port;
|
|
||||||
struct {
|
|
||||||
ULONG Length;
|
|
||||||
ULONG Alignment;
|
|
||||||
PHYSICAL_ADDRESS MinimumAddress;
|
|
||||||
PHYSICAL_ADDRESS MaximumAddress;
|
|
||||||
} Memory;
|
|
||||||
struct {
|
|
||||||
ULONG MinimumVector;
|
|
||||||
ULONG MaximumVector;
|
|
||||||
} Interrupt;
|
|
||||||
struct {
|
|
||||||
ULONG MinimumChannel;
|
|
||||||
ULONG MaximumChannel;
|
|
||||||
} Dma;
|
|
||||||
struct {
|
|
||||||
ULONG Length;
|
|
||||||
ULONG Alignment;
|
|
||||||
PHYSICAL_ADDRESS MinimumAddress;
|
|
||||||
PHYSICAL_ADDRESS MaximumAddress;
|
|
||||||
} Generic;
|
|
||||||
struct {
|
|
||||||
ULONG Data[3];
|
|
||||||
} DevicePrivate;
|
|
||||||
struct {
|
|
||||||
ULONG Length;
|
|
||||||
ULONG MinBusNumber;
|
|
||||||
ULONG MaxBusNumber;
|
|
||||||
ULONG Reserved;
|
|
||||||
} BusNumber;
|
|
||||||
struct {
|
|
||||||
ULONG Priority;
|
|
||||||
ULONG Reserved1;
|
|
||||||
ULONG Reserved2;
|
|
||||||
} ConfigData;
|
|
||||||
} u;
|
|
||||||
} IO_RESOURCE_DESCRIPTOR, *PIO_RESOURCE_DESCRIPTOR;
|
|
||||||
|
|
||||||
typedef struct _IO_RESOURCE_LIST {
|
|
||||||
USHORT Version;
|
|
||||||
USHORT Revision;
|
|
||||||
ULONG Count;
|
|
||||||
IO_RESOURCE_DESCRIPTOR Descriptors[1];
|
|
||||||
} IO_RESOURCE_LIST, *PIO_RESOURCE_LIST;
|
|
||||||
|
|
||||||
typedef struct _IO_RESOURCE_REQUIREMENTS_LIST {
|
|
||||||
ULONG ListSize;
|
|
||||||
INTERFACE_TYPE InterfaceType;
|
|
||||||
ULONG BusNumber;
|
|
||||||
ULONG SlotNumber;
|
|
||||||
ULONG Reserved[3];
|
|
||||||
ULONG AlternativeLists;
|
|
||||||
IO_RESOURCE_LIST List[1];
|
|
||||||
} IO_RESOURCE_REQUIREMENTS_LIST, *PIO_RESOURCE_REQUIREMENTS_LIST;
|
|
||||||
|
|
||||||
typedef struct _IO_ERROR_LOG_PACKET {
|
typedef struct _IO_ERROR_LOG_PACKET {
|
||||||
UCHAR MajorFunctionCode;
|
UCHAR MajorFunctionCode;
|
||||||
UCHAR RetryCount;
|
UCHAR RetryCount;
|
||||||
|
|
|
@ -418,7 +418,7 @@ typedef struct _EX_RUNDOWN_REF_CACHE_AWARE
|
||||||
PVOID PoolToFree;
|
PVOID PoolToFree;
|
||||||
ULONG RunRefSize;
|
ULONG RunRefSize;
|
||||||
ULONG Number;
|
ULONG Number;
|
||||||
} EX_RUNDOWN_REF_CACHE_AWARE, *PEX_RUNDOWN_REF_CACHE_AWARE;
|
} EX_RUNDOWN_REF_CACHE_AWARE;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Executive Rundown Wait Block
|
// Executive Rundown Wait Block
|
||||||
|
|
Loading…
Reference in a new issue