Subversion Repositories Kolibri OS

Rev

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

Rev 5522 Rev 5617
Line 677... Line 677...
677
        call    [ebx + device.read_bcr]
677
        call    [ebx + device.read_bcr]
678
        or      eax, 0x800
678
        or      eax, 0x800
679
        call    [ebx + device.write_bcr]
679
        call    [ebx + device.write_bcr]
Line 680... Line 680...
680
 
680
 
681
        mov     ecx, CSR_DMACTL
681
        mov     ecx, CSR_DMACTL
682
        call    [ebx + device.read_csr]
-
 
683
;        and     eax, 0xc00
-
 
684
;        or      eax, 0xc00
682
;        call    [ebx + device.read_csr]
685
        mov     eax, 0xc00
683
        mov     eax, 0xc00
Line 686... Line 684...
686
        call    [ebx + device.write_csr]
684
        call    [ebx + device.write_csr]
687
 
685
 
Line 1088... Line 1086...
1088
        push    ecx
1086
        push    ecx
1089
        xor     ecx, ecx                        ; CSR0
1087
        xor     ecx, ecx                        ; CSR0
1090
        call    [ebx + device.read_csr]         ; get IRQ reason
1088
        call    [ebx + device.read_csr]         ; get IRQ reason
1091
        call    [ebx + device.write_csr]        ; write it back to ACK
1089
        call    [ebx + device.write_csr]        ; write it back to ACK
1092
        pop     ecx
1090
        pop     ecx
1093
;;;        and     ax, CSR_RINT or CSR_TINT
1091
        test    ax, CSR_RINT or CSR_TINT
1094
        test    ax, ax
-
 
1095
        jnz     .got_it
1092
        jnz     .got_it
1096
  .continue:
1093
  .continue:
1097
        add     esi, 4
1094
        add     esi, 4
1098
        dec     ecx
1095
        dec     ecx
1099
        jnz     .nextdevice
1096
        jnz     .nextdevice