Introduced new application event for network subsystem changes (link changed, ip changed, ...)

Removed get_mac and set_mac procedures from device structure, kernel does not need them.
Added link state detection capabilities for kernel and some drivers.

git-svn-id: svn://kolibrios.org@3346 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr
2013-03-07 09:35:24 +00:00
parent b2da70be62
commit f685c27c07
19 changed files with 379 additions and 353 deletions

View File

@@ -148,7 +148,8 @@ struct NET_DEVICE
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 @@ stack_handler:
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