Changes in uspace/lib/c/include/ipc/netif.h [64d2b10:995689d1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/netif.h
r64d2b10 r995689d1 38 38 #define LIBC_NETIF_MESSAGES_H_ 39 39 40 #include <ipc/ipc.h> 40 41 #include <ipc/net.h> 41 42 … … 46 47 */ 47 48 NET_NETIF_PROBE = NET_NETIF_FIRST, 48 49 49 /** Send packet message. 50 50 * @see netif_send_msg() 51 51 */ 52 52 NET_NETIF_SEND, 53 54 53 /** Start device message. 55 54 * @see netif_start_req() 56 55 */ 57 56 NET_NETIF_START, 58 59 57 /** Get device usage statistics message. 60 58 * @see netif_stats_req() 61 59 */ 62 60 NET_NETIF_STATS, 63 64 61 /** Stop device message. 65 62 * @see netif_stop_req() 66 63 */ 67 64 NET_NETIF_STOP, 68 69 65 /** Get device address message. 70 66 * @see netif_get_addr_req() … … 77 73 78 74 /** Return the interrupt number message parameter. 79 * 80 * @param[in] call Mmessage call structure. 81 * 75 * @param[in] call The message call structure. 82 76 */ 83 #define NETIF_GET_IRQ(call) ((int) IPC_GET_ARG2(call)) 77 #define NETIF_GET_IRQ(call) \ 78 ({ \ 79 int irq = (int) IPC_GET_ARG2(*call); \ 80 irq; \ 81 }) 84 82 85 83 /** Return the input/output address message parameter. 86 * 87 * @param[in] call Message call structure. 88 * 84 * @param[in] call The message call structure. 89 85 */ 90 #define NETIF_GET_IO(call) ((void *) IPC_GET_ARG3(call)) 86 #define NETIF_GET_IO(call) \ 87 ({ \ 88 int io = (int) IPC_GET_ARG3(*call); \ 89 io; \ 90 }) 91 91 92 92 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.