Changeset 89c57b6 in mainline for uspace/lib/c/include/ipc/netif.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/netif.h
rcefb126 r89c57b6 27 27 */ 28 28 29 /** @addtogroup netif29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 35 35 */ 36 36 37 #ifndef __NET_NETIF_MESSAGES_H__38 #define __NET_NETIF_MESSAGES_H__37 #ifndef LIBC_NETIF_MESSAGES_H_ 38 #define LIBC_NETIF_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 common module messages. 45 */ 42 /** Network interface common module messages. */ 46 43 typedef enum { 47 44 /** Probe device message. 48 * 45 * @see netif_probe_req() 49 46 */ 50 47 NET_NETIF_PROBE = NET_NETIF_FIRST, 48 51 49 /** Send packet message. 52 * 50 * @see netif_send_msg() 53 51 */ 54 52 NET_NETIF_SEND, 53 55 54 /** Start device message. 56 * 55 * @see netif_start_req() 57 56 */ 58 57 NET_NETIF_START, 58 59 59 /** Get device usage statistics message. 60 * 60 * @see netif_stats_req() 61 61 */ 62 62 NET_NETIF_STATS, 63 63 64 /** Stop device message. 64 * 65 * @see netif_stop_req() 65 66 */ 66 67 NET_NETIF_STOP, 68 67 69 /** Get device address message. 68 * 70 * @see netif_get_addr_req() 69 71 */ 70 72 NET_NETIF_GET_ADDR, 71 73 } netif_messages; 72 74 73 /** @name Network interface specific message parameters definitions 74 */ 75 /** @name Network interface specific message parameters definitions */ 75 76 /*@{*/ 76 77 77 78 /** Return the interrupt number message parameter. 78 * @param[in] call The message call structure. 79 * 80 * @param[in] call Mmessage call structure. 81 * 79 82 */ 80 #define NETIF_GET_IRQ(call) \ 81 ({int irq = (int) IPC_GET_ARG2(*call); irq;}) 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 ({int io = (int) IPC_GET_ARG3(*call); io;}) 90 #define NETIF_GET_IO(call) ((void *) IPC_GET_ARG3(call)) 88 91 89 92 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.