ReactOS 0.4.16-dev-292-gbbdcc14
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;
@ NotStarted
Definition: fbtusb.h:80
_In_ WDFDEVICE _Out_ PWDF_DEVICE_STATE DeviceState
Definition: wdfdevice.h:1999

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;
@ Removed
Definition: fbtusb.h:86
@ Stopped
Definition: fbtusb.h:81
@ Working
Definition: fbtusb.h:82
@ PendingStop
Definition: fbtusb.h:83
@ SurpriseRemoved
Definition: fbtusb.h:85
@ PendingRemove
Definition: fbtusb.h:84
enum _DEVSTATE DEVSTATE

◆ _PIPETYPE

Enumerator
HciCommandPipe 
HciEventPipe 
AclDataIn 
AclDataOut 
SCODataIn 
SCODataOut 

Definition at line 67 of file fbtusb.h.

68{
75
enum _PIPETYPE FREEBT_PIPETYPE
@ HciEventPipe
Definition: fbtusb.h:70
@ AclDataOut
Definition: fbtusb.h:72
@ SCODataIn
Definition: fbtusb.h:73
@ AclDataIn
Definition: fbtusb.h:71
@ HciCommandPipe
Definition: fbtusb.h:69
@ SCODataOut
Definition: fbtusb.h:74

◆ _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
enum _QUEUE_STATE QUEUE_STATE
@ AllowRequests
Definition: fbtusb.h:93
@ HoldRequests
Definition: fbtusb.h:92
@ FailRequests
Definition: fbtusb.h:94

◆ _WDM_VERSION

Enumerator
WinXpOrBetter 
Win2kOrBetter 
WinMeOrBetter 
Win98OrBetter 

Definition at line 98 of file fbtusb.h.

99{
104
@ WinXpOrBetter
Definition: fbtusb.h:100
@ Win2kOrBetter
Definition: fbtusb.h:101
@ Win98OrBetter
Definition: fbtusb.h:103
@ WinMeOrBetter
Definition: fbtusb.h:102
enum _WDM_VERSION WDM_VERSION

Variable Documentation

◆ DebugLevel

ULONG DebugLevel
extern

Definition at line 26 of file fbtusb.c.

◆ Globals

GLOBALS Globals
extern

Definition at line 13 of file clipbrd.c.

Referenced by FxDevice::_AllocAndQueryProperty(), _tWinMain(), AlertFileDoesNotExist(), AlertFileNotFound(), AlertFileNotSaved(), AlertPrintError(), DeleteClipboardContent(), DIALOG_AddFilterItem(), DIALOG_Browse(), DIALOG_COPY_MOVE_DlgProc(), DIALOG_CopyMove(), DIALOG_EditCopy(), DIALOG_EditCut(), DIALOG_EditDelete(), DIALOG_EditPaste(), DIALOG_EditSelectAll(), DIALOG_EditTimeDate(), DIALOG_EditUndo(), DIALOG_EditWrap(), DIALOG_Execute(), DIALOG_EXECUTE_DlgProc(), DIALOG_FileExit(), DIALOG_FileNew(), DIALOG_FileOpen(), DIALOG_FilePageSetup(), DIALOG_FilePrint(), DIALOG_FileSave(), DIALOG_FileSaveAs(), DIALOG_FileSaveAs_Hook(), DIALOG_GoTo(), DIALOG_GoTo_DialogProc(), DIALOG_GroupAttributes(), DIALOG_HelpAboutNotepad(), DIALOG_HelpContents(), DIALOG_New(), DIALOG_PAGESETUP_Hook(), DIALOG_Printing_DialogProc(), DIALOG_ProgramAttributes(), DIALOG_SearchDialog(), DIALOG_SearchNext(), DIALOG_SelectFont(), DIALOG_StatusBarAlignParts(), DIALOG_StatusBarUpdateCaretPos(), DIALOG_StatusBarUpdateEncoding(), DIALOG_StatusBarUpdateLineEndings(), DIALOG_StringMsgBox(), DIALOG_Symbol(), DIALOG_ViewStatusBar(), DlgInitHandler(), DlgProc(), DllMain(), DoCloseFile(), DoCreateEditWindow(), DoCreatePrintFonts(), DoOpenFile(), DoPrintDocument(), DoPrintPage(), DoSaveFile(), DoShowHideStatusBar(), DrawHeaderOrFooter(), DrawTextFromClipboard(), DriverEntry(), EDIT_WndProc(), FreeBT_DriverUnload(), FreeBT_QueryWmiRegInfo(), GetClipboardDataDimensions(), GetDriverInfo(), GROUP_ActiveGroup(), GROUP_AddGroup(), GROUP_DeleteGroup(), GROUP_GroupWndProc(), GROUP_RegisterGroupWinClass(), GroupBoxUpdateTitle(), GRPFILE_WriteGroupFile(), HandleCommandLine(), InitMenuPopup(), InitUtilsList(), ListBoxRefreshContents(), LoadClipboardDataFromFile(), LoadClipboardFromFile(), LoadSettings(), LogDeviceStartTelemetryEvent(), MACRO_About(), MACRO_CloseSecondarys(), MACRO_CloseWindow(), MACRO_ExecFile(), MACRO_Exit(), MACRO_FocusWindow(), MACRO_HelpOn(), MACRO_HelpOnTop(), MACRO_History(), MACRO_IsBook(), MACRO_Lookup(), MACRO_Print(), MACRO_RegisterRoutine(), MAIN_AutoStart(), MAIN_CreateMainWindow(), MAIN_CreateMDIWindow(), MAIN_LoadSettings(), MAIN_MainWndProc(), MAIN_MenuCommand(), MAIN_MessageBoxIDS(), MAIN_MessageBoxIDS_s(), MAIN_RegisterMainWinClass(), MAIN_SaveSettings(), MAIN_SetMainWindowTitle(), MainWndProc(), NOTEPAD_EnableSearchMenu(), NOTEPAD_FindNext(), NOTEPAD_FindTerm(), NOTEPAD_InitData(), NOTEPAD_InitMenuPopup(), NOTEPAD_LoadSettingsFromRegistry(), NOTEPAD_ReplaceAll(), NOTEPAD_SaveSettingsToRegistry(), NOTEPAD_WndProc(), OnCommand(), OnPaint(), OnScroll(), OSK_About(), OSK_ChooseFont(), OSK_Close(), OSK_Command(), OSK_Create(), OSK_DestroyKeys(), OSK_Paint(), OSK_RefreshLEDKeys(), OSK_ReleaseKey(), OSK_SetImage(), OSK_SetKeys(), OSK_SetText(), OSK_Timer(), OSK_WarningDlgThread(), OSK_WarningProc(), OSK_WndProc(), PrintResourceString(), PrintStringV(), PROGRAM_ExecuteProgram(), ReadClipboardFile(), SaveClipboardToFile(), SaveSettings(), SetDisplayFormat(), SetFileName(), ShowAboutDlg(), ShowLastError(), ShowLastWin32Error(), STRING_LoadMenus(), STRING_LoadStrings(), UManStartDlg(), UpdateDisplayMenu(), UpdateUtilityState(), UpdateWindowCaption(), WHD_GetInfo(), WINHELP_ButtonBoxWndProc(), WINHELP_ButtonWndProc(), WINHELP_CheckPopup(), WINHELP_CreateHelpWindow(), WINHELP_CreateIndexWindow(), WINHELP_DeleteWindow(), WINHELP_GetOpenFileName(), WINHELP_GetWindowInfo(), WINHELP_HandleTextMouse(), WINHELP_HasWorkingWindow(), WINHELP_HistoryWndProc(), WINHELP_LookupHelpFile(), WINHELP_MainWndProc(), WINHELP_MessageBoxIDS_s(), WINHELP_RegisterWinClasses(), WINHELP_RememberPage(), WinMain(), WriteClipboardFile(), and wWinMain().