Rev 3545 | Rev 3685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3545 | Rev 3635 | ||
---|---|---|---|
Line 209... | Line 209... | ||
209 | .pci_bus dd ? |
209 | .pci_bus dd ? |
210 | .pci_dev dd ? |
210 | .pci_dev dd ? |
211 | .irq_line db ? |
211 | .irq_line db ? |
212 | .hw_ver_id db ? |
212 | .hw_ver_id db ? |
Line -... | Line 213... | ||
- | 213 | ||
213 | 214 | db ? ; align 4 |
|
Line 214... | Line 215... | ||
214 | .TX_DESC rd NUM_TX_DESC |
215 | .TX_DESC rd NUM_TX_DESC |
Line 215... | Line 216... | ||
215 | 216 | ||
Line 819... | Line 820... | ||
819 | add eax, 4+3 ; packet header is 4 bytes long + dword alignment |
820 | add eax, 4+3 ; packet header is 4 bytes long + dword alignment |
820 | and eax, not 3 ; dword alignment |
821 | and eax, not 3 ; dword alignment |
Line 821... | Line 822... | ||
821 | 822 | ||
822 | cmp eax, RX_BUFFER_SIZE |
823 | cmp eax, RX_BUFFER_SIZE |
823 | jb .no_wrap |
824 | jb .no_wrap |
824 | DEBUGF 2, "Wrapping" |
825 | DEBUGF 1, "Wrapping" |
825 | sub eax, RX_BUFFER_SIZE |
826 | sub eax, RX_BUFFER_SIZE |
826 | .no_wrap: |
827 | .no_wrap: |
827 | mov [device.rx_data_offset], eax |
828 | mov [device.rx_data_offset], eax |
Line 958... | Line 959... | ||
958 | jz .fail |
959 | jz .fail |
Line 959... | Line 960... | ||
959 | 960 | ||
Line 960... | Line 961... | ||
960 | call cable |
961 | call cable |
961 | 962 | ||
962 | .fail: |
963 | .fail: |
963 | DEBUGF 2, "\n" |
964 | DEBUGF 1, "\n" |
964 | pop edi esi ebx |
965 | pop edi esi ebx |
Line 965... | Line 966... | ||
965 | xor eax, eax |
966 | xor eax, eax |