Changes in uspace/lib/c/include/ipc/netif.h [774e6d1a:995689d1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/netif.h
r774e6d1a r995689d1 47 47 */ 48 48 NET_NETIF_PROBE = NET_NETIF_FIRST, 49 50 49 /** Send packet message. 51 50 * @see netif_send_msg() 52 51 */ 53 52 NET_NETIF_SEND, 54 55 53 /** Start device message. 56 54 * @see netif_start_req() 57 55 */ 58 56 NET_NETIF_START, 59 60 57 /** Get device usage statistics message. 61 58 * @see netif_stats_req() 62 59 */ 63 60 NET_NETIF_STATS, 64 65 61 /** Stop device message. 66 62 * @see netif_stop_req() 67 63 */ 68 64 NET_NETIF_STOP, 69 70 65 /** Get device address message. 71 66 * @see netif_get_addr_req() … … 78 73 79 74 /** Return the interrupt number message parameter. 80 * 81 * @param[in] call Mmessage call structure. 82 * 75 * @param[in] call The message call structure. 83 76 */ 84 #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 }) 85 82 86 83 /** Return the input/output address message parameter. 87 * 88 * @param[in] call Message call structure. 89 * 84 * @param[in] call The message call structure. 90 85 */ 91 #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 }) 92 91 93 92 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.