Subversion Repositories Kolibri OS

Rev

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

Rev 1558 Rev 1559
Line 1139... Line 1139...
1139
	test	ax, ISB_RxOK
1139
	test	ax, ISB_RxOK
1140
	jz	.no_rx
1140
	jz	.no_rx
Line 1141... Line 1141...
1141
 
1141
 
Line -... Line 1142...
-
 
1142
	push	ax
1142
	push	ax
1143
 
1143
 
1144
  .check_more:
1144
	mov	eax, rx_desc.size
1145
	mov	eax, rx_desc.size
Line 1145... Line 1146...
1145
	mul	[tpc.cur_rx]
1146
	mul	[tpc.cur_rx]
Line 1154... Line 1155...
1154
	DEBUGF	1,"tpc.cur_rx = %u\n", [tpc.cur_rx]
1155
	DEBUGF	1,"tpc.cur_rx = %u\n", [tpc.cur_rx]
Line 1155... Line 1156...
1155
 
1156
 
1156
	test	eax, SD_RxRES
1157
	test	eax, SD_RxRES
Line 1157... Line 1158...
1157
	jnz	.rx_return	;;;;; RX error!
1158
	jnz	.rx_return	;;;;; RX error!
1158
 
1159
 
1159
	push	.rx_return
1160
	push	.check_more
1160
	and	eax, 0x00001FFF
1161
	and	eax, 0x00001FFF
1161
	add	eax, -4 			; we dont need CRC
1162
	add	eax, -4 			; we dont need CRC
Line 1162... Line 1163...
1162
	push	eax
1163
	push	eax
1163
	DEBUGF	1,"data length = %u\n", ax
1164
	DEBUGF	1,"data length = %u\n", ax
-
 
1165
 
1164
 
1166
;-------------
1165
;-------------
1167
; Update stats
1166
; Update stats
1168
 
Line 1167... Line 1169...
1167
	add	dword [device.bytes_rx], eax
1169
	add	dword [device.bytes_rx], eax
Line 1207... Line 1209...
1207
	push	ax
1209
	push	ax
Line 1208... Line 1210...
1208
 
1210
 
Line 1209... Line 1211...
1209
	DEBUGF	1,"TX ok!\n"
1211
	DEBUGF	1,"TX ok!\n"
1210
 
1212
 
1211
	mov	ecx, NUM_TX_DESC
1213
	mov	ecx, NUM_TX_DESC
1212
	lea	esi, [device.tx_ring]
1214
	lea	esi, [tx_ring]
1213
  .txloop:
1215
  .txloop:
Line 1214... Line 1216...
1214
	cmp	[esi+tx_desc.buf_soft_addr], 0
1216
	cmp	[esi+tx_desc.buf_soft_addr], 0