Changeset 849ed54 in mainline for uspace/srv/net/nil/eth/eth_module.c
- Timestamp:
- 2010-03-30T18:39:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7553689
- Parents:
- 7d6fe4db
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth_module.c
r7d6fe4db r849ed54 42 42 #include <ipc/services.h> 43 43 44 #include "../../err.h" 45 #include "../../modules.h" 46 47 #include "../../include/net_interface.h" 48 49 #include "../../structures/packet/packet.h" 50 51 #include "../nil_module.h" 44 #include <net_err.h> 45 #include <net_modules.h> 46 #include <net_interface.h> 47 #include <packet/packet.h> 48 #include <nil_standalone.h> 52 49 53 50 #include "eth.h" 54 55 /** The module name.56 */57 #define NAME "Ethernet protocol"58 59 /** Prints the module name.60 */61 void module_print_name(void);62 51 63 52 /** Starts the Ethernet module. … … 69 58 * @returns Other error codes as defined for the REGISTER_ME() macro function. 70 59 */ 71 int module_start(async_client_conn_t client_connection); 72 73 /** Passes the parameters to the module specific nil_message() function. 74 * @param[in] callid The message identifier. 75 * @param[in] call The message parameters. 76 * @param[out] answer The message answer parameters. 77 * @param[out] answer_count The last parameter for the actual answer in the answer 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 */ 82 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 83 84 void module_print_name(void){ 85 printf("%s", NAME); 86 } 87 88 int module_start(async_client_conn_t client_connection){ 60 int nil_module_start(async_client_conn_t client_connection){ 89 61 ERROR_DECLARE; 90 62 … … 107 79 } 108 80 109 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 81 /** Passes the parameters to the module specific nil_message() function. 82 * @param[in] callid The message identifier. 83 * @param[in] call The message parameters. 84 * @param[out] answer The message answer parameters. 85 * @param[out] answer_count The last parameter for the actual answer in the answer parameter. 86 * @returns EOK on success. 87 * @returns ENOTSUP if the message is not known. 88 * @returns Other error codes as defined for each specific module message function. 89 */ 90 int nil_module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 110 91 return nil_message(callid, call, answer, answer_count); 111 92 }
Note:
See TracChangeset
for help on using the changeset viewer.