* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h, d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, mcd.h, miniport.h, mountdev.h, mountmgr.h, ndis.h, ndistapi.h, ndiswan.h, netpnp.h, newdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h, ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddkbd.h, ntddmou.h, ntddpar.h, ntddpcm.h, ntddscsi.h, ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h, ntddvol.h, ntpoapi.h, parallel.h, pfhook.h, poclass.h, scsi.h, scsiscan.h, smbus.h, srb.h, storport.h, tdiinfo.h, tdikrnl.h, tvout.h, upssvc.h, usb.h, usb100.h, usbdi.h, usbioctl.h, usbiodef.h, usbscan.h, usbuser.h, videoagp.h, winddi.h, winddk.h, winnt4.h, ws2san.h): Fixed packing. * include/ddk/atm.h (ATM_TRAFFIC_DESCRIPTOR_IE): Fixed declaration. * include/ddk/hidclass.h (HID_INTERFACE_HIDPARSE, HID_INTERFACE_NOTIFY_PNP): Likewise. * include/ddk/ndis.h (NDIS_DMA_BLOCK, CO_FLOW_PARAMETERS): Likewise. (NdisQueryPacketLength): Added macro. Thanks to Art Yerkes <ayerkes@speakeasy.net>. * include/ddk/usb100.h (USB_CONFIGURATION_DESCRIPTOR): Fixed declaration. * include/ddk/winddi.h (PATHDATA, GLYPHPOS): Likewise. * include/ddk/winddk.h (PDRIVER_CONTROL, PDRIVER_LIST_CONTROL, PDRIVER_ADD_DEVICE, PIO_COMPLETION_ROUTINE, PDRIVER_CANCEL, PKDEFERRED_ROUTINE, PDRIVER_DISPATCH, PIO_DPC_ROUTINE, PMM_DLL_INITIALIZE, PMM_DLL_UNLOAD, PDRIVER_ENTRY, PDRIVER_INITIALIZE, PKSERVICE_ROUTINE, PIO_TIMER_ROUTINE, PDRIVER_REINITIALIZE, PDRIVER_STARTIO, PKSYNCHRONIZE_ROUTINE, PDRIVER_UNLOAD, DRIVER_OBJECT): Fixed callback declarations. (struct FILE_BASIC_INFORMATION): Renamed to _FILE_BASIC_INFORMATION. (SYNCH_LEVEL): Added definition. (KPCR, KPCR_TIB): Fixed declaration. (Interlocked[Push/Pop]EntrySList): Declare only if winbase.h isn't included and _WIN32_WINNT >= 0x0501. (RtlEqualLuid): Fixed macro definition. (KfLowerIrql, KfRaiseIrql): Declare and use instead of KeLowerIrql and KeRaiseIrql on i386 architectures.
		
			
				
	
	
		
			107 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			107 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * usbiodef.h
 | 
						|
 *
 | 
						|
 * USB IOCTL definitions
 | 
						|
 *
 | 
						|
 * This file is part of the w32api package.
 | 
						|
 *
 | 
						|
 * 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
 | 
						|
 * DISCLAIMED. This includes but is not limited to warranties of
 | 
						|
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __USBIODEF_H
 | 
						|
#define __USBIODEF_H
 | 
						|
 | 
						|
#if __GNUC__ >=3
 | 
						|
#pragma GCC system_header
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
#include "ntddk.h"
 | 
						|
 | 
						|
DEFINE_GUID(GUID_DEVINTERFACE_USB_HUB, \
 | 
						|
  0xf18a0e88, 0xc30c, 0x11d0, 0x88, 0x15, 0x00, 0xa0, 0xc9, 0x06, 0xbe, 0xd8);
 | 
						|
 | 
						|
DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE,
 | 
						|
  0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED);
 | 
						|
 | 
						|
DEFINE_GUID(GUID_DEVINTERFACE_USB_HOST_CONTROLLER,
 | 
						|
  0x3abf6f2d, 0x71c4, 0x462a, 0x8a, 0x92, 0x1e, 0x68, 0x61, 0xe6, 0xaf, 0x27);
 | 
						|
             
 | 
						|
