|
ReactOS 0.4.17-dev-1281-g065abb3
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
| #define | HUB_WMI_MIN_ACQUIRE_SIZE 10 |
| #define | HUB_WMI_FIELD(Info, Field) ((PUCHAR)(Info) + FIELD_OFFSET(USB_DEVICE_NODE_INFO, Field)) |
| #define HUB_WMI_FIELD | ( | Info, | |
| Field | |||
| ) | ((PUCHAR)(Info) + FIELD_OFFSET(USB_DEVICE_NODE_INFO, Field)) |
Definition at line 31 of file hubwmi.cpp.
| #define HUB_WMI_MIN_ACQUIRE_SIZE 10 |
Definition at line 28 of file hubwmi.cpp.
| #define NDEBUG |
Definition at line 10 of file hubwmi.cpp.
| _IRQL_requires_ | ( | PASSIVE_LEVEL | ) |
Sends a synchronous IOCTL to the specified device object.
Copies up to Size bytes of a device property; a failed query leaves the field zero.
Only the controller name length is real; both bandwidth fields read 0.
The answer overlays a USB_HUB_NAME on TotalSize, so TotalSize comes back as the name length + 4.
Definition at line 621 of file hubwmi.cpp.
| _IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION; the idle machine owns the IRP afterwards.
Records hub over current in the hub hardware key, once per devnode.
First selective suspend of the device; the registry write runs in a work item.
"USB device not recognized" popup for a port.
A hub was attached beyond the allowed tier depth.
The selected configuration draws more power than the port can give.
The controller ran out of bandwidth for the device; fired by the out of bandwidth timer.
Definition at line 77 of file common.c.
| _In_ DEVICE_REGISTRY_PROPERTY _Out_writes_bytes_ | ( | Size | ) |
Definition at line 35 of file hubregistry.cpp.
| C_ASSERT | ( | FIELD_OFFSET(USB_ACQUIRE_INFO, Buffer) | = =8 | ) |
| C_ASSERT | ( | FIELD_OFFSET(USB_DEVICE_NODE_INFO, HubDeviceInfo.PortInfo) | = =211 | ) |
| C_ASSERT | ( | FIELD_OFFSET(USB_DEVICE_NODE_INFO, UsbDeviceInfo.PipeList) | = =1191 | ) |
| C_ASSERT | ( | sizeof(USB_BUS_NOTIFICATION) | = =16 | ) |
| C_ASSERT | ( | sizeof(USB_CONNECTION_NOTIFICATION) | = =24 | ) |
| C_ASSERT | ( | sizeof(USB_DEVICE_NODE_INFO) | = =1202 | ) |
| C_ASSERT | ( | sizeof(USB_HUB_PORT_INFORMATION) | = =16 | ) |
| C_ASSERT | ( | sizeof(USB_PIPE_INFO) | = =11 | ) |
The 71 byte USB 2.0 style hub descriptor legacy tools expect, for any hub speed.
Definition at line 135 of file hubwmi.cpp.
Referenced by HubWmiQueryHubNode().
|
static |
Definition at line 489 of file hubwmi.cpp.
Referenced by HubWmiHubNameRequest().
|
static |
Endpoints of the current configuration, listed only when the first interface owns all of them.
Definition at line 302 of file hubwmi.cpp.
Referenced by HubWmiQueryDeviceNode().
Clears the driver wide handle along with its instance.
Definition at line 677 of file hubwmi.cpp.
|
static |
Dispatches on the request's notification type; MethodId and InBufferSize are ignored.
Definition at line 573 of file hubwmi.cpp.
Referenced by _IRQL_requires_().
|
static |
Definition at line 72 of file hubwmi.cpp.
Referenced by HubWmiNotifyOverCurrent().
Hub symbolic link without its "\??\" prefix. Bounded by the string length, not a NUL.
Definition at line 41 of file hubwmi.cpp.
Referenced by HubWmiFirePortEvent(), and HubWmiHubNameRequest().
|
static |
A short TotalSize truncates the name without saying so.
Definition at line 509 of file hubwmi.cpp.
Referenced by HubWmiExecuteMethod().
Definition at line 750 of file hubwmi.cpp.
Referenced by PortMachine::NotifyUserOfOverCurrent().
|
static |
Definition at line 323 of file hubwmi.cpp.
|
static |
Definition at line 212 of file hubwmi.cpp.
Referenced by _IRQL_requires_().
|
static |
Accepts a reset only while the port machine waits for one after the over current popup.
Definition at line 426 of file hubwmi.cpp.
Referenced by HubWmiExecuteMethod().
| if | ( | ! | HubWmiAcquireSizeValidRequest, OutBufferSize | ) |
| if | ( | ! | NT_SUCCESSStatus | ) |
| if | ( | ! | NT_SUCCESSWdfDeviceAllocAndQueryProperty(Device, Property, NonPagedPool, &Attributes, &Memory) | ) |
| if | ( | ) |
Definition at line 463 of file hubwmi.cpp.
| WdfFdoLockStaticChildListForIteration | ( | Hub-> | m_Device | ) |
Referenced by HubIoLockChild().
| WdfFdoUnlockStaticChildListFromIteration | ( | Hub-> | m_Device | ) |
Referenced by HubIoUnlockChildren().
| WdfObjectDelete | ( | Memory | ) |
| return WdfWmiInstanceCreate | ( | Device | , |
| & | Config, | ||
| Attributes | , | ||
| Instance | |||
| ) |
Referenced by UcxController::RegisterWmi().
| while | ( | (Child=WdfFdoRetrieveNextStaticChild(Hub->m_Device, Child, WdfRetrievePresentChildren)) ! | = NULL | ) |
Definition at line 193 of file hubwmi.cpp.
| Name ActualLength = 0 |
Definition at line 469 of file hubwmi.cpp.
Definition at line 116 of file hubwmi.cpp.
Definition at line 458 of file hubwmi.cpp.
Referenced by HubWmiQueryDeviceNode().
Definition at line 120 of file hubwmi.cpp.
| Notification ConsumedBandwidth = 0 |
Definition at line 480 of file hubwmi.cpp.
| Notification ControllerNameLength = Name.ActualLength |
Definition at line 481 of file hubwmi.cpp.
Definition at line 285 of file hubwmi.cpp.
| * DeviceAddress |
Definition at line 184 of file hubwmi.cpp.
Referenced by HalpConfigureDebuggingDevice(), HalpReleasePciDeviceForDebugging(), InitFloppyDrive(), UhciControlTransfer(), UhciMapAsyncTransferToTDs(), USBPORT_FreeUsbAddress(), USBPORT_InitializeDevice(), and while().
Definition at line 128 of file hubwmi.cpp.
Definition at line 127 of file hubwmi.cpp.
Definition at line 123 of file hubwmi.cpp.
| Name HubName[0] = UNICODE_NULL |
Definition at line 470 of file hubwmi.cpp.
Referenced by HubPdoGetHubName(), and USBHI_GetRootHubSymbolicName().
|
static |
Definition at line 35 of file hubwmi.cpp.
Referenced by HubWmiEvtSurpriseRemovalCleanup().
Definition at line 14 of file hubwmi.cpp.
| _In_ const GUID _In_ ULONG _In_opt_ PFN_WDF_WMI_INSTANCE_QUERY_INSTANCE _In_opt_ PFN_WDF_WMI_INSTANCE_EXECUTE_METHOD _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_opt_ WDFWMIINSTANCE* Instance |
Definition at line 117 of file hubwmi.cpp.
Referenced by _IRQL_requires_().
Definition at line 284 of file hubwmi.cpp.
Referenced by HubWmiQueryDeviceNode().
Definition at line 206 of file hubwmi.cpp.
| WDFMEMORY Memory |
Definition at line 283 of file hubwmi.cpp.
| _In_ const GUID _In_ ULONG _In_opt_ PFN_WDF_WMI_INSTANCE_QUERY_INSTANCE _In_opt_ PFN_WDF_WMI_INSTANCE_EXECUTE_METHOD Method |
Definition at line 115 of file hubwmi.cpp.
Referenced by CBDADeviceControl::CheckChanges(), CBDADeviceControl::CommitChanges(), CBDADeviceControl::CreateTopology(), D3DXCreateMeshFVFTest(), D3DXCreateMeshTest(), DECLARE_INTERFACE_(), FindMethodHandler(), IKsControl_fnKsMethod(), KsFastMethodHandler(), CInputPin::KsMethod(), CKsNode::KsMethod(), COutputPin::KsMethod(), CKsProxy::KsMethod(), KspMethodHandlerWithAllocator(), MainDialogProc(), PciIsSlotPresentInParentMethod(), RxLowIoPopulateFsctlInfo(), CBDADeviceControl::StartChanges(), and StartDefragThread().
Definition at line 457 of file hubwmi.cpp.
Definition at line 456 of file hubwmi.cpp.
| Attributes ParentObject = Device |
Definition at line 288 of file hubwmi.cpp.
Definition at line 187 of file hubwmi.cpp.
Definition at line 182 of file hubwmi.cpp.
Referenced by HubWmiQueryHubNode(), and HubWmiResetOverCurrent().
Definition at line 278 of file hubwmi.cpp.
Definition at line 122 of file hubwmi.cpp.
Definition at line 114 of file hubwmi.cpp.
Referenced by BasepGetComputerNameFromNtPath(), BrFolder_GetItemAttributes(), EvtSubscribe(), FdoDeviceControlQueryProperty(), CDefView::GetItemAttributes(), CDefView::GetSelectionAttributes(), HubPdoQueryCapability(), IopQueryBusDescription(), IopQueryDeviceDescription(), IoQueryDeviceDescription(), NtQueryInformationProcess(), NtQuerySystemInformation(), PdoDeviceControlQueryProperty(), PrintDiskData(), XhciController::QueryErrataDatabase(), QueryOperatingSystemInfo(), QueryProcessorInfo(), ScControl(), SH32_QueryAssocElementString(), SHELL_IncludeItemInFolderEnum(), StorPortInitializePerfOpts(), Test_ApphelpCheckRunApp(), UcxEvtDefaultIoInternalDeviceControl(), UcxQueryUsbCapability(), WSALookupServiceBeginW(), WSALookupServiceEnd(), WSALookupServiceNextW(), WsNqAddProvider(), WsNqDereference(), WsNqInitialize(), WsNqNextProvider(), WsNqPreviousProvider(), and WsNqValidateAndReference().
Definition at line 126 of file hubwmi.cpp.
Referenced by __writemsr(), _Requires_lock_held_(), AHCI_HBA_READ(), AHCI_HBA_WRITE(), AHCI_PORT_READ(), AHCI_PORT_WRITE(), ApicInitializeIOApic(), ApicRead(), ApicWrite(), ApicWriteIORedirectionEntry(), AtaAhciPmpRead(), AtaAhciPmpWrite(), AtaAhciPollRegister(), AtaPdoWmiRegistration(), CmdCheckInterruptPci(), CmdSetTransferMode(), co_IntRegisterLogonProcess(), DC_READ(), DcWriteGpio(), DECLARE_INTERFACE_(), HalpConfigureDebuggingDevice(), HalpReadNvram(), HptHasUdmaCable(), HubMailboxTransfer(), IOApicRead(), IOApicWrite(), LpcReadRegister(), LpcWriteRegister(), XhciRegisters::ModifyCapability32(), NV_READ(), NV_WRITE(), PciEcamTransfer(), PhyInitRealtek8211b(), CMMCModule::PreMessageLoop(), HubMachine::ReadDromRegister(), FxDevice::ReadRegister(), FxDevice::ReadRegisterBuffer(), reg_unreg_wine_test_class(), FxDeviceInterface::Register(), UcxUsbDevice::RegisterComposite(), RegisterVDD(), ScsiPortReadRegisterBufferUchar(), ScsiPortReadRegisterBufferUlong(), ScsiPortReadRegisterBufferUshort(), ScsiPortReadRegisterUchar(), ScsiPortReadRegisterUlong(), ScsiPortReadRegisterUshort(), ScsiPortWriteRegisterBufferUchar(), ScsiPortWriteRegisterBufferUlong(), ScsiPortWriteRegisterBufferUshort(), ScsiPortWriteRegisterUchar(), ScsiPortWriteRegisterUlong(), ScsiPortWriteRegisterUshort(), SMBusWriteByte(), StorPortReadRegisterBufferUchar(), StorPortReadRegisterBufferUlong(), StorPortReadRegisterBufferUshort(), StorPortReadRegisterUchar(), StorPortReadRegisterUlong(), StorPortReadRegisterUshort(), StorPortWriteRegisterBufferUchar(), StorPortWriteRegisterBufferUlong(), StorPortWriteRegisterBufferUshort(), StorPortWriteRegisterUchar(), StorPortWriteRegisterUlong(), StorPortWriteRegisterUshort(), SvwSataScrRead(), SvwSataScrWrite(), test_wm_notify(), UpdateRegistryFromResource(), ViaScrReadIoPort(), ViaScrReadPci(), ViaScrWriteIoPort(), ViaScrWritePci(), HubMachine::WriteDromRegister(), FxDevice::WriteRegister(), FxDevice::WriteRegisterBuffer(), X2ApicMsrFromRegister(), X2ApicRead(), and X2ApicWrite().
Definition at line 544 of file hubwmi.cpp.
Definition at line 280 of file hubwmi.cpp.
Definition at line 461 of file hubwmi.cpp.
Referenced by _IRQL_requires_(), HubWmiFirePortEvent(), and if().
| return STATUS_SUCCESS |
Definition at line 483 of file hubwmi.cpp.
Referenced by HubWmiExecuteMethod(), HubWmiHubNameRequest(), HubWmiQueryDeviceNode(), HubWmiQueryHubNode(), and HubWmiResetOverCurrent().
Definition at line 548 of file hubwmi.cpp.
Referenced by append_multi_sz_value(), CheckMsOs20Registry(), CopyPacketToBufferChain(), Ext2BuildExtents(), DeviceMachine::ExtPropertiesValid(), FxCalculateObjectTotalSize(), FxCalculateObjectTotalSize2(), HubCustomPropertyValid(), HubIdListAppend(), InbvRotationThread(), NdisCopyFromPacketToPacket(), NdisCopyFromPacketToPacketSafe(), ObpIncrementHandleCount(), ObpIncrementUnnamedHandleCount(), PagePrompt(), PerfDataGetCommitChargeTotalK(), PerfDataGetKernelMemoryTotalK(), PerfDataGetPhysicalMemoryTotalK(), DeviceMachine::PrepareConfigLists(), DeviceMachine::PrepareInterfaceLists(), DeviceMachine::ReadBos(), DeviceMachine::ReadFullConfigDescriptor(), XhciIsochRing::SizeStage(), and Test_GetAvailableVidMem().
| Notification TotalBandwidth = 0 |
Definition at line 479 of file hubwmi.cpp.
Definition at line 555 of file hubwmi.cpp.
Referenced by AcpiRsGetAmlLength(), AtaFdoHandleGetScsiInquiryData(), AVrfpDebugPageHeapCreate(), BaseQuerySystemFirmware(), CallNt(), CmpSplitLeaf(), CKsAllocator::Commit(), CsrAllocateProcess(), DosCopyEnvironmentBlock(), DosLoadExecutableInternal(), ExpQuerySystemProcessInformation(), GetTListInfo(), CCabinet::InitCabinetHeader(), IoCreateDevice(), IopQueueDeviceChangeEvent(), IopQueueDeviceInstallEvent(), IopQueueDevicePropertyChangeEvent(), IopQueueTargetDeviceEvent(), KdpCopyMemoryChunks(), KsiCreateObjectType(), KspPropertyHandler(), MempAllocatePageTables(), MiDoMappedCopy(), MiDoPoolCopy(), QueryPointsFromMemory(), RtlCopyMemoryStreamTo(), RtlCreateHeap(), RtlpPageHeapCreate(), SaBlob_CreateHostent(), SepCreateToken(), SepDuplicateToken(), SepPerformTokenFiltering(), USBCCGP_BuildConfigurationDescriptor(), UsbdexBuildSelectConfigUrb(), UsbdexBuildSelectInterfaceUrb(), and WinLdrLoadNLSData().