Subversion Repositories Kolibri OS

Rev

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

Rev 3545 Rev 3788
Line 642... Line 642...
642
;;     pointer to device structure in ebx  ;;
642
;;     pointer to device structure in ebx  ;;
643
;;                                         ;;
643
;;                                         ;;
644
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
644
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
645
align 4
645
align 4
646
transmit:
646
transmit:
647
        DEBUGF  2,"\nTransmitting packet, buffer:%x, size:%u\n", [esp+4], [esp+8]
647
        DEBUGF  1,"\nTransmitting packet, buffer:%x, size:%u\n", [esp+4], [esp+8]
648
        mov     eax, [esp+4]
648
        mov     eax, [esp+4]
649
        DEBUGF  2,"To: %x-%x-%x-%x-%x-%x From: %x-%x-%x-%x-%x-%x Type:%x%x\n",\
649
        DEBUGF  1,"To: %x-%x-%x-%x-%x-%x From: %x-%x-%x-%x-%x-%x Type:%x%x\n",\
650
        [eax+00]:2,[eax+01]:2,[eax+02]:2,[eax+03]:2,[eax+04]:2,[eax+05]:2,\
650
        [eax+00]:2,[eax+01]:2,[eax+02]:2,[eax+03]:2,[eax+04]:2,[eax+05]:2,\
651
        [eax+06]:2,[eax+07]:2,[eax+08]:2,[eax+09]:2,[eax+10]:2,[eax+11]:2,\
651
        [eax+06]:2,[eax+07]:2,[eax+08]:2,[eax+09]:2,[eax+10]:2,[eax+11]:2,\
652
        [eax+13]:2,[eax+12]:2
652
        [eax+13]:2,[eax+12]:2
Line 653... Line 653...
653
 
653
 
Line 681... Line 681...
681
        adc     dword [device.bytes_tx + 4], 0
681
        adc     dword [device.bytes_tx + 4], 0
Line 682... Line 682...
682
 
682
 
Line 683... Line 683...
683
        ret     8
683
        ret     8
684
 
684
 
685
  .fail:
685
  .fail:
Line 686... Line 686...
686
        DEBUGF  1,"Send failed\n"
686
        DEBUGF  2,"Send failed\n"
687
        ret     8
687
        ret     8
Line 741... Line 741...
741
 
741
 
742
        cmp     byte [esi + 12], 0                      ; Check status field
742
        cmp     byte [esi + 12], 0                      ; Check status field
Line 743... Line 743...
743
        je      .retaddr
743
        je      .retaddr
744
 
744
 
745
        movzx   ecx, word [esi + 8]                     ; Get the packet length
745
        movzx   ecx, word [esi + 8]                     ; Get the packet length
746
        DEBUGF  2,"got %u bytes\n", ecx
746
        DEBUGF  1,"got %u bytes\n", ecx
Line 747... Line 747...
747
        push    ecx
747
        push    ecx
748
        push    dword [esi + 16]                        ; Get packet pointer
748
        push    dword [esi + 16]                        ; Get packet pointer
Line 773... Line 773...
773
; Link Changed?
773
; Link Changed?
Line 774... Line 774...
774
 
774
 
775
        test    eax, ICR_LSC
775
        test    eax, ICR_LSC
Line 776... Line 776...
776
        jz      .no_link
776
        jz      .no_link
Line 777... Line 777...
777
 
777
 
Line 778... Line 778...
778
        DEBUGF  2,"Link Changed\n"
778
        DEBUGF  1,"Link Changed\n"
779
 
779
 
Line 780... Line 780...
780
  .no_link:
780
  .no_link:
781
 
781
 
Line 782... Line 782...
782
;---------------
782
;---------------
Line 783... Line 783...
783
; Transmit done?
783
; Transmit done?
784
 
784
 
785
        test    eax, ICR_TXDW
785
        test    eax, ICR_TXDW