Subversion Repositories Kolibri OS

Rev

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

Rev 1193 Rev 1196
Line 108... Line 108...
108
stack_handler:
108
stack_handler:
Line 109... Line 109...
109
 
109
 
110
    cmp     [ETH_RUNNING], 0
110
    cmp     [ETH_RUNNING], 0
Line 111... Line 111...
111
    je	    .exit
111
    je	    .exit
112
 
112
 
Line 113... Line 113...
113
    call    ETH_Handler 		; handle all queued ethernet packets
113
    call    ETH_handler 		; handle all queued ethernet packets
114
    call    ETH_send_queued
114
    call    ETH_send_queued
115
 
115
 
Line 186... Line 186...
186
;----------------------------------------------------------------
186
;----------------------------------------------------------------
Line 187... Line 187...
187
 
187
 
188
align 4
188
align 4
Line -... Line 189...
-
 
189
sys_network:
-
 
190
 
-
 
191
	cmp	ebx, -1
-
 
192
	jne	@f
-
 
193
 
-
 
194
	mov	eax, [ETH_RUNNING]
-
 
195
	jmp	.return
189
sys_network:
196
 
190
 
197
   @@:
Line 191... Line 198...
191
	cmp	bh, MAX_NET_DEVICES		 ; Check if device number exists
198
	cmp	bh, MAX_NET_DEVICES		 ; Check if device number exists
192
	jge	.doesnt_exist
199
	jge	.doesnt_exist
Line 198... Line 205...
198
	cmp	dword [esi + ETH_DRV_LIST], 0 ; check if driver is running
205
	cmp	dword [esi + ETH_DRV_LIST], 0 ; check if driver is running
199
	je	.doesnt_exist
206
	je	.doesnt_exist
Line 200... Line 207...
200
 
207
 
201
	test	bl, bl			; 0 = Get device type (ethernet/token ring/...)
208
	test	bl, bl			; 0 = Get device type (ethernet/token ring/...)
202
	jnz	@f
209
	jnz	@f
203
 
210
					 ; todo
204
	xor	eax, eax
211
	xor	eax, eax
Line 205... Line 212...
205
	jmp	.return
212
	jmp	.return