1,6 → 1,6 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;; ;; |
;; Copyright (C) KolibriOS team 2004-2010. All rights reserved. ;; |
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
;; Distributed under terms of the GNU General Public License ;; |
;; ;; |
;; Ethernet driver for KolibriOS ;; |
160,14 → 160,8 |
cmp [devices], MAX_DEVICES |
jge .fail |
; 4g. Allocate memory for device descriptor and receive+transmit buffers. |
stdcall KernelAlloc, device.size |
test eax, eax |
jz .fail |
; 4h. Zero the structure. |
mov edi, eax |
mov ecx, (device.size + 3) shr 2 |
xor eax, eax |
rep stosd |
allocate_and_clear ebx, device.size, .fail |
; 4i. Save PCI coordinates |
mov eax, [IOCTL.input] |
mov cl , [eax+1] |