31,6 → 31,8 |
*/ |
|
/** @file |
* Ethernet moduel stub. |
* @see module.c |
*/ |
|
#include <async.h> |
50,12 → 52,37 |
|
#include "eth.h" |
|
/** The module name. |
*/ |
#define NAME "Ethernet protocol" |
|
/** Prints the module name. |
*/ |
void module_print_name( void ); |
|
/** Starts the Ethernet module. |
* 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. |
* @param client_connection The client connection processing function. The module skeleton propagates its own one. Input parameter. |
* @returns EOK on success. |
* @returns Other error codes as defined for the pm_init() function. |
* @returns Other error codes as defined for the nil_initialize() function. |
* @returns Other error codes as defined for the REGISTER_ME() macro function. |
*/ |
int module_start( async_client_conn_t client_connection ); |
|
/** Passes the parameters to the module specific nil_message() function. |
* @param callid The message identifier. Input parameter. |
* @param call The message parameters. Input parameter. |
* @param answer The message answer parameters. Output parameter. |
* @param answer_count The last parameter for the actual answer in the answer parameter. Output parameter. |
* @returns EOK on success. |
* @returns ENOTSUP if the message is not known. |
* @returns Other error codes as defined for each specific module message function. |
*/ |
int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count ); |
|
/** Ethernet module global data. |
*/ |
extern eth_globals_t eth_globals; |
|
void module_print_name( void ){ |