Subversion Repositories Kolibri OS

Rev

Rev 4418 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4418 Rev 4547
Line 165... Line 165...
165
end virtual
165
end virtual
166
; calculate bandwidth on the bus
166
; calculate bandwidth on the bus
167
        mov     eax, [.maxpacket]
167
        mov     eax, [.maxpacket]
168
        mov     ecx, dword [.lowspeed]
168
        mov     ecx, dword [.lowspeed]
169
        call    calc_usb1_bandwidth
169
        call    calc_usb1_bandwidth
170
; find list header
-
 
171
        mov     edx, ebx
-
 
172
@@:
-
 
173
        mov     edx, [edx+usb_pipe.NextVirt]
170
        mov     edx, [ebx+usb_pipe.BaseList]
174
        cmp     [edx+usb_pipe.Controller], esi
-
 
175
        jz      @b
-
 
176
; subtract pipe bandwidth
171
; subtract pipe bandwidth
177
        sub     [edx+usb_static_ep.Bandwidth], eax
172
        sub     [edx+usb_static_ep.Bandwidth], eax
178
        ret     8
173
        ret     8
179
endp
174
endp