Subversion Repositories Kolibri OS

Rev

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

Rev 2302 Rev 2305
Line 19... Line 19...
19
;;          GNU GENERAL PUBLIC LICENSE                             ;;
19
;;          GNU GENERAL PUBLIC LICENSE                             ;;
20
;;             Version 2, June 1991                                ;;
20
;;             Version 2, June 1991                                ;;
21
;;                                                                 ;;
21
;;                                                                 ;;
22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 23... Line 23...
23
 
23
 
Line 24... Line 24...
24
$Revision: 2302 $
24
$Revision: 2305 $
25
 
25
 
Line 26... Line 26...
26
__DEBUG_LEVEL_OLD__	equ __DEBUG_LEVEL__	; use seperate debug level for network part of kernel
26
__DEBUG_LEVEL_OLD__	equ __DEBUG_LEVEL__	; use seperate debug level for network part of kernel
Line 103... Line 103...
103
ETIMEDOUT		equ 60
103
ETIMEDOUT		equ 60
104
ECONNABORTED		equ 53
104
ECONNABORTED		equ 53
Line 105... Line 105...
105
 
105
 
Line 106... Line 106...
106
 
106
 
-
 
107
 
-
 
108
struct	NET_DEVICE
Line 107... Line 109...
107
 
109
 
108
virtual at 0
110
	type		dd ?	; Type field
109
 
111
	mtu		dd ?	; Maximal Transmission Unit
Line 110... Line 112...
110
	NET_DEVICE:
112
	name		dd ?	; Ptr to 0 terminated string
-
 
113
 
111
 
114
	unload		dd ?	; Ptrs to driver functions
112
	.type		dd ?	; Type field
115
	reset		dd ?	;
Line 113... Line 116...
113
	.mtu		dd ?	; Maximal Transmission Unit
116
	transmit	dd ?	;
114
	.name		dd ?	; Ptr to 0 terminated string
-
 
115
 
-
 
116
	.unload 	dd ?	; Ptrs to driver functions
-
 
Line 117... Line -...
117
	.reset		dd ?	;
-
 
118
	.transmit	dd ?	;
-
 
119
 
117
 
120
	.bytes_tx	dq ?	; Statistics, updated by the driver
-
 
121
	.bytes_rx	dq ?	;
-
 
Line 122... Line 118...
122
	.packets_tx	dd ?	;
118
	bytes_tx	dq ?	; Statistics, updated by the driver
123
	.packets_rx	dd ?	;
119
	bytes_rx	dq ?	;
124
 
120
	packets_tx	dd ?	;
Line 682... Line 678...
682
	jae	.doesnt_exist
678
	jae	.doesnt_exist
Line 683... Line 679...
683
 
679
 
684
	mov	esi, ebx
680
	mov	esi, ebx
685
	and	esi, 0x0000ff00
681
	and	esi, 0x0000ff00
686
	shr	esi, 6				; now we have the device num * 4 in esi
682
	shr	esi, 6				; now we have the device num * 4 in esi
687
	cmp	dword [esi + NET_DRV_LIST], 0	; check if driver is running
683
	cmp	[esi + NET_DRV_LIST], 0 	; check if driver is running
Line 688... Line 684...
688
	je	.doesnt_exist
684
	je	.doesnt_exist
Line 689... Line 685...
689
 
685