Changeset 71b00dcc in mainline for uspace/srv/net/nil/eth/eth_module.c
- Timestamp:
- 2010-03-07T22:51:38Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60ab6c3
- Parents:
- b5cbff4 (diff), 31c80a5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/nil/eth/eth_module.c
rb5cbff4 r71b00dcc 59 59 /** Prints the module name. 60 60 */ 61 void module_print_name( void);61 void module_print_name(void); 62 62 63 63 /** Starts the Ethernet module. … … 69 69 * @returns Other error codes as defined for the REGISTER_ME() macro function. 70 70 */ 71 int module_start( async_client_conn_t client_connection);71 int module_start(async_client_conn_t client_connection); 72 72 73 73 /** Passes the parameters to the module specific nil_message() function. … … 80 80 * @returns Other error codes as defined for each specific module message function. 81 81 */ 82 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); 83 83 84 void module_print_name( void){85 printf( "%s", NAME);84 void module_print_name(void){ 85 printf("%s", NAME); 86 86 } 87 87 88 int module_start( async_client_conn_t client_connection){88 int module_start(async_client_conn_t client_connection){ 89 89 ERROR_DECLARE; 90 90 91 ipcarg_t 92 int 91 ipcarg_t phonehash; 92 int net_phone; 93 93 94 async_set_client_connection( client_connection);95 net_phone = net_connect_module( SERVICE_NETWORKING);96 ERROR_PROPAGATE( 97 if( ERROR_OCCURRED( nil_initialize( net_phone))98 || ERROR_OCCURRED( REGISTER_ME( SERVICE_ETHERNET, & phonehash))){94 async_set_client_connection(client_connection); 95 net_phone = net_connect_module(SERVICE_NETWORKING); 96 ERROR_PROPAGATE(pm_init()); 97 if(ERROR_OCCURRED(nil_initialize(net_phone)) 98 || ERROR_OCCURRED(REGISTER_ME(SERVICE_ETHERNET, &phonehash))){ 99 99 pm_destroy(); 100 100 return ERROR_CODE; … … 107 107 } 108 108 109 int module_message( ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){110 return nil_message( callid, call, answer, answer_count);109 int module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 110 return nil_message(callid, call, answer, answer_count); 111 111 } 112 112
Note:
See TracChangeset
for help on using the changeset viewer.