Subversion Repositories Kolibri OS

Rev

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

Rev 302 Rev 323
Line 458... Line 458...
458
	mov	ecx, [curr_tx_desc]
458
	mov	ecx, [curr_tx_desc]
459
	mov	edx, [io_addr]
459
	mov	edx, [io_addr]
460
	lea	edx, [edx+ecx*4+RTL8139_REG_TSD0]
460
	lea	edx, [edx+ecx*4+RTL8139_REG_TSD0]
461
	push	edx ebx
461
	push	edx ebx
462
	in	ax, dx
462
	in	ax, dx
-
 
463
	test    ax, 0x1fff ; or no size given
-
 
464
      jz      .send_packet
463
	and	ax, (1 shl RTL8139_BIT_TOK) or (1 shl RTL8139_BIT_OWN)
465
      and	ax, (1 shl RTL8139_BIT_TOK) or (1 shl RTL8139_BIT_OWN)
464
	cmp	ax, (1 shl RTL8139_BIT_TOK) or (1 shl RTL8139_BIT_OWN)
466
	cmp	ax, (1 shl RTL8139_BIT_TOK) or (1 shl RTL8139_BIT_OWN)
465
	jz	.send_packet
467
	jz	.send_packet
466
	test	ax, 0x1fff ; or no size given
-
 
467
	jz	.send_packet
-
 
468
; wait for timeout
468
; wait for timeout
469
	mov	ebx, RTL8139_TX_TIMEOUT
469
	mov	ebx, RTL8139_TX_TIMEOUT
470
	mov	eax, 0x5 ; delay x/100 secs
470
	mov	eax, 0x5 ; delay x/100 secs
471
	int	0x40
471
	int	0x40
472
	in	ax, dx
472
	in	ax, dx