Subversion Repositories HelenOS

Rev

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

Rev 4728 Rev 4731
Line 75... Line 75...
75
 */
75
 */
76
#define ETH_SUFFIX      sizeof( eth_fcs_t )
76
#define ETH_SUFFIX      sizeof( eth_fcs_t )
77
 
77
 
78
/** Maximum packet content length.
78
/** Maximum packet content length.
79
 */
79
 */
80
#define ETH_MAX_CONTENT 1500
80
#define ETH_MAX_CONTENT 1500u
81
 
81
 
82
/** Minimum packet content length.
82
/** Minimum packet content length.
83
 */
83
 */
84
#define ETH_MIN_CONTENT 46u
84
#define ETH_MIN_CONTENT 46u
85
 
85
 
Line 271... Line 271...
271
 
271
 
272
int nil_device_state_msg( int nil_phone, device_id_t device_id, int state ){
272
int nil_device_state_msg( int nil_phone, device_id_t device_id, int state ){
273
    int             index;
273
    int             index;
274
    eth_proto_ref   proto;
274
    eth_proto_ref   proto;
275
 
275
 
276
    //TODO clear device if off?
-
 
277
    fibril_rwlock_read_lock( & eth_globals.protos_lock );
276
    fibril_rwlock_read_lock( & eth_globals.protos_lock );
278
    for( index = eth_protos_count( & eth_globals.protos ) - 1; index >= 0; -- index ){
277
    for( index = eth_protos_count( & eth_globals.protos ) - 1; index >= 0; -- index ){
279
        proto = eth_protos_get_index( & eth_globals.protos, index );
278
        proto = eth_protos_get_index( & eth_globals.protos, index );
280
        if( proto && proto->phone ) il_device_state_msg( proto->phone, device_id, state, proto->service );
279
        if( proto && proto->phone ) il_device_state_msg( proto->phone, device_id, state, proto->service );
281
    }
280
    }