Subversion Repositories HelenOS

Rev

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

Rev 4307 Rev 4350
Line 29... Line 29...
29
/** @addtogroup net_il
29
/** @addtogroup net_il
30
 *  @{
30
 *  @{
31
 */
31
 */
32
 
32
 
33
/** @file
33
/** @file
-
 
34
 *  Internetwork layer interface for the underlying network interface layer.
-
 
35
 *  This interface is always called by the standalone remote modules.
34
 */
36
 */
35
 
37
 
36
#ifndef __NET_IL_INTERFACE_H__
38
#ifndef __NET_IL_INTERFACE_H__
37
#define __NET_IL_INTERFACE_H__
39
#define __NET_IL_INTERFACE_H__
38
 
40
 
Line 47... Line 49...
47
#include "../structures/packet/packet.h"
49
#include "../structures/packet/packet.h"
48
#include "../structures/packet/packet_client.h"
50
#include "../structures/packet/packet_client.h"
49
 
51
 
50
#include "../il/il_messages.h"
52
#include "../il/il_messages.h"
51
 
53
 
-
 
54
/** Notifies the internetwork layer modules about the device state change.
-
 
55
 *  @param il_phone The internetwork layer module phone used for (semi)remote calls. Input parameter.
-
 
56
 *  @param device_id The device identifier. Input parameter.
-
 
57
 *  @param state The new device state. Input parameter.
-
 
58
 *  @returns EOK on success.
-
 
59
 */
52
static inline int   il_device_state_msg( int il_phone, device_id_t device_id, device_state_t state ){
60
static inline int   il_device_state_msg( int il_phone, device_id_t device_id, device_state_t state ){
53
    return generic_device_state_msg( il_phone, NET_IL_DEVICE_STATE, device_id, state );
61
    return generic_device_state_msg( il_phone, NET_IL_DEVICE_STATE, device_id, state );
54
}
62
}
55
 
63
 
-
 
64
/** Notifies the internetwork layer modules about the received packet/s.
-
 
65
 *  @param il_phone The internetwork layer module phone used for (semi)remote calls. Input parameter.
-
 
66
 *  @param device_id The device identifier. Input parameter.
-
 
67
 *  @param packet The received packet or the received packet queue. Input parameter.
-
 
68
 *  @param target The target internetwork module service to be delivered to. Input parameter.
-
 
69
 *  @returns EOK on success.
-
 
70
 */
56
inline static int   il_received_msg( int il_phone, device_id_t device_id, packet_t packet, services_t target ){
71
inline static int   il_received_msg( int il_phone, device_id_t device_id, packet_t packet, services_t target ){
57
    return generic_received_msg( il_phone, NET_IL_RECEIVED, device_id, packet_get_id( packet ), target );
72
    return generic_received_msg( il_phone, NET_IL_RECEIVED, device_id, packet_get_id( packet ), target );
58
}
73
}
59
 
74
 
60
#endif
75
#endif