Rev 4307 | Rev 4697 | 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 eth |
29 | /** @addtogroup eth |
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | 32 | ||
| 33 | /** @file |
33 | /** @file |
| - | 34 | * Ethernet moduel stub. |
|
| - | 35 | * @see module.c |
|
| 34 | */ |
36 | */ |
| 35 | 37 | ||
| 36 | #include <async.h> |
38 | #include <async.h> |
| 37 | #include <stdio.h> |
39 | #include <stdio.h> |
| 38 | 40 | ||
| Line 48... | Line 50... | ||
| 48 | 50 | ||
| 49 | #include "../nil_module.h" |
51 | #include "../nil_module.h" |
| 50 | 52 | ||
| 51 | #include "eth.h" |
53 | #include "eth.h" |
| 52 | 54 | ||
| - | 55 | /** The module name. |
|
| - | 56 | */ |
|
| 53 | #define NAME "Ethernet protocol" |
57 | #define NAME "Ethernet protocol" |
| 54 | 58 | ||
| - | 59 | /** Prints the module name. |
|
| - | 60 | */ |
|
| 55 | void module_print_name( void ); |
61 | void module_print_name( void ); |
| - | 62 | ||
| - | 63 | /** Starts the Ethernet module. |
|
| - | 64 | * Initializes the client connection serving function, initializes the module, registers the module service and starts the async manager, processing IPC messages in an infinite loop. |
|
| - | 65 | * @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter. |
|
| - | 66 | * @returns EOK on success. |
|
| - | 67 | * @returns Other error codes as defined for the pm_init() function. |
|
| - | 68 | * @returns Other error codes as defined for the nil_initialize() function. |
|
| - | 69 | * @returns Other error codes as defined for the REGISTER_ME() macro function. |
|
| - | 70 | */ |
|
| 56 | int module_start( async_client_conn_t client_connection ); |
71 | int module_start( async_client_conn_t client_connection ); |
| - | 72 | ||
| - | 73 | /** Passes the parameters to the module specific nil_message() function. |
|
| - | 74 | * @param callid The message identifier. Input parameter. |
|
| - | 75 | * @param call The message parameters. Input parameter. |
|
| - | 76 | * @param answer The message answer parameters. Output parameter. |
|
| - | 77 | * @param answer_count The last parameter for the actual answer in the answer parameter. Output parameter. |
|
| - | 78 | * @returns EOK on success. |
|
| - | 79 | * @returns ENOTSUP if the message is not known. |
|
| - | 80 | * @returns Other error codes as defined for each specific module message function. |
|
| - | 81 | */ |
|
| 57 | int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
82 | int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
| 58 | 83 | ||
| - | 84 | /** Ethernet module global data. |
|
| - | 85 | */ |
|
| 59 | extern eth_globals_t eth_globals; |
86 | extern eth_globals_t eth_globals; |
| 60 | 87 | ||
| 61 | void module_print_name( void ){ |
88 | void module_print_name( void ){ |
| 62 | printf( "%s", NAME ); |
89 | printf( "%s", NAME ); |
| 63 | } |
90 | } |