65,6 → 65,10 |
|
DEVICE_MAP_IMPLEMENT( device_map, device_t ) |
|
/** @name Message processing functions |
*/ |
/*@{*/ |
|
/** Registers the device notification receiver, the network interface layer module. |
* @param device_id The device identifier. Input parameter. |
* @param phone The network interface layer module phone. Input parameter. |
74,6 → 78,8 |
*/ |
int register_message( device_id_t device_id, int phone ); |
|
/*@}*/ |
|
int netif_probe_req( int netif_phone, device_id_t device_id, int irq, int io ){ |
int result; |
|
140,6 → 146,15 |
return result; |
} |
|
int netif_stats_req( int netif_phone, device_id_t device_id, device_stats_ref stats ){ |
int res; |
|
fibril_rwlock_read_lock( & netif_globals.lock ); |
res = netif_get_device_stats( device_id, stats ); |
fibril_rwlock_read_unlock( & netif_globals.lock ); |
return res; |
} |
|
int netif_get_addr( int netif_phone, device_id_t device_id, measured_string_ref * address, char ** data ){ |
ERROR_DECLARE; |
|
197,11 → 212,6 |
switch( IPC_GET_METHOD( * call )){ |
case IPC_M_PHONE_HUNGUP: |
return EOK; |
case NET_NETIF_PROBE_AUTO: |
fibril_rwlock_write_lock( & netif_globals.lock ); |
ERROR_CODE = netif_probe_auto_message(); |
fibril_rwlock_write_unlock( & netif_globals.lock ); |
return ERROR_CODE; |
case NET_NETIF_PROBE: |
return netif_probe_req( 0, IPC_GET_DEVICE( call ), NETIF_GET_IRQ( call ), NETIF_GET_IO( call )); |
case IPC_M_CONNECT_TO_ME: |