Changeset 995689d1 in mainline
- Timestamp:
- 2010-10-15T19:19:11Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5a3479
- Parents:
- 3a5d892f
- Location:
- uspace/lib
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/netif.h
r3a5d892f r995689d1 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 40 #include <ipc/ipc.h> 41 41 #include <ipc/net.h> 42 42 43 /** Network interface common module messages. 44 */ 43 /** Network interface common module messages. */ 45 44 typedef enum { 46 45 /** Probe device message. 47 * 46 * @see netif_probe_req() 48 47 */ 49 48 NET_NETIF_PROBE = NET_NETIF_FIRST, 50 49 /** Send packet message. 51 * 50 * @see netif_send_msg() 52 51 */ 53 52 NET_NETIF_SEND, 54 53 /** Start device message. 55 * 54 * @see netif_start_req() 56 55 */ 57 56 NET_NETIF_START, 58 57 /** Get device usage statistics message. 59 * 58 * @see netif_stats_req() 60 59 */ 61 60 NET_NETIF_STATS, 62 61 /** Stop device message. 63 * 62 * @see netif_stop_req() 64 63 */ 65 64 NET_NETIF_STOP, 66 65 /** Get device address message. 67 * 66 * @see netif_get_addr_req() 68 67 */ 69 68 NET_NETIF_GET_ADDR, 70 69 } netif_messages; 71 70 72 /** @name Network interface specific message parameters definitions 73 */ 71 /** @name Network interface specific message parameters definitions */ 74 72 /*@{*/ 75 73 … … 78 76 */ 79 77 #define NETIF_GET_IRQ(call) \ 80 ({int irq = (int) IPC_GET_ARG2(*call); irq;}) 78 ({ \ 79 int irq = (int) IPC_GET_ARG2(*call); \ 80 irq; \ 81 }) 81 82 82 83 /** Return the input/output address message parameter. … … 84 85 */ 85 86 #define NETIF_GET_IO(call) \ 86 ({int io = (int) IPC_GET_ARG3(*call); io;}) 87 ({ \ 88 int io = (int) IPC_GET_ARG3(*call); \ 89 io; \ 90 }) 87 91 88 92 /*@}*/ -
uspace/lib/net/netif/netif_local.c
r3a5d892f r995689d1 42 42 #include <ipc/ipc.h> 43 43 #include <ipc/services.h> 44 #include <ipc/netif.h> 44 45 #include <err.h> 45 46 … … 53 54 #include <nil_interface.h> 54 55 #include <netif_local.h> 55 #include <netif_messages.h>56 56 #include <netif_interface.h> 57 57 -
uspace/lib/net/netif/netif_remote.c
r3a5d892f r995689d1 36 36 37 37 #include <ipc/services.h> 38 #include <ipc/netif.h> 38 39 39 40 #include <net/modules.h> … … 43 44 #include <net/device.h> 44 45 #include <netif_remote.h> 45 #include <netif_messages.h>46 46 #include <generic.h> 47 47
Note:
See TracChangeset
for help on using the changeset viewer.