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