Subversion Repositories Kolibri OS

Rev

Rev 3855 | Rev 4467 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3855 Rev 4334
Line 654... Line 654...
654
        cmp     dword [esp + 8], 1514
654
        cmp     dword [esp + 8], 1514
655
        ja      .fail
655
        ja      .fail
656
        cmp     dword [esp + 8], 60
656
        cmp     dword [esp + 8], 60
657
        jb      .fail
657
        jb      .fail
Line 658... Line -...
658
 
-
 
659
 
658
 
660
; Program the descriptor (use legacy mode)
659
; Program the descriptor (use legacy mode)
661
        lea     edi, [device.tx_desc]                   ; Transmit Descriptor Base Address
660
        lea     edi, [device.tx_desc]                   ; Transmit Descriptor Base Address
662
        mov     dword [edi + 16], eax                   ; Store the data location (for driver)
661
        mov     dword [edi + 16], eax                   ; Store the data location (for driver)
663
        GetRealAddr                                     ;
662
        GetRealAddr                                     ;
Line 678... Line 677...
678
        inc     [device.packets_tx]
677
        inc     [device.packets_tx]
679
        mov     eax, [esp + 8]
678
        mov     eax, [esp + 8]
680
        add     dword [device.bytes_tx], eax
679
        add     dword [device.bytes_tx], eax
681
        adc     dword [device.bytes_tx + 4], 0
680
        adc     dword [device.bytes_tx + 4], 0
Line -... Line 681...
-
 
681
 
682
 
682
        xor     eax, eax
Line 683... Line 683...
683
        ret     8
683
        ret     8
684
 
684
 
-
 
685
  .fail:
-
 
686
        DEBUGF  2,"Send failed\n"
685
  .fail:
687
        stdcall KernelFree, [esp+4]
Line 686... Line 688...
686
        DEBUGF  2,"Send failed\n"
688
        or      eax, -1
687
        ret     8
689
        ret     8