Rev 3653 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3653 | Rev 3728 | ||
---|---|---|---|
Line 150... | Line 150... | ||
150 | ; find list header |
150 | ; find list header |
151 | mov edx, ebx |
151 | mov edx, ebx |
152 | @@: |
152 | @@: |
153 | mov edx, [edx+usb_pipe.NextVirt] |
153 | mov edx, [edx+usb_pipe.NextVirt] |
154 | cmp [edx+usb_pipe.Controller], esi |
154 | cmp [edx+usb_pipe.Controller], esi |
155 | jnz @b |
155 | jz @b |
156 | ; subtract pipe bandwidth |
156 | ; subtract pipe bandwidth |
157 | ; TODO: calculate real bandwidth |
157 | ; TODO: calculate real bandwidth |
158 | mov eax, [.maxpacket] |
158 | mov eax, [.maxpacket] |
159 | and eax, (1 shl 11) - 1 |
159 | and eax, (1 shl 11) - 1 |
160 | sub [edx+usb_static_ep.Bandwidth], eax |
160 | sub [edx+usb_static_ep.Bandwidth], eax |