2002-10-06 Casper Hornstrup <chorns@it.dk>
* include/ddk: New subdir.
* lib/ddk: Ditto.
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): New files.
* lib/ddk/(Makefile.in, apcups.def, cfgmgr32.def, dxapi.def,
hal.def, hid.def, hidparse.def, mcd.def, ndis.def, ntoskrnl.def,
scsiport.def, tdi.def, usbcamd.def, usbcamd2.def, videoprt.def,
win32k.def): Ditto.
2002-10-07 06:18:26 +08:00
|
|
|
/*
|
|
|
|
* ndiswan.h
|
|
|
|
*
|
|
|
|
* Definitions for NDIS WAN miniport drivers
|
|
|
|
*
|
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): Change comment to refer w32api package, not MinGW.
2002-11-15 09:08:17 +08:00
|
|
|
* This file is part of the w32api package.
|
2002-10-06 Casper Hornstrup <chorns@it.dk>
* include/ddk: New subdir.
* lib/ddk: Ditto.
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): New files.
* lib/ddk/(Makefile.in, apcups.def, cfgmgr32.def, dxapi.def,
hal.def, hid.def, hidparse.def, mcd.def, ndis.def, ntoskrnl.def,
scsiport.def, tdi.def, usbcamd.def, usbcamd2.def, videoprt.def,
win32k.def): Ditto.
2002-10-07 06:18:26 +08:00
|
|
|
*
|
|
|
|
* Contributors:
|
|
|
|
* Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS NOT COPYRIGHTED
|
|
|
|
*
|
|
|
|
* This source code is offered for use in the public domain. You may
|
|
|
|
* use, modify or distribute it freely.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful but
|
|
|
|
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): Fix typo in disclaimer comment.
2002-11-13 05:34:07 +08:00
|
|
|
* DISCLAIMED. This includes but is not limited to warranties of
|
2002-10-06 Casper Hornstrup <chorns@it.dk>
* include/ddk: New subdir.
* lib/ddk: Ditto.
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): New files.
* lib/ddk/(Makefile.in, apcups.def, cfgmgr32.def, dxapi.def,
hal.def, hid.def, hidparse.def, mcd.def, ndis.def, ntoskrnl.def,
scsiport.def, tdi.def, usbcamd.def, usbcamd2.def, videoprt.def,
win32k.def): Ditto.
2002-10-07 06:18:26 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NDISWAN_H
|
|
|
|
#define __NDISWAN_H
|
|
|
|
|
|
|
|
#if __GNUC__ >=3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#pragma pack(push,4)
|
|
|
|
|
|
|
|
#include "ndis.h"
|
|
|
|
|
|
|
|
#define NDIS_USE_WAN_WRAPPER 0x00000001
|
|
|
|
|
|
|
|
#define NDIS_STATUS_TAPI_INDICATION ((NDIS_STATUS)0x40010080L)
|
|
|
|
|
|
|
|
/* NDIS_WAN_INFO.FramingBits constants */
|
|
|
|
#define RAS_FRAMING 0x00000001
|
|
|
|
#define RAS_COMPRESSION 0x00000002
|
|
|
|
|
|
|
|
#define ARAP_V1_FRAMING 0x00000004
|
|
|
|
#define ARAP_V2_FRAMING 0x00000008
|
|
|
|
#define ARAP_FRAMING (ARAP_V1_FRAMING | ARAP_V2_FRAMING)
|
|
|
|
|
|
|
|
#define PPP_MULTILINK_FRAMING 0x00000010
|
|
|
|
#define PPP_SHORT_SEQUENCE_HDR_FORMAT 0x00000020
|
|
|
|
#define PPP_MC_MULTILINK_FRAMING 0x00000040
|
|
|
|
|
|
|
|
#define PPP_FRAMING 0x00000100
|
|
|
|
#define PPP_COMPRESS_ADDRESS_CONTROL 0x00000200
|
|
|
|
#define PPP_COMPRESS_PROTOCOL_FIELD 0x00000400
|
|
|
|
#define PPP_ACCM_SUPPORTED 0x00000800
|
|
|
|
|
|
|
|
#define SLIP_FRAMING 0x00001000
|
|
|
|
#define SLIP_VJ_COMPRESSION 0x00002000
|
|
|
|
#define SLIP_VJ_AUTODETECT 0x00004000
|
|
|
|
|
|
|
|
#define MEDIA_NRZ_ENCODING 0x00010000
|
|
|
|
#define MEDIA_NRZI_ENCODING 0x00020000
|
|
|
|
#define MEDIA_NLPID 0x00040000
|
|
|
|
|
|
|
|
#define RFC_1356_FRAMING 0x00100000
|
|
|
|
#define RFC_1483_FRAMING 0x00200000
|
|
|
|
#define RFC_1490_FRAMING 0x00400000
|
|
|
|
#define LLC_ENCAPSULATION 0x00800000
|
|
|
|
|
|
|
|
#define SHIVA_FRAMING 0x01000000
|
|
|
|
#define NBF_PRESERVE_MAC_ADDRESS 0x01000000
|
|
|
|
|
|
|
|
#define PASS_THROUGH_MODE 0x10000000
|
|
|
|
#define RAW_PASS_THROUGH_MODE 0x20000000
|
|
|
|
|
|
|
|
#define TAPI_PROVIDER 0x80000000
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_INFO {
|
|
|
|
OUT ULONG MaxFrameSize;
|
|
|
|
OUT ULONG MaxTransmit;
|
|
|
|
OUT ULONG HeaderPadding;
|
|
|
|
OUT ULONG TailPadding;
|
|
|
|
OUT ULONG Endpoints;
|
|
|
|
OUT UINT MemoryFlags;
|
|
|
|
OUT NDIS_PHYSICAL_ADDRESS HighestAcceptableAddress;
|
|
|
|
OUT ULONG FramingBits;
|
|
|
|
OUT ULONG DesiredACCM;
|
|
|
|
} NDIS_WAN_INFO, *PNDIS_WAN_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_GET_LINK_INFO {
|
|
|
|
IN NDIS_HANDLE NdisLinkHandle;
|
|
|
|
OUT ULONG MaxSendFrameSize;
|
|
|
|
OUT ULONG MaxRecvFrameSize;
|
|
|
|
OUT ULONG HeaderPadding;
|
|
|
|
OUT ULONG TailPadding;
|
|
|
|
OUT ULONG SendFramingBits;
|
|
|
|
OUT ULONG RecvFramingBits;
|
|
|
|
OUT ULONG SendCompressionBits;
|
|
|
|
OUT ULONG RecvCompressionBits;
|
|
|
|
OUT ULONG SendACCM;
|
|
|
|
OUT ULONG RecvACCM;
|
|
|
|
} NDIS_WAN_GET_LINK_INFO, *PNDIS_WAN_GET_LINK_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_SET_LINK_INFO {
|
|
|
|
IN NDIS_HANDLE NdisLinkHandle;
|
|
|
|
IN ULONG MaxSendFrameSize;
|
|
|
|
IN ULONG MaxRecvFrameSize;
|
|
|
|
IN ULONG HeaderPadding;
|
|
|
|
IN ULONG TailPadding;
|
|
|
|
IN ULONG SendFramingBits;
|
|
|
|
IN ULONG RecvFramingBits;
|
|
|
|
IN ULONG SendCompressionBits;
|
|
|
|
IN ULONG RecvCompressionBits;
|
|
|
|
IN ULONG SendACCM;
|
|
|
|
IN ULONG RecvACCM;
|
|
|
|
} NDIS_WAN_SET_LINK_INFO, *PNDIS_WAN_SET_LINK_INFO;
|
|
|
|
|
|
|
|
/* NDIS_WAN_COMPRESS_INFO.MSCompType constants */
|
|
|
|
#define NDISWAN_COMPRESSION 0x00000001
|
|
|
|
#define NDISWAN_ENCRYPTION 0x00000010
|
|
|
|
#define NDISWAN_40_ENCRYPTION 0x00000020
|
|
|
|
#define NDISWAN_128_ENCRYPTION 0x00000040
|
|
|
|
#define NDISWAN_56_ENCRYPTION 0x00000080
|
|
|
|
#define NDISWAN_HISTORY_LESS 0x01000000
|
|
|
|
|
|
|
|
/* NDIS_WAN_COMPRESS_INFO.CompType constants */
|
|
|
|
#define COMPTYPE_OUI 0
|
|
|
|
#define COMPTYPE_NT31RAS 254
|
|
|
|
#define COMPTYPE_NONE 255
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_COMPRESS_INFO {
|
|
|
|
UCHAR SessionKey[8];
|
|
|
|
ULONG MSCompType;
|
|
|
|
UCHAR CompType;
|
|
|
|
USHORT CompLength;
|
Clean up warnings in ddk.
* include/ddk/atm.h (_ATM_AAL_OOB_INFO): Add _ANONYMOUS_UNION,
conditional on __cplusplus.
* include/ddk/scsi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
(_CDB): Add _ANONYMOUS_UNION, conditional on __cplusplus.
* include/ddk/cfg.h (_PNP_VETO_TYPE): Remove extra comma.
* include/ddk/cfgmgr32.h: Change C++ comment style to ISO C.
* include/ddk/ddkmapi.h (_DDLOCKOUT): Add _ANONYMOUS_UNION defines.
* include/ddk/hidpi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
* include/ddk/ndis.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout. Remove trailing semicolon from *_S 'structure'
macro expansion, throughout. Remove trailing semicolon from
DECLARE_UNKNOWN_STRUCT macro expansion.
* include/ddk/ndiswan.h (_NDIS_WAN_COMPRESS_INFO): Add
_ANONYMOUS_UNION.
* include/ddk/ntapi.h (_PROCESS_DEVICEMAP_INFORMATION,
_PROCESS_SESSION_INFORMATION): Add _ANONYMOUS_UNION.
* include/ddk/ntddcdrm.h (CDROM_TOC_CD_TEXT_DATA_BLOCK):
Add _ANONYMOUS_UNION.
* include/ddk/ntdddisk.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntddmou.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntifs.h: Add _ANONYMOUS_UNION, throughout.
(ZwQueryObject): Change 2nd param to OBJECT_INFORMATION_CLASS, to
match proto in ntapi.h.
(ZwSetInformationObject): Likewise.
* include/ddk/srb.h (SCSI_REQUEST_BLOCK): Add _ANONYMOUS_UNION.
(SCSI_ADAPTER_CONTROL_TYPE): Add __extension__.
* include/ddk/tdikrnl.h (TDI20_CLIENT_INTERFACE_INFO): Add
_ANONYMOUS_UNION and _ANONYMOUS_STRUCT.
* include/ddk/usb.h (USB): Add _ANONYMOUS_UNION.
* include/ddk/usbcamdi.h (USBCAMD_CamControlFlags): Remove
last comma.
* include/ddk/video.h (STATUS_BLOCK): Add _ANONYMOUS_UNION.
* include/ddk/winddk.h (DECLARE_INTERNAL_OBJECT): Remove
trailing semicolon when expanding macro.
(GENERAL_LOOKASIDE_S): Likewise.
Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT, throughout.
Change inline to __inline, throughout.
* include/ddk/winnt4.h: Change inline to __inline, throughout.
2003-07-17 05:49:02 +08:00
|
|
|
_ANONYMOUS_UNION union {
|
2002-10-06 Casper Hornstrup <chorns@it.dk>
* include/ddk: New subdir.
* lib/ddk: Ditto.
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): New files.
* lib/ddk/(Makefile.in, apcups.def, cfgmgr32.def, dxapi.def,
hal.def, hid.def, hidparse.def, mcd.def, ndis.def, ntoskrnl.def,
scsiport.def, tdi.def, usbcamd.def, usbcamd2.def, videoprt.def,
win32k.def): Ditto.
2002-10-07 06:18:26 +08:00
|
|
|
struct {
|
|
|
|
UCHAR CompOUI[3];
|
|
|
|
UCHAR CompSubType;
|
|
|
|
UCHAR CompValues[32];
|
|
|
|
} Proprietary;
|
|
|
|
struct {
|
Clean up warnings in ddk.
* include/ddk/atm.h (_ATM_AAL_OOB_INFO): Add _ANONYMOUS_UNION,
conditional on __cplusplus.
* include/ddk/scsi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
(_CDB): Add _ANONYMOUS_UNION, conditional on __cplusplus.
* include/ddk/cfg.h (_PNP_VETO_TYPE): Remove extra comma.
* include/ddk/cfgmgr32.h: Change C++ comment style to ISO C.
* include/ddk/ddkmapi.h (_DDLOCKOUT): Add _ANONYMOUS_UNION defines.
* include/ddk/hidpi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
* include/ddk/ndis.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout. Remove trailing semicolon from *_S 'structure'
macro expansion, throughout. Remove trailing semicolon from
DECLARE_UNKNOWN_STRUCT macro expansion.
* include/ddk/ndiswan.h (_NDIS_WAN_COMPRESS_INFO): Add
_ANONYMOUS_UNION.
* include/ddk/ntapi.h (_PROCESS_DEVICEMAP_INFORMATION,
_PROCESS_SESSION_INFORMATION): Add _ANONYMOUS_UNION.
* include/ddk/ntddcdrm.h (CDROM_TOC_CD_TEXT_DATA_BLOCK):
Add _ANONYMOUS_UNION.
* include/ddk/ntdddisk.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntddmou.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntifs.h: Add _ANONYMOUS_UNION, throughout.
(ZwQueryObject): Change 2nd param to OBJECT_INFORMATION_CLASS, to
match proto in ntapi.h.
(ZwSetInformationObject): Likewise.
* include/ddk/srb.h (SCSI_REQUEST_BLOCK): Add _ANONYMOUS_UNION.
(SCSI_ADAPTER_CONTROL_TYPE): Add __extension__.
* include/ddk/tdikrnl.h (TDI20_CLIENT_INTERFACE_INFO): Add
_ANONYMOUS_UNION and _ANONYMOUS_STRUCT.
* include/ddk/usb.h (USB): Add _ANONYMOUS_UNION.
* include/ddk/usbcamdi.h (USBCAMD_CamControlFlags): Remove
last comma.
* include/ddk/video.h (STATUS_BLOCK): Add _ANONYMOUS_UNION.
* include/ddk/winddk.h (DECLARE_INTERNAL_OBJECT): Remove
trailing semicolon when expanding macro.
(GENERAL_LOOKASIDE_S): Likewise.
Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT, throughout.
Change inline to __inline, throughout.
* include/ddk/winnt4.h: Change inline to __inline, throughout.
2003-07-17 05:49:02 +08:00
|
|
|
UCHAR CompValues[32];
|
2002-10-06 Casper Hornstrup <chorns@it.dk>
* include/ddk: New subdir.
* lib/ddk: Ditto.
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): New files.
* lib/ddk/(Makefile.in, apcups.def, cfgmgr32.def, dxapi.def,
hal.def, hid.def, hidparse.def, mcd.def, ndis.def, ntoskrnl.def,
scsiport.def, tdi.def, usbcamd.def, usbcamd2.def, videoprt.def,
win32k.def): Ditto.
2002-10-07 06:18:26 +08:00
|
|
|
} Public;
|
Clean up warnings in ddk.
* include/ddk/atm.h (_ATM_AAL_OOB_INFO): Add _ANONYMOUS_UNION,
conditional on __cplusplus.
* include/ddk/scsi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
(_CDB): Add _ANONYMOUS_UNION, conditional on __cplusplus.
* include/ddk/cfg.h (_PNP_VETO_TYPE): Remove extra comma.
* include/ddk/cfgmgr32.h: Change C++ comment style to ISO C.
* include/ddk/ddkmapi.h (_DDLOCKOUT): Add _ANONYMOUS_UNION defines.
* include/ddk/hidpi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
* include/ddk/ndis.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout. Remove trailing semicolon from *_S 'structure'
macro expansion, throughout. Remove trailing semicolon from
DECLARE_UNKNOWN_STRUCT macro expansion.
* include/ddk/ndiswan.h (_NDIS_WAN_COMPRESS_INFO): Add
_ANONYMOUS_UNION.
* include/ddk/ntapi.h (_PROCESS_DEVICEMAP_INFORMATION,
_PROCESS_SESSION_INFORMATION): Add _ANONYMOUS_UNION.
* include/ddk/ntddcdrm.h (CDROM_TOC_CD_TEXT_DATA_BLOCK):
Add _ANONYMOUS_UNION.
* include/ddk/ntdddisk.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntddmou.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntifs.h: Add _ANONYMOUS_UNION, throughout.
(ZwQueryObject): Change 2nd param to OBJECT_INFORMATION_CLASS, to
match proto in ntapi.h.
(ZwSetInformationObject): Likewise.
* include/ddk/srb.h (SCSI_REQUEST_BLOCK): Add _ANONYMOUS_UNION.
(SCSI_ADAPTER_CONTROL_TYPE): Add __extension__.
* include/ddk/tdikrnl.h (TDI20_CLIENT_INTERFACE_INFO): Add
_ANONYMOUS_UNION and _ANONYMOUS_STRUCT.
* include/ddk/usb.h (USB): Add _ANONYMOUS_UNION.
* include/ddk/usbcamdi.h (USBCAMD_CamControlFlags): Remove
last comma.
* include/ddk/video.h (STATUS_BLOCK): Add _ANONYMOUS_UNION.
* include/ddk/winddk.h (DECLARE_INTERNAL_OBJECT): Remove
trailing semicolon when expanding macro.
(GENERAL_LOOKASIDE_S): Likewise.
Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT, throughout.
Change inline to __inline, throughout.
* include/ddk/winnt4.h: Change inline to __inline, throughout.
2003-07-17 05:49:02 +08:00
|
|
|
} DUMMYUNIONNAME;
|
2002-10-06 Casper Hornstrup <chorns@it.dk>
* include/ddk: New subdir.
* lib/ddk: Ditto.
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h,
miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h,
ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h,
netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h,
ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h,
ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h,
ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h,
ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h,
poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h,
storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h,
upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h,
winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h,
xfilter.h): New files.
* lib/ddk/(Makefile.in, apcups.def, cfgmgr32.def, dxapi.def,
hal.def, hid.def, hidparse.def, mcd.def, ndis.def, ntoskrnl.def,
scsiport.def, tdi.def, usbcamd.def, usbcamd2.def, videoprt.def,
win32k.def): Ditto.
2002-10-07 06:18:26 +08:00
|
|
|
} NDIS_WAN_COMPRESS_INFO;
|
|
|
|
|
|
|
|
typedef NDIS_WAN_COMPRESS_INFO *PNDIS_WAN_COMPRESS_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_GET_COMP_INFO {
|
|
|
|
IN NDIS_HANDLE NdisLinkHandle;
|
|
|
|
OUT NDIS_WAN_COMPRESS_INFO SendCapabilities;
|
|
|
|
OUT NDIS_WAN_COMPRESS_INFO RecvCapabilities;
|
|
|
|
} NDIS_WAN_GET_COMP_INFO, *PNDIS_WAN_GET_COMP_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_SET_COMP_INFO {
|
|
|
|
IN NDIS_HANDLE NdisLinkHandle;
|
|
|
|
IN NDIS_WAN_COMPRESS_INFO SendCapabilities;
|
|
|
|
IN NDIS_WAN_COMPRESS_INFO RecvCapabilities;
|
|
|
|
} NDIS_WAN_SET_COMP_INFO, *PNDIS_WAN_SET_COMP_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_GET_STATS_INFO {
|
|
|
|
IN NDIS_HANDLE NdisLinkHandle;
|
|
|
|
OUT ULONG BytesSent;
|
|
|
|
OUT ULONG BytesRcvd;
|
|
|
|
OUT ULONG FramesSent;
|
|
|
|
OUT ULONG FramesRcvd;
|
|
|
|
OUT ULONG CRCErrors;
|
|
|
|
OUT ULONG TimeoutErrors;
|
|
|
|
OUT ULONG AlignmentErrors;
|
|
|
|
OUT ULONG SerialOverrunErrors;
|
|
|
|
OUT ULONG FramingErrors;
|
|
|
|
OUT ULONG BufferOverrunErrors;
|
|
|
|
OUT ULONG BytesTransmittedUncompressed;
|
|
|
|
OUT ULONG BytesReceivedUncompressed;
|
|
|
|
OUT ULONG BytesTransmittedCompressed;
|
|
|
|
OUT ULONG BytesReceivedCompressed;
|
|
|
|
} NDIS_WAN_GET_STATS_INFO, *PNDIS_WAN_GET_STATS_INFO;
|
|
|
|
|
|
|
|
#define NdisMWanInitializeWrapper(NdisWrapperHandle, \
|
|
|
|
SystemSpecific1, \
|
|
|
|
SystemSpecific2, \
|
|
|
|
SystemSpecific3) \
|
|
|
|
{ \
|
|
|
|
NdisMInitializeWrapper(NdisWrapperHandle, \
|
|
|
|
SystemSpecific1, \
|
|
|
|
SystemSpecific2, \
|
|
|
|
SystemSpecific3); \
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_CO_INFO {
|
|
|
|
OUT ULONG MaxFrameSize;
|
|
|
|
OUT ULONG MaxSendWindow;
|
|
|
|
OUT ULONG FramingBits;
|
|
|
|
OUT ULONG DesiredACCM;
|
|
|
|
} NDIS_WAN_CO_INFO, *PNDIS_WAN_CO_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_CO_GET_LINK_INFO {
|
|
|
|
OUT ULONG MaxSendFrameSize;
|
|
|
|
OUT ULONG MaxRecvFrameSize;
|
|
|
|
OUT ULONG SendFramingBits;
|
|
|
|
OUT ULONG RecvFramingBits;
|
|
|
|
OUT ULONG SendCompressionBits;
|
|
|
|
OUT ULONG RecvCompressionBits;
|
|
|
|
OUT ULONG SendACCM;
|
|
|
|
OUT ULONG RecvACCM;
|
|
|
|
} NDIS_WAN_CO_GET_LINK_INFO, *PNDIS_WAN_CO_GET_LINK_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_CO_SET_LINK_INFO {
|
|
|
|
IN ULONG MaxSendFrameSize;
|
|
|
|
IN ULONG MaxRecvFrameSize;
|
|
|
|
IN ULONG SendFramingBits;
|
|
|
|
IN ULONG RecvFramingBits;
|
|
|
|
IN ULONG SendCompressionBits;
|
|
|
|
IN ULONG RecvCompressionBits;
|
|
|
|
IN ULONG SendACCM;
|
|
|
|
IN ULONG RecvACCM;
|
|
|
|
} NDIS_WAN_CO_SET_LINK_INFO, *PNDIS_WAN_CO_SET_LINK_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_CO_GET_COMP_INFO {
|
|
|
|
OUT NDIS_WAN_COMPRESS_INFO SendCapabilities;
|
|
|
|
OUT NDIS_WAN_COMPRESS_INFO RecvCapabilities;
|
|
|
|
} NDIS_WAN_CO_GET_COMP_INFO, *PNDIS_WAN_CO_GET_COMP_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_CO_SET_COMP_INFO {
|
|
|
|
IN NDIS_WAN_COMPRESS_INFO SendCapabilities;
|
|
|
|
IN NDIS_WAN_COMPRESS_INFO RecvCapabilities;
|
|
|
|
} NDIS_WAN_CO_SET_COMP_INFO, *PNDIS_WAN_CO_SET_COMP_INFO;
|
|
|
|
|
|
|
|
typedef struct _NDIS_WAN_CO_GET_STATS_INFO {
|
|
|
|
OUT ULONG BytesSent;
|
|
|
|
OUT ULONG BytesRcvd;
|
|
|
|
OUT ULONG FramesSent;
|
|
|
|
OUT ULONG FramesRcvd;
|
|
|
|
OUT ULONG CRCErrors;
|
|
|
|
OUT ULONG TimeoutErrors;
|
|
|
|
OUT ULONG AlignmentErrors;
|
|
|
|
OUT ULONG SerialOverrunErrors;
|
|
|
|
OUT ULONG FramingErrors;
|
|
|
|
OUT ULONG BufferOverrunErrors;
|
|
|
|
OUT ULONG BytesTransmittedUncompressed;
|
|
|
|
OUT ULONG BytesReceivedUncompressed;
|
|
|
|
OUT ULONG BytesTransmittedCompressed;
|
|
|
|
OUT ULONG BytesReceivedCompressed;
|
|
|
|
} NDIS_WAN_CO_GET_STATS_INFO, *PNDIS_WAN_CO_GET_STATS_INFO;
|
|
|
|
|
|
|
|
#pragma pack(pop)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __NDISWAN_H */
|