#include "usbuhci.h"
#include <debug.h>
Go to the source code of this file.
|
VOID NTAPI | UhciRHGetRootHubData (IN PVOID uhciExtension, IN PVOID rootHubData) |
|
MPSTATUS NTAPI | UhciRHGetStatus (IN PVOID uhciExtension, IN PUSHORT Status) |
|
MPSTATUS NTAPI | UhciRHGetPortStatus (IN PVOID uhciExtension, IN USHORT Port, IN PUSB_PORT_STATUS_AND_CHANGE PortStatus) |
|
MPSTATUS NTAPI | UhciRHGetHubStatus (IN PVOID uhciExtension, IN PUSB_HUB_STATUS_AND_CHANGE HubStatus) |
|
VOID NTAPI | UhciRHPortResetComplete (IN PVOID uhciExtension, IN PVOID pPort) |
|
VOID NTAPI | UhciRHSetFeaturePortResetWorker (IN PUHCI_EXTENSION UhciExtension, IN PUSHORT pPort) |
|
MPSTATUS NTAPI | UhciRHSetFeaturePortReset (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHSetFeaturePortPower (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHPortEnable (IN PVOID uhciExtension, IN USHORT Port, IN BOOLEAN IsSet) |
|
MPSTATUS NTAPI | UhciRHSetFeaturePortEnable (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHSetFeaturePortSuspend (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortEnable (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortPower (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortSuspend (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortEnableChange (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortConnectChange (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortResetChange (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortSuspendChange (IN PVOID uhciExtension, IN USHORT Port) |
|
MPSTATUS NTAPI | UhciRHClearFeaturePortOvercurrentChange (IN PVOID uhciExtension, IN USHORT Port) |
|
VOID NTAPI | UhciRHDisableIrq (IN PVOID uhciExtension) |
|
VOID NTAPI | UhciRHEnableIrq (IN PVOID uhciExtension) |
|
◆ NDEBUG
◆ UhciRHClearFeaturePortConnectChange()
Definition at line 406 of file roothub.c.
408{
413
414 DPRINT(
"UhciRHClearFeaturePortConnectChange: Port - %04X\n",
Port);
415
417
421
423 {
424
428 }
429
431}
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
PUHCI_HW_REGISTERS BaseRegister
UHCI_PORT_STATUS_CONTROL PortControl[UHCI_NUM_ROOT_HUB_PORTS]
USHORT PortEnableDisableChange
USHORT ConnectStatusChange
#define MP_STATUS_SUCCESS
Referenced by DriverEntry().
◆ UhciRHClearFeaturePortEnable()
Definition at line 350 of file roothub.c.
352{
354 DPRINT(
"UhciRHClearFeaturePortEnable: ...\n");
357}
MPSTATUS NTAPI UhciRHPortEnable(IN PVOID uhciExtension, IN USHORT Port, IN BOOLEAN IsSet)
Referenced by DriverEntry().
◆ UhciRHClearFeaturePortEnableChange()
Definition at line 381 of file roothub.c.
383{
388
389 DPRINT(
"UhciRHClearFeaturePortEnableChange: ...\n");
390
392
396
400
402}
Referenced by DriverEntry().
◆ UhciRHClearFeaturePortOvercurrentChange()
Definition at line 457 of file roothub.c.
459{
460 DPRINT(
"UhciRHClearFeaturePortOvercurrentChange: UNIMPLEMENTED. FIXME\n");
463}
Referenced by DriverEntry().
◆ UhciRHClearFeaturePortPower()
◆ UhciRHClearFeaturePortResetChange()
Definition at line 435 of file roothub.c.
437{
439 DPRINT(
"UhciRHClearFeaturePortResetChange: ...\n");
443}
ULONG ResetChangePortMask
Referenced by DriverEntry().
◆ UhciRHClearFeaturePortSuspend()
◆ UhciRHClearFeaturePortSuspendChange()
Definition at line 447 of file roothub.c.
449{
450 DPRINT(
"UhciRHClearFeaturePortSuspendChange: UNIMPLEMENTED. FIXME\n");
453}
Referenced by DriverEntry().
◆ UhciRHDisableIrq()
◆ UhciRHEnableIrq()
◆ UhciRHGetHubStatus()
◆ UhciRHGetPortStatus()
Definition at line 50 of file roothub.c.
53{
61
62
63
65
69
72
75
78 {
80 }
81 else
82 {
84 }
85
86
88 {
90 portStatus.
PortPower = (~PortControl.Reserved2 & 1);
92 }
93 else
94 {
98 }
99
101
105
106 PortBit = 1 << (
Port - 1);
107
109 {
112 }
113 else
114 {
116 }
117
120
123
124 PortStatus->PortStatus.Usb20PortStatus = portStatus;
125 PortStatus->PortChange.Usb20PortChange = portChange;
126
127
128
129
130
131
133}
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT PortStatus
ULONG SuspendChangePortMask
USHORT PortEnabledDisabled
USHORT CurrentConnectStatus
USHORT PortEnableDisableChange
USHORT OverCurrentIndicatorChange
USHORT ConnectStatusChange
USHORT LowSpeedDeviceAttached
USHORT CurrentConnectStatus
USHORT HighSpeedDeviceAttached
USHORT PortEnabledDisabled
Referenced by DriverEntry().
◆ UhciRHGetRootHubData()
Definition at line 15 of file roothub.c.
17{
21
22 DPRINT(
"UhciRHGetRootHubData: ...\n");
23
28
31
36}
#define UHCI_NUM_ROOT_HUB_PORTS
USB_CONTROLLER_FLAVOR HcFlavor
USBPORT_HUB_CHARACTERISTICS HubCharacteristics
USHORT OverCurrentProtectionMode
USHORT NoOverCurrentProtection
USBPORT_HUB_11_CHARACTERISTICS Usb11HubCharacteristics
Referenced by DriverEntry().
◆ UhciRHGetStatus()
◆ UhciRHPortEnable()
◆ UhciRHPortResetComplete()
Definition at line 147 of file roothub.c.
149{
156
157 DPRINT(
"UhciRHPortResetComplete: ...\n");
158
160
163
166
170
172
174 {
176
178 break;
179 }
180
181 for (ix = 0; ix < 10; ++ix)
182 {
184
186
188 break;
189
192 }
193
197
203 {
204 DPRINT1(
"UhciRHPortResetComplete: Via chip. FIXME\n");
206 return;
207 }
208
211
213}
NTSYSAPI void WINAPI DbgBreakPoint(void)
#define KeStallExecutionProcessor(MicroSeconds)
PUSBPORT_INVALIDATE_ROOT_HUB UsbPortInvalidateRootHub
USBPORT_REGISTRATION_PACKET RegPacket
BOOLEAN NTAPI UhciHardwarePresent(IN PUHCI_EXTENSION UhciExtension)
Referenced by UhciRHSetFeaturePortResetWorker().
◆ UhciRHSetFeaturePortEnable()
◆ UhciRHSetFeaturePortPower()
◆ UhciRHSetFeaturePortReset()
Definition at line 250 of file roothub.c.
252{
256
257 DPRINT(
"UhciRHSetFeaturePortReset: ...\n");
258
260
262 PortBit = 1 << (
Port - 1);
263
264 if (ResetPortMask & PortBit)
266
268
274 {
275 DPRINT1(
"UhciRHSetFeaturePortReset: Via chip. FIXME\n");
277 }
278
280
282}
#define MP_STATUS_FAILURE
VOID NTAPI UhciRHSetFeaturePortResetWorker(IN PUHCI_EXTENSION UhciExtension, IN PUSHORT pPort)
Referenced by DriverEntry().
◆ UhciRHSetFeaturePortResetWorker()
Definition at line 217 of file roothub.c.
219{
224
225 DPRINT(
"UhciRHSetFeaturePortResetWorker: ...\n");
226
227 BaseRegister = UhciExtension->BaseRegister;
228
231
234
238
240
242 10,
243 pPort,
244 sizeof(*pPort),
246}
PUSBPORT_REQUEST_ASYNC_CALLBACK UsbPortRequestAsyncCallback
VOID NTAPI UhciRHPortResetComplete(IN PVOID uhciExtension, IN PVOID pPort)
Referenced by UhciRHSetFeaturePortReset().
◆ UhciRHSetFeaturePortSuspend()