Rev 4307 | Rev 4695 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4307 | Rev 4350 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | /** @addtogroup net_nil |
29 | /** @addtogroup net_nil |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** |
33 | /** @file |
- | 34 | * Network interface layer module messages. |
|
34 | * @file |
35 | * @see nil_interface.h |
35 | */ |
36 | */ |
36 | 37 | ||
37 | #ifndef __NET_NIL_MESSAGES_H__ |
38 | #ifndef __NET_NIL_MESSAGES_H__ |
38 | #define __NET_NIL_MESSAGES_H__ |
39 | #define __NET_NIL_MESSAGES_H__ |
39 | 40 | ||
40 | #include <ipc/ipc.h> |
41 | #include <ipc/ipc.h> |
41 | 42 | ||
42 | #include "../messages.h" |
43 | #include "../messages.h" |
43 | 44 | ||
- | 45 | /** Network interface layer module messages. |
|
- | 46 | */ |
|
44 | typedef enum { |
47 | typedef enum { |
45 | /* ( device_id, driver_service, mtu ) */ |
48 | /** New device or update MTU message. |
- | 49 | * @see nil_device_req() |
|
- | 50 | */ |
|
46 | NET_NIL_DEVICE = NET_NIL_FIRST, |
51 | NET_NIL_DEVICE = NET_NIL_FIRST, |
47 | /* ( device_id, state ) */ |
52 | /** New device state message. |
- | 53 | * @see nil_device_state_msg() |
|
- | 54 | */ |
|
48 | NET_NIL_DEVICE_STATE, |
55 | NET_NIL_DEVICE_STATE, |
49 | /* ( device_id ), packet_send */ |
56 | /** Received packet queue message. |
- | 57 | * @see nil_received_msg() |
|
- | 58 | */ |
|
50 | NET_NIL_RECEIVED, |
59 | NET_NIL_RECEIVED, |
51 | /* ( device_id ), packet_send */ |
60 | /** Send packet queue message. |
- | 61 | * @see nil_send_msg() |
|
- | 62 | */ |
|
52 | NET_NIL_SEND, |
63 | NET_NIL_SEND, |
- | 64 | /** Packet size message. |
|
53 | /* ( device_id ) -> addr, prefix, content, suffix */ |
65 | * @see nil_packet_size_req() |
- | 66 | */ |
|
54 | NET_NIL_PACKET_SPACE, |
67 | NET_NIL_PACKET_SPACE, |
55 | /* ( device_id ), measured_strings_return( hardware address ) */ |
68 | /** Device local hardware address message. |
- | 69 | * @see nil_get_addr() |
|
- | 70 | */ |
|
56 | NET_NIL_ADDR, |
71 | NET_NIL_ADDR, |
57 | /* ( device_id ), measured_strings_return( broadcast address ) */ |
72 | /** Device broadcast hardware address message. |
- | 73 | * @see nil_get_broadcast_addr() |
|
- | 74 | */ |
|
58 | NET_NIL_BROADCAST_ADDR, |
75 | NET_NIL_BROADCAST_ADDR, |
59 | } nil_messages; |
76 | } nil_messages; |
60 | 77 | ||
61 | /** Returns the protocol service message parameter. |
78 | /** Returns the protocol service message parameter. |
62 | */ |
79 | */ |
63 | #define NIL_GET_PROTO( call ) ( services_t ) IPC_GET_ARG2( * call ) |
80 | #define NIL_GET_PROTO( call ) ( services_t ) IPC_GET_ARG2( * call ) |
64 | 81 | ||
- | 82 | /** Returns the maximum transmission unit message parameter. |
|
- | 83 | */ |
|
65 | #define NIL_GET_MTU( call ) ( size_t ) IPC_GET_ARG2( * call ) |
84 | #define NIL_GET_MTU( call ) ( size_t ) IPC_GET_ARG2( * call ) |
66 | 85 | ||
67 | #endif |
86 | #endif |
68 | 87 | ||
69 | /** @} |
88 | /** @} |