Subversion Repositories Kolibri OS

Rev

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

Rev 431 Rev 504
Line 1... Line 1...
1
$Revision: 431 $
1
$Revision: 504 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                                 ;;
3
;;                                                                 ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved.    ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved.    ;;
5
;; Distributed under terms of the GNU General Public License       ;;
5
;; Distributed under terms of the GNU General Public License       ;;
6
;;                                                                 ;;
6
;;                                                                 ;;
Line 352... Line 352...
352
	out	dx, eax
352
	out	dx, eax
353
; disable all interrupts
353
; disable all interrupts
354
	add	edx, RTL8139_REG_IMR - RTL8139_REG_MPC
354
	add	edx, RTL8139_REG_IMR - RTL8139_REG_MPC
355
	out	dx, ax
355
	out	dx, ax
356
; set RxBuffer address, init RX buffer offset, init TX ring
356
; set RxBuffer address, init RX buffer offset, init TX ring
357
	mov	eax, rtl8139_rx_buff
357
	mov	eax, rtl8139_rx_buff					; simba
-
 
358
    sub eax,OS_BASE
358
	add	edx, RTL8139_REG_RBSTART - RTL8139_REG_IMR
359
	add	edx, RTL8139_REG_RBSTART - RTL8139_REG_IMR
359
	out	dx, eax
360
	out	dx, eax
360
; Indicate that we have successfully reset the card
361
; Indicate that we have successfully reset the card
361
	mov	eax, [pci_data]
362
	mov	eax, [pci_data]
362
	mov	[eth_status], eax
363
	mov	[eth_status], eax
Line 509... Line 510...
509
	pop	ecx
510
	pop	ecx
510
	push	ecx
511
	push	ecx
511
	and	ecx, 3
512
	and	ecx, 3
512
	rep	movsb
513
	rep	movsb
513
; set address
514
; set address
-
 
515
	sub eax,OS_BASE
514
	add	edx, RTL8139_REG_TSAD0 - RTL8139_REG_TSD0
516
	add	edx, RTL8139_REG_TSAD0 - RTL8139_REG_TSD0
515
	out	dx, eax
517
	out	dx, eax
516
; set size and early threshold
518
; set size and early threshold
517
	pop	eax ; pick up the size
519
	pop	eax ; pick up the size
518
	add	eax, ETH_HLEN
520
	add	eax, ETH_HLEN