Rev 4708 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4708 | Rev 4756 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | * This interface is used by other modules. |
55 | * This interface is used by other modules. |
56 | */ |
56 | */ |
57 | /*@{*/ |
57 | /*@{*/ |
58 | 58 | ||
59 | /** Notifies the internetwork layer modules about the device state change. |
59 | /** Notifies the internetwork layer modules about the device state change. |
60 | * @param il_phone The internetwork layer module phone used for (semi)remote calls. Input parameter. |
60 | * @param[in] il_phone The internetwork layer module phone used for (semi)remote calls. |
61 | * @param device_id The device identifier. Input parameter. |
61 | * @param[in] device_id The device identifier. |
62 | * @param state The new device state. Input parameter. |
62 | * @param[in] state The new device state. |
63 | * @param target The target internetwork module service to be delivered to. Input parameter. |
63 | * @param[in] target The target internetwork module service to be delivered to. |
64 | * @returns EOK on success. |
64 | * @returns EOK on success. |
65 | */ |
65 | */ |
66 | static inline int il_device_state_msg( int il_phone, device_id_t device_id, device_state_t state, services_t target ){ |
66 | static inline int il_device_state_msg( int il_phone, device_id_t device_id, device_state_t state, services_t target ){ |
67 | return generic_device_state_msg( il_phone, NET_IL_DEVICE_STATE, device_id, state, target ); |
67 | return generic_device_state_msg( il_phone, NET_IL_DEVICE_STATE, device_id, state, target ); |
68 | } |
68 | } |
69 | 69 | ||
70 | /** Notifies the internetwork layer modules about the received packet/s. |
70 | /** Notifies the internetwork layer modules about the received packet/s. |
71 | * @param il_phone The internetwork layer module phone used for (semi)remote calls. Input parameter. |
71 | * @param[in] il_phone The internetwork layer module phone used for (semi)remote calls. |
72 | * @param device_id The device identifier. Input parameter. |
72 | * @param[in] device_id The device identifier. |
73 | * @param packet The received packet or the received packet queue. Input parameter. |
73 | * @param[in] packet The received packet or the received packet queue. |
74 | * @param target The target internetwork module service to be delivered to. Input parameter. |
74 | * @param[in] target The target internetwork module service to be delivered to. |
75 | * @returns EOK on success. |
75 | * @returns EOK on success. |
76 | */ |
76 | */ |
77 | inline static int il_received_msg( int il_phone, device_id_t device_id, packet_t packet, services_t target ){ |
77 | inline static int il_received_msg( int il_phone, device_id_t device_id, packet_t packet, services_t target ){ |
78 | return generic_received_msg( il_phone, NET_IL_RECEIVED, device_id, packet_get_id( packet ), target, 0 ); |
78 | return generic_received_msg( il_phone, NET_IL_RECEIVED, device_id, packet_get_id( packet ), target, 0 ); |
79 | } |
79 | } |
80 | 80 | ||
81 | /** Notifies the internetwork layer modules about the mtu change. |
81 | /** Notifies the internetwork layer modules about the mtu change. |
82 | * @param il_phone The internetwork layer module phone used for (semi)remote calls. Input parameter. |
82 | * @param[in] il_phone The internetwork layer module phone used for (semi)remote calls. |
83 | * @param device_id The device identifier. Input parameter. |
83 | * @param[in] device_id The device identifier. |
84 | * @param mtu The new mtu value. Input parameter. |
84 | * @param[in] mtu The new mtu value. |
85 | * @param target The target internetwork module service to be delivered to. Input parameter. |
85 | * @param[in] target The target internetwork module service to be delivered to. |
86 | * @returns EOK on success. |
86 | * @returns EOK on success. |
87 | */ |
87 | */ |
88 | inline static int il_mtu_changed_msg( int il_phone, device_id_t device_id, size_t mtu, services_t target ){ |
88 | inline static int il_mtu_changed_msg( int il_phone, device_id_t device_id, size_t mtu, services_t target ){ |
89 | return generic_device_state_msg( il_phone, NET_IL_MTU_CHANGED, device_id, ( int ) mtu, target ); |
89 | return generic_device_state_msg( il_phone, NET_IL_MTU_CHANGED, device_id, ( int ) mtu, target ); |
90 | } |
90 | } |