ReactOS  0.4.13-dev-257-gfabbd7c
fbtusb.h File Reference
#include <initguid.h>
#include <wdm.h>
#include <wmilib.h>
#include <wmistr.h>
#include <windef.h>
#include "usbdi.h"
#include "usbdlib.h"
#include "fbtHciDefs.h"
Include dependency graph for fbtusb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GLOBALS
 
struct  _FREEBT_PIPE_CONTEXT
 
struct  _DEVICE_EXTENSION
 
struct  _IRP_COMPLETION_CONTEXT
 

Macros

#define FREEBT_USB_STDCLASS   0xE0
 
#define FREEBT_USB_STDSUBCLASS   0x01
 
#define FREEBT_USB_STDPROTOCOL   0x01
 
#define FREEBT_STDENDPOINT_HCICMD   0x00
 
#define FREEBT_STDENDPOINT_HCIEVENT   0x81
 
#define FREEBT_STDENDPOINT_ACLIN   0x82
 
#define FREEBT_STDENDPOINT_ACLOUT   0x02
 
#define FREEBT_STDENDPOINT_AUDIOIN   0x83
 
#define FREEBT_STDENDPOINT_AUDIOOUT   0x03
 
#define OBTTAG   (ULONG) 'OBTU'
 
#define ExAllocatePool(type, size)   ExAllocatePoolWithTag(type, size, OBTTAG);
 
#define FreeBT_DbgPrint(level, _x_)
 
#define IDLE_INTERVAL   5000
 
#define INITIALIZE_PNP_STATE(_Data_)
 
#define SET_NEW_PNP_STATE(_Data_, _state_)
 
#define RESTORE_PREVIOUS_PNP_STATE(_Data_)   (_Data_)->DeviceState = (_Data_)->PrevDevState;
 
#define FREEBT_REGISTRY_PARAMETERS_PATH   L"\\REGISTRY\\Machine\\System\\CurrentControlSet\\SERVICES\\BULKUSB\\Parameters"
 

Typedefs

typedef struct _GLOBALS GLOBALS
 
typedef enum _PIPETYPE FREEBT_PIPETYPE
 
typedef enum _DEVSTATE DEVSTATE
 
typedef enum _QUEUE_STATE QUEUE_STATE
 
typedef enum _WDM_VERSION WDM_VERSION
 
typedef struct _FREEBT_PIPE_CONTEXT FREEBT_PIPE_CONTEXT
 
typedef struct _FREEBT_PIPE_CONTEXTPFREEBT_PIPE_CONTEXT
 
typedef struct _DEVICE_EXTENSION DEVICE_EXTENSION
 
typedef struct _DEVICE_EXTENSIONPDEVICE_EXTENSION
 
typedef struct _IRP_COMPLETION_CONTEXT IRP_COMPLETION_CONTEXT
 
typedef struct _IRP_COMPLETION_CONTEXTPIRP_COMPLETION_CONTEXT
 

Enumerations

enum  _PIPETYPE {
  HciCommandPipe, HciEventPipe, AclDataIn, AclDataOut,
  SCODataIn, SCODataOut
}
 
enum  _DEVSTATE {
  NotStarted, Stopped, Working, PendingStop,
  PendingRemove, SurpriseRemoved, Removed
}
 
enum  _QUEUE_STATE { HoldRequests, AllowRequests, FailRequests }
 
enum  _WDM_VERSION { WinXpOrBetter, Win2kOrBetter, WinMeOrBetter, Win98OrBetter }
 

Variables

GLOBALS Globals
 
ULONG DebugLevel
 

Macro Definition Documentation

◆ ExAllocatePool

#define ExAllocatePool (   type,
  size 
)    ExAllocatePoolWithTag(type, size, OBTTAG);

Definition at line 44 of file fbtusb.h.

◆ FreeBT_DbgPrint

#define FreeBT_DbgPrint (   level,
  _x_ 
)

Definition at line 55 of file fbtusb.h.

◆ FREEBT_REGISTRY_PARAMETERS_PATH

#define FREEBT_REGISTRY_PARAMETERS_PATH   L"\\REGISTRY\\Machine\\System\\CurrentControlSet\\SERVICES\\BULKUSB\\Parameters"

Definition at line 121 of file fbtusb.h.

◆ FREEBT_STDENDPOINT_ACLIN

#define FREEBT_STDENDPOINT_ACLIN   0x82

Definition at line 35 of file fbtusb.h.

◆ FREEBT_STDENDPOINT_ACLOUT

#define FREEBT_STDENDPOINT_ACLOUT   0x02

Definition at line 36 of file fbtusb.h.

◆ FREEBT_STDENDPOINT_AUDIOIN