DEFINE_GUID(GUID_USB_WMI_STD_DATA,
 | 
						|
  0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00, 0xA0, 0xC9, 0x59, 0xBB, 0xD2);
 | 
						|
 | 
						|
DEFINE_GUID(GUID_USB_WMI_STD_NOTIFICATION,
 | 
						|
  0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00, 0xA0, 0xC9, 0x59, 0xBB, 0xD2);        
 | 
						|
 | 
						|
#define GUID_CLASS_USBHUB                 GUID_DEVINTERFACE_USB_HUB
 | 
						|
#define GUID_CLASS_USB_DEVICE             GUID_DEVINTERFACE_USB_DEVICE
 | 
						|
#define GUID_CLASS_USB_HOST_CONTROLLER    GUID_DEVINTERFACE_USB_HOST_CONTROLLER
 | 
						|
 | 
						|
#define USB_SUBMIT_URB                    0
 | 
						|
#define USB_RESET_PORT                    1
 | 
						|
#define USB_GET_ROOTHUB_PDO               3
 | 
						|
#define USB_GET_PORT_STATUS               4
 | 
						|
#define USB_ENABLE_PORT                   5
 | 
						|
#define USB_GET_HUB_COUNT                 6
 | 
						|
#define USB_CYCLE_PORT                    7
 | 
						|
#define USB_GET_HUB_NAME                  8
 | 
						|
#define USB_IDLE_NOTIFICATION             9
 | 
						|
#define USB_GET_BUS_INFO                  264
 | 
						|
#define USB_GET_CONTROLLER_NAME           265
 | 
						|
#define USB_GET_BUSGUID_INFO              266
 | 
						|
#define USB_GET_PARENT_HUB_INFO           267
 | 
						|
#define USB_GET_DEVICE_HANDLE             268
 | 
						|
 | 
						|
#define HCD_GET_STATS_1                   255
 | 
						|
#define HCD_DIAGNOSTIC_MODE_ON            256
 | 
						|
#define HCD_DIAGNOSTIC_MODE_OFF           257
 | 
						|
#define HCD_GET_ROOT_HUB_NAME             258
 | 
						|
#define HCD_GET_DRIVERKEY_NAME            265
 | 
						|
#define HCD_GET_STATS_2                   266
 | 
						|
#define HCD_DISABLE_PORT                  268
 | 
						|
#define HCD_ENABLE_PORT                   269
 | 
						|
#define HCD_USER_REQUEST                  270
 | 
						|
 | 
						|
#define USB_GET_NODE_INFORMATION                258
 | 
						|
#define USB_GET_NODE_CONNECTION_INFORMATION     259
 | 
						|
#define USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION 260
 | 
						|
#define USB_GET_NODE_CONNECTION_NAME            261
 | 
						|
#define USB_DIAG_IGNORE_HUBS_ON                 262
 | 
						|
#define USB_DIAG_IGNORE_HUBS_OFF                263
 | 
						|
#define USB_GET_NODE_CONNECTION_DRIVERKEY_NAME  264
 | 
						|
#define USB_GET_HUB_CAPABILITIES                271
 | 
						|
#define USB_GET_NODE_CONNECTION_ATTRIBUTES      272
 | 
						|
 | 
						|
#define FILE_DEVICE_USB                   FILE_DEVICE_UNKNOWN
 | 
						|
 | 
						|
#define USB_CTL(id) CTL_CODE(FILE_DEVICE_USB, \
 | 
						|
														 (id), \
 | 
						|
														 METHOD_BUFFERED, \
 | 
						|
														 FILE_ANY_ACCESS)
 | 
						|
 | 
						|
#define USB_KERNEL_CTL(id) CTL_CODE(FILE_DEVICE_USB, \
 | 
						|
                                    (id), \
 | 
						|
                                    METHOD_NEITHER, \
 | 
						|
                                    FILE_ANY_ACCESS)
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
#endif /* __USBIODEF_H */
 |