Subversion Repositories Kolibri OS

Rev

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

Rev 2852 Rev 2865
Line 790... Line 790...
790
 
790
 
791
        inc     [device.cur_tx]
791
        inc     [device.cur_tx]
792
        and     [device.cur_tx], TX_RING_SIZE - 1
792
        and     [device.cur_tx], TX_RING_SIZE - 1
Line -... Line 793...
-
 
793
        xor     eax, eax
-
 
794
 
-
 
795
; Update stats
-
 
796
        inc     [device.packets_tx]
-
 
797
        mov     eax, [esp+8]
-
 
798
        add     dword [device.bytes_tx], eax
793
        xor     eax, eax
799
        adc     dword [device.bytes_tx + 4], 0
Line 794... Line 800...
794
 
800
 
Line 795... Line 801...
795
        ret     8
801
        ret     8
Line 895... Line 901...
895
 
901
 
896
        movzx   ecx, [edx + x_head.len]
902
        movzx   ecx, [edx + x_head.len]
897
        and     ecx, 0xFFF
903
        and     ecx, 0xFFF
Line -... Line 904...
-
 
904
        sub     ecx, 4                  ; Do not count the CRC
-
 
905
 
-
 
906
; Update stats
-
 
907
        add     dword [device.bytes_rx], ecx
-
 
908
        adc     dword [device.bytes_rx + 4], 0
898
        sub     ecx, 4                  ; Do not count the CRC
909
        inc     dword [device.packets_rx]
Line 899... Line 910...
899
 
910
 
900
        ; Push packet size and pointer, kernel will need it..
911
        ; Push packet size and pointer, kernel will need it..