Subversion Repositories Kolibri OS

Rev

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

Rev 3149 Rev 3155
Line 196... Line 196...
196
                       ;---------------
196
                       ;---------------
197
        cmp     eax, 0 ;SRV_GETVERSION
197
        cmp     eax, 0 ;SRV_GETVERSION
198
        jne     @F     ;---------------
198
        jne     @F     ;---------------
Line 199... Line 199...
199
 
199
 
200
        cmp     [IOCTL.out_size], 4
200
        cmp     [IOCTL.out_size], 4
201
        jl      .fail
201
        jb      .fail
202
        mov     eax, [IOCTL.output]
202
        mov     eax, [IOCTL.output]
Line 203... Line 203...
203
        mov     [eax], dword API_VERSION
203
        mov     [eax], dword API_VERSION
204
 
204
 
Line 213... Line 213...
213
        DEBUGF  2,"Checking if device is already listed..\n"
213
        DEBUGF  2,"Checking if device is already listed..\n"
Line 214... Line 214...
214
 
214
 
Line 215... Line 215...
215
        mov     eax, [IOCTL.input]
215
        mov     eax, [IOCTL.input]
216
 
216
 
217
        cmp     [IOCTL.inp_size], 3
217
        cmp     [IOCTL.inp_size], 3
218
        jl      .fail
218
        jb      .fail
Line 219... Line 219...
219
        cmp     byte [eax], 1
219
        cmp     byte [eax], 1
220
        je      .pci
220
        je      .pci
221
 
221
 
222
        cmp     [IOCTL.inp_size], 4
222
        cmp     [IOCTL.inp_size], 4
Line 223... Line 223...
223
        jl      .fail
223
        jb      .fail
Line 672... Line 672...
672
        DEBUGF  2,"Transmitting packet, buffer:%x, size:%u\n",esi, ecx
672
        DEBUGF  2,"Transmitting packet, buffer:%x, size:%u\n",esi, ecx
673
        DEBUGF  2,"To: %x-%x-%x-%x-%x-%x From: %x-%x-%x-%x-%x-%x Type:%x%x\n",\
673
        DEBUGF  2,"To: %x-%x-%x-%x-%x-%x From: %x-%x-%x-%x-%x-%x Type:%x%x\n",\
674
        [esi+0]:2,[esi+1]:2,[esi+2]:2,[esi+3]:2,[esi+4]:2,[esi+5]:2,[esi+6]:2,[esi+7]:2,[esi+8]:2,[esi+9]:2,[esi+10]:2,[esi+11]:2,[esi+13]:2,[esi+12]:2
674
        [esi+0]:2,[esi+1]:2,[esi+2]:2,[esi+3]:2,[esi+4]:2,[esi+5]:2,[esi+6]:2,[esi+7]:2,[esi+8]:2,[esi+9]:2,[esi+10]:2,[esi+11]:2,[esi+13]:2,[esi+12]:2
Line 675... Line 675...
675
 
675
 
676
        cmp     ecx, ETH_FRAME_LEN
676
        cmp     ecx, ETH_FRAME_LEN
677
        jg      .err ; packet is too long
677
        ja      .err ; packet is too long
678
        cmp     ecx, ETH_ZLEN
678
        cmp     ecx, ETH_ZLEN
Line 679... Line 679...
679
        jl      .err ; packet is too short
679
        jb      .err ; packet is too short
680
 
680
 
681
        movzx   edi, [device.tx_start]
681
        movzx   edi, [device.tx_start]
682
        shl     edi, 8
682
        shl     edi, 8
Line 1169... Line 1169...
1169
 
1169
 
1170
devices         dd 0
1170
devices         dd 0
1171
version         dd (DRIVER_VERSION shl 16) or (API_VERSION and 0xFFFF)
1171
version         dd (DRIVER_VERSION shl 16) or (API_VERSION and 0xFFFF)
Line 1172... Line 1172...
1172
my_service      db 'RTL8029/ne2000',0  ;max 16 chars include zero
1172
my_service      db 'RTL8029/ne2000',0  ;max 16 chars include zero
1173
 
1173
 
1174
device_1        db 'Realtek 8029',0
1174
;device_1        db 'Realtek 8029',0
1175
device_2        db 'Realtek 8019',0
1175
;device_2        db 'Realtek 8019',0
1176
device_3        db 'Realtek 8019AS',0
1176
;device_3        db 'Realtek 8019AS',0
Line 1177... Line 1177...
1177
device_4        db 'ne2000',0
1177
;device_4        db 'ne2000',0
Line 1178... Line 1178...
1178
device_5        db 'DP8390',0
1178
;device_5        db 'DP8390',0