Rev 3745 | Rev 4547 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3745 | Rev 3826 | ||
---|---|---|---|
Line 214... | Line 214... | ||
214 | 214 | ||
215 | ; Part of API for drivers, see documentation for USBOpenPipe. |
215 | ; Part of API for drivers, see documentation for USBOpenPipe. |
216 | proc usb_open_pipe stdcall uses ebx esi edi,\ |
216 | proc usb_open_pipe stdcall uses ebx esi edi,\ |
217 | config_pipe:dword, endpoint:dword, maxpacket:dword, type:dword, interval:dword |
217 | config_pipe:dword, endpoint:dword, maxpacket:dword, type:dword, interval:dword |
- | 218 | locals |
|
218 | locals |
219 | tt_vars rd (ehci_select_tt_interrupt_list.local_vars_size + 3) / 4 |
219 | targetsmask dd ? ; S-Mask for USB2 |
220 | targetsmask dd ? ; S-Mask for USB2 |
220 | bandwidth dd ? |
221 | bandwidth dd ? |
221 | target dd ? |
222 | target dd ? |
222 | endl |
223 | endl |
Line 507... | Line 508... | ||
507 | ret |
508 | ret |
508 | .last_pipe: |
509 | .last_pipe: |
509 | ; That was the last pipe for the device. |
510 | ; That was the last pipe for the device. |
510 | ; 5. Notify device driver(s) about disconnect. |
511 | ; 5. Notify device driver(s) about disconnect. |
511 | call mutex_unlock |
512 | call mutex_unlock |
512 | movzx eax, [ecx+usb_device_data.NumInterfaces] |
513 | mov eax, [ecx+usb_device_data.NumInterfaces] |
513 | test eax, eax |
514 | test eax, eax |
514 | jz .notify_done |
515 | jz .notify_done |
515 | add ecx, [ecx+usb_device_data.Interfaces] |
516 | add ecx, [ecx+usb_device_data.Interfaces] |
516 | .notify_loop: |
517 | .notify_loop: |
517 | mov edx, [ecx+usb_interface_data.DriverFunc] |
518 | mov edx, [ecx+usb_interface_data.DriverFunc] |