Subversion Repositories Kolibri OS

Rev

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

Rev 1174 Rev 1185
Line 98... Line 98...
98
;---------------------------------------------------------
98
;---------------------------------------------------------
Line 99... Line 99...
99
 
99
 
100
align 4
100
align 4
Line 101... Line 101...
101
ETH_Add_Device:
101
ETH_Add_Device:
Line 102... Line 102...
102
 
102
 
103
	DEBUGF	1,"ETH_Add_Device: %x\n", ebx
103
	DEBUGF	1,"ETH_Add_Device: %x ", ebx
104
 
104
 
Line 132... Line 132...
132
 
132
 
133
	sub	edi, ETH_DRV_LIST	  ; edi = 4*device num       Calculate device number in eax
133
	sub	edi, ETH_DRV_LIST	  ; edi = 4*device num       Calculate device number in eax
134
	mov	eax, edi		  ; edx = 4*device num
134
	mov	eax, edi		  ; edx = 4*device num
Line 135... Line -...
135
	shr	eax, 2
-
 
136
 
-
 
137
;        shr     eax, 1                    ; edx = 2*device num
-
 
138
;        add     edi, eax                  ; edi = 6*device_num                   Meanwhile, calculate MAC offset in edi
-
 
139
;        shr     eax, 1                    ; edx = device num
-
 
140
;        add     edi, MAC_LIST             ; edi = MAC_LIST+6*device_num
-
 
141
;        push    eax
-
 
142
 
-
 
143
;        push    edi
-
 
144
;        call    [ebx+ETH_DEVICE.get_MAC]  ; Get MAC address from driver
-
 
145
;        pop     edi
-
 
146
;
-
 
147
;        stosd                             ; Write MAC address to the MAC list
-
 
148
;        mov     ax, bx                    ;
-
 
149
;        stosw                             ;
135
	shr	eax, 2
Line 150... Line -...
150
 
-
 
151
	inc	[ETH_RUNNING]		  ; Indicate that one more ethernet device is up and running
136
 
152
 
137
	inc	[ETH_RUNNING]		  ; Indicate that one more ethernet device is up and running
Line 153... Line 138...
153
;        pop     eax                       ; Output device num in eax
138
 
154
	DEBUGF	1,"- succes: %u\n",eax
139
	DEBUGF	1,"- succes: %u\n",eax