Subversion Repositories Kolibri OS

Rev

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

Rev 1492 Rev 1514
Line 543... Line 543...
543
	mov	[VORTEX_LIST+4*eax], ebx				; (IRQ handler uses this list to find device)
543
	mov	[VORTEX_LIST+4*eax], ebx				; (IRQ handler uses this list to find device)
544
	inc	[VORTEX_DEVICES]					       ;
544
	inc	[VORTEX_DEVICES]					       ;
Line 545... Line 545...
545
 
545
 
Line -... Line 546...
-
 
546
  .register:
546
  .register:
547
 
Line 547... Line 548...
547
 
548
	mov	[device.type], NET_TYPE_ETH
548
	call	EthRegDev
549
	call	NetRegDev
Line 549... Line 550...
549
 
550
 
Line 564... Line 565...
564
 
565
 
Line 565... Line 566...
565
; If the device was already loaded, find the device number and return it in eax
566
; If the device was already loaded, find the device number and return it in eax
566
 
567
 
567
  .find_devicenum:
568
  .find_devicenum:
568
	DEBUGF	1,"Trying to find device number of already registered device\n"
569
	DEBUGF	1,"Trying to find device number of already registered device\n"
569
	call	EthStruc2Dev						; This kernel procedure converts a pointer to device struct in ebx
570
	call	NetPtrToNum						; This kernel procedure converts a pointer to device struct in ebx
570
									; into a device number in edi
571
									; into a device number in edi
571
	mov	eax, edi						; Application wants it in eax instead
572
	mov	eax, edi						; Application wants it in eax instead