ReactOS 0.4.16-dev-340-g0540c21
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | NDEBUG_OHCI_TRACE |
Variables | |
USBPORT_REGISTRATION_PACKET | RegPacket |
static const UCHAR | Index [8] |
static const UCHAR | Balance [OHCI_NUMBER_OF_INTERRUPTS] |
NTSTATUS NTAPI DriverEntry | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PUNICODE_STRING | RegistryPath | ||
) |
Definition at line 2503 of file usbohci.c.
VOID NTAPI OHCI_AbortTransfer | ( | IN PVOID | ohciExtension, |
IN PVOID | ohciEndpoint, | ||
IN PVOID | ohciTransfer, | ||
IN OUT PULONG | CompletedLength | ||
) |
Aborts the transfer descriptor chain in a given endpoint.
[in] | ohciExtension | The ohci extension |
[in] | ohciEndpoint | The ohci endpoint |
[in] | ohciTransfer | The ohci transfer |
[out] | CompletedLength |
Definition at line 1673 of file usbohci.c.
Referenced by DriverEntry().
POHCI_HCD_TD NTAPI OHCI_AllocateTD | ( | IN POHCI_EXTENSION | OhciExtension, |
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
Definition at line 1233 of file usbohci.c.
Referenced by OHCI_BulkOrInterruptTransfer(), and OHCI_ControlTransfer().
|
static |
Definition at line 1425 of file usbohci.c.
Referenced by OHCI_SubmitTransfer().
Definition at line 2118 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_CloseEndpoint | ( | IN PVOID | ohciExtension, |
IN PVOID | ohciEndpoint, | ||
IN BOOLEAN | IsDoDisablePeriodic | ||
) |
Definition at line 517 of file usbohci.c.
Referenced by DriverEntry().
|
static |
Definition at line 1284 of file usbohci.c.
Referenced by OHCI_SubmitTransfer().
Definition at line 2238 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_DumpHcdED | ( | POHCI_HCD_ED | ED | ) |
Definition at line 38 of file usbohci.c.
Referenced by OHCI_PollAsyncEndpoint().
VOID NTAPI OHCI_DumpHcdTD | ( | POHCI_HCD_TD | TD | ) |
Definition at line 2216 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_EnableList | ( | IN POHCI_EXTENSION | OhciExtension, |
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
Definition at line 81 of file usbohci.c.
Referenced by OHCI_BulkOrInterruptTransfer(), OHCI_ControlTransfer(), OHCI_SetEndpointState(), and OHCI_SetEndpointStatus().
MPSTATUS NTAPI OHCI_EndSendOnePacket | ( | IN PVOID | ohciExtension, |
IN PVOID | PacketParameters, | ||
IN PVOID | Data, | ||
IN PULONG | pDataLength, | ||
IN PVOID | BufferVA, | ||
IN PVOID | BufferPA, | ||
IN ULONG | BufferLength, | ||
IN USBD_STATUS * | pUSBDStatus | ||
) |
Definition at line 2493 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 2173 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 1781 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 2287 of file usbohci.c.
Referenced by DriverEntry().
BOOLEAN NTAPI OHCI_HardwarePresent | ( | IN POHCI_EXTENSION | OhciExtension, |
IN BOOLEAN | IsInvalidateController | ||
) |
Definition at line 994 of file usbohci.c.
Referenced by OHCI_CheckController(), and OHCI_InterruptService().
POHCI_HCD_ED NTAPI OHCI_InitializeED | ( | IN POHCI_ENDPOINT | OhciEndpoint, |
IN POHCI_HCD_ED | ED, | ||
IN POHCI_HCD_TD | FirstTD, | ||
IN ULONG_PTR | EdPA | ||
) |
Definition at line 166 of file usbohci.c.
Referenced by OHCI_OpenBulkEndpoint(), OHCI_OpenControlEndpoint(), and OHCI_OpenInterruptEndpoint().
VOID NTAPI OHCI_InitializeTDs | ( | IN POHCI_ENDPOINT | OhciEndpoint, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties | ||
) |
Definition at line 228 of file usbohci.c.
Referenced by OHCI_OpenBulkEndpoint(), OHCI_OpenControlEndpoint(), and OHCI_OpenInterruptEndpoint().
VOID NTAPI OHCI_InsertEndpointInSchedule | ( | IN POHCI_ENDPOINT | OhciEndpoint | ) |
Definition at line 114 of file usbohci.c.
Referenced by OHCI_OpenBulkEndpoint(), OHCI_OpenControlEndpoint(), and OHCI_OpenInterruptEndpoint().
Definition at line 1075 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 2194 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 1020 of file usbohci.c.
Referenced by DriverEntry().
|
static |
Forms the next General Transfer Descriptor for the current transfer.
[in] | OhciExtension | The ohci extension |
[in] | TransferedLen | The consolidated length of all previous descriptors' buffers |
[in] | OhciTransfer | The ohci transfer |
[out] | TD | The transfer descriptor we are forming |
[in] | SGList | The scatter/gather list |
Definition at line 1157 of file usbohci.c.
Referenced by OHCI_BulkOrInterruptTransfer(), and OHCI_ControlTransfer().
MPSTATUS NTAPI OHCI_OpenBulkEndpoint | ( | IN POHCI_EXTENSION | OhciExtension, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties, | ||
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
Definition at line 298 of file usbohci.c.
Referenced by OHCI_OpenEndpoint().
MPSTATUS NTAPI OHCI_OpenControlEndpoint | ( | IN POHCI_EXTENSION | OhciExtension, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties, | ||
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
Definition at line 268 of file usbohci.c.
Referenced by OHCI_OpenEndpoint().
MPSTATUS NTAPI OHCI_OpenEndpoint | ( | IN PVOID | ohciExtension, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties, | ||
IN PVOID | ohciEndpoint | ||
) |
Definition at line 386 of file usbohci.c.
Referenced by DriverEntry().
MPSTATUS NTAPI OHCI_OpenInterruptEndpoint | ( | IN POHCI_EXTENSION | OhciExtension, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties, | ||
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
Definition at line 325 of file usbohci.c.
Referenced by OHCI_OpenEndpoint().
MPSTATUS NTAPI OHCI_OpenIsoEndpoint | ( | IN POHCI_EXTENSION | OhciExtension, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties, | ||
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
MPSTATUS NTAPI OHCI_PassThru | ( | IN PVOID | ohciExtension, |
IN PVOID | passThruParameters, | ||
IN ULONG | ParameterLength, | ||
IN PVOID | pParameters | ||
) |
Definition at line 2472 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_PollAsyncEndpoint | ( | IN POHCI_EXTENSION | OhciExtension, |
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
Definition at line 1885 of file usbohci.c.
Referenced by OHCI_PollEndpoint().
Definition at line 2259 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 2089 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_PollIsoEndpoint | ( | IN POHCI_EXTENSION | OhciExtension, |
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
VOID NTAPI OHCI_ProcessDoneIsoTD | ( | IN POHCI_EXTENSION | OhciExtension, |
IN POHCI_HCD_TD | TD, | ||
IN BOOLEAN | IsPortComplete | ||
) |
Definition at line 1656 of file usbohci.c.
Referenced by OHCI_AbortTransfer().
VOID NTAPI OHCI_ProcessDoneTD | ( | IN POHCI_EXTENSION | OhciExtension, |
IN POHCI_HCD_TD | TD, | ||
IN BOOLEAN | IsPortComplete | ||
) |
Definition at line 1585 of file usbohci.c.
Referenced by OHCI_AbortTransfer(), and OHCI_PollAsyncEndpoint().
VOID NTAPI OHCI_QueryEndpointRequirements | ( | IN PVOID | ohciExtension, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties, | ||
IN PUSBPORT_ENDPOINT_REQUIREMENTS | EndpointRequirements | ||
) |
Definition at line 467 of file usbohci.c.
Referenced by DriverEntry().
ULONG NTAPI OHCI_RemainTDs | ( | IN POHCI_EXTENSION | OhciExtension, |
IN POHCI_ENDPOINT | OhciEndpoint | ||
) |
Definition at line 1256 of file usbohci.c.
Referenced by OHCI_BulkOrInterruptTransfer(), and OHCI_ControlTransfer().
VOID NTAPI OHCI_RemoveEndpointFromSchedule | ( | IN POHCI_ENDPOINT | OhciEndpoint | ) |
Definition at line 1802 of file usbohci.c.
Referenced by OHCI_SetEndpointState().
MPSTATUS NTAPI OHCI_ReopenEndpoint | ( | IN PVOID | ohciExtension, |
IN PUSBPORT_ENDPOINT_PROPERTIES | EndpointProperties, | ||
IN PVOID | ohciEndpoint | ||
) |
Definition at line 441 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 2336 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 950 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_SetEndpointDataToggle | ( | IN PVOID | ohciExtension, |
IN PVOID | ohciEndpoint, | ||
IN ULONG | DataToggle | ||
) |
Definition at line 2266 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_SetEndpointState | ( | IN PVOID | ohciExtension, |
IN PVOID | ohciEndpoint, | ||
IN ULONG | EndpointState | ||
) |
Definition at line 1847 of file usbohci.c.
Referenced by DriverEntry().
VOID NTAPI OHCI_SetEndpointStatus | ( | IN PVOID | ohciExtension, |
IN PVOID | ohciEndpoint, | ||
IN ULONG | EndpointStatus | ||
) |
Definition at line 2309 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 630 of file usbohci.c.
Referenced by DriverEntry().
MPSTATUS NTAPI OHCI_StartSendOnePacket | ( | IN PVOID | ohciExtension, |
IN PVOID | PacketParameters, | ||
IN PVOID | Data, | ||
IN PULONG | pDataLength, | ||
IN PVOID | BufferVA, | ||
IN PVOID | BufferPA, | ||
IN ULONG | BufferLength, | ||
IN USBD_STATUS * | pUSBDStatus | ||
) |
Definition at line 865 of file usbohci.c.
Referenced by DriverEntry().
MPSTATUS NTAPI OHCI_SubmitIsoTransfer | ( | IN PVOID | ohciExtension, |
IN PVOID | ohciEndpoint, | ||
IN PUSBPORT_TRANSFER_PARAMETERS | TransferParameters, | ||
IN PVOID | ohciTransfer, | ||
IN PVOID | isoParameters | ||
) |
MPSTATUS NTAPI OHCI_SubmitTransfer | ( | IN PVOID | ohciExtension, |
IN PVOID | ohciEndpoint, | ||
IN PUSBPORT_TRANSFER_PARAMETERS | TransferParameters, | ||
IN PVOID | ohciTransfer, | ||
IN PUSBPORT_SCATTER_GATHER_LIST | SGList | ||
) |
Creates the transfer descriptor chain for the given transfer's buffer and attaches it to a given endpoint (for control, bulk or interrupt transfers)
[in] | OhciExtension | The ohci extension |
[in] | OhciEndpoint | The ohci endpoint |
[in] | TransferParameters | The transfer parameters |
[in] | OhciTransfer | The ohci transfer |
[in] | SGList | The scatter/gather list |
Definition at line 1529 of file usbohci.c.
Referenced by DriverEntry().
Definition at line 908 of file usbohci.c.
Referenced by DriverEntry().
MPSTATUS NTAPI OHCI_TakeControlHC | ( | IN POHCI_EXTENSION | OhciExtension, |
IN PUSBPORT_RESOURCES | Resources | ||
) |
Definition at line 529 of file usbohci.c.
Referenced by OHCI_StartController().
VOID NTAPI OHCI_Unload | ( | IN PDRIVER_OBJECT | DriverObject | ) |
Definition at line 2483 of file usbohci.c.
Referenced by DriverEntry().
|
static |
Definition at line 30 of file usbohci.c.
Referenced by OHCI_StartController().
USBPORT_REGISTRATION_PACKET RegPacket |
Definition at line 16 of file usbohci.c.
Referenced by DriverEntry(), OHCI_AbortTransfer(), OHCI_CheckController(), OHCI_HardwarePresent(), OHCI_InterruptDpc(), OHCI_PollAsyncEndpoint(), and OHCI_ProcessDoneTD().