Subversion Repositories Kolibri OS

Rev

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

Rev 1478 Rev 1486
Line 13... Line 13...
13
;;          GNU GENERAL PUBLIC LICENSE                             ;;
13
;;          GNU GENERAL PUBLIC LICENSE                             ;;
14
;;             Version 2, June 1991                                ;;
14
;;             Version 2, June 1991                                ;;
15
;;                                                                 ;;
15
;;                                                                 ;;
16
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line -... Line 17...
-
 
17
 
17
 
18
 
Line 18... Line 19...
18
format MS COFF
19
format MS COFF
Line 19... Line 20...
19
 
20
 
Line 339... Line 340...
339
	jz	.fail
340
	jz	.fail
340
	mov	ebx, eax				; ebx is always used as a pointer to the structure (in driver, but also in kernel code)
341
	mov	ebx, eax				; ebx is always used as a pointer to the structure (in driver, but also in kernel code)
Line 341... Line 342...
341
 
342
 
Line 342... Line 343...
342
; Fill in the direct call addresses into the struct
343
; Fill in the direct call addresses into the struct
343
 
344
 
344
	mov	dword [device.reset], reset
345
	mov	[device.reset], reset
345
	mov	dword [device.transmit], transmit
346
	mov	[device.transmit], transmit
346
	mov	dword [device.get_MAC], read_mac
347
	mov	[device.get_MAC], read_mac
347
	mov	dword [device.set_MAC], write_mac
348
	mov	[device.set_MAC], write_mac
Line 348... Line 349...
348
	mov	dword [device.unload], unload
349
	mov	[device.unload], unload
Line 349... Line 350...
349
	mov	dword [device.name], my_service
350
	mov	[device.name], my_service
350
 
351
 
Line 785... Line 786...
785
 
786
 
Line 786... Line 787...
786
; find pointer of device wich made IRQ occur
787
; find pointer of device wich made IRQ occur
787
 
788
 
-
 
789
	mov	esi, RTL8139_LIST
-
 
790
	mov	ecx, [RTL8139_DEV]
788
	mov	esi, RTL8139_LIST
791
	test	ecx, ecx
789
	mov	ecx, [RTL8139_DEV]
792
	jz	.fail
Line 790... Line 793...
790
.nextdevice:
793
.nextdevice:
791
	mov	ebx, dword [esi]
794
	mov	ebx, dword [esi]
Line 798... Line 801...
798
	add	esi, 4
801
	add	esi, 4
Line 799... Line 802...
799
 
802
 
800
	test	ax , ax
803
	test	ax , ax
Line -... Line 804...
-
 
804
	jnz	.got_it
801
	jnz	.got_it
805
 
Line 802... Line 806...
802
 
806
	dec	ecx
Line 803... Line 807...
803
	loop	.nextdevice
807
	jnz	.nextdevice