#define FREEBT_STDENDPOINT_AUDIOIN   0x83

Definition at line 37 of file fbtusb.h.

◆ FREEBT_STDENDPOINT_AUDIOOUT

#define FREEBT_STDENDPOINT_AUDIOOUT   0x03

Definition at line 38 of file fbtusb.h.

◆ FREEBT_STDENDPOINT_HCICMD

#define FREEBT_STDENDPOINT_HCICMD   0x00

Definition at line 33 of file fbtusb.h.

◆ FREEBT_STDENDPOINT_HCIEVENT

#define FREEBT_STDENDPOINT_HCIEVENT   0x81

Definition at line 34 of file fbtusb.h.

◆ FREEBT_USB_STDCLASS

#define FREEBT_USB_STDCLASS   0xE0

Definition at line 28 of file fbtusb.h.

◆ FREEBT_USB_STDPROTOCOL

#define FREEBT_USB_STDPROTOCOL   0x01

Definition at line 30 of file fbtusb.h.

◆ FREEBT_USB_STDSUBCLASS

#define FREEBT_USB_STDSUBCLASS   0x01

Definition at line 29 of file fbtusb.h.

◆ IDLE_INTERVAL

#define IDLE_INTERVAL   5000

Definition at line 65 of file fbtusb.h.

◆ INITIALIZE_PNP_STATE

#define INITIALIZE_PNP_STATE (   _Data_)
Value:
(_Data_)->DeviceState = NotStarted;\
(_Data_)->PrevDevState = NotStarted;

Definition at line 107 of file fbtusb.h.

◆ OBTTAG

#define OBTTAG   (ULONG) 'OBTU'

Definition at line 41 of file fbtusb.h.

◆ RESTORE_PREVIOUS_PNP_STATE

#define RESTORE_PREVIOUS_PNP_STATE (   _Data_)    (_Data_)->DeviceState = (_Data_)->PrevDevState;

Definition at line 115 of file fbtusb.h.

◆ SET_NEW_PNP_STATE

#define SET_NEW_PNP_STATE (   _Data_,
  _state_ 
)
Value:
(_Data_)->PrevDevState = (_Data_)->DeviceState;\
(_Data_)->DeviceState = (_state_);

Definition at line 111 of file fbtusb.h.

Typedef Documentation

◆ DEVICE_EXTENSION

◆ DEVSTATE

◆ FREEBT_PIPE_CONTEXT

◆ FREEBT_PIPETYPE

◆ GLOBALS

◆ IRP_COMPLETION_CONTEXT

◆ PDEVICE_EXTENSION

◆ PFREEBT_PIPE_CONTEXT

◆ PIRP_COMPLETION_CONTEXT

◆ QUEUE_STATE

◆ WDM_VERSION

Enumeration Type Documentation

◆ _DEVSTATE

Enumerator
NotStarted 
Stopped 
Working 
PendingStop 
PendingRemove 
SurpriseRemoved 
Removed 

Definition at line 78 of file fbtusb.h.

79 {
80  NotStarted, // not started
81  Stopped, // device stopped
82  Working, // started and working
83  PendingStop, // stop pending
84  PendingRemove, // remove pending
85  SurpriseRemoved, // removed by surprise
86  Removed // removed
87 
88 } DEVSTATE;
enum _DEVSTATE DEVSTATE
Definition: fbtusb.h:81
Definition: fbtusb.h:82
Definition: fbtusb.h:86

◆ _PIPETYPE

Enumerator
HciCommandPipe 
HciEventPipe 
AclDataIn 
AclDataOut 
SCODataIn 
SCODataOut 

Definition at line 67 of file fbtusb.h.

68 {
71  AclDataIn,
72  AclDataOut,
73  SCODataIn,
75 
enum _PIPETYPE FREEBT_PIPETYPE

◆ _QUEUE_STATE

Enumerator
HoldRequests 
AllowRequests 
FailRequests 

Definition at line 90 of file fbtusb.h.

91 {
92  HoldRequests, // device is not started yet
93  AllowRequests, // device is ready to process
94  FailRequests // fail both existing and queued up requests
95 
96 } QUEUE_STATE;
enum _QUEUE_STATE QUEUE_STATE

◆ _WDM_VERSION

Enumerator
WinXpOrBetter 
Win2kOrBetter 
WinMeOrBetter 
Win98OrBetter 

Definition at line 98 of file fbtusb.h.

99 {
104 
105 } WDM_VERSION;
enum _WDM_VERSION WDM_VERSION

Variable Documentation

◆ DebugLevel

◆ Globals

GLOBALS Globals

Definition at line 13 of file clipbrd.c.