+2002-12-19 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/ddk/hidusage.h: Remove unneccessary #pragma pack's.
+ * include/ddk/miniport.h (EMULATOR_PORT_ACCESS_TYPE): Define
+ before using.
+ (VIDEO_ACCESS_RANGE): Guard against prior definition.
+ * include/ddk/minitape.h (INQUIRYDATA): Guard against prior
+ definition.
+ * include/ddk/ndis.h (DECLARE_UNKNOWN_PROTOTYPE): Correct macro.
+ * include/ddk/ndisguid.h: Remove unneccessary #pragma pack's.
+ * include/ddk/scsi.h (INQUIRYDATA): Guard against prior
+ definition.
+ * include/ddk/scsiwmi.h (GUID): Define if not already done.
+ (LPCGUID): Likewise.
+ * include/ddk/tdi.h: Close "Listen flags" comment.
+ * include/ddk/tdistat.h: Remove unneccessary #pragma pack's.
+ * include/ddk/video.h: Add #pragma pack(push,4) to balance.
+ (VIDEO_ACCESS_RANGE): Guard against prior definition.
+ * include/ddk/videoagp.h:Add #pragma pack(push,4) to balance.
+ * include/ddk/win2k.h: Likewise.
+ * include/ddk/winddi.h: Likewise.
+ * include/ddk/winddk.h: Likewise.
+ * include/ddk/winnt4.h: Likewise.
+ * include/ddk/ws2san.h: Likewise.
+ * include/ddk/xfilter.h: Remove unbalanced #pragma pack(pop).
+ * include/ddk/video.h: Don't process rest of file ifdef
+ __WINDDI_H.
+ * include/ddk/winddi.h: Don't process rest of file ifdef
+ __VIDEO_H.
+ * include/ddk/usb.h: Don't process rest of file ifdef
+ __USBDI_H.
+ * include/ddk/usbdi.h: Don't process rest of file ifdef
+ __USB_H.
+ * include/ddk/usbcamdi.h: Don't process rest of file if
+ !defined(__USB_H) && !defined(__USBDI_H)
+
2002-12-18 James E. Lucas <xelloss@users.sourceforge.net>
* include/winnetwk.h (WNetResourceInformation[AW]): Correct
extern "C" {
#endif
-#pragma pack(push,4)
-
typedef USHORT USAGE, *PUSAGE;
#define HID_USAGE_GENERIC_POINTER ((USAGE) 0x01)
#define HID_USAGE_SIMULATION_RUDDER ((USAGE) 0xBA)
#define HID_USAGE_SIMULATION_THROTTLE ((USAGE) 0xBB)
-#pragma pack(pop)
-
#ifdef __cplusplus
}
#endif
#define EMULATOR_READ_ACCESS 0x01
#define EMULATOR_WRITE_ACCESS 0x02
+typedef enum _EMULATOR_PORT_ACCESS_TYPE {
+ Uchar,
+ Ushort,
+ Ulong
+} EMULATOR_PORT_ACCESS_TYPE, *PEMULATOR_PORT_ACCESS_TYPE;
+
+
typedef struct _EMULATOR_ACCESS_ENTRY {
ULONG BasePort;
ULONG NumConsecutivePorts;
PVOID Routine;
} EMULATOR_ACCESS_ENTRY, *PEMULATOR_ACCESS_ENTRY;
-typedef enum _EMULATOR_PORT_ACCESS_TYPE {
- Uchar,
- Ushort,
- Ulong
-} EMULATOR_PORT_ACCESS_TYPE, *PEMULATOR_PORT_ACCESS_TYPE;
-
+#ifndef VIDEO_ACCESS_RANGE_DEFINED /* also in video.h */
+#define VIDEO_ACCESS_RANGE_DEFINED
typedef struct _VIDEO_ACCESS_RANGE {
PHYSICAL_ADDRESS RangeStart;
ULONG RangeLength;
UCHAR RangeShareable;
UCHAR RangePassive;
} VIDEO_ACCESS_RANGE, *PVIDEO_ACCESS_RANGE;
+#endif
typedef VOID DDKAPI
(*PBANKED_SECTION_ROUTINE)(
} TAPE_STATUS, *PTAPE_STATUS;
#define INQUIRYDATABUFFERSIZE 36
-
+#ifndef _INQUIRYDATA_DEFINED /* also in scsi.h */
+#define _INQUIRYDATA_DEFINED
typedef struct _INQUIRYDATA {
UCHAR DeviceType : 5;
UCHAR DeviceTypeQualifier : 3;
UCHAR VendorSpecific[20];
UCHAR Reserved3[40];
} INQUIRYDATA, *PINQUIRYDATA;
+#endif
typedef struct _MODE_CAPABILITIES_PAGE {
UCHAR PageCode : 6;
typedef struct _##BaseName BaseName, *P##BaseName;
#define DECLARE_UNKNOWN_PROTOTYPE(Name) \
- typedef VOID (*##Name)(VOID);
+ typedef VOID (*(Name))(VOID);
#define ETH_LENGTH_OF_ADDRESS 6
extern "C" {
#endif
-#pragma pack(push,4)
-
DEFINE_GUID(GUID_NDIS_LAN_CLASS,
0xad498944, 0x762f, 0x11d0, 0x8d, 0xcb, 0x00, 0xc0, 0x4f, 0xc3, 0x35, 0x8c);
DEFINE_GUID(GUID_NDIS_STATUS_RESET_START,
0x981f2d76, 0xb1f3, 0x11d0, 0x8d, 0xd7, 0x00, 0xc0, 0x4f, 0xc3, 0x35, 0x8c);
-#pragma pack(pop)
-
#ifdef __cplusplus
}
#endif
UCHAR AsByte[16];
} CDB, *PCDB;
+#ifndef _INQUIRYDATA_DEFINED /* also in minitape.h */
+#define _INQUIRYDATA_DEFINED
+
#define INQUIRYDATABUFFERSIZE 36
typedef struct _INQUIRYDATA {
UCHAR VendorSpecific[20];
UCHAR Reserved3[40];
} INQUIRYDATA, *PINQUIRYDATA;
+#endif
/* INQUIRYDATA.DeviceType constants */
#define DIRECT_ACCESS_DEVICE 0x00
ULONG ReturnSize;
} SCSIWMI_REQUEST_CONTEXT, *PSCSIWMI_REQUEST_CONTEXT;
+#ifndef _GUID_DEFINED
+#define _GUID_DEFINED
+typedef struct _GUID {
+ unsigned long Data1;
+ unsigned short Data2;
+ unsigned short Data3;
+ unsigned char Data4[ 8 ];
+} GUID;
+#endif
+
+#ifndef _LPCGUID_DEFINED
+#define _LPCGUID_DEFINED
+typedef const GUID *LPCGUID;
+#endif
+
typedef struct _SCSIWMIGUIDREGINFO {
LPCGUID Guid;
ULONG InstanceCount;
#define TDI_RECEIVE_AT_DISPATCH_LEVEL 0x00000800
#define TDI_RECEIVE_CONTROL_INFO 0x00001000
-/* Listen flags *
+/* Listen flags */
#define TDI_QUERY_ACCEPT 0x00000001
/* Options used for both SendOptions and ReceiveIndicators */
extern "C" {
#endif
-#pragma pack(push,4)
-
#define TDI_SUCCESS STATUS_SUCCESS
#define TDI_NO_RESOURCES STATUS_INSUFFICIENT_RESOURCES
#define TDI_ADDR_IN_USE STATUS_ADDRESS_ALREADY_EXISTS
#define TDI_ADDRESS_OPTION_REUSE 1
#define TDI_ADDRESS_OPTION_DHCP 2
-#pragma pack(pop)
-
#ifdef __cplusplus
}
#endif
#pragma GCC system_header
#endif
+#ifdef __USBDI_H
+#error usbdi.h cannot be included with usb.h
+#else
+
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(push,4)
-#ifdef __USBDI_H
-#error usbdi.h cannot be included with usb.h
-#endif
-
#include "ntddk.h"
#include "usb100.h"
}
#endif
+#endif /* defined __USBDI_H */
+
#endif /* __USB_H */
#pragma GCC system_header
#endif
+#if !defined(__USB_H) && !defined(__USBDI_H)
+#error include usb.h or usbdi.h before usbcamdi.h
+#else
+
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(push,4)
-#if !defined(__USB_H) && !defined(__USBDI_H)
-#error include usb.h or usbdi.h before usbcamdi.h
-#endif
-
#include "ntddk.h"
#if defined(_BATTERYCLASS_)
}
#endif
+#endif /* !defined(__USB_H) && !defined(__USBDI_H) */
+
+
#endif /* __USBCAMDI_H */
#pragma GCC system_header
#endif
+#ifdef __USB_H
+#error usb.h cannot be included with usbdi.h
+#else
+
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(push,4)
-#ifdef __USB_H
-#error usb.h cannot be included with usbdi.h
-#endif
-
#include "ntddk.h"
#include "usbioctl.h"
}
#endif
+#endif /* defined __USB_H */
+
#endif /* __USBDI_H */
#ifndef __VIDEO_H
#define __VIDEO_H
-#ifdef __WINDDI_H
-#error winddi.h cannot be included with video.h
-#endif
#if __GNUC__ >=3
#pragma GCC system_header
#endif
+#ifdef __WINDDI_H
+#error winddi.h cannot be included with video.h
+#else
+
#ifdef __cplusplus
extern "C" {
#endif
+#pragma pack(push,4)
+
#include "ntddk.h"
#if defined(_VIDEOPORT_)
#define VIDEO_RANGE_PASSIVE_DECODE 1
#define VIDEO_RANGE_10_BIT_DECODE 2
+#ifndef VIDEO_ACCESS_RANGE_DEFINED /* also in miniport.h */
+#define VIDEO_ACCESS_RANGE_DEFINED
typedef struct _VIDEO_ACCESS_RANGE {
PHYSICAL_ADDRESS RangeStart;
ULONG RangeLength;
UCHAR RangeShareable;
UCHAR RangePassive;
} VIDEO_ACCESS_RANGE, *PVIDEO_ACCESS_RANGE;
+#endif
typedef VOID DDKAPI
(*PVIDEO_HW_LEGACYRESOURCES)(
}
#endif
+#endif /* defined __WINDDI_H */
+
#endif /* __VIDEO_H */
extern "C" {
#endif
+#pragma pack(push,4)
+
#include "ntddk.h"
#include "video.h"
#include "ntddk.h"
+#pragma pack(push,4)
typedef enum _BUS_DATA_TYPE {
ConfigurationSpaceUndefined = -1,
#ifndef __WINDDI_H
#define __WINDDI_H
-#ifdef __VIDEO_H
-#error video.h cannot be included with winddi.h
-#endif
-
#if __GNUC__ >=3
#pragma GCC system_header
#endif
+#ifdef __VIDEO_H
+#error video.h cannot be included with winddi.h
+#else
+
#ifdef __cplusplus
extern "C" {
#endif
}
#endif
+#endif /* defined __VIDEO_H */
+
#endif /* __WINDDI_H */
extern "C" {
#endif
+#pragma pack(push,4)
+
/*
** Definitions specific to this Device Driver Kit
*/
extern "C" {
#endif
+#pragma pack(push,4)
+
typedef struct _ZONE_SEGMENT_HEADER {
SINGLE_LIST_ENTRY SegmentList;
PVOID Reserved;
extern "C" {
#endif
+#pragma pack(push,4)
+
#include <winsock2.h>
#include "ntddk.h"
} \
}
-#pragma pack(pop)
-
#ifdef __cplusplus
}
#endif