Rev 3711 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3711 | Rev 3816 | ||
---|---|---|---|
Line 922... | Line 922... | ||
922 | ; the controller-specific part of this API. See docs. |
922 | ; the controller-specific part of this API. See docs. |
923 | ; in: edi -> usb_pipe for target, ecx -> usb_pipe for config pipe, |
923 | ; in: edi -> usb_pipe for target, ecx -> usb_pipe for config pipe, |
924 | ; esi -> usb_controller, eax -> usb_gtd for the first TD, |
924 | ; esi -> usb_controller, eax -> usb_gtd for the first TD, |
925 | ; [ebp+12] = endpoint, [ebp+16] = maxpacket, [ebp+20] = type |
925 | ; [ebp+12] = endpoint, [ebp+16] = maxpacket, [ebp+20] = type |
926 | proc ohci_init_pipe |
926 | proc ohci_init_pipe |
927 | virtual at ebp+8 |
927 | virtual at ebp-12 |
- | 928 | .speed db ? |
|
- | 929 | rb 3 |
|
- | 930 | .bandwidth dd ? |
|
- | 931 | .target dd ? |
|
- | 932 | rd 2 |
|
928 | .config_pipe dd ? |
933 | .config_pipe dd ? |
929 | .endpoint dd ? |
934 | .endpoint dd ? |
930 | .maxpacket dd ? |
935 | .maxpacket dd ? |
931 | .type dd ? |
936 | .type dd ? |
932 | .interval dd ? |
937 | .interval dd ? |
Line 942... | Line 947... | ||
942 | mov edx, [.endpoint] |
947 | mov edx, [.endpoint] |
943 | and edx, 15 |
948 | and edx, 15 |
944 | shl edx, 7 |
949 | shl edx, 7 |
945 | or eax, edx |
950 | or eax, edx |
946 | mov [edi+ohci_pipe.Flags-sizeof.ohci_pipe], eax |
951 | mov [edi+ohci_pipe.Flags-sizeof.ohci_pipe], eax |
- | 952 | bt eax, 13 |
|
- | 953 | setc [.speed] |
|
947 | mov eax, [.maxpacket] |
954 | mov eax, [.maxpacket] |
948 | mov word [edi+ohci_pipe.Flags+2-sizeof.ohci_pipe], ax |
955 | mov word [edi+ohci_pipe.Flags+2-sizeof.ohci_pipe], ax |
949 | cmp [.type], CONTROL_PIPE |
956 | cmp [.type], CONTROL_PIPE |
950 | jz @f |
957 | jz @f |
951 | test byte [.endpoint], 80h |
958 | test byte [.endpoint], 80h |