/kernel/branches/net/network/ethernet.inc |
---|
28,13 → 28,6 |
struct ETH_DEVICE NET_DEVICE |
set_mode dd ? |
get_mode dd ? |
set_MAC dd ? |
get_MAC dd ? |
mode dd ? |
mac dp ? |
ends |
199,7 → 192,7 |
dd .bytes_tx ; 2 |
dd .bytes_rx ; 3 |
dd .read_mac ; 4 |
dd .write_mac ; 5 |
dd .state ; 5 |
.number = ($ - .table) / 4 - 1 |
.error: |
234,9 → 227,7 |
mov [esp+20+4], ebx ; TODO: fix this ugly code |
ret |
.write_mac: |
push ecx |
push dx |
call [eax + ETH_DEVICE.set_MAC] |
.state: |
mov eax, [eax + NET_DEVICE.state] |
ret |
/kernel/branches/net/network/stack.inc |
---|
148,7 → 148,8 |
packets_tx dd ? ; |
packets_rx dd ? ; |
; hwacc dd ? ; bitmask stating available hardware accelerations (offload engines) |
state dd ? ; link state (0 = no link) |
hwacc dd ? ; bitmask stating enabled HW accelerations (offload engines) |
ends |
290,9 → 291,13 |
align 4 |
NET_link_changed: |
DEBUGF 1,"NET_link_changed: %x\n", ebx |
align 4 |
NET_send_event: |
DEBUGF 1,"NET_send_event\n" |
; Send event to all applications |
push edi ecx |
mov edi, SLOT_BASE |