ReactOS 0.4.17-dev-1281-g065abb3
hubsm.cpp File Reference
#include "usbhub3.h"
#include <debug.h>
Include dependency graph for hubsm.cpp:

Go to the source code of this file.

Macros

#define NDEBUG
 
#define HSM_REQ   SM_STATE_TAKES_REQUESTS
 
#define HSM_PASSIVE   SM_STATE_NEEDS_PASSIVE
 
#define HSM_CRIT   SM_STATE_CRITICAL_ONLY
 

Typedefs

typedef HubMachine M
 

Variables

static const USHORT HubMailboxMetadata = 16
 
static const USHORT HubMailboxOpcode = 17
 
static const ULONG HubMailboxDataWords = 16
 
static const ULONG HubMailboxBusy = 0x80000000UL
 
static const ULONG HubDromReadCommand = 0x80000024UL
 
static const ULONG HubDromHeaderWords = 4
 
static const ULONG HubDromLengthBias = 13
 
static const ULONG HubDromMinimumLength = 3
 
static const ULONGLONG HubDromBusyLimit = 5ULL * 10 * 1000 * 1000
 

Macro Definition Documentation

◆ HSM_CRIT

Definition at line 81 of file hubsm.cpp.

◆ HSM_PASSIVE

#define HSM_PASSIVE   SM_STATE_NEEDS_PASSIVE

Definition at line 80 of file hubsm.cpp.

◆ HSM_REQ

Definition at line 79 of file hubsm.cpp.

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file hubsm.cpp.

Typedef Documentation

◆ M

typedef HubMachine M

Definition at line 83 of file hubsm.cpp.

Variable Documentation

◆ HubDromBusyLimit

const ULONGLONG HubDromBusyLimit = 5ULL * 10 * 1000 * 1000
static

Definition at line 34 of file hubsm.cpp.

Referenced by HubMachine::CheckDromStatus().

◆ HubDromHeaderWords

const ULONG HubDromHeaderWords = 4
static

Definition at line 27 of file hubsm.cpp.

Referenced by HubMachine::StartDromOrSkip().

◆ HubDromLengthBias

const ULONG HubDromLengthBias = 13
static

Definition at line 30 of file hubsm.cpp.

Referenced by HubMachine::StartDromWords().

◆ HubDromMinimumLength

const ULONG HubDromMinimumLength = 3
static

Definition at line 31 of file hubsm.cpp.

Referenced by HubMachine::StartDromWords().

◆ HubDromReadCommand

const ULONG HubDromReadCommand = 0x80000024UL
static

Definition at line 24 of file hubsm.cpp.

Referenced by HubMachine::EnterDromSendingCommand().

◆ HubMailboxBusy

const ULONG HubMailboxBusy = 0x80000000UL
static

Definition at line 21 of file hubsm.cpp.

Referenced by HubMachine::CheckDromStatus().

◆ HubMailboxDataWords

const ULONG HubMailboxDataWords = 16
static

◆ HubMailboxMetadata

const USHORT HubMailboxMetadata = 16
static

Definition at line 18 of file hubsm.cpp.

Referenced by HubMachine::EnterDromWritingMetadata().

◆ HubMailboxOpcode