Subversion Repositories Kolibri OS

Rev

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

Rev 5560 Rev 5561
Line 820... Line 820...
820
        inc     dword [ebx + device.packets_rx]
820
        inc     dword [ebx + device.packets_rx]
Line 821... Line 821...
821
 
821
 
Line 822... Line 822...
822
; allocate new descriptor
822
; allocate new descriptor
-
 
823
 
-
 
824
        invoke  NetAlloc, 2000
823
 
825
        test    eax, eax
824
        invoke  NetAlloc, 2000
826
        jz      .out_of_mem
825
        mov     [ebx + device.rx_desc], eax
827
        mov     [ebx + device.rx_desc], eax
826
        mov     esi, eax
828
        mov     esi, eax
827
        invoke  GetPhysAddr
829
        invoke  GetPhysAddr
Line 843... Line 845...
843
 
845
 
844
        set_io  [ebx + device.io_addr], reg_scb_cmd
846
        set_io  [ebx + device.io_addr], reg_scb_cmd
845
        mov     ax, RX_START
847
        mov     ax, RX_START
846
        out     dx, ax
848
        out     dx, ax
-
 
849
        call    cmd_wait
Line 847... Line 850...
847
        call    cmd_wait
850
  .out_of_mem:
848
 
851
 
Line 849... Line 852...
849
; And give packet to kernel
852
; And give packet to kernel