|
ReactOS 0.4.16-dev-1946-g52006dd
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
| #define | NDEBUG_USBPORT_CORE |
| #define | NDEBUG_USBPORT_INTERRUPT |
| #define | NDEBUG_USBPORT_TIMER |
Variables | |
| LIST_ENTRY | USBPORT_MiniPortDrivers = {NULL, NULL} |
| LIST_ENTRY | USBPORT_USB1FdoList = {NULL, NULL} |
| LIST_ENTRY | USBPORT_USB2FdoList = {NULL, NULL} |
| KSPIN_LOCK | USBPORT_SpinLock |
| BOOLEAN | USBPORT_Initialized = FALSE |
| NTSTATUS NTAPI DriverEntry | ( | IN PDRIVER_OBJECT | DriverObject, |
| IN PUNICODE_STRING | RegistryPath | ||
| ) |
| NTSTATUS NTAPI USBPORT_AddDevice | ( | IN PDRIVER_OBJECT | DriverObject, |
| IN PDEVICE_OBJECT | PhysicalDeviceObject | ||
| ) |
Definition at line 1833 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| VOID NTAPI USBPORT_AddUSB1Fdo | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 66 of file usbport.c.
Referenced by USBPORT_FdoPnP().
| VOID NTAPI USBPORT_AddUSB2Fdo | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 82 of file usbport.c.
Referenced by USBPORT_FdoPnP().
| PUSBPORT_COMMON_BUFFER_HEADER NTAPI USBPORT_AllocateCommonBuffer | ( | IN PDEVICE_OBJECT | FdoDevice, |
| IN SIZE_T | BufferLength | ||
| ) |
Definition at line 1708 of file usbport.c.
Referenced by USBPORT_OpenPipe(), USBPORT_ReopenPipe(), and USBPORT_StartDevice().
| USBD_STATUS NTAPI USBPORT_AllocateTransfer | ( | IN PDEVICE_OBJECT | FdoDevice, |
| IN PURB | Urb, | ||
| IN PUSBPORT_DEVICE_HANDLE | DeviceHandle, | ||
| IN PIRP | Irp, | ||
| IN PRKEVENT | Event | ||
| ) |
Definition at line 2543 of file usbport.c.
Referenced by USBPORT_SendSetupPacket(), and USBPORT_ValidateURB().
| VOID NTAPI USBPORT_AsyncTimerDpc | ( | IN PRKDPC | Dpc, |
| IN PVOID | DeferredContext, | ||
| IN PVOID | SystemArgument1, | ||
| IN PVOID | SystemArgument2 | ||
| ) |
Definition at line 2056 of file usbport.c.
Referenced by USBPORT_RequestAsyncCallback().
Definition at line 2198 of file usbport.c.
Referenced by USBPORT_CancelPendingTransferIrp(), USBPORT_DoneTransfer(), USBPORT_FlushCancelList(), USBPORT_FlushPendingTransfers(), and USBPORT_QueuePendingTransferIrp().
| NTSTATUS NTAPI USBPORT_CreateWorkerThread | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1427 of file usbport.c.
Referenced by USBPORT_StartDevice().
Definition at line 2651 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| VOID NTAPI USBPORT_DoneTransfer | ( | IN PUSBPORT_TRANSFER | Transfer | ) |
Definition at line 724 of file usbport.c.
Referenced by USBPORT_DoneSplitTransfer(), and USBPORT_FlushDoneTransfers().
| VOID NTAPI USBPORT_DoRootHubCallback | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1222 of file usbport.c.
Referenced by USBPORT_SynchronizeRootHubCallback().
| VOID NTAPI USBPORT_DpcHandler | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 864 of file usbport.c.
Referenced by USBPORT_IsrDpcHandler(), and USBPORT_WorkerRequestDpc().
| PDEVICE_RELATIONS NTAPI USBPORT_FindCompanionControllers | ( | IN PDEVICE_OBJECT | USB2FdoDevice, |
| IN BOOLEAN | IsObRefer, | ||
| IN BOOLEAN | IsFDOsReturned | ||
| ) |
Definition at line 136 of file usbport.c.
Referenced by USBPORT_RH_SetFeatureUSB2PortPower(), USBPORT_RootHubPowerAndChirpAllCcPorts(), and USBPORT_SynchronizeRootHubCallback().
| PUSBPORT_MINIPORT_INTERFACE NTAPI USBPORT_FindMiniPort | ( | IN PDRIVER_OBJECT | DriverObject | ) |
Definition at line 1793 of file usbport.c.
Referenced by USBPORT_AddDevice(), and USBPORT_Unload().
| PDEVICE_OBJECT NTAPI USBPORT_FindUSB2Controller | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 27 of file usbport.c.
Referenced by USBHI_GetExtendedHubInformation(), USBPORT_SynchronizeControllersStart(), and USBPORT_WorkerThread().
| VOID NTAPI USBPORT_FlushDoneTransfers | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 764 of file usbport.c.
Referenced by USBPORT_DpcHandler(), and USBPORT_TransferFlushDpc().
| VOID NTAPI USBPORT_FlushMapTransfers | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 2483 of file usbport.c.
Referenced by USBPORT_AbortTransfers(), and USBPORT_FlushPendingTransfers().
| VOID NTAPI USBPORT_FreeCommonBuffer | ( | IN PDEVICE_OBJECT | FdoDevice, |
| IN PUSBPORT_COMMON_BUFFER_HEADER | HeaderBuffer | ||
| ) |
Definition at line 1770 of file usbport.c.
Referenced by USBPORT_DeleteEndpoint(), USBPORT_ReopenPipe(), and USBPORT_StartDevice().
| PVOID NTAPI USBPORT_GetMappedVirtualAddress | ( | IN ULONG | PhysicalAddress, |
| IN PVOID | MiniPortExtension, | ||
| IN PVOID | MiniPortEndpoint | ||
| ) |
Definition at line 2135 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| MPSTATUS NTAPI USBPORT_GetMiniportRegistryKeyValue | ( | IN PVOID | MiniPortExtension, |
| IN BOOL | UseDriverKey, | ||
| IN PCWSTR | SourceString, | ||
| IN SIZE_T | LengthStr, | ||
| IN PVOID | Buffer, | ||
| IN SIZE_T | BufferLength | ||
| ) |
Definition at line 373 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| NTSTATUS NTAPI USBPORT_GetRegistryKeyValueFullInfo | ( | IN PDEVICE_OBJECT | FdoDevice, |
| IN PDEVICE_OBJECT | PdoDevice, | ||
| IN BOOL | UseDriverKey, | ||
| IN PCWSTR | SourceString, | ||
| IN ULONG | LengthStr, | ||
| IN PVOID | Buffer, | ||
| IN ULONG | BufferLength | ||
| ) |
Definition at line 296 of file usbport.c.
Referenced by USBHI_GetExtendedHubInformation(), USBPORT_GetMiniportRegistryKeyValue(), USBPORT_IsSelectiveSuspendEnabled(), and USBPORT_StartDevice().
| NTSTATUS NTAPI USBPORT_GetSetConfigSpaceData | ( | IN PDEVICE_OBJECT | FdoDevice, |
| IN BOOLEAN | IsReadData, | ||
| IN PVOID | Buffer, | ||
| IN ULONG | Offset, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 410 of file usbport.c.
Referenced by USBPORT_ReadWriteConfigSpace().
Definition at line 1077 of file usbport.c.
Referenced by USBPORT_StartDevice().
Definition at line 670 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
Definition at line 635 of file usbport.c.
Referenced by USBPORT_FdoPnP(), and USBPORT_InvalidateController().
Definition at line 2164 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| BOOLEAN NTAPI USBPORT_IsCompanionFdoExtension | ( | IN PDEVICE_OBJECT | USB2FdoDevice, |
| IN PUSBPORT_DEVICE_EXTENSION | USB1FdoExtension | ||
| ) |
Definition at line 119 of file usbport.c.
Referenced by USBPORT_FindCompanionControllers().
| VOID NTAPI USBPORT_IsrDpc | ( | IN PRKDPC | Dpc, |
| IN PVOID | DeferredContext, | ||
| IN PVOID | SystemArgument1, | ||
| IN PVOID | SystemArgument2 | ||
| ) |
Definition at line 1031 of file usbport.c.
Referenced by USBPORT_StartDevice().
Definition at line 941 of file usbport.c.
Referenced by USBPORT_IsrDpc(), and USBPORT_TimerDpc().
| IO_ALLOCATION_ACTION NTAPI USBPORT_MapTransfer | ( | IN PDEVICE_OBJECT | FdoDevice, |
| IN PIRP | Irp, | ||
| IN PVOID | MapRegisterBase, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 2308 of file usbport.c.
Referenced by USBPORT_FlushMapTransfers().
| VOID NTAPI USBPORT_MiniportCompleteTransfer | ( | IN PVOID | MiniPortExtension, |
| IN PVOID | MiniPortEndpoint, | ||
| IN PVOID | TransferParameters, | ||
| IN USBD_STATUS | USBDStatus, | ||
| IN ULONG | TransferLength | ||
| ) |
Definition at line 1990 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
Definition at line 555 of file usbport.c.
Referenced by USBPORT_ResumeController(), and USBPORT_StartDevice().
| ULONG NTAPI USBPORT_NotifyDoubleBuffer | ( | IN PVOID | MiniPortExtension, |
| IN PVOID | MiniPortTransfer, | ||
| IN PVOID | Buffer, | ||
| IN SIZE_T | Length | ||
| ) |
Definition at line 690 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
Definition at line 232 of file usbport.c.
Referenced by USBPORT_GetMiniportRegistryKeyValue(), and USBPORT_ReadWriteConfigSpace().
| BOOLEAN NTAPI USBPORT_QueueDoneTransfer | ( | IN PUSBPORT_TRANSFER | Transfer, |
| IN USBD_STATUS | USBDStatus | ||
| ) |
Definition at line 839 of file usbport.c.
Referenced by USBPORT_MapTransfer(), USBPORT_MiniportCompleteTransfer(), and USBPORT_RootHubEndpointWorker().
| MPSTATUS NTAPI USBPORT_ReadWriteConfigSpace | ( | IN PVOID | MiniPortExtension, |
| IN BOOLEAN | IsReadData, | ||
| IN PVOID | Buffer, | ||
| IN ULONG | Offset, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 456 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| NTSTATUS NTAPI USBPORT_RegisterUSBPortDriver | ( | IN PDRIVER_OBJECT | DriverObject, |
| IN ULONG | Version, | ||
| IN PUSBPORT_REGISTRATION_PACKET | RegPacket | ||
| ) |
Definition at line 2811 of file usbport.c.
Referenced by DriverEntry().
| VOID NTAPI USBPORT_RemoveUSBxFdo | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 98 of file usbport.c.
| ULONG NTAPI USBPORT_RequestAsyncCallback | ( | IN PVOID | MiniPortExtension, |
| IN ULONG | TimerValue, | ||
| IN PVOID | Buffer, | ||
| IN SIZE_T | Length, | ||
| IN ASYNC_TIMER_CALLBACK * | Callback | ||
| ) |
Definition at line 2079 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| NTSTATUS NTAPI USBPORT_SetRegistryKeyValue | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN BOOL | UseDriverKey, | ||
| IN ULONG | Type, | ||
| IN PCWSTR | ValueNameString, | ||
| IN PVOID | Data, | ||
| IN ULONG | DataSize | ||
| ) |
Definition at line 248 of file usbport.c.
Referenced by USBHI_ControllerSelectiveSuspend(), USBPORT_RegisterDeviceInterface(), and USBPORT_StartDevice().
| VOID NTAPI USBPORT_SignalWorkerThread | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1111 of file usbport.c.
Referenced by USBPORT_ClosePipe(), USBPORT_DpcHandler(), USBPORT_InvalidateEndpointHandler(), USBPORT_StopWorkerThread(), USBPORT_SynchronizeControllersStart(), USBPORT_SynchronizeRootHubCallback(), and USBPORT_WorkerThreadHandler().
| VOID NTAPI USBPORT_SoftInterrupt | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 611 of file usbport.c.
Referenced by USBPORT_InvalidateControllerHandler().
| VOID NTAPI USBPORT_SoftInterruptDpc | ( | IN PRKDPC | Dpc, |
| IN PVOID | DeferredContext, | ||
| IN PVOID | SystemArgument1, | ||
| IN PVOID | SystemArgument2 | ||
| ) |
Definition at line 590 of file usbport.c.
Referenced by USBPORT_SoftInterrupt().
Definition at line 1675 of file usbport.c.
Referenced by USBPORT_StartDevice().
| VOID NTAPI USBPORT_StopWorkerThread | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1455 of file usbport.c.
Referenced by USBPORT_StartDevice().
| VOID NTAPI USBPORT_SynchronizeControllersStart | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1472 of file usbport.c.
Referenced by USBPORT_TimerDpc().
| VOID NTAPI USBPORT_SynchronizeRootHubCallback | ( | IN PDEVICE_OBJECT | FdoDevice, |
| IN PDEVICE_OBJECT | Usb2FdoDevice | ||
| ) |
Definition at line 1257 of file usbport.c.
Referenced by USBPORT_WorkerThread().
| VOID NTAPI USBPORT_TimerDpc | ( | IN PRKDPC | Dpc, |
| IN PVOID | DeferredContext, | ||
| IN PVOID | SystemArgument1, | ||
| IN PVOID | SystemArgument2 | ||
| ) |
Definition at line 1556 of file usbport.c.
Referenced by USBPORT_StartTimer().
| VOID NTAPI USBPORT_TransferFlushDpc | ( | IN PRKDPC | Dpc, |
| IN PVOID | DeferredContext, | ||
| IN PVOID | SystemArgument1, | ||
| IN PVOID | SystemArgument2 | ||
| ) |
Definition at line 825 of file usbport.c.
Referenced by USBPORT_StartDevice().
| VOID NTAPI USBPORT_Unload | ( | IN PDRIVER_OBJECT | DriverObject | ) |
Definition at line 1970 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
Definition at line 485 of file usbport.c.
Referenced by USBPORT_AbortPipe(), USBPORT_ClearStall(), USBPORT_CompleteTransfer(), USBPORT_DoneTransfer(), USBPORT_FlushAbortList(), USBPORT_HandleGetCurrentFrame(), USBPORT_HandleGetStatus(), USBPORT_HandleSelectConfiguration(), USBPORT_HandleSelectInterface(), USBPORT_HandleSubmitURB(), USBPORT_OpenInterface(), USBPORT_OpenPipe(), USBPORT_ResetPipe(), USBPORT_RestoreDevice(), USBPORT_SendSetupPacket(), USBPORT_SyncResetPipeAndClearStall(), and USBPORT_ValidateURB().
Definition at line 543 of file usbport.c.
Referenced by USBPORT_AbortTransfers(), USBPORT_ClosePipe(), USBPORT_FlushController(), USBPORT_InitializeDevice(), USBPORT_OpenPipe(), USBPORT_PdoDevicePowerState(), USBPORT_RegisterUSBPortDriver(), USBPORT_RemoveDevice(), USBPORT_ReopenPipe(), USBPORT_RestoreDevice(), USBPORT_ResumeController(), USBPORT_RootHubPowerAndChirpAllCcPorts(), USBPORT_SuspendController(), USBPORT_SynchronizeRootHubCallback(), and USBPORT_SyncResetPipeAndClearStall().
| VOID NTAPI USBPORT_WorkerRequestDpc | ( | IN PRKDPC | Dpc, |
| IN PVOID | DeferredContext, | ||
| IN PVOID | SystemArgument1, | ||
| IN PVOID | SystemArgument2 | ||
| ) |
Definition at line 701 of file usbport.c.
Referenced by USBPORT_StartDevice().
Definition at line 1368 of file usbport.c.
Referenced by USBPORT_CreateWorkerThread().
| VOID NTAPI USBPORT_WorkerThreadHandler | ( | IN PDEVICE_OBJECT | FdoDevice | ) |
Definition at line 1127 of file usbport.c.
Referenced by USBPORT_WorkerThread().
Definition at line 23 of file usbport.c.
Referenced by USBPORT_RegisterUSBPortDriver().
| LIST_ENTRY USBPORT_MiniPortDrivers = {NULL, NULL} |
Definition at line 18 of file usbport.c.
Referenced by USBPORT_FindMiniPort(), and USBPORT_RegisterUSBPortDriver().
| KSPIN_LOCK USBPORT_SpinLock |
Definition at line 22 of file usbport.c.
Referenced by USBPORT_AddUSB1Fdo(), USBPORT_AddUSB2Fdo(), USBPORT_FindCompanionControllers(), USBPORT_FindMiniPort(), USBPORT_FindUSB2Controller(), USBPORT_RegisterUSBPortDriver(), and USBPORT_RemoveUSBxFdo().
| LIST_ENTRY USBPORT_USB1FdoList = {NULL, NULL} |
Definition at line 19 of file usbport.c.
Referenced by USBPORT_AddUSB1Fdo(), USBPORT_FindCompanionControllers(), and USBPORT_RegisterUSBPortDriver().
| LIST_ENTRY USBPORT_USB2FdoList = {NULL, NULL} |
Definition at line 20 of file usbport.c.
Referenced by USBPORT_AddUSB2Fdo(), USBPORT_FindUSB2Controller(), and USBPORT_RegisterUSBPortDriver().