Changeset 89c57b6 in mainline for uspace/lib/c/include/ipc/nil.h
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/nil.h
rcefb126 r89c57b6 27 27 */ 28 28 29 /** @addtogroup net_nil29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 35 35 */ 36 36 37 #ifndef __NET_NIL_MESSAGES_H__38 #define __NET_NIL_MESSAGES_H__37 #ifndef LIBC_NIL_MESSAGES_H_ 38 #define LIBC_NIL_MESSAGES_H_ 39 39 40 #include <ipc/ ipc.h>40 #include <ipc/net.h> 41 41 42 #include <net_messages.h> 43 44 /** Network interface layer module messages. 45 */ 42 /** Network interface layer module messages. */ 46 43 typedef enum { 47 44 /** New device or update MTU message. 48 * 45 * @see nil_device_req() 49 46 */ 50 47 NET_NIL_DEVICE = NET_NIL_FIRST, 51 48 /** New device state message. 52 * 49 * @see nil_device_state_msg() 53 50 */ 54 51 NET_NIL_DEVICE_STATE, 55 52 /** Received packet queue message. 56 * 53 * @see nil_received_msg() 57 54 */ 58 55 NET_NIL_RECEIVED, 59 56 /** Send packet queue message. 60 * 57 * @see nil_send_msg() 61 58 */ 62 59 NET_NIL_SEND, 63 60 /** Packet size message. 64 * 61 * @see nil_packet_size_req() 65 62 */ 66 63 NET_NIL_PACKET_SPACE, 67 64 /** Device local hardware address message. 68 * 65 * @see nil_get_addr() 69 66 */ 70 67 NET_NIL_ADDR, 71 68 /** Device broadcast hardware address message. 72 * 69 * @see nil_get_broadcast_addr() 73 70 */ 74 71 NET_NIL_BROADCAST_ADDR, 75 72 } nil_messages; 76 73 77 /** @name Network interface layer specific message parameters definitions 78 */ 74 /** @name Network interface layer specific message parameters definitions */ 79 75 /*@{*/ 80 76 81 /** Return the protocol service message parameter. 82 */ 83 #define NIL_GET_PROTO(call) \ 84 ({services_t service = (services_t) IPC_GET_ARG2(*call); service;}) 77 /** Return the protocol service message parameter. */ 78 #define NIL_GET_PROTO(call) ((services_t) IPC_GET_ARG2(call)) 85 79 86 80 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.