Subversion Repositories Kolibri OS

Rev

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

Rev 2465 Rev 2987
Line 26... Line 26...
26
;;                                                                  ;;
26
;;                                                                  ;;
27
;;  See file COPYING for details                                    ;;
27
;;  See file COPYING for details                                    ;;
28
;;                                                                  ;;
28
;;                                                                  ;;
29
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
29
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 30... Line 30...
30
 
30
 
Line 31... Line 31...
31
$Revision: 2465 $
31
$Revision: 2987 $
32
 
32
 
33
 
33
 
Line 240... Line 240...
240
; return:
240
; return:
241
; eax - data
241
; eax - data
242
pcnet32_dwio_read_csr:
242
pcnet32_dwio_read_csr:
243
        push    edx
243
        push    edx
244
        lea     edx, [ebp+PCNET32_DWIO_RAP]
244
        lea     edx, [ebp+PCNET32_DWIO_RAP]
245
        mov     ebx, eax
245
        mov     eax, ebx
246
        out     dx, eax
246
        out     dx, eax
247
        lea     edx, [ebp+PCNET32_DWIO_RDP]
247
        lea     edx, [ebp+PCNET32_DWIO_RDP]
248
        in      eax, dx
248
        in      eax, dx
249
        and     eax, 0xffff
249
        and     eax, 0xffff
250
        pop     edx
250
        pop     edx
Line 265... Line 265...
265
; return:
265
; return:
266
; eax - data
266
; eax - data
267
pcnet32_dwio_read_bcr:
267
pcnet32_dwio_read_bcr:
268
        push    edx
268
        push    edx
269
        lea     edx, [ebp+PCNET32_DWIO_RAP]
269
        lea     edx, [ebp+PCNET32_DWIO_RAP]
270
        mov     ebx, eax
270
        mov     eax, ebx
271
        out     dx, eax
271
        out     dx, eax
272
        lea     edx, [ebp+PCNET32_DWIO_BDP]
272
        lea     edx, [ebp+PCNET32_DWIO_BDP]
273
        in      eax, dx
273
        in      eax, dx
274
        and     eax, 0xffff
274
        and     eax, 0xffff
275
        pop     edx
275
        pop     edx
Line 707... Line 707...
707
;    DEBUGF 1," K : Switching to 32\n"
707
;    DEBUGF 1," K : Switching to 32\n"
708
        mov     ebx, 20
708
        mov     ebx, 20
709
        mov     eax, 2
709
        mov     eax, 2
710
        call    dword [pcnet32_access.write_bcr]
710
        call    dword [pcnet32_access.write_bcr]
711
        mov     ebx, 1
711
        mov     ebx, 1
712
        mov     eax, (pcnet32_private and 0xffff)
712
        mov     eax, ((pcnet32_private - OS_BASE) and 0xffff)
713
        call    dword [pcnet32_access.write_csr]
713
        call    dword [pcnet32_access.write_csr]
714
        mov     ebx, 2
714
        mov     ebx, 2
715
        mov     eax, (pcnet32_private shr 16) and 0xffff
715
        mov     eax, ((pcnet32_private - OS_BASE) shr 16) and 0xffff
716
        call    dword [pcnet32_access.write_csr]
716
        call    dword [pcnet32_access.write_csr]
717
        mov     ebx, 0
717
        mov     ebx, 0
718
        mov     eax, 1
718
        mov     eax, 1
719
        call    dword [pcnet32_access.write_csr]
719
        call    dword [pcnet32_access.write_csr]
720
        mov     esi, 1
720
        mov     esi, 1