Subversion Repositories HelenOS

Rev

Rev 4699 | Rev 4708 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4699 Rev 4704
Line 66... Line 66...
66
 
66
 
67
/** Network interface layer module global data.
67
/** Network interface layer module global data.
68
 */
68
 */
69
nildummy_globals_t  nildummy_globals;
69
nildummy_globals_t  nildummy_globals;
70
 
70
 
-
 
71
/** @name Message processing functions
-
 
72
 */
-
 
73
/*@{*/
-
 
74
 
71
/** Processes IPC messages from the registered device driver modules in an infinite loop.
75
/** Processes IPC messages from the registered device driver modules in an infinite loop.
72
 *  @param iid The message identifier. Input parameter.
76
 *  @param iid The message identifier. Input parameter.
73
 *  @param icall The message parameters. Input/output parameter.
77
 *  @param icall The message parameters. Input/output parameter.
74
 */
78
 */
75
void    nildummy_receiver( ipc_callid_t iid, ipc_call_t * icall );
79
void    nildummy_receiver( ipc_callid_t iid, ipc_call_t * icall );
Line 126... Line 130...
126
 *  @returns EBADMEM if the address parameter is NULL.
130
 *  @returns EBADMEM if the address parameter is NULL.
127
 *  @returns ENOENT if there no such device.
131
 *  @returns ENOENT if there no such device.
128
 */
132
 */
129
int nildummy_addr_message( device_id_t device_id, measured_string_ref * address );
133
int nildummy_addr_message( device_id_t device_id, measured_string_ref * address );
130
 
134
 
-
 
135
/*@}*/
-
 
136
 
131
DEVICE_MAP_IMPLEMENT( nildummy_devices, nildummy_device_t )
137
DEVICE_MAP_IMPLEMENT( nildummy_devices, nildummy_device_t )
132
 
138
 
133
int nil_device_state_msg( int nil_phone, device_id_t device_id, int state ){
139
int nil_device_state_msg( int nil_phone, device_id_t device_id, int state ){
134
    fibril_rwlock_read_lock( & nildummy_globals.protos_lock );
140
    fibril_rwlock_read_lock( & nildummy_globals.protos_lock );
135
    if( nildummy_globals.proto.phone ) il_device_state_msg( nildummy_globals.proto.phone, device_id, state, nildummy_globals.proto.service );
141
    if( nildummy_globals.proto.phone ) il_device_state_msg( nildummy_globals.proto.phone, device_id, state, nildummy_globals.proto.service );