Rev 4307 | Rev 4582 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4307 | Rev 4350 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | /** @addtogroup netif |
29 | /** @addtogroup netif |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
- | 34 | * Network interface module skeleton implementation. |
|
- | 35 | * @see netif.h |
|
34 | */ |
36 | */ |
35 | 37 | ||
36 | #include <async.h> |
38 | #include <async.h> |
37 | #include <mem.h> |
39 | #include <mem.h> |
38 | #include <rwlock.h> |
40 | #include <rwlock.h> |
Line 55... | Line 57... | ||
55 | 57 | ||
56 | #include "netif.h" |
58 | #include "netif.h" |
57 | #include "netif_messages.h" |
59 | #include "netif_messages.h" |
58 | #include "netif_module.h" |
60 | #include "netif_module.h" |
59 | 61 | ||
- | 62 | /** Network interface module global data. |
|
- | 63 | */ |
|
60 | extern netif_globals_t netif_globals; |
64 | extern netif_globals_t netif_globals; |
61 | 65 | ||
62 | DEVICE_MAP_IMPLEMENT( device_map, device_t ) |
66 | DEVICE_MAP_IMPLEMENT( device_map, device_t ) |
63 | 67 | ||
- | 68 | /** Registers the device notification receiver, the network interface layer module. |
|
- | 69 | * @param device_id The device identifier. Input parameter. |
|
- | 70 | * @param phone The network interface layer module phone. Input parameter. |
|
- | 71 | * @returns EOK on success. |
|
- | 72 | * @returns ENOENT if there is no such device. |
|
- | 73 | * @returns ELIMIT if there is another module registered. |
|
- | 74 | */ |
|
64 | int register_message( device_id_t device_id, int phone ); |
75 | int register_message( device_id_t device_id, int phone ); |
65 | 76 | ||
66 | int netif_probe_req( int netif_phone, device_id_t device_id, int irq, int io ){ |
77 | int netif_probe_req( int netif_phone, device_id_t device_id, int irq, int io ){ |
67 | int result; |
78 | int result; |
68 | 79 |